SMS
In this example we’ll program our GOBLIN 2 so when you press a button it sends a SMS to any cell phone.
In the Arduino IDE we’ll compile the following program which you can download here. It’s named “PUSH_THE_BOTTON_AND_SEND_A_SMS_EXAMPLE1”.
Program
Steps:
1- Plug the following set of circuits to your GOBLIN 2.
2- Insert your SIM card to your GOBLIN 2 into the SIM card holder.
3- Plug an GSM antenna into the NET connector, in order to have a better signal.
4- Once you inserted the SIM, turn on the GOBLIN 2 sliding the main switch to its ON mode.
5- Make sure the switch 2 is in PROGRAM mode.
6- Open the “PUSH_THE_BUTTON_AND_CALL_EXAMPLE2” program.
7- Once the le is opened, go to Menu and nd Tools>Ports> Select the COM port that belongs to the GOBLIN 2.
8- Once opened the le, go to Tools>Board>”Arduino UNO”.
9- At this point your GOBLIN 2 has to be ready to upload the program, verifying it is ready to be programmed is really important.
10- In the next line change the 10 Xs by the phone number which you want to place the call.
11- Press “Upload” and if there’s no errors, the program will be uploaded.
12- Once everything is done correctly, every time you press the button a phone call will be placed to the phone number you set.
In this example the button could be replaced by a PIR sensor so when someone opens a door or window – where this sensor is placed – it sends a message to your phone. We hope you have fun coding a creating different programs. Keep having fun with your GOBLIN 2.