Skip to the content
2 layers69 × 67 mmDoor Detector PCB, the printed circuit board in 3D

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.md

Project_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
QtyValueFootprintReferences
2220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2
2LEDLED_THT:LED_D5.0mmD1, D2
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3
1Adafruit_Feather_HUZZAH32_ESP32Module:Adafruit_FeatherA1
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    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 mmUSB, the printed circuit board in 3D

    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 mm7 input macropad, the printed circuit board in 3D

    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 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    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.