Instructables
Remote control, especially when this no ethernet or Wifi in the outdoor, has been a very profound things in the past. When I was a child, I always image that I have an equipment which can control all home appliances. Now, this becomes a reality,with Arduino and GPRS modules and some other related modules. And, it is also quite easy, even for the beginners. Here I will step by step to show you how to remote control your home appliances via the GPRS/GSM SMS and relays.

At first, let me give a brief introduction about relay to you.
Relays are used where it is necessary to control a circuit by a low-power signal (with complete electrical isolation between control and controlled circuits). It acts as a “low voltage controlled switch to control high voltage”, For example, if you want to control power of your washer or air conditioner, which is oftern110v or 220v,by microchip such as AVR or PIC, it is necessary and safe to make your microchip control the relay first, and then control the power supply of those device with the relay.

With the GSM SMS, it is possible to control the relay remotely. You can send a message via phone to control the relay on&off. With this, it will convenient to control any device wirelessly, especially helpfully on irrigation, smart home, outdoor remote control etc.
So, let’s make such a “SMS controlled Relay” with Arduino, GPRS/GSM and a Relay module.
 
Remove these adsRemove these ads by Signing Up
1-40 of 63Next »

hai friends iam ganesh. plz help for my project . any one for write the program for control one relay using GSM module (sim900). progarm form msg is given to some text is diplay.

Fateen743 days ago

Can I use Arduino Uno?

logan.smr4 days ago

Please upload the code of entire project please!! i am doing the same experiment

My email id: lokeshrrs@gmail.com

i would be obliged if i have been helped!!

Thank u!!

Hi Team,

What i have to do to register a particular mobile number otherwise anybody can hack the device na...?

danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose1 month ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code

same here

I have used ardiuno uno R3 but when I send ona or onb ect. nothing happens please help

SirA11 month ago

hi .. i want to know , i wanna make a project to turn on the lamp in the house while im not at the house .. but , if i wanna make sure the light is turn on , can i receive sms from the device to my phone to prove the light is turn on ..

Hello,

This tutorial is very very useful. I am trying to demonstrate this project on my own. I am using SIM300 gsm module because I don't have a gsm shield for arduino. However, the relay control part is working fine BUT the problem is that SIM300 has only 25 sms memory. I want to delete the sms memory after every "reset" or after executing ona, onb, onc, ond etc.

So, I added the code in Void Setup()
but it is not working.
Serial.write("AT+CMGDA=");
Serial.write(34); //ASCII of “
Serial.write("DEL ALL");
Serial.write(34);
Serial.write(13);
Serial.write(10);
delay(10000);

I have written the details & result of my experiment in this post.

http://arduino.cc/forum/index.php/topic,155448.msg1165394.html#msg1165394

Any help shall be highly appreciated.
Thanks

hey can you send me the whole sketch ? i am doing the same project with sim900

Elecrow (author)  nightcrawler2181 year ago
Nice job!
Iqrar AliS1 month ago

its not receiving the sms . what should i do?

landsail2 months ago

Thanks, for the instructions. I got it to work with a little trouble due to this being my first Arduino project.

Note to others - you MUST download the software .ino file as an .ino file by right clicking and saving the file. If you cut and past the text you will be up a creek. It will not compile properly!

I used and uno and the relay and gprs shields from seeed studios and a cell phone card from T Mobile which is unlocked. The shields were available at my local Radio Shack.

Last if you are going to use it for something that has substantial power, use the relays on the board to power heftier relays that can handle the power load. Relays are cheap and burning out your boards isn't.

pelegren3 months ago

hi, please share the schematic diagram how the boards are connected and which pins are actually in use. I can understand the program without knowing which pins are used and not used. thanks.

Hello,

I have bought the items linked on this thread. I uploaded the sketch successfully using Arduino IDE. I followed all the steps but the module does not receive the SMS. When I put the SIM into a phone, the phone does receive the text. Can you please help?

