A coordinated control framework stabilizes power grids with high renewable penetration by managing distributed storage units in real time.