Realtime Map With Vehicle GPS Tracker - Custom PCB ESP32

by sanjula nipun in Circuits > Arduino

90 Views, 2 Favorites, 0 Comments

Realtime Map With Vehicle GPS Tracker - Custom PCB ESP32

covergreen63ii.png

🚴 ESP32 GPS Tracker with SIM7600

Today I’m going to build a GPS tracking PCB using an ESP32 and a SIM7600 module. The main goal of this project is to track my bicycle in real time and view its location directly on Google Maps. πŸŒπŸ“

This device is designed to be multi purpose, so it can work from both:

  1. πŸ”‹ 12V power input
  2. πŸ”Œ USB Type-C power

The tracker will be able to:

  1. πŸ“‘ Send real time GPS location
  2. πŸ—ΊοΈ Store and display location history
  3. 🚲 Track where the bicycle goes and stops
  4. ☁️ Upload data to an online server for map viewing

For this project, I’m designing a custom PCB specially for the ESP32 and SIM7600 setup.

But if making a custom PCB feels difficult, you can still test everything easily using:

  1. an ESP32 development board
  2. and a SIM7600 Module module connected together.

That way, you can test the full tracking system before designing your own hardware. ⚑

Supplies

If you not make PCB:

  1. ESP32 Board
  2. SIM7600 GSM Module
  3. GPS Antenna
  4. GSM Antenna
  5. SIM Card
  6. Jumper wires and Breadboard
  7. Powersupply


If You are Making PCB:

  1. PCB Service
  2. SMD Componnets (Full list i will upload with PCB files)
  3. GPS Antenna
  4. GSM Antenna
  5. SIM Card
  6. Soldering iron
  7. Hot gun
  8. Soldering paste & wire
  9. Powersupply

Additional - 3d printer + abs filament + PG7 cable gland

Designing the Schematic Diagram

Capture.PNG

Before designing the PCB, we first need to create the schematic diagram. πŸ“„

The schematic is the most important part because it shows all the required connections between the components. Using this diagram, we can properly design the PCB later.

For this project, I used EasyEDA to design the schematic and PCB. It’s beginner friendly and very useful for creating custom electronics projects like this. ⚑

In the schematic, we need to connect:

  1. 🧠 ESP32
  2. πŸ“‘ SIM7600 GPS/4G Module
  3. πŸ”‹ 12V Power Input
  4. πŸ”Œ USB Type-C Power Input
  5. ⚑ Voltage Regulators
  6. πŸ“Ά GPS & LTE Antennas
  7. πŸ’‘ Status LEDs and other supporting components

Once the schematic is completed correctly, we can move on to the PCB layout design. 🎯

PCB Layout Design

j.PNG

After completing the PCB schematic correctly, we can start designing the actual PCB layout. πŸ› οΈ

At this stage, we arrange all the components in a clean and organized way using the shape and size we prefer.

The main goal is to make the PCB:

  1. Clean and professional looking
  2. Compact and properly sized
  3. Easy to assemble
  4. Reliable for power and data connections

After placing the components, we can complete the PCB by routing all the required tracks and signal lines properly. This includes:

  1. Power lines
  2. Data signal traces
  3. ESP32 and SIM7600 communication lines

Once all routing is finished, the PCB design is basically complete and ready for manufacturing. πŸš€

I’ve also attached a few photos of the PCB I designed for this project so you can see how everything was arranged and routed. πŸ‘€

Ordering the PCB

SIM7600-i.PNG
SIM7600-iiii.PNG

Now the only thing left is to manufacture the PCB we designed. πŸš€

To do that, we first need to generate the Gerber files from the PCB design. These files contain all the information needed for PCB manufacturing.

After generating the Gerber files, we can upload them to a PCB manufacturing service and place the order. πŸ“¦

A few days later, the finished PCBs can be delivered straight to your home looking clean and professional. ✨

When ordering the PCB, you can also customize several things, including:

  1. 🎨 PCB color
  2. πŸ“ PCB thickness
  3. ✨ Surface finish options

So you can make the PCB look exactly the way you want. πŸ˜„

Finished PCB & Assembly

