Open Microgrid LabRunning liveSign in

A neighbourhood that runs its own grid

20 simulated homes in Madrid share their sun and a community battery, and trade energy every 15 minutes. When the grid fails, the street runs itself.

It has two apps: one for the people who live there, one for the people who run it.

The home app at sunset: the house in the middle, and tiles for today, the month, the market and the community battery

The home app

For the people who live there, on a phone or a computer.

  • Your house, live: its roof, its car and the power in its cable
  • Is the power on, and if not, why
  • The street market: your own prices, or automatic
  • The bill so far, and a budget that warns you
The control room: the microgrid's diagram beside the neighbourhood panel

The control room

For the people who run the street.

  • The microgrid's diagram, read over Modbus and DNP3
  • Island and reconnect, confirmed by what is measured
  • Alarms, trends, the battery's plan and every bill
  • Faults, storms and scored exercises to train with

No account needed: look around the basics of both apps, and go from one to the other at any time. At every full ten minutes (:00, :10, :20 …) the grid goes for three: watch the street run on its battery and come back. The rest opens with an account.

Take the controls

Ask for a login and run the street yourself for a day: lose the grid, cause a fault, set prices. Your street is your own: nothing you do reaches anyone else.

Ask for a login

Sign in

Residents go to their own home, and staff to the control room.

The home app: every home has its own

It opens on your own house, drawn live under the sky there is now: what the roof makes, what you use, and where it comes from.

Home by day: the house under a blue sky, its solar panels making power, and rings for today and the month
Home, by dayWhat you use now, and how much of it your roof makes
Market: the price now between what the grid pays and charges, what trading brought, and the home's own prices
MarketThe price now, and what trading brought you
Bill: the invoice so far as a ring of its parts
BillThe invoice so far, part by part

See where the street's energy comes from

Every cable has the colour of its source: sun, battery, grid or generator. Residents see the same street, without what each neighbour uses.

Our street: the homes, their solar roofs and the cables, coloured by where the energy comes from, beside bars of the power coming in and going out

The grid fails, and the street stays on

One moment in both apps: 19:04, after dark, under a minute after the grid was lost. This home's car helps to supply the street.

The control room in an island: no supply from the grid, its breaker open, the busbar green from the battery at 46.2 %, a critical alarm, and car chargers and heat pumps shed
The home app at the same moment: on the community battery at 46.2 %, with a message, and the home's car giving 1.6 kW to the street
  1. The battery takes over

    The street disconnects from the dead grid, and the community battery supplies it.

  2. Some things wait

    Car chargers and heat pumps first. If the battery runs low, homes take turns. Critical homes stay on the longest.

  3. The grid comes back

    Once it has been steady, the street reconnects in sync, by itself.

Inside the control room

See what happened, set the rules, change the street and practise for a bad day.

Trends: the power of the grid, battery and solar panels, the battery's charge and the grid's frequency, which falls to zero
TrendsThe same power cut, measured: the grid's frequency falls to zero, and the battery carries the street
The model editor: the street as a picture, kinds of home to add, and the load on each phase
Network modelDrag a home or add one, then check it. Another engineer approves changes that move money
The Simulator: the state of the grid and street, device failures to cause, the training session and its scenarios
SimulatorCause a fault or run a scored exercise. For instructors and engineers only

What it runs today

  • An app for every home

    Power, messages, market and bill on a phone. Neighbours' readings and bills stay private.

  • Street market

    Homes set their own prices, choose a neighbour, or leave it on automatic. No trade is worse than the grid's price.

  • Bills and budgets

    Exact monthly bills from a ledger that only grows, and a budget with a forecast and a warning.

  • Island mode

    When the grid is lost, the battery carries the street and critical homes stay on. Then black start, and back to the grid in sync.

  • Community battery

    A least-cost plan for the next 24 hours, charging only what the cable has room for.

  • The street's cable

    Voltage and load on each phase, live. Warnings stay until a weak spot is fixed.

  • Control room

    Modbus TCP and DNP3, alarms after ISA-18.2, trends, and controls confirmed by telemetry.

  • Model editor

    Drag a home, change its devices. Checked, versioned and switched over while it runs.

  • Training

    Grid loss, faults, false data and storms on demand, with scored scenarios and snapshots.

One Rust binary, open standards

The simulator, SCADA, settlement and web pages run in one program, with an MCP endpoint for AI assistants.

  • Rust
  • SQLite
  • Modbus TCP
  • DNP3
  • EN 50160
  • IEC 62443
  • ISA-18.2
  • RD 244/2019
  • MCP