GSM

We call this the GSM Configuration, because the slave phone basically acts as a simple and free  GSM controller. The master phone, which can be anywhere in the world, makes a call to the slave phone. The backlight on the slave phone then lights up. This light is picked up by a light dependent resistor (LDR) which is attached to our Module. Our Module then sends a signal to a single or multiple RF sockets or relays which turn it (them) ON or OFF according to how our Module is configured in this GSM Mode. You cannot control multiple sockets or relays individually in GSM Configuration.

This GSM Configuration is sub-divided into 8 sub-configurations or sub-modes which give greater flexibility and choice to what you want to do with our Module. The 8 Modes can be configured by simply making pins D2, D3, and D4 go HIGH or LOW by connecting the 3.3v pin to these pins on the Standard Module or by connecting the jumpers 1 to 6 together on the HAT version of our Module. Note that in GSM Configuration that pins 7 and 8 and pins 9 and 10 in the HAT version do not have jumpers attached.

We will now go through a description of each of the Modes 1 to 8 and all will become clear! We're assuming that you have paired your RF socket or RF relay to our Module according to the instructions given on pairing under the Raspi Configuration which you have already hopefully read. See the photos and especially the Fritzing diagram below.

Automatic Operation in GSM Modes 3 to 8

In Modes 3 to 8 below (the fixed time or countdown modes), it is possible to control the socket or sockets by using automated text messaging (SMS). These apps are available for Android and iPhones. You schedule a text message to your slave phone and when it is received it should turn on the phone backlight for about 5 seconds thereby turning the socket or relay ON for the specified time.

Mode 1

To get into Mode 1 Pins D2, D2 and D4 are low i.e. they have no connection to the 3.3v pin in the Standard Module and there are no jumpers connecting the jumper pins on the PCB on the HAT version.

In this Mode you make a call which will keep the backlight on for just over 20 seconds but under 40 seconds. This will usually be 5 rings but check out how many rings it will take on your phone. It will then take a further 20 seconds for our Module to turn ON your RF socket or relay. 

To turn the socket or relay OFF you make a short call which will keep the backlight on the slave phone on for under 20 seconds. So one or two rings should do. Test this on your own phone. Again, it will take 20 seconds for the socket or relay to turn OFF.

See video demonstration here.  (Note: The video shows our Module on a breadboard)

Mode 2

This Mode is the opposite of Mode 1. A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON after 20 seconds. A long number of rings (backlight on for over 20 seconds but under 40 seconds) will turn the socket or relay OFF. It will take 20 seconds to do this.

To operate this Mode pin D2 is LOW, D3 is LOW and D4 is HIGH. On the HAT version pins 5 and 6 on the PCB should be connected with a jumper.

Mode 3

 A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON for one second.

To operate this Mode pin D2 is LOW, D3 is HIGH and D4 is LOW. On the HAT version pins 3 and 4 on the PCB should be connected with a jumper.

Mode 4

A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON for 30 seconds.

To operate this Mode pin D2 is LOW, D3 is HIGH and D4 is HIGH. On the HAT version pins 3 and 4 and pins 5 and 6 on the PCB should be connected with a jumper.

Mode 5

A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON for 60 seconds. If you decide that you don't want the RF socket or relay to stay on for the set period of time, just make an additional short call keeping the backlight ON for under 20 seconds.

To operate this Mode pin D2 is HIGH, D3 is LOW and D4 is LOW. On the HAT version pins 1 and 2 on the PCB should be connected with a jumper.

Mode 6

A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON for 30 minutes. If you decide that you don't want the RF socket or relay to stay on for the set period of time, just make an additional short call keeping the backlight ON for under 20 seconds.

To operate this Mode pin D2 is HIGH, D3 is LOW and D4 is HIGH. On the HAT version pins 1 and 2 and pins 5 and 6 on the PCB should be connected with a jumper.

Mode 7

A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON for 60 minutes. If you decide that you don't want the RF socket or relay to stay on for the set period of time, just make an additional short call keeping the backlight ON for under 20 seconds.

To operate this Mode pin D2 is HIGH, D3 is HIGH and D4 is LOW. On the HAT version pins 1 and 2 and pins 3 and 4 on the PCB should be connected with a jumper.

Mode 8

This is the toggle Mode. A short number of rings (backlight on for under 20 seconds) will turn the RF socket or relay ON and leave it ON. If you want to switch the socket or relay OFF you make an additional short call.  

If you can't remember whether the socket or relay is ON or OFF you make a long call, over 20 seconds and under 40 seconds backlight time which will turn the socket or relay OFF no matter what it's status was before.

To operate this Mode pin D2 is HIGH, D3 is HIGH and D4 is HIGH. On the HAT version pins 1 and 2 and pins 3 and 4 and pins 5 and 6 should be connected by jumpers.




GSM Standard Version

GSM HAT Version