Difference between revisions of "Template:L76X GPS HAT Jetson Nano"
From Waveshare Wiki
m (Text replacement - "https://www.waveshare.com/w/upload/" to "https://files.waveshare.com/upload/") |
|||
Line 23: | Line 23: | ||
*Download the program. | *Download the program. | ||
<pre> | <pre> | ||
− | wget https:// | + | wget https://files.waveshare.com/upload/f/f4/L76X_GPS_HAT_Code.zip |
unzip L76X_GPS_HAT_Code.zip | unzip L76X_GPS_HAT_Code.zip | ||
sudo chmod 777 -R L76X_GPS_HAT_Code | sudo chmod 777 -R L76X_GPS_HAT_Code |
Revision as of 06:43, 2 September 2023
Working with Jetson Nano
Hardware Connection
- Insert the jumper cap in the B area.
- Plug the L76x GPS HAT directly on the 40PIN of the Jetson Nano.
Install Library
Using the terminal, install the library with the following command:
sudo pip3 install pynmeagps sudo pip3 install gps3 sudo apt-get install python3-serial sudo apt-get install gpsd gpsd-clients python3-gps
Test with Minicom
- Install minicom.
sudo apt-get install minicom sudo minicom -D /dev/ttyTHS1 -b 9600
Exit: Ctrl+A and then press X, Yes, and Enter.
Example Program
- Download the program.
wget https://files.waveshare.com/upload/f/f4/L76X_GPS_HAT_Code.zip unzip L76X_GPS_HAT_Code.zip sudo chmod 777 -R L76X_GPS_HAT_Code cd L76X_GPS_HAT_Code/Jetson\ nano/
- Test the program.
sudo python3 main.py
- Expecting result:
It takes 35 seconds to wait for the module to be positioned for the first time.
The front is the raw data output by the module.
Time is the time output by the L76X.
You can go to Baidu Coordinates System for the latitude and longitude position of the program that needs to be replaced, for example, 116.307629, 40.058359 should be changed to: 40.058359, 116.307629 (Baidu Coordinates System puts the longitude first).