Template: L76K GPS Module ESP322

From Waveshare Wiki
Jump to: navigation, search

ESP32

Hardware Connection

L76K GPS Module ESP32201.png

Module ESP32
VCC 5V
GND GND
TX P16
RX P17
PPS NC

Environment Building

Install ESP32 plug-in On Arduino IDE

1. Open the Arduino IDE, click on the file in the upper left corner, and select Preferences.
L76K GPS Module ESP32202.png
2. Add the following link in the additional development board manager URL, then click OK.

https://dl.espressif.com/dl/package_esp32_index.json

L76K GPS Module ESP32203.png
Note: If you already have the ESP8266 board URL, you can separate the URLs with commas like this:

https://dl.espressif.com/dl/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json

3. Download package and copy the packages file to the following path:

C:\Users\waveshare\AppData\Local\Arduino15

L76K GPS Module ESP32204.jpg
Note: Replace the username: waveshare with your own username.

How To Use the Demo

  • Download the demo and unzip it, use the configured Arduino IDE to open the L76X.ino file in the ESP32 directory, and wait for all the files to be loaded.
  • Use the data cable to connect the esp32 development board to the computer, and select the correct development board model and port number.
  • Here we take the ESP32-S chip development board as an example: Click in turn: Tools->Development Board->esp32->ESP32 Dev Module, and select the corresponding port number.
  • Click "Verify" in the upper left corner, wait for the verification to complete without error, and then click "Upload".
  • After the upload is complete, the demo runs automatically. Click: Tools->Serial Monitor in turn, and you can observe the running effect of the demo in the serial monitor window:

L76K GPS Module ESP32205.png
It takes 35 seconds for the module to be positioned for the first time. (It may be longer if the signal condition is not good). The front is the raw data output by the module. Time is the time output by L76X GPS Module. "Lat" and "Lon" are the output latitude and longitude and the directions of latitude and longitude.
B_Lat and B_Lon are the converted Baidu map coordinates, copy the coordinates to http://api.map.baidu.com/lbsapi/getpoint/, and you can see your location (the coordinate format is longitude Lat first, latitude Lon after, separated by commas in the middle).