Skip to the content
2 layers40.5 × 32.8 mmRetroPower Compact, the printed circuit board in 3D

RetroPower Compact

romquenin/RetroPower

ESP32-C3 power control module for retro consoles, integrated with Home Assistant — custom 2-layer PCB (KiCad), relay-based remote power on/off.

Size
40.5 × 32.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
16
Pads
57
Tracks, vias
452, 49
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
1 Oct 2026
Updated
5 Nov 2026

Overview

RetroPower Compact is an open-source printed circuit board by romquenin, from the romquenin/RetroPower repository on GitHub. It is a 2-layer board of 40.5 × 32.8 mm with 18 parts on 16 nets, routed with 452 tracks and 49 vias.

It is built around the AO3400A. Its parts include 6 connectors, 4 resistors, 3 diodes, 2 capacitors and 2 transistors. It belongs with the home automation and IoT boards and the ESP32 boards of this library.

Main components

1

README

hardware/compact/README.md

RetroPower - Central module, COMPACT version -- fix for 3 copper_edge_clearance errors

Dimensions: 40.45 x 32.75mm (UNCHANGED). Component layout UNCHANGED. Schematic/wiring UNCHANGED (D3 remains correct, see previous version).

WHY THIS NEW VERSION

Your last official DRC run found 3 [copper_edge_clearance] errors -- all on the Q1_GATE net (the trace connecting R1, Q1 and R3), at three different spots: (10.4, 0.2), (24.4, 0.2) and (4.8, 5.8). In all three cases, KiCad measured only 0.025mm between this trace and the board outline (Edge.Cuts), while the board's rules require 0.5mm.

WHAT THIS ACTUALLY MEANS

The "board outline" (Edge.Cuts) is the line the manufacturer's router (or laser) follows to cut your board out of the raw copper/fiberglass panel. This cut is never perfectly precise -- there's always a small mechanical tolerance. If a copper trace runs too close to this cut line (here, 25 microns -- about the width of a fine hair), there's a real risk the cutter "eats into" part of the trace, or even severs it completely, without this necessarily being visible to the naked eye. Hence the 0.5mm safety margin rule.

WHERE THIS CAME FROM

My targeted fix tool (the one I use to repair a single copper trace without touching the rest of the board) did have a safety margin near the board outline, but it was only 0.3mm -- below the 0.5mm actually required. Since the Q1_GATE net is precisely the one I had to repair several times during the D3 fix (the board is very dense in that area, squeezed between relay K1 and several other traces), it's the only one that ended up going through that tool with an insufficient margin -- which explains why it alone was affected.

Digging further (checking that the fixed trace really respects 0.5mm everywhere, not just at the 3 spots your DRC flagged), I found a second, more subtle issue in that same tool: the safety margin near the edge didn't account for a via's own size (a connection pad between the two copper layers, 0.4mm radius) -- it only protected its center, not its actual outline. A via could therefore have been allowed at a spot where its own body still ran too close to the edge. Also fixed: the margin is now computed separately for a trace (0.5mm + half the trace width) and for a via (0.5mm + its actual radius).

WHAT WAS FIXED

  1. The safety margin near the board outline, in the targeted fix tool, was changed from 0.3mm to a value that always guarantees at least 0.5mm of real copper clearance at the edge -- separately for traces and for vias (see above).
  2. The Q1_GATE net was entirely ripped up and rerouted with this corrected margin. Since the area is very congested (the direct path between Q1 and R1/R3 is blocked on both sides by the already-placed 3V3, GND and RESET_CTRL traces), it had to be routed with a finer calculation grid to find a path that respects both the 0.5mm board- edge margin AND the 0.2mm minimum trace/pad clearance -- both were possible to satisfy together, just not with the coarse calculation grid used until then.
  3. A new verification tool was built specifically for this rule (none of my previous tools checked the board outline at all -- a complete blind spot, now covered). It first reproduced EXACTLY the 3 values from your official DRC (0.025mm at the same three coordinates) before I fixed anything, to make sure it was measuring the same thing as KiCad before relying on it to validate the fix.

WHAT WAS RE-VERIFIED (the whole board, not just Q1_GATE)

  • Distance to the board outline (new rule checked): 0 violations across the whole board (0 traces, 0 vias, 0 pads closer than 0.5mm from the edge).
  • Electrical clearance (exact pad geometry, vias included): 0 violations across 558 elements.
  • Real connectivity (correct copper layer everywhere): 0 open circuits, 0 dangling ends.
  • Hole-to-hole spacing: 0 violations across 82 holes.
  • Silkscreen overlap: 0 overlaps.
  • Component body overlap: 0 real overlaps (the 7 already-known and accepted 0.25-0.30mm close calls from the start of the project remain, confirmed harmless by your own DRC across several versions).

