Hi I am very new to this and have been struggling for a while, I have scoured google and everything is far more complicated than I require.
Basically I need Pin7 when High to dial a predefined number on the Sim900.
I know the link works between the Arduino and Sim900
I have found an Instructable that almost does what I need except it dials out constantly, I have no Idea how to add the pin7 info and get rid of the dial constantly.
Any help greatly appreciated
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10); // RX, TX
void setup()
{
Serial.begin(9600);
}
void loop() // run over and over
{
Serial.println("Calling through GSM Modem");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
delay(2000);
mySerial.println("ATDxxxxxxxxxx;"); // ATDxxxxxxxxxx; -- watch out here for semicolon at the end!!
Serial.println("Called ATDxxxxxxxxxx");
// print response over serial port
if (mySerial.available())
Serial.write(mySerial.read());
}