The GSM module blinks every 3 second and when I dial to the SIM on the GSM it rings. But when I try to send I SMS it won't work. It does not replay to the AT commands, I have read every posts on google and other web sites but it won't solve my problems.
Help please
Please show your code and connection diagram
#include <SoftwareSerial.h>
SoftwareSerial SIM900A(7,8); // RX | TX
// Connect the SIM900A TX to Arduino pin 7 RX.
// Connect the SIM900A RX to Arduino pin 8 TX.
char c = ' ';
void setup()
{
// start th serial communication with the host computer
Serial.begin(9600);
delay(1000);
while(!Serial);
Serial.println("Arduino with SIM900A is ready");
// start communication with the SIM900A in 9600
SIM900A.begin(9600);
Serial.println("SIM900A started at 9600");
delay(1000);
Serial.println("Setup Complete! SIM900A is Ready!");
}
void loop()
{
// Keep reading from SIM800 and send to Arduino Serial Monitor
if (SIM900A.available())
{ c = SIM900A.read();
Serial.write(c);}
// Keep reading from Arduino Serial Monitor and send to SIM900A
if (Serial.available())
{ c = Serial.read();
SIM900A.write(c);
}
}
I have connected the rx of the GSM to tx of the Arduino and vice versa. And I have supplied the GSM with a charger that have 5V and 2.1 A output. I am really confident about the connection.
Did you mean the pin, labelled as "TX" on Arduino board?
What is your Arduino?
I have an Arduino UNO
I have connected the tx of the GSM to pin 7 of the Arduino.
I don't see any remarkable errors in your code, it should works fine.
Try to swap RX and TX pins on GSM module, it is not uncommon when it labelled incorrect.
ok, but will it not make it a short circuit and damage my module?
To be honest, I am not sure.
You can try by adding a 200 -300 Ohm resisitors between modules
OK I will try that
Txs
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.