
Desk power monitor mini32 ac
netrondev/netron_esp32_lora_ac
A mains current monitor built on an ESP32 and an SX1262 radio. It measures AC current through an ACS712 hall-effect sensor and reports it over LoRaWAN as an OTAA Class A device.

A mains current monitor built on an ESP32 and an SX1262 radio. It measures AC current through an ACS712 hall-effect sensor and reports it over LoRaWAN as an OTAA Class A device.
Desk power monitor mini32 ac is an open-source printed circuit board by netrondev, from the netrondev/netron_esp32_lora_ac repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 31 × 39 mm with 25 parts on 50 nets, routed with 143 tracks and 5 vias.
It is built around the 220UF 10V 5*7, CY75-220UH and MB10S(46MIL), with the US1M among its other parts. Its parts include 5 capacitors, 5 resistors, 5 connectors, 4 diodes and 2 ICs. It belongs with the ESP32 and RISC-V boards of this library.
A mains current monitor built on an ESP32 and an SX1262 radio. It measures AC current through an ACS712 hall-effect sensor and reports it over LoRaWAN as an OTAA Class A device. The repo also includes a small network server so you can receive the reports and configure devices remotely, plus the KiCad hardware.
Everything is written in Rust except the payload codec, which is plain JavaScript so it can be pasted into ChirpStack, The Things Network or Node-RED.
ACS712 current sensor
└─ ESP32 + SX1262 firmware/ OTAA Class A device
~ 868.1 MHz SF7 ~
└─ Milesight UG63 gateway Semtech UDP packet forwarder
└─ software/lorans network server: joins, keys,
uplink decode, downlink queueThe gateway's own network server is not used. It has no usable downlink
route: there's no HTTP endpoint, and its MQTT application forwarder reboots the
gateway. Without downlinks there's no remote configuration. So the gateway runs
as a plain packet forwarder, and software/lorans does the network server's
job. software/lorans/README.md has the details.
Any gateway that speaks the Semtech UDP protocol should work in place of the
UG63. Alternatively, the devices can join a standard network server such as
ChirpStack, using the codec in software/loradecode.
| Directory | What it is |
|---|---|
firmware/ | ESP32 firmware. Measures current, joins by OTAA, reports aggregated min/avg/max, applies configuration downlinks |
software/lorans/ | Network server. Run this to receive uplinks and send commands |
software/loradecode/ | JavaScript payload decoder and command encoder for ChirpStack, TTN or Node-RED |
software/milesight_d4/ | Milesight gateway HTTP client: status, device list, forwarder mode, payload decode/encode |
software/loramqtt/ | Minimal MQTT broker, kept for diagnosing the gateway's MQTT forwarding |
docs/PROTOCOL.md | Uplink channel map and downlink command set |
diagram/ | System overview: power supply, sensing, MCU and radio |
hardware/ | KiCad schematics, PCBs and JLCPCB fabrication outputs |
scripts/ | Build, flash and monitor helpers |
| SX1262 | ESP32 |
|---|---|
| NSS | GPIO5 |
| RESET | GPIO27 |
| DIO1 | GPIO26 |
| SCK | GPIO18 |
| MISO | GPIO19 |
| MOSI | GPIO23 |
BUSY isn't wired to the ESP32. The driver waits a fixed settling time after each command instead, and detects TxDone/RxDone from DIO1. The status LED is on GPIO2.
Warning: the power supply is non-isolated, so the whole board sits at mains potential. Don't touch it or connect USB while it's powered from mains.
| DevEUI | Derived from the ESP32's MAC: OUI FF FE NIC |
| JoinEUI | 0000000000000000 |
| AppKey | The DevEUI repeated, e.g. E08CFEFFFE34C3AC → E08CFEFFFE34C3ACE08CFEFFFE34C3AC |
This follows the Milesight convention, so a device can be onboarded from
nothing but its join request. It also means the AppKey is not a secret.
That's fine for a private network on a private gateway. If you need real
over-the-air security, give each device a random AppKey. docs/PROTOCOL.md
covers this, along with the payload format.
The ESP32 needs Rust's Xtensa toolchain. Install it with
espup, which writes ~/export-esp.sh, then
install espflash:
cargo install espup espflash
espup installAlternatively, build inside Docker with the image in firmware/. scripts/build.sh
and scripts/flash.sh use it:
docker build -t esp32-rust firmware/The scripts find the serial port automatically, or you can pass it explicitly:
./scripts/flash_native.sh # host toolchain: build, flash, print the MAC
./scripts/flash.sh /dev/ttyUSB0 # same, building in Docker
./scripts/monitor.sh # serial monitor in Docker (CTRL+R resets, CTRL+C exits)Point the gateway's packet forwarder at this host on UDP port 1700, then start the network server:
cargo run --manifest-path software/lorans/Cargo.tomlIt accepts joins, decodes uplinks and queues downlinks. Commands go to a
control socket on 127.0.0.1:7788. A queued downlink is sent in the receive
window after the device's next uplink. Intervals are in seconds:
echo 'downlink E08CFEFFFE34C3AC report=60 sample=5 jitter=10' | nc -q1 127.0.0.1 7788
echo 'list' | nc -q1 127.0.0.1 7788Copy software/milesight_d4/config.json.example to config.json and add the
gateway's address and login. Then:
cargo run --manifest-path software/milesight_d4/Cargo.toml -- status
cargo run --manifest-path software/milesight_d4/Cargo.toml -- set-forwarder semtech 192.168.1.100sample seconds and accumulates min/avg/maxreport seconds, offset by a
random ± jitter seconds so devices don't collide. An unacknowledged
report is retried once| Pattern | Meaning |
|---|---|
| Short blink every ~0.5 s | Not joined yet, trying to join |
| Short blink per sample | Joined and measuring normally |
| Rapid triple blink | ADC error: sensor disconnected, or the reading saturated at 0 or 4095 |
xtensa-esp32-elf-gcc not found: run source ~/export-esp.sh first.dialout
group, or sudo chmod 666 /dev/ttyUSB0.ls /dev/ttyUSB* /dev/ttyACM*.--chip esp32 -p <port> explicitly.Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 100nF | Capacitor_SMD:C_0805_2012Metric | C1, C5 |
| 2 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R2 |
| 2 | 1K | Resistor_SMD:R_0805_2012Metric | R3, R5 |
| 1 | 0.68R | Resistor_SMD:R_0805_2012Metric | R4 |
| 1 | 1N4148WS-C57759 | easyeda2kicad:SOD-323_L1.8-W1.3-LS2.5-RD-1 | D2 |
| 1 | 1nF | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 220uF/10V | Capacitor_SMD:CP_Elec_6.3x7.7 | C4 |
| 1 | 4.7µF / 400V electrolytic | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C3 |
| 1 | AC Live IN | Connector_Wire:SolderWire-2.5sqmm_1x01_D2.4mm_OD3.6mm | J4 |
| 1 | AC Live OUT | Connector_Wire:SolderWire-2.5sqmm_1x01_D2.4mm_OD3.6mm | J3 |
| 1 | AC Neutral IN | Connector_Wire:SolderWire-2.5sqmm_1x01_D2.4mm_OD3.6mm | J5 |
| 1 | ACS712xLCTR-20A | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | CY75-220UH | easyeda2kicad:IND-SMD_L7.8-W7.0-A | L2 |
| 1 | Fuse | Fuse:Fuse_1206_3216Metric | F1 |
| 1 | LED | Diode_SMD:D_0805_2012Metric | D1 |
| 1 | MB10S(46MIL) | easyeda2kicad:MBS_L4.7-W4.0-P2.50-LS7.0-BL | D4 |
| 1 | US1M | Diode_SMD:D_SMA | D3 |
| 1 | esp32-pins-header-left | Connector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_Vertical | J1 |
| 1 | esp32-pins-header-right | Connector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_Vertical | J2 |
| 1 | ~ | easyeda2kicad:SOT33-5A_L3.9-W2.6-P0.90-BP2525D | U1 |
The 23 most common of 25 parts.

