PyCom Setup

From Sensors in Schools
Revision as of 07:57, 7 April 2022 by Bobblybook (talk | contribs)
Jump to navigation Jump to search

1. Board soldering (TODO: Schematic/images)

2. Firmware updater

3. Install Atom + Pymakr plugin. Pymakr and firmware install tools only work on x86 processors, so ARM devices (eg. Raspberry pi) will not work for this step.

  • For Windows, Visual Studio C++ 2019 is required (2022 currently isn't supported): Downloads & Resources
  • For linux: install node v16 (v17 does NOT work currently) and 'make' tools + toolchain.


4. Set up Pygate gateway:

Need permission to access serial port! Can be an issue on linux if serial won't connect in Atom.

Common errors: AttributeError: 'module' object has no attribute 'callback' This usually means that WiPy firmware has not been updated.

OSError: [Errno 2] ENOENT Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead.