Skip to the content
2 layers120 × 90 mmGarage controller, the printed circuit board in 3D

A barebones board for GarageOpenerLogicerR6: an ATmega328P on a 16 MHz crystal, powered from USB-C, with connectors for everything in the garage. The chip is pinned out exactly like an Uno, so the sketch runs unchanged.

Size
120 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
68
Nets
53
Pads
198
Tracks, vias
523, 18
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Oct 2025
Updated
2 Oct 2026

Overview

Garage controller is an open-source printed circuit board by TheKeno, from the TheKeno/Garage_Opener_Logicer repository on GitHub. It is a 2-layer board of 120 × 90 mm with 68 parts on 53 nets, routed with 523 tracks and 18 vias.

It is built around the ATMEGA328P-PU, ESP8266EX and BAT85, with the SRD-05VDC-SL-C among its other parts. Its parts include 28 resistors, 12 connectors, 10 capacitors, 6 diodes and 3 transistors. It belongs with the ESP8266 and AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

hardware/garage_controller/README.md

Garage controller board (rev A)

A barebones board for Garage_Opener_Logicer_R6: an ATmega328P on a 16 MHz crystal, powered from USB-C, with connectors for everything in the garage. The chip is pinned out exactly like an Uno, so the sketch runs unchanged.

Open garage_controller.kicad_pro in KiCad 10. The schematic passes ERC with no errors or warnings. The PCB has its outline, all footprints placed and every pad on its net, and it matches the schematic exactly (DRC with schematic parity). It is not routed yet: the only DRC items left are the 141 unrouted connections.

File
garage_controller.kicad_schschematic (A3, one sheet): each block drawn with wires, net labels only between blocks
garage_controller.kicad_pcb120 × 90 mm, 2 layers, placed, unrouted
garage_controller.pdf, bom.csv, placement.pngsnapshots for reading without KiCad; re-export after edits

Connectors

ConnectorPinsNotes
J1USB-C (power only)5.1k CC pull-downs, so any USB-C charger gives 5 V; 0.75 A polyfuse
J4LCD, JST-XH 4GND, 5V, SDA, SCLstandard PCF8574 backpack order; 4.7k pull-ups on board
J5Encoder, JST-XH 5CLK, DT, SW, +, GNDKY-040 order; SW is wired to D2 with the GUI button, so the knob's push works too
J6GUI button, JST-XH 2BTN, GNDto ground, D2
J7Sonar, JST-XH 4VCC, TRIG, ECHO, GNDHC-SR04 order; series resistors for the long cable
J8Door microswitch, JST-XH 2SW, GND4.7k pull-up plus 1k/100 nF RC against noise on the long run
J9LDR, JST-XH 25V, A010k to ground on board, so more light reads higher
J10Opener, screw terminal 3NC, NO, COMrelay contacts: wire COM (pin 3) and NO (pin 2) across the opener's wall-button terminals
J11Park assist, JST-XH 55V, BUZ−, RED, GREEN, GND330 Ω on board for the LEDs; an active 5 V buzzer between 5V and BUZ−
J12ESP8266, 1×7 headerGND, 5V, TX, RX, DOOR_REQ, DOOR_STAT, CAR_STAT3.3 V signals; 5 V feeds the ESP board's own regulator
J2ISP, 2×3standard AVR ISPfor burning the bootloader
J3FTDI, 1×6GND, CTS, VCC, TX, RX, DTRVCC is not connected, so power the board from USB-C while uploading

ESP8266 link

The ESP runs at 3.3 V and the ATmega at 5 V, so every line is shifted:

  • ESP TX → ATmega RX: a BAT85 diode pulls a 10k-pulled-up line low. The idle high sits at about 3.6 V, comfortably above the ATmega's 3.0 V threshold.
  • ATmega → ESP (RX, DOOR_STAT, CAR_STAT): 2.2k/3.3k dividers bring 5 V down to 3.0 V.
  • DOOR_REQ: an NPN transistor plays the push button that R6 expects on D11 (an active-low input with the internal pull-up). The ESP drives the pin high to press it. An unplugged ESP reads as "not pressed".

Two things in esp/dooropener disagree with R6 and need fixing on the ESP side:

  • Its web page shows DOOR: OPEN when DOOR_STAT is high, but R6 drives doorStatus high when the door is closed.
  • R6's comments describe the ESP as talking over the UART (OPEN / CLOSE / STATE …). The ESP sketch in the repo only uses the three pins.

Building and flashing

  1. Fit a DIP-28 socket. The footprint is sized for one, but the socket isn't in the BOM, so order it separately. Also order JST-XH housings and crimps for the cables.
  2. Burn the bootloader once over J2. Use a USBasp, or a spare Uno running "Arduino as ISP". In the Arduino IDE, pick the Arduino Uno board and run Burn Bootloader. This also sets the fuses for the 16 MHz crystal.
  3. Upload R6 over J3 with a 5 V FTDI adapter (DTR resets the chip automatically), or keep using the ISP header with Upload Using Programmer.
  4. Unplug the ESP for any programming. It shares the UART with J3, and its DOOR_REQ transistor sits on D11, which is MOSI on the ISP header.

