Introduction: On Off Timer With Arduino
Hi, with this project you will be able to control the ON and OFF of your devices between the time you want. They may be the lights , turn on a machine, etc. We will use the Arduino, RTC 1307 and Solid State Realy ( SSR 25 DA ) control the time u set in prog. You can set the "ON" hour and the "OFF" min, increase or decrease the "SET POINT" by using ur program. This project useful to set AC, Heater , And any machine or light to " ON and OFF " for Specific time ,
Step 1: MATERIAL REQUIRED
1. ARDUINO NANO.
2. DS 3231 ( RTC CLOCK).
3. SSR 25 DA ( SOLID STATE REALY).
4. JUMPER WIRES.
Step 2: ASSEMBLY AND WIRING
RTC CLOCK ( DS3231 ) pins to Arduino pins
1 GND to GND
2 VCC to VCC
3 SDA to A5
4 SDA to A4
SOLID STATE REALY ( SSR 25 DA ) pins to Arduino pins
1. 3(+) to D2
2. 4(-) to GND
Step 3: PROGRAMING
In this programing you have to set ON and OFF time for yor machine and every thing u want to control
I have written this prog in this prog Dont want to set RTC time because we only use min given by RTC
and last we reset RTC to 0 min that give us recuring ( repeat our ON and OFF prog cycle )
set your on time in line of " OnMinSET " in minute
set your off time in line of " OffMinSET " in minute
and i use library is DS 3231 i share with u