Moon light
HeyPCB·moon-light·kicad/moon_light.kicad_pcb
About the Moon light PCB
Moon light is an open source RISC-V PCB design by HeyPCB, published on GitHub under the CERN-OHL-S-2.0 license. It is a 2-layer board measuring 53.9 × 62.6 mm, with 32 components from 15 distinct parts.
Its main chip is the CH32V003F4P6, from the RISC-V family. Other key parts include the XC6206P332MR-G and APDS-9306-065. By type, the board carries 14 resistors, 8 diodes, 5 capacitors, 3 ICs, 1 transistor and 1 connector.
From the project
Luna, the night-light moon: A sleepy moon that turns on at dusk and tucks itself in after you fall asleep. KiCad 10, heypcb.ai merch.
A sleepy moon that turns on at dusk and tucks itself in after you fall asleep.
Luna is a crescent-moon night light on USB-C. An APDS-9306 ambient light sensor tells a CH32V003 when the room has gone dark; eight orange LEDs along the moon's inner curve then fade up to a candle-coloured glow, and fade out again after a 15, 45 or 90 minute sleep timer. It stays off until the room sees daylight. Pat its gold cheek to switch it by hand; hang it on a nail by its keyhole.

Main components on the Moon light
Moon light bill of materials (BOM)
32 components, 15 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | XC6206P332MR-G XC6206P332MR | SOT-23-3 | U1 |
| 1 | CH32V003F4P6 | TSSOP-20_4.4x6.5mm_P0.65mm | U2 |
| 1 | APDS-9306-065 | Broadcom_DFN-6_2x2mm_P0.65mm | U3 |
| 1 | AO3400A | SOT-23 | Q1 |
| 1 | TYPE-C-31-M-12 USB-C | USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J1 |
| 8 | XL-1608UOC-06 Orange | LED_0603_1608Metric | D1, D2, D3, D4, D5, D6, D7, D8 |
| 1 | CL21A106KAYNNNE 10uF | C_0805_2012Metric | C1 |
| 2 | CL10A105KB8NNNC 1uF | C_0603_1608Metric | C2, C3 |
| 1 | CC0603KRX7R9BB104 100nF | C_0603_1608Metric | C4 |
| 1 | CL05A105KA5NQNC 1uF | C_0402_1005Metric | C5 |
| 2 | 0402WGF5101TCE 5.1k | R_0402_1005Metric | R1, R2 |
| 2 | 0402WGF1002TCE 10k | R_0402_1005Metric | R3, R4 |
| 1 | 0603WAF1001T5E 1k | R_0603_1608Metric | R5 |
| 1 | 0603WAF1003T5E 100k | R_0603_1608Metric | R6 |
| 8 | 0603WAF2200T5E 220 | R_0603_1608Metric | R7, R8, R9, R10, R11, R12, R13, R14 |
Moon light design files
The KiCad project lives in the HeyPCB/moon-light repository on GitHub; these links point at the commit this page was built from.
Moon light: common questions
What microcontroller does the Moon light use?
The Moon light is built around the CH32V003F4P6, from the RISC-V family.
How big is the Moon light PCB?
The Moon light measures 53.9 × 62.6 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Moon light?
32 components, from 15 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 Moon light design files?
From the HeyPCB/moon-light 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 Moon light design in my own project?
Yes, under the terms of its CERN-OHL-S-2.0 license, which HeyPCB chose for the repository.
Can I test firmware for the Moon light without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug RISC-V firmware against it before you order a PCB.
Similar boards
RISC-V
Audio
byrantech
27.8 × 22.3 mm38 parts2LMIT4.3kRISC-V
Keybit
notaroomba
19.1 × 19.1 mm19 parts2LNo license438RISC-V
Workbench-1 Controller
Quchaosheng
160 × 130 mm106 parts8LApache-2.0212RISC-V
Froggyswadge
cnlohr
81.5 × 72.2 mm92 parts2LMIT105RISC-V
Keytartouch
cnlohr
152.5 × 117.5 mm69 parts2LMIT105RISC-V
Ch32v003f4u6 with wsled
cnlohr
40.6 × 44.5 mm26 parts2LMIT105