

NightGlow RevA PCB
A smart hallway night light with adaptive brightness, ambient-light sensing, and motion detection — documenting the hardware, firmware, and engineering story behind every decision.
- Copper layers
- 2
- Thickness
- 1.56 mm
- Parts
- 92
- Nets
- 67
- Pads
- 213
- Tracks, vias
- 248, 0
- Pours
- 35
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 18 Aug 2026
- Updated
- 20 Aug 2026
Overview
NightGlow RevA PCB is an open-source printed circuit board by PrinceOfDuloc, from the PrinceOfDuloc/NightGlow repository on GitHub. It is a 2-layer board with 92 parts on 67 nets, routed with 248 tracks and 0 vias.
It is built around the ATTINY402-SSN, LMV358 and NCL30076AAD, with the TEMD6200FX01, SL7550-3 and DF10S among its other parts. Its parts include 39 diodes, 17 capacitors, 15 resistors, 5 ICs and 2 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
9ATTINY402-SSN
SOIC-8-40℃~+105℃ 1.8V~5.5V 10bit 128Byte 20MHz 256Byte 4KB 6 8 Bit AVR Built-in FLASH SOIC-8 Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)LMV358
SOP-8-40℃~+125℃ 10pA 10pA 1MHz 2 2.5V~5.5V 20mA 20nV/√Hz@10kHz 2uV/℃ 40uA 5mV 600V/ms 65dB EMI filtering/RF suppression Rail-to-Rail Input, Rail-to-Rail Output SOP-8 Operational Amplifier ROHSTECH PUBLICOperational AmplifierNCL30076AAD
SOIC-8-40℃~+125℃ 1 2% 30V Analog、PWM Buck DC-DC External Over Voltage Protection、Over Current Protection、Over-Temperature Protection (OTP)、Short-Circuit Protection SOIC-8 LED Drivers ROHSonsemiLED DriversTEMD6200FX01
08050805 Ambient Light Sensors ROHSVishay IntertechnologyAmbient Light SensorsSL7550-3
SOT-23-40℃~+85℃@(Ta) 1 1.5uA 150mA 24V 55mV@(1mA) 5V Fixed Positive SOT-23 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSSlkorVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsDF10S
DF-S-55℃~+150℃ 1.1V@1A 1.5A 1kV 50A 5uA@1kV Single-Phase Rectifier SDIP-4 Bridge Rectifiers ROHSonsemiBridge RectifiersBAT54A
SOT-231 Pair Common Anode 200mA 2uA@25V 30V 600mA 800mV@100mA SOT-23 Schottky Diodes ROHSNexperiaSchottky DiodesES1006FL
SOD-123FL-55℃~+150℃ 1.7V@1A 1A 25A 5uA@1kV 600V Independent SOD-123FL Diodes - General Purpose ROHSYONGYUTAIDiodes - General PurposeGSFL7004
SOT-223MOSFETsSuzhou Good-Ark Elec
README
README.mdNightGlow is a smart hallway night light designed from the ground up with a focus on efficiency, reliability, and engineering transparency. Rather than treating it as a simple LED lamp, the project explores every major subsystem—from optical design and power electronics to analog sensing and firmware architecture.
The hardware combines a high-efficiency constant-current LED driver, a mmWave motion sensor, a photodiode-based ambient light measurement circuit, and a custom control board built around an AVR microcontroller. The firmware implements adaptive brightness control, configurable operating modes, automatic standby behaviour, and non-blocking task scheduling while keeping resource usage minimal.
This repository documents the complete engineering process, including design decisions, calculations, simulations, component selection, bench measurements, firmware implementation, PCB design, and validation. The report explains not only what was built, but also why each engineering decision was made and what alternatives were considered.
📖 Start here: Design Walkthrough
Whether you're interested in embedded firmware, analog circuit design, power electronics, PCB development, or simply enjoy seeing how a product is engineered from first principles, the design report is intended to provide a complete and reproducible walkthrough of the project.
Parts
92| Qty | Value | Footprint | References |
|---|---|---|---|
| 36 | LED | LED_SMD:LED_PLCC_2835 | LED1, LED2, LED10, LED11, LED12, LED13, LED14, LED15, LED16, LED17, LED18, LED19, LED20, LED21, LED22, LED23 +20 |
| 5 | 1uF | Capacitor_SMD:C_0603_1608Metric | C8, C10, C12, C14, C15 |
| 4 | ~ | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | JP1, JP2, JP3, JP4 |
| 3 | 4.7uF | Capacitor_SMD:C_0805_2012Metric | C4, C6, C17 |
| 3 | ~ | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_Horizontal | JP6, JP7, JP8 |
| 2 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C11, C16 |
| 2 | 1M | Resistor_SMD:R_0603_1608Metric | R10, R12 |
| 2 | DF10S | Diode_SMD:Diode_Bridge_OnSemi_SDIP-4L | DB1, DB2 |
| 1 | 100pF | Capacitor_SMD:C_0603_1608Metric | C9 |
| 1 | 100uF | Capacitor_SMD:CP_Elec_6.3x7.7 | C3 |
| 1 | 10R | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | 10nF | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 150k | Resistor_SMD:R_0603_1608Metric | R3 |
| 1 | 15uF | User_Global_Library:CP_Radial_D10.0mm_P5.0mm_H22.0mm_Horizontal | C1 |
| 1 | 2.7M | Resistor_SMD:R_0603_1608Metric | R14 |
| 1 | 220R | Resistor_SMD:R_0603_1608Metric | R15 |
| 1 | 220nF | Capacitor_THT:C_Rect_L13.0mm_W8.0mm_P10.00mm_FKS3_FKP3_MKS4 | C2 |
| 1 | 2k | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | 3.3k | Resistor_SMD:R_0603_1608Metric | R8 |
| 1 | 33R | Resistor_SMD:R_1206_3216Metric | R1 |
| 1 | 33pF | Capacitor_SMD:C_0603_1608Metric | C13 |
| 1 | 33uF | Capacitor_SMD:CP_Elec_5x5.4 | C7 |
| 1 | 39k | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 3R | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | 4.7M | Resistor_SMD:R_2010_5025Metric | R4 |
| 1 | 4.7mH | Inductor_SMD:L_Bourns_SRR1208_12.7x12.7mm | L1 |
| 1 | 470R | Resistor_SMD:R_1206_3216Metric | R2 |
| 1 | 47k | Resistor_SMD:R_0603_1608Metric | R11 |
| 1 | 6.8R | Resistor_SMD:R_0603_1608Metric | R7 |
| 1 | ATtiny402-SS | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U5 |
| 1 | BAT54A | Package_TO_SOT_SMD:SOT-23 | D2 |
| 1 | ES1006FL | User_Global_Library:SOD-123FL_SME | D1 |
| 1 | GMOV-EV275K7BL2 | User_Global_Library:GMOV-EV275K7BL2 | RV1 |
| 1 | GSFL7004 | User_Global_Library:SOT-223-3 | Q1 |
| 1 | Input Conn | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | LMV358 | Package_SO:SSOP-8_3.9x5.05mm_P1.27mm | U4 |
| 1 | NCL30076 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | NetTie_2 | NetTie:NetTie-2_SMD_Pad2.0mm | NT1 |
| 1 | Radar | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J2 |
| 1 | SL7550-3 | Package_TO_SOT_SMD:SOT-23 | U2 |
| 1 | TEMD6200FX01 | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | TL431DBZ | Package_TO_SOT_SMD:SOT-23 | U1 |
| 1 | ~ | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal | JP5 |
Similar boards
- 2 layers151 × 131 mm

