Problem Statement: Balancing Homes, Batteries, and the Grid
Frames the microgrid as a physical balancing problem first and a market second, and states the scale that drives every later decision.
Problem statement
A neighborhood microgrid is a small electrical system that can run connected to the utility grid or detach and run on its own. In this design, each cell has homes with rooftop solar, home batteries, smart meters and breakers, one shared community battery, and a utility connection at the point of common coupling (PCC). The core problem is that the net power at the PCC must stay near its target every second, while neighbors trade surplus energy at prices that change every five minutes.
Why this is harder than a billing app
A billing app can be a minute late and nobody is harmed. A microgrid cannot. Supply and demand must match continuously, because frequency on a 50 Hz or 60 Hz system moves within seconds when they drift apart. Inverters, batteries and breakers are physical devices that fail, lose connectivity, and sometimes report wrong values. The controller that protects the physical system must live close to those devices, not in a distant cloud region.
Three numbers frame the problem. A typical US household uses roughly 10,500 kWh a year, about 28.8 kWh a day or an average of 1.2 kW. A 6 kWp rooftop array at a specific yield of 1,400 kWh per kWp per year produces about 8,400 kWh a year, roughly 23 kWh a day. At midday, a cell where half the homes have solar can export more than the feeder allows, while the same cell needs power in the evening peak. All three figures are working assumptions for this design, not measurements from one site.
What the system must do
- Read real-time generation and consumption from each home, and keep control working at the site when the cloud is unreachable.
- Balance the cell: hold net PCC power near its target, dispatch batteries, and curtail solar when the export limit binds.
- Clear a local energy market every five minutes so neighbors can sell surplus at a price that reflects local scarcity.
- Detach from the grid during an outage, keep critical loads running, and reconnect without a voltage or phase jump.
- Settle each interval for every meter and produce statements that the utility and the cooperative can audit.
Where IoT ingress is the right tool
This product has real devices: inverters, battery management systems, smart meters and breakers speak industrial protocols such as Modbus, DNP3, IEC 61850 and DLMS/COSEM. A site gateway collects those signals and publishes summaries to the cloud over MQTT with mutual TLS. That is a genuine IoT ingress problem, so a managed service such as AWS IoT Core or Azure IoT Hub fits. The rule that matters is that ingress carries telemetry and commands. It must never sit on the control path that holds the physical system in balance.
The interview question is therefore not 'how do I store energy readings'. It is 'which decisions must happen within one second on hardware in a garage, which can wait five minutes for a market, and which can wait a day for a forecast'. Every later section answers one of those three timescales.
Key Highlights
- •Balancing runs at 1 Hz inside each cell, and the cloud never sits on the control path.
- •A 1,200-home pilot cell has about 2.9 MW of midday PV against about 0.9 MW of load, so export limits bind on sunny days.
- •IoT ingress is correct here because inverters, batteries, meters and breakers are real devices that speak Modbus, DNP3 and IEC 61850.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "Before I design storage, I want to separate what must happen within one second from what can wait five minutes, because those timescales lead to different components."
- "The first thing I will guarantee is that physical balance holds without the cloud. Market and billing features come after that."