Nothing else changed on the board: same component placement, same electrical schematic (D3 correct), same dimensions. Only the physical path of the Q1_GATE trace changed to respect the edge safety margin.

WHAT'S LEFT TO DO BEFORE ORDERING

  1. IMPORTANT: re-run KiCad's official DRC on this fixed file -- as always, that check matters most.
  2. Visually review the routing on screen, area by area (the Q1_GATE path is a bit more winding than before because of the very limited space around K1 -- that's normal and expected, it remains a continuous trace with 0 defects).
  3. Measure the ESP32 board you're actually using to confirm the "ESP32 zone" rectangle roughly matches.
  4. The buck stays external and MUST be tested unloaded before wiring it in.
  5. Check that 40.45 x 32.75mm fits the intended enclosure before ordering fabrication.
  6. Before plugging in the ESP32 for the first time: measure the voltage on the PCB's 3V3 rail with a multimeter (between a 3V3 pad and a GND pad) BEFORE inserting the ESP32 module -- you should read ~3.3V, not ~12V (verification of the D3 fix, still valid).

FILES PROVIDED

  • RetroPower_Compact.kicad_pcb: the complete, fixed PCB (open in KiCad)
  • RetroPower_Compact.kicad_pro: minimal project file
  • gerbers_RetroPower_Compact.zip: Gerbers + drill + position file
  • RetroPower_Compact_pos.csv: position/orientation of each component
  • BOM.csv: component list (unchanged from the previous version)
  • final_compact.png: visual render of the fixed routing

Board dimensions: 40.45 x 32.75 mm, no mounting holes.

Parts

18
QtyValueFootprintReferences
2100RR_0805_2012MetricR1, R2
210kR_0805_2012MetricR3, R4
21N4148WS (SOD-123)D_SOD-123D1, D2
2AO3400ASOT-23Q1, Q2
1100nFC_0805_2012MetricC2
1100uF/16V (CMS)CP_Elec_6.3x5.4C1
11N5819WS (SOD-123)D_SOD-123D3
1Buck 3V3 OUTPinHeader_1x02_P2.54mm_VerticalJ2
1ESP32 (fils volants)PinHeader_1x05_P2.54mm_VerticalJ1
1HFD2/003-M-L2-DDIP-16_W7.62mmK1
1POWER_SENSE tap console (deja 3.3V)PinHeader_1x02_P2.54mm_VerticalJ6
1Pole 2 relais (libre/reserve)PinHeader_1x03_P2.54mm_VerticalJ5
1Switch console (pole 1)PinHeader_1x03_P2.54mm_VerticalJ4
1Tap alim brute (vers buck)PinHeader_1x02_P2.54mm_VerticalJ3

More from romquenin/RetroPower

1
  • 2 layers53.3 × 32.8 mmRetroPower Integrated, the printed circuit board in 3D

    RetroPower Integrated

    romquenin/RetroPower

    ESP32-C3 power control module for retro consoles, integrated with Home Assistant — custom 2-layer PCB (KiCad), relay-based remote power on/off.

    18 parts

Similar boards

  • 4 layers149 × 95 mmMobo, the printed circuit board in 3D

    Mobo

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    399 parts3.7k
  • 4 layers40 × 23 mmPixl.js, the printed circuit board in 3D

    Pixl.js

    solosky/pixl.js

    An emulator for Amiibo!

    45 parts1.4kGPL-2.0
  • 4 layers81.2 × 96.6 mmKv4p ht PANEL, the printed circuit board in 3D

    Kv4p ht PANEL

    VanceVagell/kv4p-ht

    Open source handheld ham radio project KV4P-HT

    174 parts828GPL-3.0
  • 4 layers42 × 42 mmHuvud, the printed circuit board in 3D

    Huvud

    bondus/KlipperToolboard

    A 3D printer tool head controller board

    126 parts373GPL-3.0
  • 4 layers98 × 75 mmPiFinder4, the printed circuit board in 3D

    PiFinder4

    brickbots/PiFinder

    A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera

    157 parts257GPL-3.0
  • 2 layers240 × 240 mmKfchess, the printed circuit board in 3D

    Kfchess

    misprit7/real-time-chess

    A physical chess board without the concept of turns

    235 parts254MIT
  • 2 layers141.5 × 83 mmRolio, the printed circuit board in 3D

    Rolio

    MickiusMousius/Rolio46Keyboard

    A split wireless keyboard based on the Corne and Sofle

    110 parts236MIT

Questions

How big is the RetroPower Compact PCB?

It measures 40.5 × 32.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the RetroPower Compact use?

18 parts, built around the AO3400A. 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 RetroPower Compact KiCad files?

From the romquenin/RetroPower repository on GitHub, at the commit this page was made from: the board is hardware/compact/RetroPower_Compact.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the RetroPower Compact design in my own project?

Its repository states no licence, so its author keeps all rights: ask romquenin before reusing the design.