Electronic Die

This is an electronic die that has built in several dice you can use to play table top games.
It includes a coin and die with 4, 6, 8, 10, 12, and 20 sides and able a double 6 sided.
It was designed to be used with the parts included in the Alien 3D UFO box shipped in May.
If you didn’t get the box you will need:

1 – D1 Mini (esp8266) (could work with other arduino’s but the pin out will be different and my case may not fit)
1 – 0.96″ I2C IIC SPI Serial 128X64 OLED
2 – Push buttons (mine have led’s but that is optional)
2 – 10k resistors to use with the led’s
Wires to connect everything.

Wire up everything according to the circuit diagram provided.

Then we will flash the code to the chip.
You will need to add the d1 mini (esp8266) and LCD (SSD1306) to your Arduino IDE if you haven’t already to be able to use the code.

Go to File > Preferences and copy paste this URL into the additional board manager URL
(click the button at the end to be able to add multiple)

With this the software will know where to download the needed files.
Next we go to Tool > Manage Libraries
You will search for and install Adafruit SSD1306 and Adafruit GFX Library
You can follow this link for a more detailed explanation how to install them if needed
(or if you are having issues with the i2c address later on)

After those are loaded make sure to select the proper board
NodeMCU 1.0 (ESP-12E Module)

The make sure to open the Dice.ino and flash to your microcontroller.

To assemble the project place the bottom of the lcd into the bottom slot on the front piece and it should pop into place with little resistance (the screens are fragile do not put excessive force or they will crack [i broke 2])

The 8266 Should fit on the bottom of the 2 cases with the usb port towards the back allowing it to be plugged in.

This project was inspired from:


Follow me on Social Media:

Support me on Patreon:

Become a Patron!

Or if you would like to donate via Paypal:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: