

Garage controller
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
4ATMEGA328P-PU
DIP-28-300mil-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH DIP-28-300mil Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)ESP8266EX
QFN-32-EP(5x5)-40℃~+125℃ -91dBm 120mA 2.4GHz 2.4GHz~2.4835GHz 2.5V~3.6V 21.5dBm 50mA 72.2Mbps SPI、UART、I2C、I2S WiFi transceiver QFN-32-EP(5x5) RF Transceiver ICs ROHSEspressif SystemsRF Transceiver ICsBAT85
DO-341 Independent 200mA 2uA@25V 30V 5A 800mV@100mA DO-34 Schottky Diodes ROHSNexperiaSchottky DiodesSRD-05VDC-SL-C
插件,19.2x15.6mm100mΩ 10ms 10ms 15A 250V@AC 360mW 5 5V 70Ω Non-Polarized - Single Coil One set changeover: 1C (SPDT - changeover) 插件,19.2x15.6mm Power Relays ROHS松乐Power Relays
README
hardware/garage_controller/README.mdGarage 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_sch | schematic (A3, one sheet): each block drawn with wires, net labels only between blocks |
garage_controller.kicad_pcb | 120 × 90 mm, 2 layers, placed, unrouted |
garage_controller.pdf, bom.csv, placement.png | snapshots for reading without KiCad; re-export after edits |
Connectors
| Connector | Pins | Notes | |
|---|---|---|---|
| J1 | USB-C (power only) | 5.1k CC pull-downs, so any USB-C charger gives 5 V; 0.75 A polyfuse | |
| J4 | LCD, JST-XH 4 | GND, 5V, SDA, SCL | standard PCF8574 backpack order; 4.7k pull-ups on board |
| J5 | Encoder, JST-XH 5 | CLK, DT, SW, +, GND | KY-040 order; SW is wired to D2 with the GUI button, so the knob's push works too |
| J6 | GUI button, JST-XH 2 | BTN, GND | to ground, D2 |
| J7 | Sonar, JST-XH 4 | VCC, TRIG, ECHO, GND | HC-SR04 order; series resistors for the long cable |
| J8 | Door microswitch, JST-XH 2 | SW, GND | 4.7k pull-up plus 1k/100 nF RC against noise on the long run |
| J9 | LDR, JST-XH 2 | 5V, A0 | 10k to ground on board, so more light reads higher |
| J10 | Opener, screw terminal 3 | NC, NO, COM | relay contacts: wire COM (pin 3) and NO (pin 2) across the opener's wall-button terminals |
| J11 | Park assist, JST-XH 5 | 5V, BUZ−, RED, GREEN, GND | 330 Ω on board for the LEDs; an active 5 V buzzer between 5V and BUZ− |
| J12 | ESP8266, 1×7 header | GND, 5V, TX, RX, DOOR_REQ, DOOR_STAT, CAR_STAT | 3.3 V signals; 5 V feeds the ESP board's own regulator |
| J2 | ISP, 2×3 | standard AVR ISP | for burning the bootloader |
| J3 | FTDI, 1×6 | GND, CTS, VCC, TX, RX, DTR | VCC 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: OPENwhen DOOR_STAT is high, but R6 drivesdoorStatushigh 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
- 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.
- 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.
- 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.
- 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
Bonce 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_BwithUSB_B_OST_USB-B1HSxx_Horizontalif 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C2, C3, C4, C5, C8, C9, C10 |
| 5 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3, R5, R9, R11, R15 |
| 4 | 4.7k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R6, R7, R10, R27 |
| 4 | M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 3 | 100 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R8, R13, R18 |
| 3 | 100k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R14, R19, R28 |
| 3 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R4, R12, R20 |
| 3 | 1N4148 | Diode_THT:D_DO-35_SOD27_P7.62mm_Horizontal | D2, D3, D5 |
| 3 | 2.2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R21, R23, R25 |
| 3 | 3.3k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R22, R24, R26 |
| 2 | 22pF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C6, C7 |
| 2 | 2N7000 | Package_TO_SOT_THT:TO-92_Inline | Q1, Q2 |
| 2 | 330 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R16, R17 |
| 2 | 5.1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2 |
| 1 | 0.75A hold | Fuse:Fuse_BelFuse_0ZRE0075FF_L11.5mm_W4.8mm | F1 |
| 1 | 100uF 10V | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C1 |
| 1 | 16MHz | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | 2N3904 | Package_TO_SOT_THT:TO-92_Inline | Q3 |
| 1 | ATmega328P-PU | Package_DIP:DIP-28_W7.62mm_Socket | U1 |
| 1 | BAT85 | Diode_THT:D_DO-35_SOD27_P7.62mm_Horizontal | D6 |
| 1 | DOOR SWITCH | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J8 |
| 1 | ENCODER | Connector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_Vertical | J5 |
| 1 | ESP8266 | Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical | J12 |
| 1 | FTDI | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J3 |
| 1 | GUI BUTTON | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J6 |
| 1 | ISP | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J2 |
| 1 | LCD I2C | Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical | J4 |
| 1 | LDR | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J9 |
| 1 | OPENER | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_Horizontal | J10 |
| 1 | PARK ASSIST | Connector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_Vertical | J11 |
| 1 | RESET | Button_Switch_THT:SW_PUSH_6mm | SW1 |
| 1 | SONAR (HC-SR04) | Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical | J7 |
| 1 | SRD-05VDC-SL-C | Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C | K1 |
| 1 | USB-C 5V | Connector_USB:USB_C_Receptacle_GCT_USB4125-xx-x_6P_TopMnt_Horizontal | J1 |
| 1 | green | LED_THT:LED_D3.0mm | D1 |
| 1 | red | LED_THT:LED_D3.0mm | D4 |
Similar boards
- 2 layers278 × 135 mm

- 2 layers111.3 × 106.4 mm

Super Sixteen v1
matthewcieplak/super-sixteen
Code and schematics for the Super Sixteen Eurorack sequencer
141 parts171 - 2 layers20 × 110 mm

- 2 layers201.3 × 152.1 mm

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 - 2 layers59.3 × 76.5 mm

- 4 layers100 × 54 mm

32Bit shift register
MaltWhiskey/Mega-Cube
16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver
64 parts766 - 2 layers32 × 24 mm

- 2 layers40 × 20 mm

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.