netrondev/netron_esp32_lora_ac
A mains current monitor built on an ESP32 and an SX1262 radio. It measures AC current through an ACS712 hall-effect sensor and reports it over LoRaWAN as an OTAA Class A device.

netrondev/netron_esp32_lora_ac
A mains current monitor built on an ESP32 and an SX1262 radio. It measures AC current through an ACS712 hall-effect sensor and reports it over LoRaWAN as an OTAA Class A device.

hubertciebiada/open-ambient-sensor
OAS — Open Ambient Sensor: DIY multi-sensor indoor environmental monitor (CO2, PM, VOC/NOx, temperature/humidity, mmWave presence) on ESP32-C6 with ESPHome / Home Assistant integration







digislateplus/digislateplus.github.io
DigiSlate+ is based on the DigiSlate and is inspired by the DIY timecode generator from mitkunz. The aim for the DigiSlate+ is not only to be able to read and display timecode, but also to generate it itself.
It measures 31 × 39 mm and has 2 copper layers, 1.6 mm thick.
25 parts, built around the 220UF 10V 5*7, CY75-220UH, MB10S(46MIL) and US1M. 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.
From the netrondev/netron_esp32_lora_ac repository on GitHub, at the commit this page was made from: the board is hardware/desk_power_monitor_mini32_ac-2026-02-23_102841/desk_power_monitor_mini32_ac.kicad_pcb and its schematic hardware/desk_power_monitor_mini32_ac-2026-02-23_102841/desk_power_monitor_mini32_ac.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).