Electronic dice soldering kit: shake it, and it spins with sound and lands on a random number.
- CH32V003J4M6 RISC-V microcontroller, 7 LEDs, shock sensor, speaker
- One CR2032 coin cell, ~6 µA in standby
- Through-hole parts only, except the SOP-8 microcontroller
Български: README_BG.md
- Hardware is released under CERN Open Hardware Licence Version 2 - Strongly Reciprocal https://spdx.org/licenses/CERN-OHL-S-2.0.html
- Software is released under MIT Licensee
- Documentation is released under CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0/
| Folder | Content |
|---|---|
| DOCUMENTS | Soldering guide and 2-page quick guide in English and Bulgarian (PDF, and ODT to edit) |
| HARDWARE/SLD-KIT-DICE_Rev_A | KiCad project, schematic (PDF), BOM, Gerber files, 3D models |
| SOFTWARE/SLD-KIT-DICE_FW | Firmware source (ch32fun + PlatformIO) |
| SOFTWARE/SLD-KIT-DICE_FW/firmware | Ready-to-flash images |
Connect a WCH-LinkE to the PGM/DBG header: pin 1 = SWIO, pin 2 = GND. The header has no VCC, so the battery must be in. The chip accepts the programmer only in the first 3 s after the battery is put in: start the command, then put the battery in.
cd SOFTWARE/SLD-KIT-DICE_FW
until minichlink -w firmware/dice.bin 0x08000000 -b; do sleep 0.2; doneWith PlatformIO (builds and flashes):
cd SOFTWARE/SLD-KIT-DICE_FW
until pio run -t upload; do sleep 0.2; doneHow the firmware works, how to build it and how to debug it: SOFTWARE/SLD-KIT-DICE_FW/README.md.


