I love exploring and when it comes to technology and bit of rocket science, my interest goes towards SpaceX by Elon musk. There dragon capsule entered earth atmosphere today after successful test mission to ISS. Please enjoy the video.
If you want to plot this in google maps or any other platform you need to convert this data to decimal degrees, which will be easy to point the location rather than using raw data. In order to do that please follow these steps and write your own math function for this. For my purpose i am using my own function to handle the conversions.
First lets start with latitude. Get rid of the zero first.
rawdate = 412.75469 in this case 4 is the degrees which is in blue color and minutes in green
In previous post you have seen the data format which Pi receives from GPS. Its in bytes and here is some raw data.
Note: In order to get GPS position data i have placed the unit out of my lab where it can see clear sky.
Its been a while that haven't publish anything. I have been using Raspberry Pi for long time since it was released and the old pi hangs around doing nothing. So i thought of hooking up an GPS to raspberry pi so that viewers out there who has interest in electronics and programming will know how it can be done.
Note: Raspberry Pi inputs or outputs supports 3.3v so the RX and TX pins also support 3.3v. So be careful about handling the voltages with the pi and devices interfacing.
I have a ublox GPS but it supports 5v so i need to do level conversion. If you want to know about level conversion please checkout my YouTube channel or the old blog posts.
First have to disable pi console in order to use the UART. If not it will get terminated. For more information Google for disabling console. import serial gpsport = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=0.2) while True: rxgps = gpsport.readline() if len(rxgps) > 10: print(rxgps)
The above python sc…