2020-05-20 14:42:28recongi

ESP Alarm: Make an IoT, Wi-Fi Enabled Alarm Clock

The ?¡ãESP Alarm?¡À is a connected alarm with your smart phone via Wi-Fi using ESP8266 module. You can add/modify/delete/activate/deactivate alarms using an Android application when the device is up and connected with the same Wi-Fi network which your phone is connected to.

It?¡¥s common to set-up alarms using our mobile phones to wake up in the morning?aand it?¡¥s not unusual to set-up several alarms in an attempt to wake up at a specific time. The problem is that, after we finally wake up, sometimes our phone's battery is drained during the battle to get up from bed!

So I decided to make an ?¡ãESP Alarm?¡À device that allows me to set alarms using my smartphone through Wi-Fi and leave the rest to the alarm clock. In simple terms, it?¡¥s a Wi-Fi-enabled, IoT alarm clock!

This is my second project using the tiny monster ESP8266 Wi-Fi module. Check out my first project, "How to Build a Control Circuit with Adjustable Working Time via Wi-Fi" here on AAC.

Introducing uart wifi module Interface from Heisener.Visit our website to compare between a wide range of remarkable models. Order your perfect match right now!

Important Notes

This application requires Android 4.4 (Marshmallow) and up.

The maximum number of alarms is 20 due to hardware limitations.

This app is under development and still missing some enhancements, nonetheless it meets the main requirements for this project.

Many thanks to my friend Jihad Al-bathish (AKA Joud) for developing a native Android application for this project.

Hardware

The ESP8266 is connected with an Arduino UNO via UART connection using AT command (commands in ASCII). You can add/modify/delete/activate/deactivate alarms using the Android app when the device is up and connected with the same Wi-Fi network your phone is connected to.

I utilised a 1.4-inch TFT screen to print out some important information like time, date, IP address, port number, title of the alarm, etc. Both the TFT screen and Wi-Fi module use 3V3 logic level and need a level converter with Arduino which works by using 5V logic level.

Time and date are kept in the RTC chip, DS1307, which is connected with Arduino using an I2C interface. I added a Li-ion backup battery to maintain a correct date and time even if the device is turned off. To charge this battery, I utilized a charger IC called TP4056.

The module takes advantage of the 3V3 level, so we need to do a conversion between it and the Arduino, which works by using the 5V level. Since we already made use of four pins of the 8-pin port from 74LVX4245 converter IC for that TFT screen, we're going to use a fifth pin to convert the TX signal from the Arduino to 3V3 level.

The TX signal from the ESP8266 can be left without any conversion to 5V as long as the minimum input-high voltage at VCC = 5V is about 2.65 V according to Figure 35-25 from the ATmega328P's datasheet (the Arduino UNO's controller).

Related links:

Voltage Sensor Module

Soil Moisture Sensor Module

Arduino MKR1000 Wi-Fi Board

ESP-12E - WiFi Module

Updating the firmware in an ESP8266 Wi-Fi module can be frustrating! Here's a procedure to reduce the pain.