Pages: [1]   Go Down
Author Topic: Arduino UNO Rev3 + Icomsat v1.1 SIM900  (Read 1428 times)
0 Members and 1 Guest are viewing this topic.
Malaysia
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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
 ================================================================
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 613
Posts: 49237
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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,
Logged

From Idea To Invention

Pages: [1]   Go Up
Jump to: