Skip to the content
2 layers61.6 × 66.1 mmHome power management, the printed circuit board in 3D

A bespoke home power management system built on a Raspberry Pi Zero W, optimised by edge AI and written in Rust.

Size
61.6 × 66.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
37
Pads
105
Tracks, vias
181, 10
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
5 Aug 2026
Updated
10 Sep 2026

Overview

Home power management is an open-source printed circuit board by EricAustinUK, from the EricAustinUK/home_power_management repository on GitHub, published under the MIT licence. It is a 2-layer board of 61.6 × 66.1 mm with 29 parts on 37 nets, routed with 181 tracks and 10 vias.

Its parts include 10 resistors and 2 connectors.

README

README.md

Home Power Management

A bespoke home power management system built on a Raspberry Pi Zero W, optimised by edge AI and written in Rust. Predicts solar generation with an on-device ML model, then calculates and schedules battery and EV charging around a cheap energy tariff window via Home Assistant.

How it works

  • Solar prediction (ml/): a compact regression model trained on historical weather and solar pv generation data predicts the next 24 hours of solar output. Inference runs locally on the Pi Zero W (ARMv6, 512 MB RAM).
  • Weather input(software/home_manager/weather_data.rs): hourly forecasts from the OpenMeteo API feed the model.
  • Battery scheduling: during tariff windows, the expected house load is compared against predicted solar, the battery is configured to charge to cover any shortfall, then reset to its baseline when the tariff ends.
  • EV conditional charging: reads an EV's battery level, home location, and plug state from Home Assistant to control an IoT enabled charger, switching it off once the target charge (currently 95%) is reached.
  • Control panel (control_panel.rs): a physical panel (currently on a breadboard) with three "appliance" toggle switches (though only one of these is currently configured, being the one representing the home being inhabited) that feed into the estimate for home energy consumption. Shows the state for each these appliances with an LED.

Optimization for ARM

The model and inference path were developed with the Pi Zero W's hardware limitations in mind.

MetricValue
Model size on disk282B
Model data size on disk99KB
Inference latency (Pi Zero W)1.51ms
RAM footprint3664KB

Hardware

  • Raspberry Pi Zero W
  • Custom control panel housing 3 push switches with pull-ups, status LEDs
  • Home Assistant instance with battery, EV, and charger integrations

Setup

  1. Clone and copy .env.example to .env, filling in:
    • HASS_IP, HASS_PORT, HASS_TOKEN (long-lived access token obtained in Home Assistant developer settings)
    • BATTERY_NAME, EV_NAME, EV_CHARGER_NAME - entity prefixes as they appear in Home Assistant. Current implementation is for an Ecoflow battery, a BYD EV and a VOLDT charger connected to SmartLife; using hass-byd-vehicle, hassio-ecoflow-cloud, HomeAssistant's official Tuya SmartLife integration
    • WEATHER_API_URL, PANEL_LATITUDE, PANEL_LONGITUDE - for the weather forecast and history. Currently only OpenMeteo is supported
    • MODEL_FILENAME, MODEL_DATA_FILENAME - trained model binary if training off the target is preferred (see ml/)
  2. Cross-compile for the Pi Zero W:
    bash
    cd software
    cargo build --target arm-unknown-linux-musleabihf --release
    (requires the arm-linux-gnueabihf-gcc linker)
  3. Deploy and run (uses PI_USER and PI_HOST from .env):
    bash
    set -a && source ../.env && set +a
    scp target/arm-unknown-linux-musleabihf/release/home_assist $PI_USER@$PI_HOST:~/
    ssh $PI_USER@$PI_HOST "chmod +x ~/home_assist && ~/home_assist"
    (also available as the "deploy to pi" / "run on pi" tasks in .vscode/tasks.json)

License

MIT, see LICENSE

Parts

29
QtyValueFootprintReferences
7MountingHole_2.7mm_M2.5MountingHole:MountingHole_2.7mm_M2.5H1, H2, H3, H4/7, H5, H6, H8
510kResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5
5220Resistor_SMD:R_0603_1608MetricR6, R7, R8, R9, R10
5LEDLED_SMD:LED_0805_2012MetricAPP_1, APP_2, APP_3, LAN1, PWR1
5SW_PushButton_Switch_SMD:SW_SPST_PTS810SW_APP_1, SW_APP_2, SW_APP_3, SW_EV_N1, SW_EV_P1
1Conn_01x08_PinConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ1
1PiZeroW_Bottom_MountConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalJ2

Similar boards

  • 2 layers52.3 × 10.5 mmStackLink, the printed circuit board in 3D

    StackLink

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    29 parts5.1kGPL-3.0
  • 2 layers56 × 20 mmHallEffectXY Endstop, the printed circuit board in 3D

    HallEffectXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    29 parts1.1kGPL-3.0
  • 2 layers50 × 23.2 mmAnalog, the printed circuit board in 3D

    Analog

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    29 parts1kGPL-3.0
  • 2 layers16.8 × 13.6 mmE Fidget Lite, the printed circuit board in 3D

    E Fidget Lite

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    29 parts915
  • 2 layers85 × 12.5 mmTERES PCB3-TOUCH BTN Rev.A, the printed circuit board in 3D

    TERES PCB3-TOUCH BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    29 parts578Apache-2.0
  • 2 layers33.7 × 97.8 mmHAN ESP TSS721, the printed circuit board in 3D

    HAN ESP TSS721

    UtilitechAS/amsreader-firmware

    ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

    29 parts470
  • 2 layers80 × 55 mmGB CARTPP XC, the printed circuit board in 3D

    GB CARTPP XC

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    29 parts379CC-BY-4.0
  • 2 layers55 × 58 mmProto ads bee mcu board, the printed circuit board in 3D

    Proto ads bee mcu board

    PantsForBirds/adsbee

    Open Source Embedded ADS-B Receiver

    29 parts344GPL-3.0

Questions

How big is the Home power management PCB?

It measures 61.6 × 66.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Home power management use?

29 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Home power management KiCad files?

From the EricAustinUK/home_power_management repository on GitHub, at the commit this page was made from: the board is kicad/project.kicad_pcb and its schematic kicad/control_panel.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Home power management design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).