I am using Arduino Uno and trying to connect to a SIM900A GSM module using serial communication. I am not receiving anything from the module at all. The module powers on and has another LED flashing at 800ms
I have connected the following
5V from Arduino to 5V power supply input on GSM
GND from Arduino to GND power supply input on GSM
Pin 2 (Rx) from Arduino to Tx serial on GSM
Pin 3 (Tx) from Arduino to Rx serial on GSM
GND from Arduino to GND serial on GSM
Breakout-board schematic from this page.
I have tried both Arduino's built in serial comm and also software serial using pins 2 and 3.
Information about SIM900 can be found here.
The code that I am currently running, using software serial:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3);
const int baud = 9600;
void setup() {
mySerial.begin(baud);
Serial.begin(baud);
while (mySerial.available() < 0) {
mySerial.write("AT");
delay(2000);
}
}
void loop() {
if (mySerial.available() > 0) {
Serial.write(mySerial.read());
}
}
I have also tried different baud rates but still haven't received anything from the module at all.