The all new digital input interface for the Raspberry PI is here! 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.
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:
We have just added a DIN Rail Mounting Kit for the Raspberry Pi and the PI-SPI series!
VPE-4450A DIN Rail Mounting Kit