Dear friends welcome back. Today we build a simple
GPS tracker. Let's do it. We are going to
use
a GPS shield for Arduino from makerstudio. It uses the
NEO 6M GPS module and
it also has an SD card module. So, with shield we can
easily build a GPS datalogger. Today all we are going to do is
is to print our location's coordinates and altitude
in Serial Monitor. Let's go outside in order to show you the project working,
because inside there is no GPS signal of course.
OK we are outside now, let's see the coordinates of our position.
I'm going to plug in Arduino now and see
what happens. I have connected the
project to the computer
and as you can see the LED is flashing. That means that
our position has not been fixed yet..
so we have to wait. Tt can take up to 30
seconds
or one minute to fix our position.
Let's wait for a while and see what happens. When they LED stops flashing
in the Serial Monitor we are going to see our longitude
latitude and altitude. Let's see.
okay
it has now stopped flashing and as you can see
the coordinates of our position
are shown in the Serial Monitor as well with the altitude.
The altitude is now -5 meters.
It's off but we are at sea level.
The connection with Arduino is extremely easy.
All you have to do is to connect the shield and put those
jumpers to your preferred pins.
I have connected GPS Rx pin to digital pin 3,
and the GPS Tx pin to digital
pin 2. Next I added
a bright LED and
we are ready. It's so easy. Let's now see
the code of the project which is even easier. As you can see
the code of the project is extremely
simple. With forty lines of code
we can build a GPS tracker. That's the
power of Arduino
and open software. In order to achieve
that we have to use
the TinyGPS++ library for
Arduino
You can download it from this link and
you can find the link for the download
in the description
of the video. All you have to do, is to press the download link from here
download the library and and unzip it in your
Arduino -> libraries folder. The GPS
module
exports its data in NMEA sentences which are pretty complicated
and look like this. Luckily,the TinyGPS library can parse the data
and give as easily that data we want. As you can see
we only need a command in order to read
our latitude, or longtitude
or even our altidude. I will explore
more more of the library's functions in future videos, so stay tuned!
So, in less than five minutes and with
20 euros
that's the cost of the shield, we are able to build
our own GPS tracker. In a future video we are going to use the
embedded SD card module in order to build a GPS datalogger
and some other projects I have in mind,
so stay tuned!
If you like our video please press the
like button or subscribe to our channel
in order to watch our futur videos. Thank you very much for watching and
see you next week! Bye!
