LoPy4 software

Download zip folder from Github

To get your PM sensor device up and running, download the latest version of our code from GitHub: https://github.com/pyonair/PyonAir-pycom

Make sure you extract all of the files to a convenient location on your PC or laptop and avoid renaming any of the files.

Open folder in Atom

Open Atom and close any current files by right-clicking the top level folder and clicking "Remove Project Folder" in the menu that appears.

Go to File > Open Folder and select the "lopy" folder. All of the contained files and folders should appear in the "Project" pane on the left in Atom.

Connect LoPy to PC

Plug the PyonAir PCB into your PC or laptop using an FTDI-USB cable and the RX, TX and GND pins on the header to the right of the board.

Don't forget to power the board and plug in the micro SD card!

The board should show up in Atom and connect automatically. The bottom pane will look something like this, with the name of the board you are using:

On Linux, if Atom hangs at Connecting to /dev/tty****..., try running Atom as root: sudo atom. If this does not connect, this StackOverflow suggests running sudo usermod -a -G dialout $USER to allow your user to make serial connections.

Upload to LoPy

To upload the code, simply click the "Upload" button in the bottom pane. The process may take a few minutes, depending on how many files need to be removed and installed.

Once the upload has succeeded, press Ctrl + c on your keyboard to stop the code, then unplug the FTDI-USB cable.

Last updated