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

ESP32-Based GPS Tracker with Vibration Sensor and LCD Display

View and Edit Project In Cirkit DesignerImage of ESP32-Based GPS Tracker with Vibration Sensor and LCD Display

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that integrates an ESP32 microcontroller with various sensors and output devices. The circuit includes a GPS module, a vibration sensor, an LCD display, LEDs, a piezo buzzer, and a power source. The ESP32 is programmed to read data from the GPS module and display it on the LCD.

Component List

  1. ESP32 (30 pin)

    • Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
  2. SW-420 Vibration Sensor

    • Description: A sensor that detects vibrations and outputs a digital signal.
    • Pins: vcc, Ground, Digital output
  3. 16X2 LCD

    • Description: A 16x2 character LCD display.
    • Pins: VSS, VDD, V0, RS, RW, E, D1, D0, D2, D3, D4, D6, D5, D7, A, K
  4. LCM1602 IIC

    • Description: An I2C interface for the 16x2 LCD display.
    • Pins: GND, VCC, SDA, SCL, D6, D7, A, K, VSS, VDD, V0, RS, D2, D3, D4, D5, RW, E, D0, D1, LED_A, LED_B
  5. GPS NEO 6M

    • Description: A GPS module for receiving location data.
    • Pins: VCC, RX, TX, GND
  6. Piezo Buzzer

    • Description: A buzzer that produces sound when a voltage is applied.
    • Pins: pin 1, pin 2
  7. Resistor (100 Ohms)

    • Description: A resistor with a resistance of 100 Ohms.
    • Pins: pin1, pin2
  8. LED: Two Pin (blue)

    • Description: A blue LED.
    • Pins: cathode, anode
  9. LED: Two Pin (red)

    • Description: A red LED.
    • Pins: cathode, anode
  10. 3.7v LiPo

    • Description: A 3.7V Lithium Polymer battery.
    • Pins: +Ve, GND

Wiring Details

ESP32 (30 pin)

SW-420 Vibration Sensor

16X2 LCD

LCM1602 IIC

GPS NEO 6M

Piezo Buzzer

Resistor (100 Ohms)

Resistor (100 Ohms)

LED: Two Pin (blue)

LED: Two Pin (red)

3.7v LiPo

Code Documentation

ESP32 Code

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

#define GPS_BAUDRATE 9600  // The default baudrate of NEO-6M is 9600

TinyGPSPlus gps;  // the TinyGPS++ object

void setup() {
  Serial.begin(9600);
  Serial2.begin(GPS_BAUDRATE); // serial2 for GPS UART

  Serial.println(F("ESP32 -