Hello everyone!
I am new with Raspberry Pi and GPS.
I need some help that how can I save the data of the GPS sensor to .txt file on the Raspberry Pi using Python code?
Help will be appreciated.
Thanks
I have already solved that issue, which I had in the beginning. What I want now is to save the data (Lat and Lon) of the GPS.Mortimer wrote: ↑Wed Apr 17, 2019 9:35 amIt probably relates to the OP's first port to the forum...
viewtopic.php?f=32&t=234357&p=1433628#p1433628
They are probably still using an Adafruit Ultimate GPS Breakout.
I assume by this question they have managed to get the GPS board working, if so it would have been nice to mention this in the other topic.
Yes I am using the GPS sensor of Adafruit. It is connected to the Raspberry Pi through /dev/ttyS0. I want to save the Latitude and Longitude of the gps to a .txt file for further processing.
Thanks for the sincere advicebensimmo wrote: ↑Wed Apr 17, 2019 10:01 amLearn a bit of Python3 and a good way to do this and work out what you need to do is work your way through this project tutorial.
https://projects.raspberrypi.org/en/pro ... ata-logger
It's a datalogger (which is what you are doing ) but for the SenseHAT. Best part is you don't need a SenseHAT and you'll learn some techniques
Then write or adapt for what you need with the GPS.
First you need to parse the raw GPS data into longitude and latitude values. There are some NMEA parsing libraries you can use for that.( maybe even some examples from adafruit how to use them too )Actually, I wants to save every gps (latitude and longitude)
How do you plan to plot it ?I wants to save it to .txt file which I can further plot on graph
Can you please specify it with a link or some other further detail?First you need to parse the raw GPS data into longitude and latitude values. There are some NMEA parsing libraries you can use for that.( maybe even some examples from adafruit how to use them too )
How do you plan to plot it ?I wants to save it to .txt file which I can further plot on graph