20260525_204509.jpg
20260525_204520.jpg

After ordering the PCB, this is how the finished board will look once it arrives. πŸ“¦

I’ve added photos of my PCB so you can see the final result and overall appearance. πŸ‘€

The next step is assembling all the components onto the PCB. πŸ”§

For this project, most of the parts are SMD components, so proper soldering is important to keep the board clean and reliable.

I’ve also included the full SMD component list together with the PCB files below, making it easier to identify and place all the required parts correctly. πŸ“‹βš‘

Final Assembly Completed

20260525_231654 (1).jpg
20260525_231547.jpg
20260525_231519.jpg
20260525_231526.jpg

Now my PCB is fully assembled and finished. πŸ”§βœ¨

This is how the final device looks after everything is connected together. It honestly looks just like a professionally manufactured product bought from a store. πŸ˜„

The next step is very simple:

  1. πŸ“Ά Insert a SIM card into the SIM slot
  2. πŸ“‘ Connect the GSM antenna
  3. πŸ›°οΈ Connect the GPS antenna
  4. πŸ”Œ Attach both antennas properly to the PCB’s IPEX connectors

After connecting everything correctly, we can finally power up the device and start testing it. ⚑🚴

Programming the ESP32

code.PNG
A1.PNG
TC.PNG

In this step, we need to upload the program to the ESP32. ⚑

But before that, we should decide how we are going to display the GPS location. For this, we have two options:

  1. 🌍 Use an open source GPS tracking platform like Traccar
  2. πŸ› οΈ Build our own custom GPS tracking interface

For this project, Traccar is a very good option because it already supports GPS tracking and has proper documentation.

πŸ“– Traccar documentation:

https://www.traccar.org/documentation/

The documentation includes all the details we need, including how to prepare the Arduino code for GPS tracking.

Another big advantage is that Traccar also has Android and Apple apps, so we can easily track the device from a phone. πŸ“±πŸ“

Custom GPS Web App Test

AP1.PNG
asd.jpg

After testing Traccar, I also created a simple web app and connected the GPS location to Google Maps. πŸ“

As you can see from the photos, my real time location is shown using a red arrow marker. πŸ”΄

The trip history from one bicycle ride is also displayed nicely on the map using blue route lines. πŸ”΅πŸš΄

This project can be improved with many more features, and with further development, it can become a very useful real world GPS tracking system. πŸš€

Designing a 3D Printed Case

32.PNG
35.PNG
31.PNG
34.PNG
33.PNG

After finishing all the testing, we can design a proper 3D printed enclosure for the PCB. πŸ› οΈ

Since this device is mainly intended for vehicles and bicycles, we need a strong and durable hard case to protect the electronics. 🚴⚑

For the enclosure design, we can use Autodesk Fusion 360 to create a clean and professional looking case.

The design can include:

  1. 🧱 A strong hard shell body
  2. ⚑ A side mounted PG7 cable gland for the 12V power input wire
  3. πŸ’§ Better protection for outdoor use

After completing the design, we can 3D print the enclosure and assemble everything neatly inside. ✨

Right now, I don’t have access to a 3D printer, so I’ll update this project later with photos of the final printed case. But I’ve already included the 3D print files below so you can download and print the enclosure yourself. πŸ“¦

Project Completed

Back cover.png

Alright, this is the end of my ESP32 GPS Tracking project. πŸš΄πŸ“‘

Don’t forget to leave your ideas and feedback about this project in the comments below. πŸ’¬βœ¨

Before you start using the PCB, here are a few important Q&A tips from me. πŸ‘‡

⚠️ Important Notes

  1. πŸ“Ά Before uploading the code to the PCB, remember to update your SIM card’s APN settings inside the code. Otherwise, the tracker will not connect to the internet.
  2. 🌍 Also remember to update the server IP address in the Traccar code. If not, the device will not appear on the tracking platform.
  3. πŸ“‘ Before powering on the PCB, double-check that both the GSM antenna and GPS antenna are connected properly. This is very important for the safety and performance of the module.

All the project files can be downloaded from below. πŸ“¦

Good luck with your own DIY projects, and happy making! βš‘πŸ˜„