GPS vehicle tracker with anti-theft engine cut

Two-wheeler theft is one of the most common crimes in Indian cities, and fleet owners want to know where their vans are. A tracker that reports location over 4G, alerts on movement when parked and can stop the engine helps both.

ESP32Major projectECE, CSE, EIE
ESP32GPSMPU6054Gtilt 26°Featured
Parts
₹3,320
Build
14 weeks
Board
ESP32
Objectives
5
Demonstrate the engine cut on a model only. In a real vehicle, cutting the engine while moving is dangerous and needs certified equipment.

Block diagram

Inputs
  • GPS
    GPS moduleGives position and speed
  • MPU605
    MPU6050Senses movement while parked
Controller
  • ESP32
    ESP32Runs the tracker logic
Power
  • 12
    12 V to 5 V supplyRuns from the vehicle battery
Outputs
  • 4G
    4G modemSends location to a server and SMS
  • ON
    RelayCuts the engine in the model
  • CLOUD
    Cloud dashboardStores readings, plots trends and sends alerts+

Objectives

  1. To report location every 30 s while moving over 4G to a web map.
  2. To send an SMS alert when the parked vehicle moves.
  3. To stop the engine in the model on an SMS command, only when speed is below 5 km/h.
  4. To measure location error against a phone GPS on a 5 km route.
  5. To publish readings over MQTT and show them on a live dashboard with threshold alerts.

Parts and specifications

Total about ₹3,320 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Data use

One position (about 60 bytes with HTTPS headers about 600 bytes) every 30 s for 4 hours of driving a day ≈ 290 KB a day, about 9 MB a month.

Distance between fixes

Haversine: d = 2R × asin(√(sin²(Δφ/2) + cosφ1 cosφ2 sin²(Δλ/2))), R = 6371 km. Sum it for the trip distance.

Parked current

ESP32 light sleep, GPS off, modem in sleep ≈ 15 mA from 12 V through the buck. A 35 Ah bike battery loses about 0.36 Ah a day, so it lasts weeks.

Pin map

SignalPin or connection
GPS TX → RX1GPIO 4
A7670C TX/RX / PWRKEYGPIO 16 / 17 / 5
MPU6050 SDA / SCL / INTGPIO 21 / 22 / 19
Ignition relayGPIO 26
Power12 V → LM2596 4.0 V → modem; LM2596 5 V → ESP32 VIN

Firmware outline

  1. On ignition (or movement) power the GPS and read NMEA RMC sentences for position, speed and time.
  2. Every 30 s while moving, POST JSON to the server over 4G (AT+HTTPPARA / AT+HTTPACTION).
  3. When parked, arm the MPU6050 motion interrupt; on movement without ignition send an SMS alert.
  4. Parse incoming SMS; 'STOP <PIN>' sets the relay only if speed < 5 km/h.
  5. Buffer positions in flash when there is no network and send them later.

Test plan

TestExpected result
5 km drive with a phone recording tooTrack error mostly under 10 m
Model moved while parkedSMS within 30 s
'STOP 1234' while movingIgnored until speed < 5 km/h
Tunnel or no networkPoints sent later, none lost

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 5.

1. What is an NMEA sentence?
2. Why only cut the engine at low speed?
3. Why 4G and not 2G?
4. How do you protect the electronics from vehicle supply spikes?
5. What does AIS 140 require?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • u-blox NEO-6 datasheet
  • SIMCom A7670 series AT command manual
  • AIS 140 (vehicle tracking for public transport)

About this project

How much does the gps vehicle tracker with anti-theft engine cut project cost?

About ₹3,320 for the parts in the base list: ESP32 DevKit V1, NEO-6M GPS module, MPU6050 accelerometer and gyro, A7670C 4G LTE module, 5 V relay module (1 channel), LM2596 buck converter × 2, 18650 backup cell, TP4056 charger with protection, 12 V adapter (stands in for the vehicle battery).

How long does it take?

About 12 weeks for the base project, built on an ESP32. Each upgrade adds time.

Which branches is it suitable for?

Electronics and Communication, Computer Science / IT (IoT, AI), Instrumentation, as a major project.

Which pins and design calculations does it use?

GPS TX → RX1 on GPIO 4; A7670C TX/RX / PWRKEY on GPIO 16 / 17 / 5; MPU6050 SDA / SCL / INT on GPIO 21 / 22 / 19. Worked calculations on this page: data use, distance between fixes, parked current.

How do I test it?

5 km drive with a phone recording too: Track error mostly under 10 m. Model moved while parked: SMS within 30 s. 'STOP 1234' while moving: Ignored until speed < 5 km/h. Tunnel or no network: Points sent later, none lost.

What are the objectives?

To report location every 30 s while moving over 4G to a web map. To send an SMS alert when the parked vehicle moves. To stop the engine in the model on an SMS command, only when speed is below 5 km/h. To measure location error against a phone GPS on a 5 km route.