In this Section

↩ Return Home

↩ Return to Resources

PyCubed is programed/operated using a version of Python designed for microcontrollers called CircuitPython. Advantages to using CircuitPython include:

  1. Native USB support with serial port debugging, no extra drivers or other software required.
  2. CubeSat mounts as a "USB flash drive" with software and libraries stored as plain-text files on the drive, no compilation required.
  3. Simple Python3 programming syntax capable of accessing low-level hardware peripherals such as I2C, SPI, UART, and CAN bus.
  4. Open-source architecture with robust fault tolerance and error handling
  5. Capable of over-the-air software updates.

The CircuitPython architecture is an open-source effort led by Adafruit and targeted towards beginner programmers. Although it's easy to get started, CircuitPython is capable of enough depth to allow command and control of the spacecraft. Visit https://circuitpython.org/ to read more.

Overview

When working with embedded hardware like PyCubed, it's helpful to group programming into two categories.

When getting started, the user will work entirely with software. If there comes a point where the user wants to implement a new microcontroller capability, he or she will need to learn more about the PyCubed firmware.

Firmware and software are located in separate repositories within the PyCubed GitHub. Visit their respective pages below:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/059da9d5-11cc-4a20-b16a-885ed54ce4d5/SoftwareBlock.png

PyCubed software block diagram illustrating a portion of the CircuitPython runtime

Software


See Hands-On Quick Start for getting started with software.

After finishing the quick start, there are lots of tutorials and examples to help you craft your mission software.

  1. Code Examples for lots of software snippets and helpful patterns
  2. Example Flight Software for complete mission software demos

Software Repo 👇