Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.91 KB

examples.rst

File metadata and controls

62 lines (46 loc) · 1.91 KB

Simple test

Ensure your device works with this simple test.

../examples/gps_simpletest.py

Echo test

Simple GPS module demonstration. This will print NMEA sentences received from the GPS, great for testing connection. This uses the GPS to send some commands, then reads directly from the GPS.

../examples/gps_echotest.py

Time source

Simple script using GPS timestamps as RTC time source. The GPS timestamps are available without a full location fix if a single satellite can be seen. The GPS unit will keep the track of time while there is power source (i.e. a coin cell battery.)

../examples/gps_time_source.py

Data logging

Simple GPS datalogging demonstration. This example uses the GPS library and to read raw NMEA sentences over I2C or UART from the GPS unit and dumps them to a file on an SD card (recommended), microcontroller internal storage (be careful as only a few kilobytes are available), or to a filesystem.

If you are using a microcontroller, before writing to internal storage you MUST carefully follow the steps in this guide to enable writes to the internal filesystem: Writing to the filesystem

../examples/gps_datalogging.py

Satellite fix

This example uses GSA and GSV sentences from the GPS device to report on the quality of the received data from the satellites.

  • GSA - DOP(Dilution of Precision) and active satellites
  • GSV - Satellites in view

../examples/gps_satellitefix.py