ESP32

ESP32 GPS Tracker using SIM7600G-H 4G LTE with Google Maps

ESP32 GPS Tracker:

ESP32 GPS Tracker using SIM7600G-H 4G LTE with Google Maps- Today, we are going to use the Lilygo IoT development board as a GPS Tracker. On this development board the ESP32 WiFi + Bluetooth module, the SIM7600G-H 4G LTE module, and GPS antenna are already wired up for you, so you don’t need to do any wiring.

ESP32 GPS Tracker

Not only this, it also has a holder for the Lithium Ion battery which makes this IoT development board perfect for GPS tracking applications and other IoT based projects.




I have already published a getting started article on the ESP32 SIM7600G-H 4G LTE; where I explained its technical specifications, onboard components, and lots of other things.

ESP32 GPS Tracker

In that article, I also practically demonstrated how to control some LEDs and generate feedback messages just to confirm whether that particular load is Turned ON or Turned OFF.

And I also explained, how to monitor a sensor by sending a request command through a text message. So, if you are just getting started with this IoT development board then I highly recommend you should read my previous article. Because, today I won’t explain the technical specifications.

ESP32 GPS Tracker

This is going to be the simplest ESP32 GPS tracking System and it can be build by anyone throughout the world. This is only possible because of the SIM7600G-H 4G LTE module which works with all the GSM networks throughout the world. The SIM7600G-H is also backward compatible with 3G and 2G networks.

The SIM7600G-H module has proven its capability to send and receive text messages flawlessly, and this is a statement I can confidently make based on my personal experience. However, I have yet to explore its GPS connectivity, which raises several intriguing questions.

is it powerful enough that it can connect to a GPS satellite while it’s inside a room or we will have to take it outside like most of the other GPS modules including the Neo 6M GPS module.

How accurate is this GPS antenna? Is the accuracy is in feet or meters? If it doesn’t pinpoint the exact location then what’s the use of a GPS tracker? So, this is what we are going to find out in this video.

But, first let’s get it fixed on this Acrylic sheet, I am doing it because, I don’t want the GPS antenna to short with other components.



Amazon Links:

Lilygo SIM7600G-h Official Page

Lilygo SIM7600G-h on Amazon

*Disclosure: These are affiliate links. As an Amazon Associate I earn from qualifying purchases.

ESP32 GPS Tracker

It has been securely mounted on the acrylic sheet, and now I can use and move it around without worrying about the GPS antenna making any kind of contact with the onboard components. Now, let’s go ahead and take a look at the programming.



ESP32 GPS Tracker Programming:



ESP32 GPS Tracker Code Explanation:

Almost 80% of this code is from the getting started video. This time round, I also added the TinyGsmClient library.

To add this library in the Arduino IDE, simply copy the library name, then go to the Sketch Menu, then to Include Library, and click on the Manage libraries. Paste the Library name in the search box.

ESP32 GPS Tracker

As you can see I have already installed this library.

I defined variables for storing the Longitude and Latitude values.

I also defined a cell number. The Longitude and Latitude values along with the Google map url link will be sent to this number.

In the setup() function, I activated the GPS.

Inside the loop() function, we simply check the received text message. If the received text message has the command “location” then the ESP32 with the help of SIM7600G-H sends a Google’s map URL link consisting of the Latitude and Longitude values. I have already uploaded this program and now let’s start the testing.




ESP32 GPS Tracker Testing:

Let’s Turn on the Switch and see how much time it’s going to take to connect to the GPS Satellites while its inside this room.

ESP32 GPS Tracker

It took less than 2 minutes to connect to the GPS Satellites. This is not a standard time, it may vary depending on your location. It may connect within a few seconds or it may take even 5 to 10 minutes. But, in my case it took less than 2 minutes which is great. Because, I have used a bunch of GPS modules which used to take around 10 to 15 minutes.

Let’s send the “location” command to request the GPS location.

ESP32 GPS Tracker

It sent me the Google’s map URL link consisting of the Latitude and Longitude values.

ESP32 GPS Tracker



Let’s open this URL link.

ESP32 GPS Tracker

Look at the Accuracy, this is just mind blowing, its pointing to the same exact location with around 4 to 6 feet accuracy, this is acceptable. I am really impressed, how easy it is to build such an accurate and highly reliable GPS tracking system without even connecting a single wire. You don’t have to do anything excepting uploading the program.

Next, my brother is going to take this ESP32 GPS Tracker in a Car to some random location and then I am going to track the Car location. If it worked, then you can make a vehicle tracking system, or in fact you can track almost anything you want.

Its been 30 minutes since my brother has gone. Let’s send the command and see if we can find the Car location.

ESP32 GPS Tracker

I know this location, let’s go and find out if the car is at this location.

ESP32 GPS Tracker

I just tracked my Car location within a few minutes with such a high level of accuracy. So, If you guys also want to make such an amazing GPS Tracker then you should definitely try the Lilygo Sim7600G-H IoT development board.

In the next article, we will make a real-time GPS Vehicle tracking system using the New Blynk V2.0. So, consider subscribing if you don’t want to miss that article. So, that’s all for now.



Related article: Real Time GPS Tracker using SIM7600G 4G LTE, ESP32, and Adafruit Map

Watch Video Tutorial:

 

 

 

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button