Routing notes

  • Net classes: a Power class (0.8 mm) covers +5V, GND, VBUS and the relay nets. Everything else is Default (0.3 mm).
  • Ground pour: a GND zone covers the whole back layer but is left unfilled. Press B once the tracks are in.
  • Short traces: keep the crystal (Y1, C6, C7) and the decoupling caps (C3, C4) short and close to U1.
  • Relay contacts: J10's contacts only switch the opener's low-voltage button line, so normal clearances are fine. Don't use it for mains.

Check before ordering

  • USB-C connector: J1 is the one SMD part. It has six large pads and is easy to solder with an iron. Swap it for Connector:USB_B with USB_B_OST_USB-B1HSxx_Horizontal if you'd rather stay fully through-hole.
  • J10 orientation: check in the 3D viewer that the wire entries face the board edge.
  • LDR resistor: R12 (10k) has to match the resistor in your current build, or the light thresholds stored in EEPROM will be off.
  • Power budget: about 0.6 A peak with the ESP, relay, LCD backlight and buzzer all on. Use a charger rated for at least 1 A.

Parts

68
QtyValueFootprintReferences
7100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2, C3, C4, C5, C8, C9, C10
51kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3, R5, R9, R11, R15
44.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7, R10, R27
4M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR8, R13, R18
3100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR14, R19, R28
310kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4, R12, R20
31N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD2, D3, D5
32.2kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR21, R23, R25
33.3kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR22, R24, R26
222pFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC6, C7
22N7000Package_TO_SOT_THT:TO-92_InlineQ1, Q2
2330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR16, R17
25.1kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2
10.75A holdFuse:Fuse_BelFuse_0ZRE0075FF_L11.5mm_W4.8mmF1
1100uF 10VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
116MHzCrystal:Crystal_HC49-4H_VerticalY1
12N3904Package_TO_SOT_THT:TO-92_InlineQ3
1ATmega328P-PUPackage_DIP:DIP-28_W7.62mm_SocketU1
1BAT85Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD6
1DOOR SWITCHConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ8
1ENCODERConnector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ5
1ESP8266Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ12
1FTDIConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ3
1GUI BUTTONConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ6
1ISPConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ2
1LCD I2CConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ4
1LDRConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ9
1OPENERTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ10
1PARK ASSISTConnector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ11
1RESETButton_Switch_THT:SW_PUSH_6mmSW1
1SONAR (HC-SR04)Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ7
1SRD-05VDC-SL-CRelay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_CK1
1USB-C 5VConnector_USB:USB_C_Receptacle_GCT_USB4125-xx-x_6P_TopMnt_HorizontalJ1
1greenLED_THT:LED_D3.0mmD1
1redLED_THT:LED_D3.0mmD4

Similar boards

  • 2 layers278 × 135 mmN3-universal, the printed circuit board in 3D

    N3-universal

    oliviera999/n3_firmwires

    firmwires des bojetw connectés n3

    179 parts
  • 2 layers111.3 × 106.4 mmSuper Sixteen v1, the printed circuit board in 3D

    Super Sixteen v1

    matthewcieplak/super-sixteen

    Code and schematics for the Super Sixteen Eurorack sequencer

    141 parts171
  • 2 layers20 × 110 mmNode main, the printed circuit board in 3D

    Node main

    attoparsec/Node

    KiCAD project and Arduino code for the Node module

    47 parts19
  • 2 layers201.3 × 152.1 mmDC DC CONVERTER, the printed circuit board in 3D

    DC DC CONVERTER

    William-Souza-Santos/ADAPTIVE_FUZZY_LOGIC_CONTROL_FOUR_SWITCH_BIDIRECTIONAL_BUCK_BOOST_DC_DC_CONVERTER

    Final Year Project by Electronic Engineering

    95 parts6
  • 4 layers100 × 54 mm32Bit shift register, the printed circuit board in 3D

    32Bit shift register

    MaltWhiskey/Mega-Cube

    16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver

    64 parts766
  • 2 layers32 × 24 mmEsp onelayer3, the printed circuit board in 3D

    Esp onelayer3

    cnlohr/colorchord

    Chromatic Sound to Light Conversion System

    36 parts712
  • 2 layers40 × 20 mmESP8266, the printed circuit board in 3D

    ESP8266

    windowsair/wireless-esp8266-dap

    CMSIS-DAP compatible wireless debugger for ESP8266/ESP32/ESP32C3/ESP32S3. Optional 40MHz SPI acceleration, etc. 适配多种ESP芯片的无线调试器

    39 parts690MIT

Questions

How big is the Garage controller PCB?

It measures 120 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Garage controller use?

68 parts, built around the ATMEGA328P-PU, ESP8266EX, BAT85 and SRD-05VDC-SL-C. 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 Garage controller KiCad files?

From the TheKeno/Garage_Opener_Logicer repository on GitHub, at the commit this page was made from: the board is hardware/garage_controller/garage_controller.kicad_pcb and its schematic hardware/garage_controller/garage_controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Garage controller design in my own project?

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