Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Assalmoalaikum. I want to ask that iam designing my fyp based on arduino microcontroller. In that I want to switch on the motor for 15 minutes by sending sms. I am using sim 900 gsm shield and arduino mega 2560 microcontroller and I have connected my gsm shield with arduino and also a debugger(based on terminal software) to check the response in gsm shield I am using this pgm

// give it a name:
unsigned int led = 13;

void setup() 
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
  //Initialize serial and wait for port to open:
  Serial2.println("Hello Computer");

void loop() 
    //digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
    ///delay(50);               // wait for a second
    //digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
    //delay(50);               // wait for a second 
    // read from port 2, send to port 1:
    if (Serial2.available()) 
    // read from port 1, send to port 2:
    if (Serial1.available()) 

I am getting all the responses. Now I need the code that will make my arduino to compare my cell number and after that it would switch on the motor. After reading my sms "switch on the moter" through pwm pins of arduino.... I have been struggling for a month, please help me.
Updated 27-Feb-13 6:02am
Richard C Bishop 27-Feb-13 12:04pm    
I am sure it is just a language barrier, but calling everyone "mam" is assuming that all on this site are females. Same this with using "sir", it assumes that all members are male. Just a friendly note on using those words, it is best not to.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900