This project demonstrates how to create a GPS tracker using the ESP32/ESP8266 module and send the current location via email. When the user presses a button, the program retrieves the current location from the GPS module and creates a Google Maps URL for it. It then connects to a Wi-Fi network and sends the location to a specified recipient via email.
- Retrieves GPS location and creates a Google Maps URL
- Connects to a Wi-Fi network
- Sends location via email using the SMTP protocol
- ESP32 WROOM
- GPS NEO-6M
- Button
- wires and breadboard
- Clone or download the repository.
- Open the Arduino IDE and install the required libraries (WiFi, ESP_Mail_Client, TinyGPSPlus).
- Connect the hardware components as described in the wiring diagram.
- Configure the Wi-Fi and email settings in the code.
- Upload the code to the ESP8266 module.
- Press the button to send the current location via email.
ESP32 | GPS |
---|---|
3V3 | VCC |
GND | GND |
RX | TX |
TX | RX |
- No blinking – it is searching for satellites.
- Blink every 1s – Position Fix is found (the module can see enough satellites).