Smart Control of Grid-friendly Solar Arrays