Night light-PCB-prototype
oyeniyihakeem08-blip·Night-light-PCB-prototype
About the Night light-PCB-prototype
Night light-PCB-prototype is an open source STM32 PCB design by oyeniyihakeem08-blip, published on GitHub. It is a 4-layer board measuring 242.1 × 170 mm, with 147 components from 71 distinct parts.
Its main chip is the STM32G031K8T6TR, from the STM32 family. Other key parts include the NRF24L01P-R, TLV3012AIDBVTG4, BISS0001, BQ24074RGT and ATTINY1616-S. By type, the board carries 52 resistors, 46 capacitors, 18 ICs, 6 LEDs, 6 inductors and 4 transistors.
It belongs with the power & battery designs in this gallery.
From the project
A smart, motion-sensing LED night light that runs straight from the mains, keeps working through power cuts on its own battery, and is controlled by a paired wireless remote.
A smart, motion-sensing LED night light that runs straight from the mains, keeps working through power cuts on its own battery, and is controlled by a paired wireless remote.
I designed and built both custom PCBs end to end: schematic, PCB layout, power design, component selection and firmware for both the light and the remote.
- Mains to light, all on one board: 100 to 240 VAC input, isolated 5 V conversion, battery charging, 3.3 V logic, RF, sensing and a six-LED lighting array. - Seamless battery backup: an 18650 Li-ion cell takes over automatically during a power outage, designed for…
Main components on the Night light-PCB-prototype
Night light-PCB-prototype bill of materials (BOM)
147 components, 71 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 2 | NRF24L01P-R | QFN50P400X400X95-21N-D | IC1, IC5 |
| 1 | TLV3012AIDBVTG4 | SOT95P280X145-6N | IC2 |
| 1 | BISS0001 | SOIC127P600X160-16N | IC3 |
| 1 | STM32G031K8T6TR | QFP80P900X900X160-32N | IC4 |
| 1 | BQ24074RGT | VQFN-16-1EP_3x3mm_P0.5mm_EP1.6x1.6mm | U1 |
| 1 | ATTINY1616-S ATtiny1616-S | SOIC-20W_7.5x12.8mm_P1.27mm | U2 |
| 9 | mouse bite | mouse-bite-2mm-4mm | U3, U5, U7, U8, U9, U10, U11, U12 +1 |
| 1 | TLV75533PDBV | SOT-23-5 | U4 |
| 1 | PIS-209S | PIS209S | U6 |
| 2 | AO3407A | SOT95P280X125-3N | Q1, Q3 |
| 2 | AO3400A | SOT-23 | Q2, Q4 |
| 2 | X322516MOB4SI crystal | X322516MOB4SI | Y1, Y2 |
| 1 | C160262 Battery | JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical | J1 |
| 2 | CONN_01X01_PIN Conn_01x01_Pin | TestPoint_Keystone_5010-5014_Multipurpose | J4, J5 |
| 1 | BC2AAAPC Battery | BatteryHolder_Keystone_2468_2xAAA | BT1 |
| 1 | SF-3812TL100T-2 JFC2410-1100TS | FUSC10131X330N | F1 |
| 1 | UU9.8-10MH | UU9810MH | FL2 |
| 1 | HLK-5M05 | Converter_ACDC_Hi-Link_HLK-5Mxx | PS1 |
| 1 | C2839517 Varistor | RV_Disc_D12mm_W4.5mm_P7.5mm | RV1 |
| 3 | 1301.9314.24 | 1301931424 | S1, S2, S3 |
Show 51 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | PVG3A103C01R00 | PVG3A103C01R00 | VR1 |
| 6 | SPMWH1228MD5WATUVK | SPMWH1228MD5WATUVK | LED1, LED2, LED3, LED4, LED5, LED6 |
| 1 | LED | LED_0402_1005Metric | D1 |
| 2 | 8.2NH 8.2nH | L_0402_1005Metric | L4, L7 |
| 2 | 3.9NH 3.9nH | L_0402_1005Metric | L5, L9 |
| 2 | 2.7NH 2.7nH | L_0402_1005Metric | L6, L8 |
| 1 | 1UF 1uf | C_0402_1005Metric | C1 |
| 1 | 1NF 1nf | C_0805_2012Metric | C2 |
| 2 | 100NF 100nf | C_0805_2012Metric | C3, C6 |
| 1 | 0.1 | C_Rect_L13.0mm_W8.0mm_P10.00mm_FKS3_FKP3_MKS4 | C4 |
| 4 | 4.7UF 4.7uf | C_0805_2012Metric | C5, C8, C9, C11 |
| 1 | 0.1UF 0.1uf | C_0805_2012Metric | C7 |
| 1 | 220UF 220uf | C_Elec_6.3x7.7 | C10 |
| 1 | 1UF 1uf | C_0805_2012Metric | C12 |
| 1 | 10UF 10uf | C_0805_2012Metric | C14 |
| 2 | 33NF 33nf | C_0402_1005Metric | C16, C47 |
| 1 | 10UF 10uf | C_1210_3225Metric | C19 |
| 4 | 47UF 47uf | C_1210_3225Metric | C21, C26, C35, C41 |
| 1 | 510PF 510pf | C_0402_1005Metric | C22 |
| 4 | 22PF 22pf | C_0402_1005Metric | C23, C25, C48, C49 |
| 2 | 1NF 1nf | C_0402_1005Metric | C28, C50 |
| 3 | 56NF 56nf | C_0402_1005Metric | C30, C38, C46 |
| 2 | 10NF 10nf | C_0402_1005Metric | C31, C51 |
| 3 | 470PF 470pf | C_0402_1005Metric | C34, C44, C45 |
| 2 | 100NF 100nf | C_0402_1005Metric | C36, C53 |
| 1 | 103PF 103pf | C_0402_1005Metric | C37 |
| 2 | 1.5PF 1.5pf | C_0402_1005Metric | C39, C55 |
| 2 | 4.7PF 4.7pf | C_0402_1005Metric | C40, C54 |
| 2 | 1PF 1pf | C_0402_1005Metric | C42, C56 |
| 2 | 2.2NF 2.2nf | C_0402_1005Metric | C43, C52 |
| 1 | 2.7K | R_0402_1005Metric | R1 |
| 14 | 10K 10k | R_0402_1005Metric | R2, R5, R8, R9, R11, R16, R17, R18 +6 |
| 1 | 1.8K | R_0402_1005Metric | R3 |
| 1 | NTC | R_0402_1005Metric | R4 |
| 2 | 22K 22k | R_0402_1005Metric | R6, R21 |
| 1 | 4K7 4k7 | R_0402_1005Metric | R7 |
| 3 | 100K 100k | R_0402_1005Metric | R10, R13, R29 |
| 1 | 174K 174k | R_0402_1005Metric | R12 |
| 5 | 1M | R_0402_1005Metric | R14, R26, R32, R33, R47 |
| 2 | 100R 100r | R_0402_1005Metric | R15, R38 |
| 1 | 120K 120k | R_0402_1005Metric | R19 |
| 1 | C125627 R_Photo | R_LDR_5.0x4.1mm_P3mm_Vertical | R20 |
| 5 | 18K 18k | R_0402_1005Metric | R23, R24, R25, R28, R30 |
| 2 | 6.2K 6.2k | R_0402_1005Metric | R27, R35 |
| 1 | 2.2M | R_0402_1005Metric | R31 |
| 1 | 3.3M | R_0402_1005Metric | R34 |
| 1 | 180K | R_0402_1005Metric | R36 |
| 1 | 4.7M | R_0402_1005Metric | R37 |
| 1 | 470K 470k | R_0402_1005Metric | R39 |
| 6 | 33R | R_0805_2012Metric | R41, R42, R43, R44, R45, R46 |
| 1 | 330R 330r | R_0402_1005Metric | R52 |
Night light-PCB-prototype design files
The KiCad project lives in the oyeniyihakeem08-blip/Night-light-PCB-prototype repository on GitHub; these links point at the commit this page was built from.
Night light-PCB-prototype: common questions
What microcontroller does the Night light-PCB-prototype use?
The Night light-PCB-prototype is built around the STM32G031K8T6TR, from the STM32 family.
How big is the Night light-PCB-prototype?
The Night light-PCB-prototype measures 242.1 × 170 mm, has 4 copper layers and is 1.6062 mm thick.
How many components are on the Night light-PCB-prototype?
147 components, from 71 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Night light-PCB-prototype design files?
From the oyeniyihakeem08-blip/Night-light-PCB-prototype repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Night light-PCB-prototype design in my own project?
The repository has no license, so all rights stay with oyeniyihakeem08-blip. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the Night light-PCB-prototype without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.
Similar boards
STM32
LumenPnP Motherboard
opulo-inc
149 × 95 mm296 parts4LCC-BY-SA-4.03.7kSTM32
Type g
google
169 × 30 mm24 parts2LApache-2.02.9kSTM32
Base
google
52.3 × 52.3 mm36 parts2LApache-2.02.9kSTM32
Main panel
google
234 × 84 mm26 parts4LApache-2.02.9kSTM32
Type a
google
150 × 30 mm14 parts2LApache-2.02.9kSTM32
Type c
google
188 × 30 mm17 parts2LApache-2.02.9k