-
Notifications
You must be signed in to change notification settings - Fork 0
GPS
Eliot Hall edited this page Oct 19, 2024
·
9 revisions
The gps connects to the computer over a serial connection.
Plug in the gps module. Open Web Serial and connect to it the gps module at a baud rate of 57600.
If everything is good, you will see a text spam that looks like this.
$GAGSV,1,1,02,03,79,346,20,08,28,312,34,7*7A
$GAGSV,1,1,03,02,40,207,,24,28,045,,25,77,095,,0*42
$GBGSV,1,1,00,0*77
$GQGSV,1,1,00,0*64
$GNGLL,3720.23679,N,12152.93810,W,234352.00,A,A*6D
$GNRMC,234353.00,A,3720.23627,N,12152.93749,W,2.133,133.32,121024,,,A,V*1E
$GNVTG,133.32,T,,M,2.133,N,3.950,K,A*2F
$GNGGA,234353.00,3720.23627,N,12152.93749,W,1,07,3.98,-1.1,M,-29.9,M,,*56
$GNGSA,A,3,07,20,30,,,,,,,,,,5.32,3.98,3.53,1*04
$GNGSA,A,3,80,71,72,,,,,,,,,,5.32,3.98,3.53,2*0A
$GNGSA,A,3,08,,,,,,,,,,,,5.32,3.98,3.53,3*08
$GNGSA,A,3,,,,,,,,,,,,,5.32,3.98,3.53,4*07
$GNGSA,A,3,,,,,,,,,,,,,5.32,3.98,3.53,5*06
$GPGSV,2,1,07,07,66,325,16,09,76,117,13,14,18,215,16,16,14,042,19,1*68
$GPGSV,2,2,07,20,22,303,37,27,24,070,10,30,41,284,25,1*5F
$GPGSV,1,1,03,04,41,123,,05,05,327,,08,31,107,,0*5D
This is the NMEA protocol explained here
These are the different standard messages being sent over the NMEA protocol
Among these the Recommended Minimum Data (RMC) is a relevant format.
$GNRMC,234353.00,A,3720.23627,N,12152.93749,W,2.133,133.32,121024,,,A,V*1E
$ | GN | RMC | ,234353.00 | ,A | ,3720.23627 | ,N | ,12152.93749 | ,W | ,2.133 | ,133.32 | ,121024 | ... |
---|---|---|---|---|---|---|---|---|---|---|---|---|
start char | talker | message type | UTC time | status | latitude | N/S | longitude | E/W | speed(knots) | heading(I think) | ddmmyy | ... |
Key points we can get from the gps module
- coordinates
- heading
- speed
- date
- time (UTC)