Smart Solar Grid Manager — Residential Energy Management System
What is SolSwitch and why does it matter?
A residential smart energy management system designed to optimize the use of solar power. Instead of sending surplus energy back to the grid or wasting it when the battery is full, SolSwitch intelligently redirects the excess power to specific household appliances based on user-defined priorities.
The system begins at the Photovoltaic (PV) Array. Energy flows into the Hybrid Inverter, which powers the house, charges batteries, and synchronises with the grid. Once batteries are full and critical loads are met, the EMS starts routing surplus to flexible loads like the boiler, heater, or EV charger — guided by real-time sensor feedback.
Click any component to learn more about it.
👆 Tap / click on any block for details
Key terminology used in this project.
The four pillars of the SolSwitch architecture.
Solar Panels generate DC power. The Hybrid Inverter converts it to AC for the home or stores it in the Battery Bank. The power priority order is: Solar → Battery → Grid.
The fridge and other critical electronics are connected directly to the Main Panel (critical load sub-panel). They run continuously, drawing power from Solar → Battery → Grid in that order.
A custom board with heavy-duty Solid State Relays (SSRs) or Automatic Transfer Switch (ATS) mechanisms. It acts as a gateway to the flexible loads, controlled by the microcontroller.
Boiler: DS18B20 temperature sensor reports water temp. Heater/AC: Room thermostat vs. target temp. EV Charger: OCPP protocol or PWM signal reads charge state.
Raspberry Pi 4 (or ESP32 for a stripped-down version)
Reads real-time data from the Hybrid Inverter: solar production wattage and battery State of Charge (%).
Constantly reads the feedback sensors — temperatures, EV charge state, room conditions.
Core algorithm: If Battery = 100% AND Solar Production > Home Base Load → Enable Surplus Mode.
Iterates through the user's priority list. If the boiler temperature is met, it disables the boiler relay and moves to Priority 2 (EV charger).
Runs a lightweight web server or MQTT broker to communicate with the mobile/PC application over Wi-Fi.
Cross-platform web app accessible via PC browser, compiled into an Android App.
Displays a live animated flow of energy: Solar → Battery, Solar → House, with real-time power indicators.
Users drag appliances up or down a priority list. Winter mode: heater on top. Summer mode: AC on top.
Set target temperatures for the boiler, room thermostats, and battery percentage triggers (e.g., "Start routing when Battery > 95%").
The architecture draws upon standard concepts in modern Smart Grid and Renewable Energy Systems.