The Pi-SPi-8DI has 8 inputs that can either DC or AC (Max 24 V) and are optically isolated.
The design is based on the Microchip MCP23S08 IO expander. Each MCP23S08 has 4 addresses using the same SPI Chip Select line, meaning 4 modules (32 Inputs) can be used simultaneously.
All Accessories Including Ribbon Cables Sold Separately
Node-Red support is now available.
The 26 pin GPIO expansion port is duplicated on either side of the module, so more modules can be added.
Please download the latest Widgetlords libwidgetlords library. The instructions can be found at
Getting Started with PI-SPI Libraries
All of the sample code examples are based on the latest library installation. Please note the code samples all use Python 3.
Basic Python Program "Read" Digital Inputs:
from time import sleepfrom widgetlords.pi_spi import *init()inputs = Mod8DI()while True: print(inputs.read()) sleep(0.5)
The PI-SPI-8DI sample code programs and instructions can be found at
PI-SPI-8DI Python Code Samples
A complete set of Python demo code examples for the PI-SPI and PI-SPI-DIN series can be found on our GitHub repository:
For DIN Rail applications, the PI-SPI-ENC series of DIN rail mount enclosures are available in the Accessories Collection