Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Nano GPS Tracker with Wi-Fi and Battery Power

View and Edit Project In Cirkit DesignerImage of Arduino Nano GPS Tracker with Wi-Fi and Battery Power

Circuit Documentation

Summary

This circuit is a GPS tracker that utilizes an Arduino Nano, an ESP8266-01 WiFi module, a Neo 6M GPS module, a voltage regulator, and a Polymer Lithium Ion Battery. The Arduino Nano serves as the main microcontroller, interfacing with the GPS module to obtain location data and the WiFi module to transmit this data. The voltage regulator ensures that the components receive the correct voltage levels from the battery.

Component List

Arduino Nano

Wifi module ESP8266-01

Neo 6M GPS

Voltage Regulator

Polymer Lithium Ion Battery - 850mAh

Wiring Details

Arduino Nano

Wifi module ESP8266-01

Neo 6M GPS

Voltage Regulator

Polymer Lithium Ion Battery - 850mAh

Code Documentation

Arduino Nano Code

#include <TinyGPS++.h>
#include <SoftwareSerial.h>

TinyGPSPlus gps;
SoftwareSerial gpsSerial(4, 3);  // RX, TX

void setup() {
  Serial.begin(9600);
  gpsSerial.begin(9600);
  Serial.println("GPS Tracker Starting...");
}

void loop() {
  while (gpsSerial.available() > 0) {
    if (gps.encode(gpsSerial.read())) {
      if (gps.location.isValid()) {
        Serial.print("Latitude: ");
        Serial.println(gps.location.lat(), 6);
        Serial.print("Longitude: ");
        Serial.println(gps.location.lng(), 6);
      }
    }
  }
}

This code initializes the GPS module and reads the location data. If the location data is valid, it prints the latitude and longitude to the serial monitor. The TinyGPSPlus library is used to parse the GPS data, and SoftwareSerial is used to communicate with the GPS module. The GPS module is connected to pins 4 (RX) and 3 (TX) of the Arduino Nano.