Arduino-Profile-Examples icon indicating copy to clipboard operation
Arduino-Profile-Examples copied to clipboard

Unable to recive gps data in arduino ide after connecting lora-gps shield

Open cmporeddy opened this issue 4 years ago • 1 comments

Unable to receive GPS data in Arduino ide after connecting LorR-GPS shield GPS data that I'm receiving is something wrong and I found no tutorial that has proper instructions. Everyone that worked with Dragino GPS shield having the same problem. How can I solve this, Is there any official tutorial to guide how to configure the LoRa GPS shield.

NOTE: I removed the jumpers, connected "RX-4" & "TX-3".

Please someone help me fix this issue.

GPS DATA THAT I RECEIVE IS SOMETHING LOOKS LIKE THIS:

{
  "ALARM_status": false,
  "BatV": 0,
  "FW": 150,
  "LON": "OFF",
  "Latitude": -2137.614208,
  "Longitude": -1768.423424,
  "MD": "Disable",
  "Pitch": 0,
  "Roll": 0
}

cmporeddy avatar Mar 27 '21 15:03 cmporeddy

Hi team, I just connected up my LORA-GPS shield as per:

https://wiki.dragino.com/index.php?title=Lora/GPS_Shield

Initially it did not work. I found the problem was in the tutorial, as per the attached picture:

image

Then using the following code:

https://github.com/dragino/Arduino-Profile-Examples/blob/master/libraries/Dragino/examples/GPS/tinygps_example/tinygps_example.ino

In the tutorial they have the pins around the wrong way based on this:

image

So to fix it: swap the wires around either in the code, or to the board.

i.e, from this:

SoftwareSerial ss(3, 4); // Arduino TX, RX ,

to this:

SoftwareSerial ss(4, 3); // Arduino TX, RX ,

Hopefully this helps.

De-Man avatar Jan 29 '22 04:01 De-Man