

Door Detector PCB
Door state detector built on the Adafruit HUZZAH32, using IR reflection to sense open or closed position without contact switches. Debounces button input in firmware. Runs on rechargeable AA batteries connected directly to the microcontroller. Moving from breadboard prototype to a custom PCB for a compact 3D printed enclosure.
- Size
- 69 × 67 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 8
- Nets
- 30
- Pads
- 44
- Tracks, vias
- 53, 0
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 3 Jul 2026
- Updated
- 2 Aug 2026
Overview
Door Detector PCB is an open-source printed circuit board by BalajiSidharth5, from the BalajiSidharth5/Project_DoorDetector repository on GitHub. It is a 2-layer board of 69 × 67 mm with 8 parts on 30 nets, routed with 53 tracks and 0 vias.
Its parts include 3 resistors, 2 diodes, 1 connector and 1 switch. It belongs with the ESP32 boards of this library.
README
README.mdProject_DoorDetector
DOOR STATE DETECTOR
This project detects whether a door is open or closed using infrared reflection. It runs on two Adafruit HUZZAH32 boards.
HOW IT WORKS
One HUZZAH32 sits at the door and reads the WWZMDiB 3 wire IR sensor. The sensor reflects IR off the door surface. When the door sits in front of the sensor, IR bounces back and the output reads one state. When the door swings open, the surface moves out of range and the output flips. A trim pot on the sensor sets the trigger distance. The second HUZZAH32 acts as the receiver. It gets the door state and lights an LED to show open or closed.
HARDWARE
- 2x Adafruit HUZZAH32
- WWZMDiB 3 wire IR sensor module
- 2x tactile pushbuttons, one on each HUZZAH32
- Status LED on each HUZZAH32, shows whether that board is awake
- LED on the receiver HUZZAH32, shows door open or closed state
- 220 ohm resistors for all LEDs
- 10k ohm resistors for both tactile buttons
- Rechargeable AA battery pack, wired directly to power and ground
FIRMWARE
Button input is debounced in firmware on both boards. Both boards run deep sleep to cut power draw. Each board wakes from deep sleep when you press its tactile button. The status LED on each board turns on when that board is awake and off when it drops back into deep sleep. This keeps both boards off when user does not need it. Utilized ESPnow library to communicate data between microcontrollers.
POWER
The device runs on rechargeable AA cells instead of a lithium ion pack. Power and ground connect directly to the microcontroller with no charge circuit on board. Charging happens outside the device, in a standalone AA charger.
STATUS
Breadboard prototype complete. PCB layout in progress in KiCad, targeting a compact 3D printed enclosure.
NEXT STEPS
- Finish PCB layout in KiCad
- Design 3D printed enclosure around the board
Parts
8| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 220 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R2 |
| 2 | LED | LED_THT:LED_D5.0mm | D1, D2 |
| 1 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3 |
| 1 | Adafruit_Feather_HUZZAH32_ESP32 | Module:Adafruit_Feather | A1 |
| 1 | Conn_01x02_Pin | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J1 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1 |
Similar boards
- 2 layers20.5 × 24.8 mm

- 2 layers14.4 × 10.5 mm

OSO SWAB B1-00 Sensor Watch Accelerometer
joeycastillo/Sensor-Watch
A board replacement for the classic Casio F-91W wristwatch
8 parts2.1k - 2 layers7.9 × 39.1 mm

Brain board STM32F407 SD wing it
rusefi/rusefi
rusefi - GPL internal combustion engine control unit
8 parts1.2k - 2 layers59.9 × 25.7 mm

Buffer
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
8 parts1kGPL-3.0 - 2 layers52 × 12.6 mm

USB
shanteacontrols/OpenDeck
A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.
8 parts960Apache-2.0 - 2 layers87.5 × 48.5 mm

7 input macropad
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
8 parts915 - 2 layers36.2 × 63.1 mm

PicoMemcard pico
dangiu/PicoMemcard
Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico
8 parts694GPL-3.0 - 2 layers36 × 10 mm

PCB4-PWR BTN Rev.A
OLIMEX/DIY-LAPTOP
Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop
8 parts578Apache-2.0
Questions
How big is the Door Detector PCB PCB?
It measures 69 × 67 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Door Detector PCB use?
8 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 Door Detector PCB KiCad files?
From the BalajiSidharth5/Project_DoorDetector repository on GitHub, at the commit this page was made from: the board is Door_Detector_Reciever_PCB/Door_Detector_PCB.kicad_pcb and its schematic Door_Detector_Reciever_PCB/Door_Detector_PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Door Detector PCB design in my own project?
Its repository states no licence, so its author keeps all rights: ask BalajiSidharth5 before reusing the design.