166Views15Replies

Author Options:

Arduino GSM remote control ! Answered

Hello everybody ! i would like to know how i am going to connect these original arduino parts http://store.arduino.cc/index.php?main_page=product_info&cPath=16_20&products_id=113#.UzvPyVfKq9p  http://store.arduino.cc/index.php?main_page=product_info&cPath=11&products_id=195#.UzvQLlfKq9o
http://store.arduino.cc/index.php?main_page=product_info&cPath=37_5&products_id=244#.UySKJYWaQT4
to make a gsm remote control ? 
i have seen this project https://www.instructables.com/id/Control-the-relays-via-GPRS-SMS/step4/Upload-the-program/  but it isn't with the original arduino !
which connections i have to make and whch code i have to upload ?

Discussions

The instructable you link is using the basic Arduino. It may be an arduino clone but you still use the same shields and code.

Run wires from the relay module to the pins on the arduino that are being used. Since it's not a shield you'll have a mess of wires to deal with. You may need to use a breadboard to get everything together. So plug your GSM shield onto the arduino and run the wires from the relay boards to the correct open pins on the GSM shield's headers. The small 3 pin connector on the relay boards is where you'll run the wires to the arduino+GSM combo. The negative leads from the boards need to be joined together and connected to the ground pin. Then the posative leads need to go the the digital pins you'r using for the relay. Check the code to varify which pins are being used for the relays.

what changes i have to make to the code

http://www.elecrow.com/download/Using_SMS_to_Control_Relay_Hardware_Serial.ino ??

That's up to you and what you want to do. Sounds like you need to learn more about programming.

yes ! i need to learn a lot of programming :) but i need also your help ! I want to control an electrical device by my mobile phone ( on and off ) that's all could you help me with the code ?

Sorry. Not familier with using any wireless devices with an arduino.

anyway ! i want to control the relay by my mobile phone ! anyone else could help with the code ?

Whats wrong with the code in that instructable? Nothing should change as long as you connet your relays to the right pins.

is there any problem if i connect only one relay ?

no. You just won't be using the parts of the code that deal with the other relays. No big deal.

do i need to write somewhere in the code the number or the pin number of the sim card ?

it has only at this comment //String SIM_PIN_CODE = String( "XXXX" );

It doesn't work ... :( any idea what's going wrong ?

Any further questions about the code should probably be directed at the code's creator. I'm not familiar with how the GSM shield communicates with the arduino.

what is the function of NOT GATE in the architecture of ULN2803APG IC?