Template: L76K GPS Module Raspberry Pi Pico
Working With Raspberry Pi Pico
Hardware Connection
Module | Raspberry Pi Pico |
---|---|
VCC | 5V |
GND | GND |
TX | GP1 |
RX | GP0 |
PPS | NC |
Environment Building
We test the demo with Thonny in this tutorial, click to download the related IDE and open Thonny.
- Please refer to the official document to set up the Python environment. Choose a Raspberry Pi Pico device in Tools->Options->Interprete. As shown below:
Download Demo
1. Click to download the sample demo.
2. Unzip the sample demo.
3. Open Thonny, first confirm that you have connected to Pico, then open the decompressed demo path in the upper left corner, right-click on the Pico folder, and select upload, as shown in the figure:
How To Use the Demo
1. Open Thonny IDE, choose the Pico directory, double-click the coordinate_convert.py file, and then run the demo, as shown below:
2. Under sunny conditions, the L76K will obtain the positioning information about 30 seconds after it is powered on, as shown in the following figure when running the demo.
3. The user can copy the positioning information displayed in the terminal in Thonny, and use Google Map and Baidu Map to mark the coordinates.