Interact with neo-6mv2 GPS module for RPI
Here you have a description about the NMEA messages
And here more info about all the $GPxxx sentences.
Clone the repo on your rpi(3) and then:
$ make
$ ./rpi_neo-6mv2_reader [serial]
e.g: $ ./rpi_neo-6mv2_reader /dev/ttyAMA0
At src/neo-6mv2_reader.c file the code is commented in order to have an example for usage.
- Raspberry Pi 3 Model B Rev 1.2 armv7l Linux6.1.21-v7+ ARMv7 rev 4
- Raspbian GNU/Linux 11 (bullseye)
- Raspbian GNU/Linux 12 (bookworm)
- Edit
/boot/config.txt
and add:enable_uart=1
- To disable bluetooth; also at
/boot/config.txt
add:dtoverlay=disable-bt
- To disable the console for serial; Edit
/boot/cmdline.txt
and removeconsole=serial0,115200
and also:
sudo systemctl stop [email protected]
sudo systemctl disable [email protected]
- Reboot: $
sudo reboot
NEO-6MV2 | RPi |
---|---|
Vcc 3.3v | 1 3v3 Power |
Rx | 8 GPIO 14 TxD |
Tx | 10 GPIO 15 RxD |
GND | 6 GND |
Note: Rx conncetion between neo-6vm2 and RPi's pin 8 (GPIO 14 TxD) is not need it.
- Not working at Raspberry Pi Zero W Rev 1.1 (Raspbian GNU/Linux 11 (bullseye) & Raspbian GNU/Linux 12 (bookworm)) armv6l Linux 6.1.21+ ARMv6-compatible rev 7 (v6l) (but hey! maybe it's just something going weird with my rpiZW ;)
Feedback from usage and contributions are very welcome. Also if you like it, please leave a ⭐ I would appreciate it ;)
<3 & Hack the Planet!