ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp
Iam getting this error
This is the board iam using
This is the code iam using
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "call.h"
#include <DHT.h>
#include "sms.h"SMSGSM sms;
#define DHTPIN 7
#define DHTTYPE DHT11CallGSM call;
boolean started=false;
char sms_text[160];DHT dht(DHTPIN, DHTTYPE);
void setup()
{
dht.begin();
Serial.begin(9600);if (gsm.begin(9600))
{
Serial.println("\nstatus=READY");
started=true;
}
else
Serial.println("\nstatus=IDLE");
}void loop()
{
float humidity, temperature;
String smsText ="";switch (call.CallStatus())
{
case CALL_NONE: // Nothing is happeningbreak;
case CALL_INCOM_VOICE : // Yes! Someone is calling us
Serial.println("RECEIVING CALL");
call.HangUp();
delay(2000);
humidity = dht.readHumidity();
temperature = dht.readTemperature();
delay(2000);
smsText = "Temperature: "+String(temperature,1)+"C Humidity: "+String(humidity,1)+"%";
smsText.toCharArray(sms_text,160);
//Serial.println(smsText);
sms.SendSMS("+91mynumber",sms_text);
break;case CALL_COMM_LINE_BUSY: // In this case the call would be established
Serial.println("TALKING. Line busy.");
break;
}
delay(1000);
}
This is the code iam using
//De-comment this two lines below if you have the
//second version og GSM GPRS Shield
#define GSM_TXPIN 2
#define GSM_RXPIN 3
Above is the code from GSM.cpp file
i think iam making some error
iam not connecting the tx and rx connector pins correctly i think any input.
iam new to this adruidno
here the video of what iam trying to make it.