Module is SIM800L. Power supply is 3.7v using a step down buck converter. I have connected SIM's TX to Arduino's D8 - Arduino receives on D8, SIM's RX to Arduino's D7 - Arduino sends through D7. There was garbled output in Serial monitor. Something along the lines of:
ÿÿÿ ÿ ÿÿÿÿÿÿÿ ââââ.
The Baud rate was 9600, but I tried different baud rates also.
Below is the sketch
#include <SoftwareSerial.h>
//SIM800 TX is connected to Arduino D8
#define SIM800_TX_PIN 8`
//SIM800 RX is connected to Arduino D7
#define SIM800_RX_PIN 7`
//Create software serial object to communicate with SIM800
SoftwareSerial serialSIM800(SIM800_TX_PIN,SIM800_RX_PIN);
void setup() {
//Begin serial comunication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
while(!Serial);
//Being serial communication witj Arduino and SIM800
serialSIM800.begin(9600);
delay(1000);
Serial.println("Setup Complete!");
}
void loop() {
//Read SIM800 output (if available) and print it in Arduino IDE Serial`Monitor
if(serialSIM800.available()){
Serial.write(serialSIM800.read());
}
//Read Arduino IDE Serial Monitor inputs (if available) and send them to SIM800
if(Serial.available()){
serialSIM800.write(Serial.read());
}
}
What should be the problem ?