digital dice banner

digital dice

1 devlog
1h 48m

ESP32 Touchless Digital Dice

A touchless digital dice built using ESP32, an ultrasonic sensor, and 5 LEDs. Roll the dice by simply placing your hand near the sensor—no buttons needed.

When an object is detected within 7 cm, the ESP32 trigger…

ESP32 Touchless Digital Dice

A touchless digital dice built using ESP32, an ultrasonic sensor, and 5 LEDs. Roll the dice by simply placing your hand near the sensor—no buttons needed.

When an object is detected within 7 cm, the ESP32 triggers a rolling animation using random LED flickering, then generates a number from 1 to 6. The result is

This project uses AI

I used ChatGPT for guidance, debugging, and improving code structure. Around 56% of the code was written by me, including the core logic for the ultrasonic trigger, LED control, and dice behavior. AI helped with refining certain parts like optimization, animation ideas, and documentation. All final implementation, testing, and integration were done by me

Demo Repository

Loading README...

mayankbiswasgame

Shipped this project!

Hours: 1.8
Cookies: 🍪 6
Multiplier: 3.21 cookies/hr

I built a Digital Dice using ESP32 that simulates a real dice using LEDs and an ultrasonic sensor. The hardest part was generating reliable random outputs and synchronizing the sensor input with LED patterns, but I figured it out by refining the logic and testing different timing and conditions in the code. I’m really happy with how responsive and interactive the final project feels :)

mayankbiswasgame

I created a touchless digital dice which is put together with ESP32, an ultrasonic sensor, and 5 LEDs. I had the sensor which I used to detect hand distance and get the dice to roll when a hand comes in close range. Also I programmed in LED patterns which represent numbers 1 to 5 and included a special blink for 6. Also I did a random LED flicker for a realistic rolling animation which I designed and added. I played around with the distance settings to make the trigger stable and to also avoid multiple triggers. Also I went back and forth with the code and hardware connections to get everything to run smoothly.

0