Skip to the content
2 layers47 × 29 mmMotion nightlight, the printed circuit board in 3D

Motion-activated nightlight built into a Nest Protect housing. ESP32 firmware, custom PCB, 3D printed enclosure and diffuser.

Size
47 × 29 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
25
Pads
94
Tracks, vias
142, 7
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
10 Sep 2025
Updated
3 Oct 2026

Overview

Motion nightlight is an open-source printed circuit board by longrackslabs, from the longrackslabs/kicad-projects repository on GitHub. It is a 2-layer board of 47 × 29 mm with 24 parts on 25 nets, routed with 142 tracks and 7 vias.

It is built around the 74HC08D, 74HC14 and MMBT3904. Its parts include 6 resistors, 3 capacitors, 3 diodes, 3 switches and 2 ICs.

Main components

3

README

projects/motion-nightlight/README.md

Motion Nightlight

Motion-activated nightlight built into a Nest Protect housing. ESP32 firmware, custom PCB, 3D printed enclosure and diffuser.

Related files

WhatWhere
Design artifacts (DIYLC, FreeCAD, STLs, docs)Dropbox/Projects/Nest DIY Nightlight/
Firmware~/src/platformio-projects/nest_night_light

TODO

PCB Changes

  • Remote LDR — 2-pin JST header instead of THT so it can be positioned anywhere
  • Right-angle JST on J1 and LED1
  • Populate all MPNs in KiCad — needed for AI design review to catch pinout issues
  • Fix C3 symbol — non-polarized ceramic
  • Fix U2 lib_id — 74HC08 not 74LS08
  • Add 47-100Ω resistor between U1 pin 10 and D1 anode
  • Add Rev B silkscreen marking
  • Fix RV1/RV2 3D model absolute paths

Power

  • Build single supply pigtail — splits one 5V to both V_LED+ and V_CONTROL on J1

Enclosure

  • Custom enclosure in FreeCAD — proper LED and LDR positioning
  • Custom diffuser — Nest lens doesn't align with custom LED positions
  • Access holes for RV1/RV2 trim pot adjustment

Assembly

  • First hot air reflow attempt with SAG-55 and Chipquik paste
  • Build second board using incremental gate plan

Stretch

  • Replace discrete logic with ATtiny for more flexibility
  • PWM dimming on Q2
  • Battery level indicator

Parts

24
QtyValueFootprintReferences
2100KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R4
2104Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2
110KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
110ufCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3
11KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
11MResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
11N4148Diode_SMD:D_SOD-123D1
12.2KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6
174HC08Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU2
174HC14Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU1
1DARK TRIMPotentiometer_SMD:Potentiometer_Bourns_TC33X_VerticalRV1
1J_PWR3Connector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ1
1LAMP TESTButton_Switch_THT:SW_PUSH_6mm_H5mmSW1
1LEDLED_SMD:LED_0805_2012MetricD2
1LEDConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalLED1
1LED ONPackage_TO_SOT_SMD:SOT-23Q2
1MMBT3904Package_TO_SOT_SMD:SOT-23Q1
1MODEButton_Switch_SMD:SW_SPDT_PCM12SW3
1MOTION TRIMPotentiometer_SMD:Potentiometer_Bourns_TC33X_VerticalRV2
1PIRConnector:FanPinHeader_1x03_P2.54mm_VerticalPIR1
1R_PhotoResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalLDR1
1SENSORButton_Switch_SMD:SW_SPDT_PCM12SW2

More from longrackslabs/kicad-projects

2
  • 2 layers43.5 × 43 mmLed controller esp32, the printed circuit board in 3D

    Led controller esp32

    longrackslabs/kicad-projects

    Motion-activated nightlight built into a Nest Protect housing. ESP32 firmware, custom PCB, 3D printed enclosure and diffuser.

    9 parts
  • 2 layers27.8 × 11.8 mmMotionhold AM312, the printed circuit board in 3D

    Motionhold AM312

    longrackslabs/kicad-projects

    Motion-activated nightlight built into a Nest Protect housing. ESP32 firmware, custom PCB, 3D printed enclosure and diffuser.

    7 parts

Similar boards

  • 4 layers220 × 170 mmArpeggiator, the printed circuit board in 3D

    Arpeggiator

    EwoudVV/arpeggiator

    12-note analog arpeggiator with a 1/2/3 octave range, custom pcb and printed case

    360 parts3
  • 4 layers69 × 74 mmShield, the printed circuit board in 3D

    Shield

    imihajlow/ethernet-to-spi

    An Ethernet to SPI converter using 7400-series ICs

    60 parts69
  • 2 layers152.9 × 74.9 mmClock, the printed circuit board in 3D

    Clock

    erikvanzijst/clock

    24H digital quartz clock from scratch

    82 parts21
  • 4 layers158.8 × 104.1 mm8-Bit CPU, the printed circuit board in 3D

    8-Bit CPU

    frenchie/8-Bit-Computer

    An 8-Bit Computer

    323 parts20
  • 2 layers100 × 120 mmDcc station, the printed circuit board in 3D

    Dcc station

    cc90202/DCC-esp32

    DCC command station for ESP32-C6 — NMRA-compliant model railroad controller in Rust

    82 parts12
  • 6 layers210 × 119 mmClaculator Keypad, the printed circuit board in 3D

    Claculator Keypad

    Robert-Mones/Claculator

    A reverse Polish notation calculator with added features such as comparisons, branching, and custom recursive operators taken from the Clac project from the 15-122 course at Carnegie Mellon University.

    202 parts5
  • 4 layers271.8 × 147.3 mmSF68, the printed circuit board in 3D

    SF68

    scefrom/SF68

    A board featuring the Motorola 68000

    130 parts2

Questions

How big is the Motion nightlight PCB?

It measures 47 × 29 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Motion nightlight use?

24 parts, built around the 74HC08D, 74HC14 and MMBT3904. 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 Motion nightlight KiCad files?

From the longrackslabs/kicad-projects repository on GitHub, at the commit this page was made from: the board is projects/motion-nightlight/motion-nightlight.kicad_pcb and its schematic projects/led-controller-esp32/led-controller-esp32.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Motion nightlight design in my own project?

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