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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.