Interfacing GSm Sim900D with Arduino mega 2560

Status
Not open for further replies.

sogomogo

Newbie level 2
Joined
Sep 9, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
15
hello,
I am having trouble testing GSM 900D with arduino mega2560...GSM is not responding..i am not sure whether is program is incorrect or my connections are wrong..program is simple testing by sending AT command to GSM and waiting for response "ok" on serial monitor..here is program..

void setup(){
Serial.begin(9600);
}

void loop(){

Serial.write("AT");
delay(1000);

if (Serial.available())
{
char b=Serial.read();
Serial.print(b);

}

}


my connections are..
Tx from GSM connected to Rx0 from arduino.
Rx from GSM connected to Tx0 from arduino
GND from GSM connected to GND from arduino

any help will be useful..thanks
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…