With the Arduino development board, you can carry out a multitude of projects; the only limit is often your imagination. Using electronic components and modules , you can add functionalities to expand its capabilities. One such functionality could be the ability to locate objects or people, or to use GPS positioning with the Arduino.
This type of positioning and tracking can be done using RFID or receivers like the one we'll discuss in this article. With it, you can create a multitude of projects, from games that create a detector and locate objects, to locating stolen items, to using GPS to pinpoint your location, and much more.
Arduino NEO-7 GPS Module

To use GPS with Arduino, you can use NEO-6 devices , a family manufactured by U-Blox that can be easily connected to the Arduino board. They also feature a complete communication interface, with UART, SPI, I2C , and USB, and support NMEA, UBX binary, and RTCM protocols.
Furthermore, this Arduino GPS with NEO-6 also allows you to minimize the size of your project, as it is small and inexpensive. Power consumption is also low. When in active mode, it only requires 37mA. It is powered by 2.7 to 3.6V for the NEO-6Q and NEO-6M models, while there are lower voltage versions called NEO-6G that only need between 1.75 and 2V.
Other interesting parameters of this module are:
- The 30 seconds of ignition time cold, and only 1 second for hot start.
- La maximum measurement frequency they work at only 5Hz.
- Position accuracy of 2.5 meters of variation.
- Speed ​​accuracy 0.1 m / s.
- Orientation variation of only 0.5º.
Where to buy a NEO-6 for Arduino GPS
You can find these devices and modules in many specialized electronics stores, or also on Amazon. For example, you can buy it here at a very low price :
Example with Arduino

The first thing you need to do to attach it to your development board and have your Arduino GPS is to connect your NEO-6 module to the board. The connections are very simple (NEO-6 module connections – Arduino connections):
- GND - GND
- TX - RX (D4)
- RX - TX (D3)
- Vcc - 5V
Once you have it connected, you'll also need to download the SoftSerial library to your Arduino IDE, as it's required for serial communication. You probably already have it from other projects, but if not, you'll need to download and install it in your IDE.
Once that's done, you can start with your simple code for performing the readings. For example, since several protocols can be used, here's the sketch for NMEA :
#include <SoftwareSerial.h>
const int RX = 4;
const int TX = 3;
SoftwareSerial gps(RX, TX);
void setup()
{
Serial.begin(115200);
gps.begin(9600);
}
void loop()
{
if (gps.available())
{
char data;
data = gps.read();
Serial.print(data);
}
}

Of course, you can make your own modifications or use other protocols if you wish… You can also use the examples available in your IDE for this library. But, before we conclude this article, you should know that the NMEA (National Marine Electronics Association) format is very specific; to understand it, you need to know its syntax:
$ GPRMC, hhmmss.ss, A, llll.ll, a, yyyyy.yy, a, vv, xx, ddmmyy, mm, a * hh
In other words, $GPRMC is followed by a series of parameters that indicate the location :
- hhmmss.ss: is the UTC time in hours, minutes and seconds.
- A: receiver status, where A = OK and V = alert.
- llll.ll, to: is the latitude, where a can be N or S, for north or south.
- yyyy.yy, a: is the length. Again a can be E or W, that is, east or west.
- etc: speed in knots.
- xx: is the course in degrees.
- ddmmyy: is the UTC date, in days, months and year.
- mm, a: is the magnetic variation in degrees, and the a can be E or W for east or west.
- *H H: Checksum or checksum.
For example, you could get something like this:
$GPRMC,115446,A,2116.75,N,10310.02,W,000.5,054.7,191194,020.3,E*68
Table of Contents