PyCom LoPy

Introduction


The LoPy is a microcontroller developed by PyCom that has LoRa, WiFi and Bluetooth modules on it, perfectly suited for the Internet of Things. It uses the latest Espressif chipset that runs MicroPython.

Figure 1: The LoPy module from PyCom. This board features LoRaWAN, WiFi, and BLE for connectivity, and can be programmed using MicroPython
Figure 1: The LoPy module from PyCom. This board features LoRaWAN, WiFi, and BLE for connectivity, and can be programmed using MicroPython

It can act as both a LoRa Nano Gateway and a multi-bearer (LoRa, WiFi and BLE) development platform suitable for all LoRa networks around the globe. It is programmable with MicroPython and the Pymakr plugin IDE for fast IoT application development, easy programming in-field and extra resilience with network failover. The best blend of speed to deployment and access to new LPWAN networks rolling out across Europe, USA, Africa and India. The LoPy is CE, FCC approved and is LoRaWAN certified.

Features


Getting Started


Connecting to the Device


Device EUI

To get the DevEUI, issue the following command on the REPL

It will print to console the deveui of the device. Now use this deveui to provision it in ThingPark. The information on how to provision a device can be found on this link Device Provisioning using ThingPark Device Manager.

AS923 Firmware

If your LoPy firmware version is older than v1.16.0-b1, which was released on February 15, 2018, then it will not correctly support the Spark LoRaWAN AS923 network that we operate. Below are instructions for updating the device’s firmware.

Update the LoPy Firmware


The latest version of the PyCom files can be fetched from the following links:

Before running the Linux updater you might need to run:

in the command line.

To update the firmware, this guide assumes that you have a PyCom PyBoard that you can use to power the device, and communicate with it. The pinout for the PyBoard is given in the following figure:

Figure 2: Pin out for LoPy expansion board. Note G23 is the 4th pin on the left and GND is the 2nd pin on the right.
Figure 2: Pin out for LoPy expansion board. Note G23 is the 4th pin on the left and GND is the 2nd pin on the right.

Set Device to Update Firmware Mode


Remove the device from the power source and connect a wire between the pins GND and G23.

Figure 3: Shows breadboard wire connecting G23 and GND
Figure 3: Shows breadboard wire connecting G23 and GND

Update Firmware


Now follow the update steps. You will need to launch a terminal and issue to following commands.