This is an old revision of the document!


LED Slot Machine

By Podeanu Marius-Bogdan 1222A

Introduction

LED Slot Machine este un mini joc distractiv in care 3 LED-uri se aprind intr-o culoare la intamplare. Scopul jocului este de a avea toate LED-urile aprinse in aceeasi culoare. In momentul in care castigi, muzica incepe sa cante iar pe ecranul LCD iti apare un mesaj.

Ideea a pornit de la varianta clasica de slot, dar facuta in asa fel incat sa fie cat se poate de fair.

General Description

Block Scheme:

Hardware Design

Components List:

  • 1x Arduino Uno,
  • 1x Breadboard,
  • 3x LED RGB,
  • 1x Push Button,
  • 1x Ecran LCD I2C,
  • 1x Buzzer


Electrical Schematic:

Software Design

Libraries Used:

The only library needed was the one for the I2C LCD.

liquidcrystal_i2c.rar

Obtained Results

After many tries, I made it so that the game works. Now, when you press the button, the RGB's turn on into a random color.

If all 3 RGB's have the same color, the buzzer will start singing and the LCD will display a different message.


Soon, I will put it to use and make my friends pay in order to play with it.

Conclusion

The project was very interesting. I learned alot of new things, how to use arduino, and how to search things better on the internet.

After this project, I wish to do more arduino projects in the near future.

Journal

I started by doing the project in Tinkercad, so that I can do trial and error there.



I started thinking how should I arrange it so that it's not messy and I found the solution.



Without realising it, the project was already done.

Download

The code:
led_slot_machine.rar


The libraries:
liquidcrystal_i2c.rar

Bibliography / Resources

Link for buzzer melody:
Buzzer Song

Link for random RGB inspiration:
Random RGB

Download a PDF of this page:
Export to PDF

pm/prj2022/cstan/led-slot-machine.1653678169.txt.gz · Last modified: 2022/05/27 22:02 by marius.podeanu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0