

Just a dice
Electronic dice with CH32V003 RISC-V microcontroller. Press the PCB bottom to roll - 6 LEDs display random results. USB-powered, compact 45mm design.
- Size
- 45 × 45 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 27
- Nets
- 31
- Pads
- 92
- Tracks, vias
- 155, 35
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 7 Jul 2025
- Updated
- 20 Jul 2025
Overview
Just a dice is an open-source printed circuit board by rmingon, from the rmingon/just-a-dice repository on GitHub. It is a 2-layer board of 45 × 45 mm with 27 parts on 31 nets, routed with 155 tracks and 35 vias.
It is built around the CH32V003F4P6 and AMS1117-3.3. Its parts include 8 resistors, 6 diodes, 4 capacitors, 2 ICs and 2 connectors. It belongs with the RISC-V boards of this library.
Main components
2CH32V003F4P6
TSSOP-20-175milTSSOP-20-175mil Microcontrollers (MCU/MPU/SOC) ROHSWCH (Nanjing Qinheng Microelectronics)Microcontrollers (MCU/MPU/SOC)AMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) Regulators
README
README.mdJust a Dice
An electronic dice based on the CH32V003 RISC-V microcontroller with bottom-mounted switch activation.
Overview
This project is a compact electronic dice that uses bottom-mounted switch buttons for activation. Simply press the PCB from the bottom to activate the switches and generate a random number displayed on 6 LEDs arranged in a traditional dice pattern.

Schematic and PCB Layout

Hardware Features
- Microcontroller: CH32V003F4P6 (RISC-V 32-bit)
- Display: 6 LEDs arranged in dice pattern (D1-D6)
- Input: 4 touch-sensitive pads on bottom (pad1-pad4)
- Power: Micro USB connector with onboard 3.3V regulation
- Programming: SWD interface with BOOT switch
- Dimensions: 45mm x 45mm PCB
Components
- U1: CH32V003F4P6 microcontroller
- U3: AMS1117-3.3 voltage regulator
- D1-D6: LEDs for dice display
- R5-R10: Current limiting resistors for LEDs
- J2: Micro USB connector
- J3: SWD programming header
- BOOT5: Boot mode switch
- C1-C4: Decoupling capacitors
How It Works
- Power the device via micro USB
- Press anywhere on the bottom of the PCB (touch pads)
- The microcontroller generates a random number (1-6)
- The corresponding LED pattern displays the result
Programming
The CH32V003 can be programmed via the SWD interface using the onboard programming header (J3). Hold the BOOT switch while powering on to enter programming mode.
License
This project is licensed under the CERN Open Hardware Licence Version 2 - Strongly Reciprocal (CERN-OHL-S).
Files
hardware/: KiCad PCB design filesschematic.png: Circuit schematicpcb.png: PCB layout3d_top.png: 3D render of PCB top3d_bottom.png: 3D render of PCB bottom showing touch pads
Getting Started
- Assemble the PCB with all components
- Program the CH32V003 with dice firmware
- Connect via micro USB
- Press the bottom to roll the dice!
Parts
27| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | R_Small | Resistor_SMD:R_0603_1608Metric | R2, R5, R6, R7, R8, R9, R10, R11 |
| 6 | LED | LED_SMD:LED_0603_1608Metric | D1, D2, D3, D4, D5, D6 |
| 5 | SW_Push | Button_Switch_SMD:SW_SPST_FSMSM | BOOT5, pad1, pad2, pad3, pad4 |
| 4 | C | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C4 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | CH32V003F4P6 | CH32V003F4P6:SOP65P640X121-20N | U1 |
| 1 | Conn_01x05_Pin | Connector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_Horizontal | J3 |
| 1 | USB_B_Micro | Connector_USB:USB_Micro-B_Amphenol_10118194_Horizontal | J2 |
Similar boards
- 2 layers36.1 × 21 mm

- 2 layers50.5 × 94.7 mm

SwordOfSecretsUSBProd
gili-yankovitch/SwordOfSecrets
To solve the challenge you will need to discover a series of flags, hidden inside the sword. Each one will help you unlock the next step in the challenge, to finally reveal the ultimate secret the sword holds.
16 parts47MIT - 2 layers65.4 × 133.6 mm

BSidesTLV2025GloveBadge
bsidestlv/bsidestlv-2025-badge
To solve the challenge you will need to discover a series of flags, hidden inside the badge. Each one will help you unlock the next step in the challenge, to finally reveal the ultimate secret the badge holds.
35 parts13MIT - 2 layers78 × 57 mm

- 2 layers14.7 × 30.6 mm

- 4 layers240 × 180 mm

- 2 layers17.8 × 33 mm

- 2 layers52.3 × 16.3 mm

Questions
How big is the Just a dice PCB?
It measures 45 × 45 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Just a dice use?
27 parts, built around the CH32V003F4P6 and AMS1117-3.3. 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 Just a dice KiCad files?
From the rmingon/just-a-dice repository on GitHub, at the commit this page was made from: the board is hardware/hardware.kicad_pcb and its schematic hardware/hardware.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Just a dice design in my own project?
Its repository states no licence, so its author keeps all rights: ask rmingon before reusing the design.
