After several days of tinkering around with this project I am finally beat and I am requesting assistance. I modified a code from an instructables page, http://www.instructables.com/id/Control-the-relays-via-GPRS-SMS/step4/Upload-the-program/ to use in my project. My goal was to be able to control 7 relays via SMS to the board from another cellphone, and use the 8th relay to control and LED to let me know the relay board was recieving power. After my modified code failed I went back to the basic code that I pulled from this web page, and still I couldn't get it to work.
I'm using a sim card from an AT&T GoPhone, arduino uno, a GSM shield that I picked up from ebay, and an 8 relay board that I also bought on ebay.
The relay shield is properly communicating with the arduino uno board, as my 8th relay is blinking my LED on and off. The other 7 relays are in a constant "HIGH" position (which is not what I want until I send an SMS telling it to do so). I've tried sending SMS to turn the relays off, and still no luck. The sim card is activated and is capable of recieving SMS when I put it in the throw away phone, and it has stored every SMS received while installed on the GSM shield and opens them up once installed back in the phone. I have looked over both the shield and the board to verify jumpers are in the correct position (I'm almost certain that they are), and still nothing.
I guess what I'm asking is for someone to look over my code and see if there are any noticable issues, make note if it's a mechanical issue, or the more likely case of user error. I'm not sure if this helps or not (I've tried it with and without), but the pin number to my sim is 4104. I may have plugged that into the wrong spot on the code.
Thank you in advance for any help someone is able to provide.
As far as I know the shield is not going to respond on the standard Serial port.. thats the USB port, you should be using Software Serial library if its a UNO ,or one of the other Serial ports on a Mega ?
I am completely new to this, is Software Serial library something I have to insert into the code? Or is it an I/O pin? I would also like to note that I would like this to be completely stand alone from a computer having to process information and send commands to the arduino board, i.e. built into a project enclosure. This is possible right?
~yes the arduino can be stand alone just needs PSU or a Battery
Yhe Uno board uses its only Serial Port on the USB to allow you to upload programs and debiug by printing to the Serial Monitor.
The GSM shield has a serial port sending data via the pins on shield to the U?NO I don't use the UNO so don't have details to hand. Software Serial is a library of software that lets and of the I>O pins on the UNO to become a Serial port ..
I think before you go any further you need to
Read the various tutorials on the Aeduino site.
Google for information about send / receive sms it not as easy as it first seems..
Keep going the light will come on and you will see how it all fits together