Tracker
An ESP32-based GPS tracker that collects location data from NEO-6M GPS module and publishes it via MQTT. The tracker uses a SIM800L module for GPRS connectivity and ArduinoJson library to manage JSON data.
Install / Use
/learn @daGiardini/TrackerREADME
GPS Tracker with SIM800L and NEO-6M
This Arduino sketch allows you to track GPS coordinates using an ESP32 board, SIM800L GSM module, and NEO-6M GPS module. The GPS coordinates are sent to an MQTT broker for further processing or visualization.
Prerequisites
To use this sketch, you will need the following hardware components:
- ESP32 board
- SIM800L GSM module
- NEO-6M GPS module
Make sure you have the necessary libraries installed:
Configuration
Before uploading the sketch, you may need to modify the following settings:
-
GPRS credentials: Set the correct Access Point Name (APN), GPRS username, and password for your GSM network provider.
-
MQTT broker details: Set the server address (mqtt_server) and port (mqtt_port) for your MQTT broker. Also, update the
sensor1_topicto your desired topic name. -
Serial port settings: If your ESP32 is connected to a different serial port than the default pins (16 and 17), update the
SIM800_RXandSIM800_TXdefinitions accordingly.
