The AI Thinker GP-02 is a GNSS (GPS) module, designed to work with satellite navigation systems to provide:
Real-time location data (latitude, longitude)
Speed
Altitude
Time (UTC)
and more
It supports multiple satellite constellations:
GPS (USA)
GLONASS (Russia)
Galileo (EU)
BeiDou (China)
It communicates using UART (Serial) and is ideal for ESP32, Arduino, STM32, etc.
| Feature | Detail |
|---|---|
| Communication | UART (TX/RX) |
| Protocol | NMEA0183 |
| Baud Rate | 9600 bps (default) |
| Voltage | 3.3V logic and power |
| Satellite support | GPS, GLONASS, BDS, Galileo |
| Accuracy | ~2.5m |
| Update Rate | 1Hz (default), can be increased |
| GP-02 Pin | Function |
|---|---|
| VCC | 3.3V |
| GND | Ground |
| TX | Serial TX (data from GPS to ESP32) |
| RX | Serial RX (data from ESP32 to GPS) |
π§ Note: You only need TX → RX and VCC/GND for location data reading.
Use SoftwareSerial alternative like HardwareSerial in ESP32:
| GP-02 | ESP32 |
|---|---|
| VCC | 3.3V |
| GND | GND |
| TX | GPIO 16 (RX of ESP32) |
| RX | GPIO 17 (TX of ESP32) |
You can use any available hardware UART (ESP32 has 3 UARTs: Serial0, Serial1, Serial2)
We’ll use the TinyGPSPlus library to parse GPS data:
Go to Arduino IDE:
Sketch > Include Library > Manage Libraries
Install TinyGPSPlus
| Project | Description |
|---|---|
| π GPS Tracker | Real-time location tracking via GSM/LoRa/WiFi |
| π΄ Bike Speedometer | Get speed, distance, and log path |
| π°οΈ IoT Location Logger | Store location logs in SD card or send to server |
| π Geo-fencing | Trigger actions based on location boundaries |
| π§ Navigation Device | Portable handheld GPS tool with OLED display |
Must be outdoors or near a window for best signal.
Cold start may take 30–60 seconds for the first lock.
Use a small GPS patch antenna for better reception if available.
HOW TO OPERATE