Two control loops
| Loop | Rate | Job |
|---|---|---|
| Optimization (MPC) | Every 2 to 10 minutes | Solves for the least-cost dispatch path across the forecast horizon, given load, solar, price and pending grid events |
| Feed-forward control | 5 Hz | Holds grid import and state of charge to the plan by commanding inverters, battery and managed loads |
A rules-based controller runs a fixed schedule or threshold logic tree. When load runs ahead of forecast, it discharges at full power until the battery empties, and demand then spikes. The MPC sees that path coming and raises the import threshold while it still holds reserve energy.
What runs locally and what needs the internet
| Function | Where it runs |
|---|---|
| Dispatch optimization and control | On the EMC |
| Data storage | On the EMC, 10 years of local storage on every tier |
| Weather forecasts | Pulled from the internet |
| Program dispatch calls | Received over the internet |
| Telemetry and Monitor Base | Uploaded to the cloud; queued during an outage |
Removing cloud availability from the critical path is the single most important reliability decision in the architecture. In a sustained outage the EMC keeps optimizing against the most recent known state and sends queued telemetry when the connection returns.
Watchdogs and fail-safes
- Internal process watchdog. Standard on every EMC. Two layers monitor the software processes and restart any that hang, so events are not missed and demand thresholds stay managed.
- External safe-state watchdog. Optional. Where a site needs a discrete action if the controller fails, such as cutting inverter output to hold zero export, a separate device enforces it. The fail-safe behaviour is set during site design.
Override without losing the plan
Every dispatch decision is logged and shown in Monitor Base on the forecast power flow. An O&M team or the site owner can override the controller for any piece of equipment from Monitor Base or the EMC touchscreen. Overrides are time-bounded or indefinite, and the MPC resumes control when the override clears.
Hardware and integration
- One EMC per site manages multiple inverters and multiple batteries per inverter.
- Inverter and battery communication runs over Modbus RTU (RS485), Modbus TCP or local APIs where supported.
- EMC tiers differ on ports and enclosure, not on system size: Base (2× RS485), Pro (4× RS485, Canbus, digital IO), Pro+ (6× RS485, NEMA enclosure, UPS, network switch).
- Commissioning is remote: send the single line diagram and an install window.
The ESI controller note covers the same architecture under BC Hydro's dispatch compliance requirements.
Common questions
- Does the Sponge EMC need the internet to dispatch a battery?
- No. Dispatch decisions are computed on the EMC. The internet supplies weather forecasts, program dispatch calls and telemetry upload. During an outage the EMC keeps optimizing against the last known state and queues telemetry.
- How often does Sponge re-plan battery dispatch?
- The MPC optimization loop runs every 2 to 10 minutes, configurable per site. A 5 Hz control loop holds equipment to the plan between optimizations.
- What happens if the EMC software hangs?
- A two-layer internal watchdog, standard on every EMC, restarts hung processes. Sites that need a defined fail-safe action, such as holding zero export, can add an external safe-state watchdog.
- Which EMC should I choose?
- Choose on ports and environment, never on system size. EMC Base suits two inverters or fewer indoors; EMC Pro adds RS485 ports, Canbus and digital IO; EMC Pro+ adds a NEMA enclosure, UPS and network switch for outdoor or industrial sites.
Next Step
Talk through the controller for your next site
Book a call to walk through EMC selection, fail-safe design and commissioning for your project.
Book a review call →