Hi, everyone)
I had problems using the SIM800L.h library. I connected the module correctly. The existing example works well.
#include <Sim800l.h>
#include <SoftwareSerial.h>
Sim800l Sim800l;
char text[]="hello";
char number[]="xxxxxxxxxxxx";
bool s;
void setup(){
Sim800l.begin();
s=Sim800l.sendSms(number,text);
}
void loop(){}
But in my project 2 more modules need UART. Here are the parts of the code that are important.
#include <OneWire.h>
#include <SoftwareSerial.h>
#include "VoiceRecognitionV3.h"
#include <DFPlayer_Mini_Mp3.h>
#include <Sim800l.h>
Sim800l Sim800l;
VR myVR(2,3);
char text[]="Hi";
char number[]="xxxxxxxxxx";
bool s;
void setup()
{
Sim800l.begin();
myVR.begin(9600);
Serial.begin (9600);
s=Sim800l.sendSms(number,text);
}
Without GSM everything works because the first module is connected to 0 1 pins by default. And the 2nd module is initialized to 2 and 3 pins.
I think the problem is in UART, but I can't solve it.
Maybe you can help me?
Thank you very much.