Random Number Generator With LCD

by anitalilee in Circuits > Arduino

1003 Views, 0 Favorites, 0 Comments

Random Number Generator With LCD

173650481_1188089574994640_5028579910104410247_n (1).jpg
arduino

This device can generate numbers from 1 to 6 randomly. It was built base on SW9761's project, original website: https://www.instructables.com/LED-Random-Number-Ge...

Improvements I made:

I added a LCD board to tell the user what to do. When the device is turned on, it will show "RAND# GENERATOR" at first and then tell the user to "PRESS THE BOTTON."

Supplies

Tools

  1. utility knife
  2. cutting mat
  3. ruler

Materials

  1. fome board
  2. tape
  3. Arduino Leonardo
  4. breadboard
  5. wires
  6. LCD board
  7. button
  8. LEDs*6

Measurements and Cutting

174848068_2013188902167397_3394400421920402264_n.jpg

cut out the five pieces of fome board that will be used to construct the package of the Arduino.

All the measurements and details are shown in the picture.

*tools needed: utility knife and the cutting mat

Assembly

175044314_2525653221075280_2757309161671772452_n.jpg
  1. first stick board 2 over board 1, constructing a box without cover
  2. build the cover, board 3 on the box you just made

Coding and Wiring

173939272_789607578353240_7448555192618329723_n.jpg
173488779_1966391156847518_6528987768201760097_n.jpg
螢幕快照 2021-04-18 下午11.44.43.png
螢幕快照 2021-04-18 下午11.45.01.png
螢幕快照 2021-04-18 下午11.45.33.png
  1. download Arduino
  2. download the code and paste it on your Arduino
  3. start wiring! (connect all the wires, LEDs, button, and the LCD board on the right place as the picture shown.)
  4. connect the Arduino board to your computer using the USB cable.
  5. select "Arduino Leonardo" for your evaluation board (tools > evaluation board > Arduino Leonardo)
  6. select the right serial port (choose the one that has Arduino Leonardo with brackets at the back)
  7. upload the codes
  8. check if it is working the way you expect

codes

https://create.arduino.cc/editor/anitalilee/59aa2b...

Constructing

174524511_495662801873818_8432806432460768768_n.jpg
175064186_836961910502379_599340241389754225_n.jpg
173325109_2947591218699443_1063848971478758848_n.jpg

  1. put the LCD board and the button on their place.
  2. cover the Arduino board using the box you just made (the size should be just right and not falling down without gluing them together.)

Finished

173725539_289394756125729_908692845100380136_n.jpg
175163090_1628260507371173_6219518151498632063_n.jpg
173650481_1188089574994640_5028579910104410247_n.jpg