Skip to content

An arduino based GSM controller that uses relays to switch on and off stuff with a simple SMS

License

Notifications You must be signed in to change notification settings

gulliverrr/GSMSwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

GSMSwitch

An Arduino based GSM controller that uses up to 4 relays to switch on, off or restart stuff with a simple SMS. You only need to modify the "MyMaster" variable to your own number as once the command sent is executed, Arduino calls back this number for a few seconds as a form of confirmation.

Hardware required:

  • An Arduino with at least 1 serial port (additional port can be used for debugging). I used Leonardo here
  • GSM Modem with serial port accepting AT commands like SIEMENS TC35. It only costs 14GBP on eBay
  • A relay module
  • A 5V 2A power supply or similar

Apart from the modem initialisation commands the rest of the code has enough comments to follow.

Allowed commands:

  • 1 on
  • 1 off
  • 1 restart
  • 2 on
  • 2 off
  • 2 restart
  • 3 on
  • 3 off
  • 3 restart
  • 4 on
  • 4 off
  • 4 restart
  • all on
  • all off
  • all restart

All commands are case insensitive but use only latin characters (GSM alphabet limited by the version of your TC35) and only 1 space character between the words. The restart command turns off the respective relay, waits 10sec and turns it back on. Its previous state is not taken into consideration. This delay is defined from the variable "RESTART_DELAY" at the top of the file.

Contact me if you need more info!

About

An arduino based GSM controller that uses relays to switch on and off stuff with a simple SMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%