Abstract: This study presents a real-time, price-based demand response (DR) system that integrates photovoltaic (PV) generation, battery energy storage, and grid power to minimize electricity costs.