Go Down

Topic: Arduino UNO Rev3 + Icomsat v1.1 SIM900 (Read 1 time) previous topic - next topic

jc119

I would like to send a sms from my arduino uno rev3 and icomsat v1.1 sim900 shield to my mobile phone. I just stack the gsm shield to the arduino without any jumper connection. Beside that, I'm also plugged in the usb cable and 9V/1.2A adapter to boot up the gsm shield. I'm using the gsm libraries provided from the official website. Below are the coding im using and the error i get. Anyone know why I get these error???

Code: [Select]
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "sms.h"
SMSGSM sms;
boolean started=false;

void setup()
{
  //Serial connection.
  Serial.begin(9600);
  Serial.println("GSM Shield testing.");

  if (gsm.begin(2400)){
    Serial.println("\nstatus=READY");
    started=true; 
  }
  else Serial.println("\nstatus=IDLE");
 
  if(started){
    if (sms.SendSMS("+60168881800", "SMS from Arduino"))
      Serial.println("\nSMS sent OK");
  }

};


void loop()
{

}


Error:
================================================================
sketch_mar13a.cpp:1:20: error: SIM900.h: No such file or directory
sketch_mar13a.cpp:3:17: error: sms.h: No such file or directory
sketch_mar13a.cpp:4:2: error: invalid preprocessing directive #SMSGSM
sketch_mar13a.cpp: In function 'void setup()':
sketch_mar13a:12: error: 'gsm' was not declared in this scope
sketch_mar13a:19: error: 'sms' was not declared in this scope
================================================================

PaulS

Quote
I'm using the gsm libraries provided from the official website.

Which libraries from which site? The Arduino GSM shield is NOT a Icomsat v1.1 SIM900, so I wouldn't expect the code to work with your hardware.

Quote
sketch_mar13a.cpp:1:20: error: SIM900.h: No such file or directory
sketch_mar13a.cpp:3:17: error: sms.h: No such file or directory

You can't figure these out? You either haven't installed the libraries, haven't installed them correctly, or haven't restarted the IDE after doing so.


Cybernetician


hi pauls, the shield and libraries i get from here: http://imall.iteadstudio.com/im120417009.html


But your code seems me not using the library of http://imall.iteadstudio.com/im120417009.html

As earlier PaulS pointed,
From Idea To Invention

Go Up