Localization – GPS

The Global Positioning System (GPS) uses an array of satellites orbiting around the Earth and sending time information. A GPS receiver picks up the signal transmitted from the satellites, calculates the time it took for the signal to arrive, and by identifying the position of the satellites, triangulates the position on the surface of the globe.

GPS is very useful in autonomous cars, RC planes or drones, and data logging applications. Here, we will learn how to read the data from a GPS, which is surprisingly easy. In this recipe, we will use the SoftwareSerial library that is better detailed in the Communication chapter.

Getting ready

Following are the ingredients needed for this recipe:

  • An Arduino board connected to a computer ...

Get Arduino Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.