- 6 layers92.5 × 69 mm

- 2 layers46 × 46 mm

- 2 layers

- 2 layers75.8 × 19.2 mm

3S coinCellChargeController
PocketConcepts/Pocket_PSU
A variable current & voltage PSU with 3S lipo charging, balancing, and protection circuit using PPS.
78 parts36 - 2 layers72 × 47.5 mm

PCB avr dx unbricker
k-takata/PCB_avr_dx_unbricker
UPDI High Voltage programmer for AVR Dx/Ex series
40 parts4 - 2 layers85 × 53 mm

Cccamp23 nametag
HazeCore/Nametag_Hardware
This is the hardware for out Nametag Badge for Chaos Communication Camp 2023. You can find more information about the Project at https://hazeco.re/cccamp-nametag/.
34 parts3 - 2 layers7.4 × 7.3 mm

DCC Dekoder Attiny402 1
markusgruen/DccFunctionDecoder
Open source, Arduino-based DCC function decoder
17 parts3GPL-3.0
Questions
What parts does the NightGlow RevA PCB use?
92 parts, built around the ATTINY402-SSN, LMV358, NCL30076AAD and TEMD6200FX01. 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 NightGlow RevA PCB KiCad files?
From the PrinceOfDuloc/NightGlow repository on GitHub, at the commit this page was made from: the board is PCB Design/NightGlow RevA PCB/NightGlow RevA PCB.kicad_pcb and its schematic Experiments/Other/PFC using just an inductor/PFC using just an inductor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the NightGlow RevA PCB design in my own project?
Its repository states no licence, so its author keeps all rights: ask PrinceOfDuloc before reusing the design.