How to use GPS module with SIM800L Module?
-
I can't find the document. help me please.
-
Change the pins for the GPS module as follows (by cutting the existing bridge and re-soldering). Only downside is, that the Serial monitor/output is not available anymore
- RXD: 1
- TXD: 3
- PPS (not connected)
Now, you can use the GPS module on the serial port 0:
// The TinyGPS++ object TinyGPSPlus gps; // The serial connection to the GPS device HardwareSerial gps_serial(0); gps_serial(GPSBaud); // ... (within a loop/smart delay) while (gps_serial.available()) gps.encode(gps_serial.read());
For the SIM800L you can use the regular configuration without changing anything:
... #define SerialAT Serial2 TinyGsm modem(SerialAT); TinyGsmClient client(modem); ...
-
Thx sir.