GETTING GPS LOCATION USING NEO-6M GPS MODULE

Опубликовано: 20 Апрель 2026
на канале: Hayducate
13,092
200

This tutorial introduces you how to get GPS location using stm32f4 and NEO-6M GPS module.
The Neo-6m GPS uses UART communication.
connect RX-(GPS)-TX(STM32F4)
connect TX(GPS)-RX(STM32F4)
The module will start receiving data when the red led starts blinking.
when extracting data, we want the sentence that starts with &GPRMC

""$GPRMC (Global Positioning Recommended Minimum Coordinates) provides the time, date, latitude, longitude, altitude and estimated velocity""

Sentence example

$GPRMC, 123519, A, 4807.038, N, 01131.000, E,022.4, 084.4, 230394, 003.1, W*6A
$ Every NMEA sentence starts with $ character.
GPRMC Global Positioning Recommended Minimum Coordinates
123519 Current time in UTC – 12:35:19
A Status A=active or V=Void.
4807.038,N Latitude 48 deg 07.038′ N
01131.000,E Longitude 11 deg 31.000′ E
022.4 Speed over the ground in knots
084.4 Track angle in degrees True
220318 Current Date – 22rd of March 2018
003.1,W Magnetic Variation
*6A The checksum data, always begins with *