An electronic dice that includes: Coin, 4, 6, 8, 10, 12, 20, double 6
36
197
3
1471
updated January 26, 2023

Description

PDF

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 below.

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)
http://arduino.esp8266.com/stable/package_esp8266com_index.json

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)
http://wei48221.blogspot.com/2019/12/testing-out-wemos-d1-mini-with-oled.html

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:
https://www.makeuseof.com/tag/roll-style-diy-electronic-d20/

Tags



Model origin

The author marked this model as their own original creation.

License