← All cases
Energy

Sonnenrepublik — Embedded R&D for a PV Power Station.

A multi-year firmware and hardware R&D programme for a novel power station for PV systems.

C / FreeRTOSEmbedded firmwareBattery managementIoT / connectivityOTA + CI
sonnenrepublik.de ↗
High-level architecture of the firmware: a FreeRTOS control core with a touch interface, an SPI bus to peripheral boards, battery management, inverter and grid-tie control, connectivity with over-the-air updates, and a diagnostics and release pipeline
Firmware architecture, simplified — our own schematic, not client design data
The assembled enclosure of a power station for PV systems
Hardware, assembled
The enclosure opened into its two halves, showing internal mounting structure
Enclosure, opened

The same firmware programme extends to a companion mobile application — charge state, the energy flow between solar input and connected devices, and control of the outputs.

The companion mobile app: state of charge, solar input against device draw, and output controls
Companion app — charge state, energy flow and output control
A board under test on the bench in our hardware lab, with probes and a wire harness attached
Firmware brought up against real hardware — our hardware lab in Chisinau, Moldova
The programme

We run the embedded software programme end to end: a FreeRTOS-based firmware written in C on an ESP32-class controller, an LVGL touch interface on a 4.3-inch panel, and a multi-board architecture in which the controller queries and drives peripheral boards over SPI, validating every critical field and retrying on failure.

The battery

The hard part is the battery. State of charge is estimated by coulomb counting and corrected against voltage and charge/discharge curves, with idle-current calibration, full- and half-cycle tracking, and a charge/discharge state machine whose transitions only commit once the hardware confirms the command. Inverter and grid-tie control, scheduling and load profiles sit on top.

Connectivity and updates

Around that: Wi-Fi provisioning with QR onboarding, over-the-air updates on separate development and production channels, an on-device diagnostics web server with live charts and manufacturing pages, and USB-C Power Delivery.

Reliability

Reliability is a feature in a device somebody plugs their house into. Task watchdogs, execution tracing, tuned stack sizes and mutex timeouts, reset-cause detection on boot and restoration of output state after an unexpected reboot. Releases ship through a CI pipeline with separate development and production tracks.

Key features
FreeRTOS firmware in C, with an LVGL touch interface
Multi-board architecture over a validated SPI bus
Battery management: state of charge, cycle tracking, charge/discharge control
Inverter and grid-tie control, scheduling and load profiles
Wi-Fi provisioning, over-the-air updates and on-device diagnostics
Watchdogs, execution tracing and state restoration after reset
Start the conversation

Two minutes of questions about your own build, answered by a senior engineer. You get a written plan and a number before you commit to anything.

Read next