Table of Contents(5)
Overview
In this experiment, we will create a GPS data logger. We know that GPS modules have an EEPROM for storing configuration information and almanac data. The Arduino UNO R3 development board also has its own EEPROM storage. The EEPROM on UNO R3 has a capacity of 1KB, allowing storage of 1024 bytes of data. In this experiment, we will store GPS location information in the EEPROM of Arduino UNO R3.
Components and Supplies
Wiring
# | GY-NEO6MV2 | Arduino UNO R3 |
1 | VCC | 5V |
2 | GND | GND |
3 | TX | 2 |
4 | RX | 3 |
Library
TinyGPSPlus
Search for TinyGPSPlus by Mikal Hart in the library manager on Arduino IDE, and install this library.
Installing a library is a straightforward process that can be done swiftly. To begin, launch the Arduino IDE. Once the editor is open, direct your attention to the left column. Here, you'll notice a few icons. Locate and click on the "library" icon. Instantly, a comprehensive list of all the libraries at your disposal will materialize. You also have the option to search for a specific library. Once you've identified the desired library, simply click on the "INSTALL" button, and the installation process will commence.
Code
Result
Each time the device boots, it prints all GPS data from EEPROM to the serial monitor and writes the current GPS information to the Arduino UNO R3’s EEPROM at a defined FREQUENCY rate.