Glenn.

Since my last post I have gotten the GSM module to receive SMS.

It tried the sketch again but the relay does not turn on.

Can you help with this please?

eddevine1 year ago
What SIM card are you using? The ones I've seen require an expensive plan with a provider
Elecrow (author)  eddevine1 year ago
Hello eddevine,

We are using a very common SIM card which used in my phone, the GPRS shield is support 2G sim card, but I not sure whether it support 3G Sim card. if you have any tech question, please feel free to contact with techsupport@elecrow.com.

Best Regards
I do everything I follow the instruction but still not able to turn on the led. I can manually turn on the led but by sms onb nothing happens
please help

Hey ,
did u do this project using sms?

stanpilip4 months ago

hey, where did you download the command prompt for the gsm/gprs sheild to connect with the arduino? the one on wikihow comes up as an empty folder.

also what sim provider did you use? I am having trouble with the telefonica card that comes with the arduino

KariyappaK5 months ago

Hi

this kariyappa

I need help regarding bellow

i am working on arduino uno with Sim900 module to send an sms. my sample code is as follows

i am not able to receive reply from sim900,and able send sms.

#include<SoftwareSerial.h>

SoftwareSerial mySerial(3, 2); // RX, TX pins

int led= 13;
//String str;
char str;


// serial communication settings

void setup()
{

Serial.begin(9600);
mySerial.begin(9600); // setting the buad rate as 9600
pinMode(led,OUTPUT); // initialize the digital pin as an output.
Serial.println("GSM communication initialization");
mySerial.println("AT"); // activating the gsm module.
delay(500);

mySerial.println("AT+CMGF=1"); // setting the gsm module to sms mode.
delay(500);
Serial.println("serial communication begins");

}

void loop()
{

while(mySerial.available() > 0)
{
str = mySerial.read();
Serial.print(str);
int data=str.indexOf("hello");
/Serial.println(str);


if(data!=-1)
{
mySerial.println("AT+CMGS=\"9902062107\""); // mobile number
delay(500);
mySerial.println("hello"); // Message contents
delay(500);
mySerial.write(byte(26)); // (signals end of message)
delay(500);
}
}
}

ckrmustafa7 months ago

Hi friend,

Congratulations. The project is fantastic. I am newbie on ARDUINO. I read your instructions step by step but there is some problem. When I send SMS via my phone there is no action on relay board. Could you tell me what is wrong on my job? Thanks.

YOUR CODE DOES NOTHING. SOFTWARESERIAL LIBRARY ISN'T EVEN USED ON THIS SKETCH.

Hello I have been following all instructions you gave above but mine so far can only receive the sms message but nothing happens to the relay. In the monitor prints out receive sms and store sms but nothing happens to the relay. One thing i noticed when i switched my gprs model to softwareserial mode i can hear clicking when i hook my relay up to the unit. But when i switched it back to hardwareserial mode as instructed above i hear nothing. I have arduino uno and my relay is from Deek-Robot it's a 4 channels relay. Please help!

sisay569 months ago

HI I am doing the same project on micro controller(atmega32) and encountered a problem how to send SMS messages to GSM module. could you tell me how to send and receive . thank you

Michelvt made it!10 months ago

I have tested many different codes, but I get no output.

From the serial monitor I receive the messages.

I use an Arduino Uno, GSM / GPRS shield and Relay V2 module.

Could it be because the declaration is not correct?

eg:

# include <GSM.h>

# define PINNUMBER "4889"

GSM_UNO_stacked.jpg
elesol1211 months ago

ok ! but i have this

http://store.arduino.cc/index.php?main_page=produc...

not

http://grobotronics.com/relay-shield-v2.html#.Uz0E...

how am i going to conect it to the UNO+GSM SHIELD << sandwich>> ? :)

aal-faify11 months ago

Thx so much .
Eng. Ahmad Ali - Makkah SA

1-40 of 63Next »