The Pytrack is a sensor shield equipped with a number of different peripherals that can be used with all of the Pycom development boards.

Pytrack Sensors and Features

  • Super accurate GNSS + Glonass GPS
  • 3 axis 12-bit accelerometer
  • USB port with serial access
  • LiPo battery charger
  • MicroSD card compatibility
  • Ultra low power operation (~1uA in deep sleep)

The board supports multiple location services:

  • GPS
  • Galileo
  • QZSS

Upgrading the Firmware

Before using the board it is highly recommended to upgrade the firmware.

See this tutorial for upgrade instructions.

Support Libraries

Use the support libraries from Pycom to access the different sensors. The libraries can be downloaded from the pycom-libraries Github repository. To download the files, click the “clone or download” button on the upper right side of the site.

After the files are downloaded, extract the archive and navigate to the pycom-libraries / pytrack folder. Copy the lib folder into the root of your project.

Check that your project / lib folder contains these files

  • – accelerometer
  • – GPS
  • – the Pytrack board

Example Program

Below is an example program that illustrates how you can use the library to access some of the sensor values. Make sure to include the startiot library in the lib folder.

Managed IoT Cloud

See the Managed IoT Cloud Quick Start Guide to create a new user, and learn the basics of Managed IoT Cloud.

To display the data in a sensible format (for example, the picture below), you have to define resources for each value used in the widgets. Defining resources is done by defining an uplink transformation.The uplink transformation is responsible for converting the byte string that is received from the device into resources that can be used in the different widget types (Gauge, Time series and so on). You can add an uplink transformation to a thing type by clicking on the edit icon next to the thing type name in the left sidebar.

In the example below, five resources are defined (latitude, longitude, roll, pitch and yaw). These resources are used in the different widgets.

Adding the widgets to the dashboard is done by clicking the “+ WIDGET” button. The process itself should be understandable enough, but if you need a more in depth explanation, you can see this guide.

Navigate to the Thing dashboard by clicking on the ThingType in the left sidebar. Click the “List” tab located in the top center of the page, and start adding widgets using the “+ WIDGET” button.

To visualize the accelerometer data, we are using the widget type “Gauge”. To show up correctly it has to be configured in the range from -180 to 180 degrees.

Managed IoT Cloud does not at the time of writing have the ability to show your own coordinates in the map widget. The position shown is the position of the base station you are currently connected to. One way around this restriction is to overwrite the variable that could connect is using to display the map. Add a new variable in the uplink transform called “latlng” and give it the value of “parseFloat(pl[0])+’,’+parseFloat(pl[1])”.

This will overwrite the variable that the base station adds to the payload and allows you to show your map location instead of the base station.



Do you have any feedback? Please use the forum for technical support.


©2019 Telenor Start IoT - Privacy Policy

Log in with your credentials

Forgot your details?