Releases: mohamedshahilshajahan/Arduino-RTC-Timing-Switch
DS3231 / DS1307 - 2.0
In the 2.0 release, I've fine-tuned the code for improved user-friendliness, specifically addressing the common discomfort faced by users. Notably, I've enhanced the Arduino IDE serial monitor's RTC date and time output, which was previously mixed in the 1.0 release, now ensuring clarity and easy readability.
DS3231 / DS1307 - 3.0
I've enhanced the code to ensure the flexibility of activating the relay at specified times. In the previous version, if there was a complete power outage in your home, the Arduino and Relay module would turn off due to lack of power. Additionally, the RTC module only adjusted the time when the power was restored, resulting in the relay not triggering to turn on or off.
Now, the modified code addresses this issue by allowing you to set specific times for triggering the relay. Even if there is a power outage during these times, both the Arduino and Relay module will remain off. The RTC module continues to update the time, but the relay will only be activated once power is restored. This updated code is essential for the Arduino to efficiently check and control the relay based on your desired schedule.
Ensure accurate configuration within the following if statement:
if ((currentHour == 17 && currentMinute >= 40) || (currentHour >= 18 && currentHour < 24) || (currentHour >= 0 && currentHour < 6))
In this statement, the first part (currentHour == 17 && currentMinute == 40) specifies the exact time to turn on the relay, while the second and third parts (currentHour >= 18 && currentHour < 24) || (currentHour >= 0 && currentHour < 6) cover the broader time range for turning on the relay if it happens to be off during that period. This code proves particularly valuable during power outages.
DS3231 / DS1307 - 1.0
Explore the frontier of home automation with our innovative Arduino Timing Switch project. This DIY endeavor combines the power of Arduino UNO, DS3231 RTC Module, and a Single Channel Relay Module to create a smart system for precise control of AC appliances. Learn how to seamlessly program and schedule on/off timings, enhancing efficiency and convenience in your daily routines. Elevate your electronics skills as we break down the code and guide you through the construction of a reliable and customizable Timing Switch. Join us in this journey to make your living space smarter and more automated than ever before!