Auto Sprinkler Project, made by Arduino
- 20180816 : first version
- 20190403 : Based on new relay module, its trigger signal is high enable(the original is low enable). So I modified the function digitalWrite(RELAY_PIN, X) and changed its HIGH/LOW.
Developing a clock system and tuned by 5 buttons - Mode, Switch, Up, Down, and Forcing respectively. When current time goes to setup time, it will trigger relay action for sprinkling water. Sprinkler runs twice at one day. Their actuation start time and sprinkling duration can be set. 16x2 LCD shows the clock and temperature information.
-
1: Normal
-
2: Set Current Time
-
3: Set T1 time - T1 means 1st sprinkling time
-
4: Set T2 time - T2 means 2nd sprinkling time
-
5: Sprinkle Time - set sprinkling duration
-
Compiler: Arduino IDE v1.8.5
-
Coding IDE: Visual Studio Code v.1.24.0
-
DS3231 : Library : DS3231
-
16x2 LCM : Arduino 1602 LCD shield with keypad
-
LCM : A0(Button), D4, D5, D6, D7, D8, D9, D10
-
DS3231 : A5(SCL), A4(SDA)
-
Relay : D3(pin 3)



