send SMS text:
1. turn on/off one relay:
relay1-on turn ON relay1
relay1-off turn OFF relay1
relay2-on turn ON relay2
relay2-off turn OFF relay2
relay3-on turn ON relay3
relay3-off turn OFF relay3
relay4-on turn ON relay4
relay4-off turn OFF relay4
relay5-on turn ON relay5
relay5-off turn OFF relay5
relay6-on turn ON relay6
relay6-off turn OFF relay6
relay7-on turn ON relay7
relay7-off turn OFF relay7
relay8-on turn ON relay8
relay8-off turn OFF relay8
2. turn on/off all relay:
all-on turn ON relay1-8
all-off turn OFF relay1-8
3. read current temperature value:
temper read DS18B20 temperature sensor data
4. digital input for sensor trigger output
a. if input1 trigger, (siren) relay1 ON -> 3 seconds -> relay1 OFF -> send SMS: door sensor is triggered,someone in the room!
b. if input2 trigger, (siren) relay1 ON -> 3 seconds -> relay1 OFF -> send SMS: window sensor is triggered,someone in the room!
c. if input3 trigger, send SMS: sensor3 is triggered,someone in the room!
d. if input4 trigger, send SMS: sensor4 is triggered,someone in the room!
e. if input5 trigger, send SMS: sensor5 is triggered,someone in the room!
f. if input6 trigger, send SMS: sensor6 is triggered,someone in the room!
g. if input7 trigger, send SMS: sensor7 is triggered,someone in the room!
h. if input8 trigger, send SMS: sensor8 is triggered,someone in the room!
here is arduino IDE source code:
sms-relay.zip (Size: 1.71 KB / Downloads: 352)
1. turn on/off one relay:
relay1-on turn ON relay1
relay1-off turn OFF relay1
relay2-on turn ON relay2
relay2-off turn OFF relay2
relay3-on turn ON relay3
relay3-off turn OFF relay3
relay4-on turn ON relay4
relay4-off turn OFF relay4
relay5-on turn ON relay5
relay5-off turn OFF relay5
relay6-on turn ON relay6
relay6-off turn OFF relay6
relay7-on turn ON relay7
relay7-off turn OFF relay7
relay8-on turn ON relay8
relay8-off turn OFF relay8
2. turn on/off all relay:
all-on turn ON relay1-8
all-off turn OFF relay1-8
3. read current temperature value:
temper read DS18B20 temperature sensor data
4. digital input for sensor trigger output
a. if input1 trigger, (siren) relay1 ON -> 3 seconds -> relay1 OFF -> send SMS: door sensor is triggered,someone in the room!
b. if input2 trigger, (siren) relay1 ON -> 3 seconds -> relay1 OFF -> send SMS: window sensor is triggered,someone in the room!
c. if input3 trigger, send SMS: sensor3 is triggered,someone in the room!
d. if input4 trigger, send SMS: sensor4 is triggered,someone in the room!
e. if input5 trigger, send SMS: sensor5 is triggered,someone in the room!
f. if input6 trigger, send SMS: sensor6 is triggered,someone in the room!
g. if input7 trigger, send SMS: sensor7 is triggered,someone in the room!
h. if input8 trigger, send SMS: sensor8 is triggered,someone in the room!
here is arduino IDE source code:
sms-relay.zip (Size: 1.71 KB / Downloads: 352)