December 29, 2025
Description
This is a automated dice rolling machine, it rolls three dice in a tube and reads the result with OpenCV, Python on a Raspberry Pi 5. Equipment used:
Raspberry Pi 5
Pi Camera 2
DRV8825 stepper driver
NEMA17 12v/0.22NM steppermotor
50mm clear circular acrylic glass window
Screws, M4 and M3 of various lengths.
Wires for connecting electronics
Software is programmed in OpenCV, Python. System works by using blob-detection to find dots, and grouping the dots to dice with dbscan. Three dice are used, but with a bigger tube more can be measured at the same time.
License:
Creative Commons — Public Domain