World Clock With Voice and Celebration Song!

by cristinepotu7171 in Circuits > Arduino

693 Views, 18 Favorites, 0 Comments

World Clock With Voice and Celebration Song!

THUMBN.jpg
World Clock! ESP32 TTGO And Visuino!

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

FGO3K53LP8CIK7Q.jpg
77048a25b85b6e29438244020e7237e1.png
sandisk-extreme-micro-sd-card-128gb-with-sd-adapter-1_1379x.jpg
download (8).png
images (14).jpg
download (4).png
download (5).png

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

schematic.png

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

Screenshot (66).png
Screenshot (67).png
Screenshot (68).png
Screenshot (69).png
Screenshot (70).png
Screenshot (71).png
  • 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

Screenshot (63).png
Screenshot (64).png
Screenshot (65).png
Screenshot (48).png
Screenshot (49).png
Screenshot (50).png
Screenshot (51).png
Screenshot (52).png
Screenshot (53).png
Screenshot (54).png
Screenshot (55).png
Screenshot (56).png
Screenshot (57).png
Screenshot (58).png
Screenshot (59).png
Screenshot (60).png
  • 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.


Settings and Operation

snapshot195.png
snapshot196.png
snapshot197.png
snapshot198.png
snapshot199.png
snapshot200.png
snapshot201.png
snapshot202.png
snapshot203.png
snapshot204.png
snapshot205.png
  • 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!