Run the MicroPython GPS demo

The Digi MicroPython github repository contains a GPS demo program that parses the GPS NMEA data from the UART and prints them.

Note If you are unfamiliar with MicroPython on XBee, see Get started with MicroPython. For more detailed information, refer to the Digi MicroPython Programming Guide.

Step 1: Clone or download the XBee MicroPython repository

  1. Navigate to: https://github.com/digidotcom/xbee-micropython/
  2. You must either clone or download a zip file of the repository. You can use either method.
    • Clone: If you are familiar with Git, follow the standard Git process to clone the repository.
    • Download
      1. Click Download zip to download a zip file of the repository to the download folder of your choosing.
      2. Extract the repository to a location of your choosing on your hard drive.

Step 2: Edit the MicroPython file

  1. Navigate to the location that you created in Step 1.
  2. Navigate to: samples/gps_uart
  3. Open the MicroPython file: main.py

Step 3: Run the program

  1. Copy the file onto your device's root filesystem directory.
  1. Open XCTU and use the MicroPython Terminal to run the demo.
  2. Type <CTRL>-R from the MicroPython prompt to run the code.