Parents often worry about their children when they are away from them. Have they safely reached school? Are they alone at home? Or are they at the playground with friends? – these are some of the questions that bothers parents all over the world.
So, today we are going to make a smart tracker that can keep track of a child. Besides this, the device can also be used to track your vehicle location and other objects. Let’s begin.
First, collect the following components.
- GPS Module
- Arduino Nano
- 2G SIM card
- OLED Display
- Small 3V battery
First we need to install the libraries ‘Tiny GPS ++’ and ‘FONA’ in Arduino IDE. To do so, go to tools → click on library manager → search the required library → install the library.
In first part of the code, initialise the library in code. Next, create some variables that will store the message, GPS location and other data. Then we define the pins for GPS module and SIM800L module.
After that, we will create the setup function where the baud rate of SIM800L and GPS modules for serial communication are set to 4800 and 9600 respectively.
Here, we have created a loop function to check whether the incoming message has been received by SIM800L or not. If the message has been received, then convert it into a readable string. It will check the message for a ‘get location’ command, after which the collected data (with respect to location) will be sent back to the original device..
Within the same loop function, a function named get location() will be called .This function will keep updating the GPS data and return the results to the loop function
Now connect the components as shown in the pic below:
Power the device with a battery and wait for a few minutes. The device will then become ready for use.
Send the message ‘get location’ to the smart device and you will receive a message with the location URL, which you can check on Google Maps.
How can we download the code Sir/Madam?
Code is attached at the bottom of page you can download directly.Just click on the “Code” written in DEEP Red color
I need more information Arduino led dot matrix scrolling display
Yes you can read these article for reference.
I have a project for my Baschelor that deals with the same subject and I really need your help. I’m begging you. Here’s my email. You can write me so we can exchange ideas.
I would really appreciate it if you can help me.
Thank you in advance
Very good for learners
Thank you for your feedback.
I have a project for my Baschelor that deals with the same subject and I really need your help. I’m begging you.
Here’s my email. You can write me so we can exchange ideas.
I would really appreciate it if you can help me.
Thank you in advance
Yes, why Not ?? What Type of help do You need? ask me on mail [email protected]
Hello, I have a lot of doubts regarding this project. Could I please have your contact details. It’s really urgent.
What doubt can you elaborate on, You ask doubt here in comment or what’s app me on 7061350809
Hello, Source code attached to this article is not available right now . Can you please have a look about this issue?
Hi Nagashree, please click the mobile version of the website from the end of the page and redownload.
How is the resolution? I want to do a in-home GPS device.
It depends on the GPS module. It is good for outdoor use in-home the GPS module takes a lot of time to get Position. Resolution is good up to 4 decimal points in lat and long
Hi, I have done a project similar to yours.
I cannot find a network with my module, kindly suggest the possible solution.
Power on your device and module and let it keep on for more than 6 to 7 hours and also try to get it in open space either in the garden or outside your house if it gets the FIX sat location then the red led start blinking and you will get the location.
how to make server for this using php myadmin
can u please the Liberary named TinyGPS++.h
I didn’t get this Liberary in web
Here is link for liberery
from where i can get hardware can you help please ….
how far can this gps go? when tracking?
can you elaborate
Is gsm and gps both used in this project?
Why do we need an OLED display?
MY GSM MODEM IS NOT RECIVING SMS “get loc”….can tou help me out
Check your sim card in 2G network and also check the sim card on the phone that it is receiving SMS. Then check the SIM card memory and delete all the SMS in the card if sim card memory is full it will not receive
Mam ,is 4G Sim will work for this tracking or not mam
No only 2g sim will work
I WANT TO ASK..IS IT SIM AT SIM800L SAME WITH SIM ON THE PHONE?
The sim card you need to use is the same sim card used in the phone but it must also support the 2G cards.
it means .. i need to use 2 simcard .. one in the phone..and one in project ? macam pula dengan rangkaian..what types of rangkaian..using umobile simcard can?
hi admin, i want to save local in server, can you help me
Kindly elaborate your query.
when “get location” we will get the address to device. can admin get the address to sever?
Hi! I would like to refer to this project to build a remote gps tracker of our own! I was wondering if this setup/circuit connections would work if I were to use a SIM900A mini GSM module? Also in this project, for what component do you use the 3V battery?
3,7V battery used to power the SIM800L Module. Sim900A will also work but might need some changes in code.
we have to use SIM800L with antenna or without antenna
Yes, without antenna, network coverage in my area is good but if you face a problem in network coverage you have to add antenna.
can i have your email or number .. easy to me to contact you…bcs i use your project as my final year project…please madam
Hi, you can contact us at [email protected].
act admin use arduino nano or uno in this project .?
bcs at hardware arduino uno ..then in video arduino uno
Arduino Uno, Nano, Mini all work for this project without changing any single line in code and connection.
I have used Arduino Uno to test it as a pin connection using Jumper wire is easy. If you need your device looks small and compact you can use nano, mini
I have my final year project on iot , ardiuno . I have to make a gas leakage detector that sense gas and send an email , an alarm system and GpS tracker that give location in email also.
Can you please guide me which devices will be used in this . Pleaseee
ok , Do you need me to make a DIY on this and publish it for your reference.
Hi! Thanks a lot!
I have a question. Can the device share the location automatically without any “get loc” message? Maybe each minute or when it’s turning on? Or when someone press a buttom in the device?
yes you cand do some change in code and add this function
Oh great! One more question.
Which SIM card works? Where can I found it?
Can I use this one? https://store.hologram.io/store/global-iot-sim-card/17/
Thanks a lot!
Any 2G compatible sim card will work for this.
Great! And the display is necessary or It can work without?
what do you connect the battery up to?
Yes, it works without a display as well.
i click at code . has 2 code which is ( final code simple & gps final 2 ).. which one coding use in this project
Hello is there anyone I can contact to get some help with the code?
You can send an email to [email protected]
Hi, I did this project at home but it doesn’t works. The red led in SIM module turns on but in the GPS module doesn’t works. All the elements are new and funtional. I check the connections and the code, but it still not working. Can you help me please? Thank you
Check the Gps Module, Some GPS module takes time for first-time position fixing. Try put the GPS module in open space or at least near the window and wait until the GPS module LED to indicate the Position-fixing is done
Mam ,I have chosen this project as my mini project .Can u please tell me the working and limitations of this tracker and ,is it works efficiently or not ???
Its limitations is you have to send message every time when you want to get location. Also for good GPS tracking you have to use better GPS modue that can catch location even indoor
dear where we can add our phone number in code . when sim card is inside the sim800l module?
I need your help.
Can’t download the code,
the red “CODE” is not clickable
Can you help me out?
it is clickable I have rechecked it. Try from another device like a smartphone
Hello .. Good night
I speak of Brazil.
I would like to carry out this project but without using the oled display.
What changes do I need to make to the code?
It will work without OLED as well remove the OLED part of the code, or just leave whole code don’t connect it the project will work.
Congratulations, really good work!
What’s exactly the GPS Module, on this implementation?
UBlox Neo 6m
Ubblox Neo 6m
What is the interface used here?
Can you elaborate? For GSM and GPS we have used USART
hi admin, can we use a 4g sim to do such task instead of a 2g sim as they are no longer available on market.
any idea, airtel or another local network will support this they still have 2g towers
how ever you can use different GSM module having 3g or 4g support
use SIM900A support 4G
Cloud services/modules used is?
The module used is Neo 6MGPS. No cloud services used it based on SMS whenever you message “get locn” to the device it will reply with a link containing the location on google map
how u put your number phone in coding to send a sms
The location is sent to the number who send the specific code message getLOC or any other coded message of your choice
Sir instead of sending sms I want to make it in an application like Google map showing location live how can I ????
Two way one is to use google Maps API but you need a good microcontroller or SBC like raspberry pi for that. Another one is you can update the location data and transfer using services like a mosquito, Thingspeak, google cloud.
I have a problem ;
My oled display keeps showing “Couldn’t find SIM”
Why is that ? I have insert it on SIM800l module and the network is working..
check its 2g sim and registered on 2g network.use font library example with AT command to check Simcard status
can you provide me synopsis for this project ?
The article consists of all details of the project if the face in making and connection please let me know. synopsis you can create yourself
can I replce the GSM 800L to GSM 900A .. should i chnge the code ?
if yes .. which part should i change ?
if yes .. which part should i change ?
Check the default baud rate of sim800l and change in code. I am not sure if the sim900l works as I havn’t tasted the project with that but it should worl as both work on serial port and also use almost same AT commands
both of GSM use baud rate 9600 .
can i get your contact ? easily to ask about coding
yes, send me what help you need on whats app 7061350809
sir .. if I want to run this project without usb .. can I replace it with battery 9v?
Yes , You can add 5v battery
it will be fine using 9v? i don have 5v battery
Arduino able to hold 9v because it have regulator but sim 800l and GPS module can’t hold 9v.
thnkyou so much for your fast respons
can u help me how to check consistency of gps module ?
The code given in related to arduino balance
Can You elaborate? I have rechecked the code downlding and is GPS tracker code
Hello my friend.
I download your code. I have already connected all the modules in my Arduino Nano, as you show before (Fig. 4). The code uploaded in Arduino. But when i open the Serial Monitor, shown that it find the SIM Module, but i’m getting this error here “No GPS detected: check wiring.”
Can you help my please?
Thank you in advance!
Hello, I can’t get the attached code
Kindly refresh the page and retry
Hello, The source code attached to this article is not available right now. Can you please have a look about this issue?
Hi Rakshitha, please click the mobile version of the website from the end of the page and redownload.
You are most welcome.
Hi, I’m new for making this project. I understand all the codings etc, But one thing i can’t understand is when i use my simcard and put it in to module what simcard im gonna use to get the location? Please reply asap. This is my first project if i understand this this is the good start for me. Thanks
And also if i need to contact someone, Do you have email to contact for this project.
Another thing i want to ask, How about the routing from map i want to see when i get the location. Like when i get location i see all dots from the like having a route did you know what i mean? Thankyouu so much