loading
Picture of Remote control via GPRS/GSM SMS(Arduino)
image2.jpg
images.jpg
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.
 
1-40 of 79Next »
SirA17 months 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 ..

Elecrow (author)  SirA12 days ago
And it is really a great idea.
Elecrow (author)  SirA12 days ago
I think that it is ok. you can add a light sensor or current sensor on this project.
VinodhTyesterday

thanks a lot...can you please tell me how to control using gprs rather than sms

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?

Elecrow (author)  Glenn Hornibrook2 days ago
Hi Glenn Hornibrook, You can test the voltage of the relay control pin to have a look.
Iqrar AliS7 months ago

its not receiving the sms . what should i do?

Elecrow (author)  Iqrar AliS2 days ago
You can test it on serial monitor on the computer to have a look that whether the short message is received or not.
The is the wiki page using the gprs shield http://www.elecrow.com/wiki/index.php?title=GPRS/GSM_Shield_v1.0
225 awesome57 months ago

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

Elecrow (author)  225 awesome52 days ago
Hi 225 awesome5, You can test it on serial monitor on the computer to have a look that whether the short message is received or not.
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
Elecrow (author)  danrose2 days ago
You can download the code at the step 4 upload the program
logan.smr6 months 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!!

Elecrow (author)  logan.smr2 days ago
You can download the code at the step 4 upload the program.
Fateen746 months ago

Can I use Arduino Uno?

Elecrow (author)  Fateen742 days ago
Yes, The Crowduino atmega328 is Arduino UNO compatible.
Tuli_921 month ago

can i have the code please?

miola001@gmail.com

Elecrow (author)  Tuli_922 days ago

There is a download link at the step of upload program

Tuli_921 month ago

hello. does this use the hardware serial?

Elecrow (author)  Tuli_922 days ago

Yes.

marsekal2 months ago

good job mr

MaheshG33 months ago

#include "SIM900.h"
#include <SoftwareSerial.h>

#include<string.h>

#include<stdlib.h>

//If you want to use the Arduino functions to manage SMS, uncomment the lines below.
#include "sms.h"
SMSGSM sms;
char num[20],tex[160];
int numdata;
boolean started=false;
char smsbuffer[160];
char n[20];

char number[20];
char sende[20]="+919032987470"; // Athenticator mob
char message[180];

char pos;
char a[10];
int i=0,m,p;

void clockwise()

{

;

}


void anticlockwise()

{

;

}


void stop()

{

;

}

int count=0;

void setup()
{
//Serial connection.
Serial.begin(9600);
Serial.println("GSM Based Stepper motor Controling\n");
//Start configuration of shield with baudrate.
//For http uses is raccomanded to use 4800 or slower.
if (gsm.begin(2400)){
Serial.println("\nstatus=READY");
started=true;
}
else Serial.println("\nstatus=IDLE");

/**** stepper motor pins activating ****/
pinMode(pin1,OUTPUT);
pinMode(pin2,OUTPUT);
pinMode(pin3,OUTPUT);
pinMode(pin4,OUTPUT);

};//setup()

void clearbuf(char *b)// clearing the buffer
{
while(*b)
*b++='\0';
}


void loop()
{
int r;

pos=sms.IsSMSPresent(SMS_UNREAD);// we can check msg recvd or not

delay(1000);

if((int)pos>=0&&(int)pos<=20){

Serial.print("POS=");

Serial.println((int)pos);

message[0]='\0';

sms.GetSMS((int)pos,number,message,180);// getting the num&mesg
delay(500);
//Serial.println(number);
//Serial.println(message);
delay(3000);

if(number[0])// if number recived or not checking
{
p=strcmp(number,sende); //checking the number

if(!p)// if known number
{
Serial.println("Authorised Person\n");
Serial.print("Mobile Number: ");
Serial.println(number);
Serial.println(" ");
Serial.print("Message: ");
Serial.println(message);
Serial.println(" ");

m=atoi(message);// converting string/char to integer
r=m*510;
// Serial.print("Rotations: ");
// Serial.println(r);
if(m>=0)// checking Clockwise
{
Serial.println("clock wise");
Serial.println(" ");
clockwise(r);
stop1();
Serial.print("rotations:" );
Serial.println(m);
Serial.println(" ");
}
else// checking AntiClockwise checking
{
Serial.println("Anticlock wise");
Serial.println(" ");
anticlockwise(r);
stop1();
Serial.print("rotations:" );
Serial.println(m);
Serial.println(" ");
}
}//if(!p)
else//if unknown number recived
{
Serial.println("Un Authorised Person\n");
Serial.print("Mobile Number: ");
Serial.println(number);
Serial.println(" ");
Serial.print("Message: ");
Serial.println(message);
Serial.println(" ");
Serial.println("Operation not Alloted\n");
}
}//if(number[0])
}//if(pos)
/* else // if messages more than 20 then deleted
{
for(pos=0;pos<20;pos++)
{
sms.DeleteSMS((int)pos);
Serial.println("All Messages Deleting......");
Serial.println(" ");
}
pos=0;
}*/

delay(1000);
/*** clearing all variables***/
sms.DeleteSMS((int)pos);
Serial.println("Message Deleted\n");
clearbuf(message);
clearbuf(number);
p='\0';
m='\0';
r='\0';
delay(2000);
}//loop()

MaheshG33 months ago

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.

Hi Team,

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

danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
danrose7 months ago
Please give me the code . Iam also doing this project.i collected the componen.please give the code
225 awesome57 months ago

same here

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

1-40 of 79Next »