Welcome to pysangaboard’s documentation!

This module exposes the functions of the “Sangaboard” in a friendly Python class. The Sangaboard is used for driving cheap unipolar stepper motors such as the 28BYJ-48. Functions are provided to move the motors, as well as properties that allow motion to be configured. Various context managers and generator functions are provided to simplify opening/closing the hardware.

All of the functionality is accessed through the sangaboard.Sangaboard class. As the Sangaboard firmware can be modified to have support for light sensors and/or endstops, the availability of optional modules can be checked with sangaboard.Sangaboard.list_modules(). Possible modules include sangaboard.sangaboard.LightSensor and sangaboard.sangaboard.Endstops. Endstop support requires v0.3 of the Sangaboard, and the light sensor requires a supported light sensor connected over I2C.

Indices and tables

Sangaboard class

Sangaboard optional modules

Endstops

Light Sensor