

Numerous products are in RTC, but this time, we’ll be using an RTC that’s been made into a module called “DS3231.” In addition, by connecting it to an external power supply such as a battery, time can be maintained even while the power to the microcomputer is switched off. An RTC is an IC that makes time tick based on elements that are periodically signaled. That’s why an IC called “RTC” (Realtime Clock) is commonly used. However, some microcomputers, such as Arduino Uno, don’t have an internet connection function, so it would be useful to have a mechanism that could handle date and time easier. With ESP32, you can connect to the internet via Wi-Fi to get the date and time periodically from an NTP server on the internet and set it on ESP32. However, the time you get is often not very accurate, as the elapsed time will reset when the power is turned off. 1 Transmission between the body and extension “RTC” for making the date and time tickįor microcomputers such as Arduino, it’s common to be able to get the elapsed time upon booting up the program. The two ESP32s operate as web servers and clients, and communicate with each other as shown in Figure 1.įig. To place the main unit and extension away from each other, use the ESP32 Wi-Fi function. In the video, the main unit and the handset are next to each other, but they can be separated if they’re connected by Wi-Fi. The idea is that you would have to get up from bed and walk over to where the extension button is to turn off the alarm.Īs shown in the video below, use two ESPs, one for the main unit and the other for the extension. To make a “wake up alarm clock,” we need to place the extension button (for stopping the alarm) separately from the alarm clock body. Let’s use the ESP32 to display the date and time on the screen like a normal alarm clock so that the alarm can ring at a specified time. *In addition to the items above, one tact switch, one LED, and one resistor of about 100Ω will also be needed. Electronic Work RecipeĢ.8-inch SPI connector 320×240 Pixel LCD screen This time, we decided to use ESP32 to make a “wake up alarm clock” that should help solve this problem. What alarm do you wake up to every morning? A common problem among morning folk is stopping the alarm and going straight back to sleep.

Make an audible alarm with the MP3 module.“RTC” for making the date and time tick.This article was translated to English, and was originally published for deviceplus.jp.
