World Clock With Voice and Celebration Song!
by cristinepotu7171 in Circuits > Arduino
797 Views, 19 Favorites, 0 Comments
World Clock With Voice and Celebration Song!
Hello, I present to you the construction of a global clock with synchronization without using a dedicated module, with synchronization on an Internet server with voice warning every hour, when connecting or disconnecting from the Internet, at Christmas or New Year.
Supplies
1.ESP32 TTGO board
2.MP3 Player Mini module
3.Any microSD card
4.1k resistor
5.speaker
6.Arduino IDE
7.Visuino program
Schematic Diagram
The electrical scheme is very simple and should not take more than 10-15 minutes to complete. Pay attention to the strap between the pins of the MP3 Player. If the maximum volume is not necessary, do not mount that strip between the GND and IO-2 pins
Audio Files
- The sounds of the device are recorded in MP3 format, a format recognized by the MP3 Player module. I used the narrator from the operating system, WINDOWS. but any other sounds or melodies can be recorded. I wrote the text in the narrator's box and recorded with a dedicated program. You can use any other recording program or any other method. You can even record your voice.
- The important thing is that the files are numbered in ascending order, the code giving the respective commands to the files with the assigned number. For example, file number 1 is assigned to the sound "1 A.M.", file number 2 to the sound "2 A.M"....file number 31 is assigned to the sound with the Christmas song. Find the audio files in the attachment.
The Code
- The code is built in the Visuino program. In Visuino, click on Open and the code from the attachment is loaded. In order to connect to the internet, the ESP32 TTGO will need to connect to the user's wifi network. It is necessary to fill in the SSID and password of this network. Click on ESP32 TTGO-Modules-WIFI-Connect to access point-Access point. In the "password" box, fill in the password of the wifi network and in the "SSID" box, its exact name.
- Close the windows, click on "Arduino"-"Send to Arduino IDE". We choose the board type and port and upload the code to the ESP32 board.
Downloads
Settings and Operation
- We assemble the device. I used a breadboard. Insert the USB C cable into the ESP32 TTGO. The speaker will hear when connecting to the wifi network: connected". If connection fails, the WIFI symbol on the screen will blink in cycles of one second. Also, if a connection is lost, the network connection will be heard in the speaker "connection lost". If the connection has been completed successfully, you will hear "press push buttons" on the loudspeaker to set the GMT/UTC time zone. The indicator dashes will move on the screen over the global map and the GMT time will change accordingly. In a few moments the time will appear on the screen depending on the time zone.By simultaneously pressing the two buttons of the ESP32 board, one of the 3 songs that announce the exact time is chosen.
- The exact time will be announced every 60 minutes, at fixed times
- Every year on January 1 at 0:00, the clock will sing a specific song and say "HAPPY NEW YEAR" in the loudspeaker.
- Every year on December 25, the announcement of the exact time will be followed by the specific Christmas song for 24 hours.
- The button connected to GPIO pin 15 switches the device to "DEMO" mode, the text "DEMO" flashing on the display, successively indicating the previously described stages as well as the normal operation of the clock. After finishing the description, the watch automatically switches to normal working mode.
- I hope you liked my project! Enjoy!