Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Real-Time GPS Location Tracker with ESP8266 & Firebase

A lightweight and accurate real-time location tracking system using U-Blox Neo 6M GPS module, ESP8266 NodeMCU, and Firebase Realtime Database. It continuously pushes live latitude and longitude data to Firebaseβ€”ideal for location-aware IoT projects, asset tracking, or DIY geofencing experiments.


πŸ›°οΈ Hardware Required

Component Quantity
ESP8266 NodeMCU 1
U-Blox Neo 6M GPS 1
Jumper Wires as needed
5V Power Supply 1

πŸ”Œ Circuit Connections

GPS Module Pin ESP8266 Pin
VCC 3V3 or Vin
GND GND
TX D7 (GPIO13)
RX D8 (GPIO15)

⚠️ Note: The GPS module communicates via serial. SoftwareSerial is used to avoid interfering with ESP8266’s default serial port.


☁️ Firebase Setup

  1. Go to Firebase Console
  2. Create a new project
  3. Navigate to Realtime Database > Create Database
  4. In "Rules", allow read/write temporarily:
    {
      "rules": {
        ".read": true,
        ".write": true
      }
    }
    
  5. Grab your:
  • Database URL

  • Secret / API Key (if needed for authentication)

  1. Insert these into your .ino file where required

πŸ“‘ How It Works

  • The Neo 6M GPS module locks satellite coordinates.

  • The ESP8266 reads the GPS data via SoftwareSerial.

  • Latitude and Longitude are parsed from the NMEA sentence.

  • The data is sent to Firebase in real-time.


πŸ“‚ Project Structure

esp8266-gps-tracker/
β”œβ”€β”€ gps_sensor_esp8266_firebase.ino
β”œβ”€β”€ README.md
└── (optional) circuit-diagram.png

πŸ“± Optional Enhancements

  • 🌍 Generate a Google Maps link with the coordinates

  • πŸ—ΊοΈ Visualize data using a web dashboard with Leaflet.js or Google Maps API

  • 🧭 Add direction/speed tracking from GPS sentences


πŸ€– Built By

Made with πŸ’‘ by @TMRatul49
πŸ“§ Contact: tmmehrabhasan@gmail.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages