Global Lottery Number Generator!

by cristinepotu7171 in Circuits > Arduino

87 Views, 1 Favorites, 0 Comments

Global Lottery Number Generator!

snapshot50.png
snapshot50.png
Global Lottery Number Generator! Visuino And ESP32 TTGO Project!

Hello, I present to you the construction of a global number generator for various lotteries around the world with ESP32 TTGO. An extremely simple project with only 2 electrical connections and 2 components: a buzzer and an ESP32 TTGO!

  1. A project that takes less than 5 minutes to complete!


Supplies

download (15).jpg
download (14).jpg
download (7).jpg
download.png
download (1).png

1.Active Buzzer

2.TTGO ESP32 Board

3.Jumpers wires and breadboard

4.Visuino software or

4Arduino IDE

Operating Principle

snapshot49.png
snapshot50.png
snapshot51.png
snapshot52.png
  1. The operating principle is very simple: by pressing the 2 buttons on the ESP32 board at the same time, we set the details of the chosen lottery. You can choose from a minimum number of 30 drawn numbers to a maximum of 90. The drawn numbers can be 5 or 6, these being the most common lotteries. 6 of 40, 5 of 45, 6 of 49, 5 of 50, 5 of 90, 5 of 75, etc.
  2. In the EuroMillions lottery, the two Lucky Star numbers are also displayed

  3. after the lottery details have been set, all that remains is to press the start button waiting for the sound signal given by the buzzer, a sign that the draw has ended, the numbers appearing on the screen.


Schematic Diagram

SCHEMATIC LOTTO.jpg


The electrical scheme is extremely simple, you only have to connect the buzzer to the GPIO33 and GND pins.

The Code

Screenshot (26).png
Screenshot (27).png
Screenshot (28).png
  1. The code is built in the Visuino program, an intuitive and easy software that will allow you to create projects with just a few mouse clicks. If you want to upload the code from the Arduino IDE, you can find the code attached as well as a link to the libraries used. Copy the "Mitov" folder from the link in the "libraries" section of My Documents of your computer where the Arduino libraries are located. Choose the correct port and board model, upload the code to the ESP32 TTGO board.
  2. Link:https://app.box.com/file/1741791285352?s=t1gioysf3opqr10uit2os55rwqihgztd

Start the Device

snapshot51.png
snapshot52.png


  1. After uploading the code, power the board either on the USB-C port or from a small battery. The device starts in "default" mode in 6/49. If you want another configuration of the extracted numbers, set from the two buttons on the board. I hope you liked my project and I wish you luck in the next draw! :)