Hi All,
Im attempting to run 2 UART GPS modules. What Im hoping to achieve is the first GPS (gpsr) on pins 6,5 sends serial data. Second GPS (gpsb) on pins 4,3 also sends serial data. TinyGPSplus libray interprets the 2 sets of serial data to determine distance and cardinals between the 2 sets of data and this is displayed on the LCD via LiquidCrystal_I2C library. No error on compiling. When I upload the code the void setup displays on the LCD then hangs. The serial monitor returns
WARNING: No GPS data. Check wiring.
The ventual aim is to replace the hardwired first GPS with a LoRa module so that the 2 GPS modules can be several hundred meters apart
My code is
Thanks
GRI2A
This is part of a longer term plan. If I can get the code working on a UNO or NANO, I will be bootloading to ATMEGA328P chips, creating a PCB (add the LCD, power regulator etc) so that it can be used by many people that share my hobby of amateur rocketry. A rocket that goes up 3000m in a 20kmh wind, can be difficult to find and retrieve without a GPS tracker, hence the 2 GPS modules, one in the rocket and one in the base (ground) station
The more I look, the more people I find with this isssue. As I have overcome the problem, I am raising this one last post.
I re-wrote the sketch for a MEGA that has multiple hardware RX/TX ports as mentioned above BUT, I persisted with the simultaneous serial port issue and found a solution for UNO, NANO style boards.
It involves using SoftwareSerial Library to control one set of I/O ports AND AltSoftSerial to control the second one. Take special not of lines 2 & 3 and 8 & 9 to overcome the .simultaneous issue with SoftwareSerial