Skip to the content
2 layers45 × 45 mmJust a dice, the printed circuit board in 3D

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

2

README

README.md

Just a Dice

An electronic dice based on the CH32V003 RISC-V microcontroller with bottom-mounted switch activation.

video

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.

PCB Top View PCB Bottom View

Schematic and PCB Layout

Schematic 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

  1. Power the device via micro USB
  2. Press anywhere on the bottom of the PCB (touch pads)
  3. The microcontroller generates a random number (1-6)
  4. 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 files
  • schematic.png: Circuit schematic
  • pcb.png: PCB layout
  • 3d_top.png: 3D render of PCB top
  • 3d_bottom.png: 3D render of PCB bottom showing touch pads

Getting Started

  1. Assemble the PCB with all components
  2. Program the CH32V003 with dice firmware
  3. Connect via micro USB
  4. Press the bottom to roll the dice!

Parts

27
QtyValueFootprintReferences
8R_SmallResistor_SMD:R_0603_1608MetricR2, R5, R6, R7, R8, R9, R10, R11
6LEDLED_SMD:LED_0603_1608MetricD1, D2, D3, D4, D5, D6
5SW_PushButton_Switch_SMD:SW_SPST_FSMSMBOOT5, pad1, pad2, pad3, pad4
4CCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1CH32V003F4P6CH32V003F4P6:SOP65P640X121-20NU1
1Conn_01x05_PinConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_HorizontalJ3
1USB_B_MicroConnector_USB:USB_Micro-B_Amphenol_10118194_HorizontalJ2

Similar boards

  • 2 layers36.1 × 21 mmLinux ch32v003, the printed circuit board in 3D

    Linux ch32v003

    tvlad1234/linux-ch32v003

    Linux on a $0.15 RISC-V microcontroller

    16 parts289MIT
  • 2 layers50.5 × 94.7 mmSwordOfSecretsUSBProd, the printed circuit board in 3D

    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 mmBSidesTLV2025GloveBadge, the printed circuit board in 3D

    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 layers14.7 × 30.6 mmNico ch32v003-v1, the printed circuit board in 3D

    Nico ch32v003-v1

    atulravi/micro-nico

    All files for the μNico Project!

    13 parts
  • 4 layers240 × 180 mmOparroy ci, the printed circuit board in 3D

    Oparroy ci

    kristofferkoch/oparroy

    WS2812 inspired versatile serial protocol and hardware

    570 partsMIT
  • 2 layers52.3 × 16.3 mmCH32V003F4P6, the printed circuit board in 3D

    CH32V003F4P6

    dwillmore/CH32V003boards

    KiCAD designs for CH32V003 boards

    15 parts8

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.