With the help of a smartphone, we can know where we are on the earth to a few meters. Our smartphones can do this with the help of a chip that communicates with a group of satellites in the sky, collectively known as a Global Navigation Satellite System (GNSS). A GNSS is a group, or constellation, of 24, or more, satellites working together to provide positioning and timing services globally under any weather conditions.
While the Global Positioning System (GPS) from the United States is the most widely GNSS used in the world, other GNSS are also available, including:
A minimum of four satellites from a GNSS are required to compute positions in three dimensions and the time offset in the receiver clock. This means that accuracy and precision of position, velocity and time data increases with more satellites.
Typically, "GPS" is used as a general term for the overall equipment and process of using a GNSS to estimate position.
GPS receivers communicate using several "languages" or protocols, including standard and non-standard (i.e., proprietary) message formats. In these messaging protocols, information can be transmitted as binary data (i.e., 1's and 0's) or using the ASCII character encoding. From all message standards that are use with GPS receivers, the NMEA 0183 is the most widely used messaging standard.
NMEA is the acronym for the National Marine Electronics Association. This association was founded in 1957 by electronics dealers to enhance the technology and safety of marine electronics through installer training and interface standards. The NMEA 0183 messaging protocol was adopted in 1983 originally for interfacing marine electronics, but its use has expanded to terrestrial electronics also .
The NMEA 0183 is a simple messaging protocol where data in this messaging protocol is transmitted in ASCII strings or "sentences" from one "talker" to multiple "listeners" at a time. Another characteristic of the NMEA 0183 messaging protocol is that it uses the RS-422 electrical standard, although it is also compatible with the RS-232 electrical standard . The serial configuration of the NMEA 0183 messaging protocol is the following:
NMEA 0183 "talkers" can be, for example, a satellite, a depth sounder, or a compass, while the "listeners" can be a chart-plotter, a radar or a GPS receiver like the one used in the Arduino MKR GPS Shield.
Sometimes, the NMEA 0183 messaging protocol is confusing because there is not just one "sentence"; there are different NMEA 0183 sentences with different capabilities and purposes, usually what changes in the sentence sis the information they can provide. To understand the different capabilities, purposes and provided information of these sentences, let us first understand their structure.
All NMEA 0183 sentences start with the $ sign and end with a carriage return and a line feed; each data field in the sentence is separated with a comma:
A 5 character address field always follow the
is a two hexadecimal checksum. A NMEA 0183 sentence can have a maximum of 80 characters plus a carriage return and a line feed. Let us examine now a GPS NMEA 0183 example sentence:
In this NMEA 0183 sentence we can identify the following information:
is a basic and common NMEA 0183 sentence; alternative and companion NMEA 0183 sentences provide similar or additional information.
Some common NMEA 0183 messaging protocol sentences that we can find related to GPS are described in the table below:
|$GPGGA||Time, position, fix type data.|
|$GPGLL||Latitude, longitude, UTC time of position fix and status.|
|$GPGSA||GPS receiver operating mode, satellites used in the position solution, DOP values.|
|$GPGSV||Number of satellites in view, satellite ID numbers, elevation, azimuth, SNR values.|
|$GPRMC||Time, date, position, course, speed data.|
|$GPVTG||Course, speed information relative to the ground.|
sentence is essential as it provides the recommended minimum navigation data to be provided by a GNSS receiver.
To extract information related to the position, record at least one of the following NMEA 0183 sentences: $GPGGA, $GPGLL, $GPRMC.
The MKR GPS Shield is based on the u-blox SAM-M8Q GNSS module; this module utilizes concurrent reception of up to three GNSS (GPS, Galileo and GLONASS) and supports both SBAS and QZSS. It also recognizes multiple constellations simultaneously and provides outstanding positioning accuracy in scenarios where urban canyon or weak signals are involved.
The MKR GPS Shield is meant to be used on top of the MKR family boards, but it is also possible to hook it up to other SAM D-based Arduino boards via its UART or I2C pins (the Arduino_MKR GPS library can work with both communications protocols).
For more information, you can visit the official documentation of the shield here.
If you want to learn how to use the MKR GPS Shield, check out the tutorials below: