Read only latitude and longitude of GPS sensor connected to serial port of FiPy
-
Hello,
How to ready only the latitude and longitude of NEO-6M GPS sensor connected to the serial port of the FiPy (P4,P3) pins. Right now we have connected NEO-6M GPS sensor to FiPy (P4,P3) pins and directly reading the uart pin using uart.readall(), which is reading the whole NMEA data of GPS sensor which we don't want. We need only to read latitude and longitude of NEO-6M GPS sensor.
How to do it?? Please share the code of the same.
Thank You
-
Just parse the NMEA line and extract the information you need.
There are also NMEA parser available for MicroPython if you don't want to do it yourself. For example: https://github.com/inmcm/micropyGPS -
@sympatron
Hello Sir,
We are unable to add micropyGPS libraries in fipy board.
How to add these libraries in Fipy board and how to read and write the Latitude and Longitude of the GPS in Fipy boardThank You
-
@archana-kadam Just add
micropyGPS.pyto your project folder and addimport micropyGPStomain.py. If you have trouble uploading the file you should read the documentation.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login