Arduino Digital Dice

An easy and simple way to replace your normal board game dice.

Jun 18, 2018

13860 views

7 respects

Components and supplies

1

Arduino UNO

1

Jumper wires (generic)

1

Pushbutton switch 12mm

1

Breadboard (generic)

1

Rotary potentiometer (generic)

1

USB-A to B Cable

1

Standard LCD - 16x2 White on Blue

Project description

Code

The code

arduino

The code

arduino

Downloadable files

The schematic

The schematic

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

The push button in the parts list is what I have which is a simple single pole switch which only has an on-off contact. Even though it has 4 terminals. However the schematic shows 3 wires connected to the push button which does not correspond to the use of a single switch. Not only that the schematic also shows the push button being connected to the negative supply. In fact a close look at the connections shows two connections to the push button go to the same connection because the lower row of contacts are all connected together????? Black and Red both go to ground???

Anonymous user

2 years ago

i am trying to make the same thing you are but useing a LCD keypad shield, could you plz help me out

Anonymous user

2 years ago

how do i read the value of analog 0 and then once the button is pushed it rolls the dice and i have A0 as a input. randomSeed(analogRead(1)); pinMode(analogRead (0) INPUT); //define shock sensor as a output port val = digitalRead(Shock); //read the value of the digital interface 3 assigned to val if (val == LOW) //when the shock sensor have signal do the following {

Anonymous user

2 years ago

did you figure it out yet?

tylerpeppy

2 years ago

Let me see what I can do!

josephlintonii

5 years ago

hey for some reason when i have the Arduino running it won't stop rolling the dice. it keeps re-rolling and only shows what it rolled for a brief second. i don't know what it is. can someone help me?

ur6annn

10 months ago

hi im having the same problem.. did you maybe figure it out and found a solution to the problem?

tarbear123

7 years ago

i am trying to make the same thing you are but useing a LCD keypad shield, could you plz help me out

tarbear123

2 years ago

did you figure it out yet?

tarbear123

2 years ago

how do i read the value of analog 0 and then once the button is pushed it rolls the dice and i have A0 as a input. randomSeed(analogRead(1)); pinMode(analogRead (0) INPUT); //define shock sensor as a output port val = digitalRead(Shock); //read the value of the digital interface 3 assigned to val if (val == LOW) //when the shock sensor have signal do the following {

tylerpeppy

2 years ago

Let me see what I can do!

Anonymous user

7 years ago

The push button in the parts list is what I have which is a simple single pole switch which only has an on-off contact. Even though it has 4 terminals. However the schematic shows 3 wires connected to the push button which does not correspond to the use of a single switch. Not only that the schematic also shows the push button being connected to the negative supply. In fact a close look at the connections shows two connections to the push button go to the same connection because the lower row of contacts are all connected together????? Black and Red both go to ground???