LED Random Number Generator

by SW9761 in Circuits > Arduino

2624 Views, 3 Favorites, 0 Comments

LED Random Number Generator

IMG_4189.png

This is a very simple Arduino project. The product uses LEDs to represent random numbers. When you press (and hold) the button, the LEDs will go back and forth, then, it will let a random set of LEDs to shine to represent the number. This is an Arduino starter project for beginners to play with. The program may be a bit difficult to change, but you can modify the circuit.

Supplies

1 Arduino Board

1 Breadboard

10 221 Ohm Resistors

1 1k Ohm Resistors

1 Button

10 LEDS (You can choose the colors)

1 piece of card board (As big as your breadboard)

16 wires

1 piece of paper

Getting the Materials

1 Arduino Board

1 Breadboard

10 221 Ohm Resistors

1 1k Ohm Resistors

1 Button

10 LEDS (You can choose the colors)

1 piece of card board (As big as your breadboard)

16 wires

1 piece of paper

Circuit

Arduino Circuit board.jpg

Place the wires and the button the same as the picture above, the picture came from: https://www.instructables.com/id/Arduino-LED-Dice...

Codes

Paste the code from here and upload it onto your Arduino board. https://create.arduino.cc/editor/simon9761/e8347b9...

Decoration (Completely Optional)

If we directly present the LED show without cover, the light will be too bright and the wiring in the back would look really ugly; therefore, I had decided to place a blank piece of cardboard on it to conceal the wires. You can write basically what ever you want and decorate the new piece of cardboard. The lights, however, would not be covered by the cardboard, so I would recommend covering the LEDs with a piece of paper. The paper blocks the amount of light a little and protects your eye. Also, I would suggest measuring the gap between each LED and labelling each of them clearly like on the picture above. This way, you can know what number is it faster.

Final Product

Arduino 報告2020/04/15

Your are done

This project is based on https://www.instructables.com/id/Arduino-LED-Dice-Lights-2/