Need help with my mini project!!

I'm just a beginner to audrino programming my project involves to take the input from a sensor which gives a true(boolean) output which acts as a input for my device if this input is given then it has to send a sms and some few words to the receiver for every 30mins interval i need a code with explanation how it works, I'm using GSM/GPRS TTL UART MODEM-SIM900A and audrino UNO R3 board please help me out.

As a beginner, you need to learn a bit about electronics and programming before you get too far into this project.

You need to learn how to read the sensor, and how to control the SMS. Start simple and add a little once you get each part working. Backup your working part so you can go back when your new code totally fails.

Weedpharma

start here

You may find some useful stuff in planning and implementing a program

...R

The function below describes a set of values from adruino shield and uno board using gps module.

I receive some errors perhaps it is in the syntax. Please ignore the line in which the error has been pointed out. I don't want people to get scared seeing a large coding.

void send_HTTP(){

uint8_t answer=0;
// Initializes HTTP service
answer = sendATcommand("AT+HTTPINIT", "OK", 10000);
if (answer == 1)
{
// Sets CID parameter
answer = sendATcommand("AT+HTTPPARA="CID",1", "OK", 5000);
if (answer == 1)
{
// Sets url
sprintf(aux_str, "AT+HTTPPARA="URL","http://%s/demo_sim908.php?", url);// line number :459
Serial.print(aux_str);
sprintf(frame, "visor=false&latitude=%s&longitude=%s&altitude=%s&time=%s&satellites=%s&speedOTG=%s&course=%s",
latitude, longitude, altitude, date, satellites, speedOTG, course); // line number : 460
Serial.print(frame);
answer = sendATcommand(""", "OK", 5000);
if (answer == 1)
{
// Starts GET action
answer = sendATcommand("AT+HTTPACTION=0", "+HTTPACTION:0,200", 30000);
if (answer == 1)
{

Serial.println(F("Done!"));
}
else
{
Serial.println(F("Error getting url"));
}

}
else
{
Serial.println(F("Error setting the url"));
}
}
else
{
Serial.println(F("Error setting the CID"));
}
}
else
{
Serial.println(F("Error initializating"));
}

sendATcommand("AT+HTTPTERM", "OK", 5000);

}

And I get the following errors.

Arduino: 1.7.5 (Windows 8.1), Board: "Arduino Uno"

sketch_aug22e.ino:459:13: error: missing terminating " character

sketch_aug22e.ino: In function 'void send_HTTP()':

sketch_aug22e.ino:460:34: error: expected ')' before ';' token

Error compiling.

This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

I don't want people to get scared seeing a large coding.

Please use code tags, especially for such a "large coding". It would be less frightening.

You are missing a double quote.

Hi,

Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom.... :slight_smile: