Residential devices like smart water heaters and appliances can help stabilize the power grid by adjusting their energy use. To make this process more efficient, we’ve developed a smart controller that uses advanced algorithms to manage energy demand. This controller adjusts how and when devices respond to grid changes, helping balance supply and demand. Our tests show that this controller improves grid stability, providing faster and more reliable frequency regulation compared to other methods.