Sixteen LV Digital Inputs 8-Layer Stackable HAT for Raspberry Pi
Sixteen 3V-24V Opto-isolated Inputs with LED indicators; RS485/MODBUS, Hardware Watchdog.
Overview
Add sixteen opto-isolated digital inputs to any Raspberry Pi (Zero–5) with this 8-layer stackable HAT. The Sixteen LV Digital Inputs Card reads 3–24 V AC/DC signals, includes a hardware watchdog and local processor for standalone operation, and connects to any PLC or SCADA via RS485/MODBUS — all over I²C, leaving every other GPIO pin free.
- Sixteen opto-isolated digital inputs, 3–24 V AC/DC (reads both AC and DC)
- Native RS485 / MODBUS interface
- Hardware watchdog for unattended operation
- Interrupt-on-change on any input — no polling required
- Up to 8 cards can be stacked for 128 inputs total
- Uses only I²C — all other GPIO pins stay free
Works with Open Automation Software
Compatible with widely used tools for control, monitoring, and system integration.
INTERFACES AND I/O
| I/O's | Communication | Software Integration |
|---|---|---|
| • Sixteen Opto-Isolated Digital Inputs (3–24 V AC/DC) | • I2C Port to Raspberry Pi | • Command Line |
| • RS485/MODBUS Port | • Python Library | |
| • Node-RED nodes | ||
| • CODESYS Driver | ||
| • OpenPLC Module | ||
| • Home Assistant | ||
| Other Features | ||
| • Interrupt-on-change on any input — no polling required | ||
| • 16 LEDs, one per input, plus power LED | ||
| • General purpose shutdown push-button | • Pluggable Connectors 26-16 AWG wires | |
| • On Board Hardware Watchdog and fuse | • Eight Level Stackable — up to 128 inputs | |
DESCRIPTION
The Sixteen LV Digital Inputs Card provides a reliable, scalable way to bring sixteen industrial-grade digital signals into any Raspberry Pi system.
Sixteen optically isolated digital inputs read signals from 3 V to 24 V AC or DC, suitable for industrial sensors, limit switches, PLCs, and building automation signals.
The card can interrupt the Raspberry Pi on any input state change, eliminating the need for continuous polling and enabling fast, event-driven response to field signals.
Sixteen LEDs show the live status of every input channel, plus a dedicated power LED. Field diagnostics are immediate without needing a connected computer.
A standard RS485 transceiver enables the card to act as a MODBUS RTU slave for direct PLC or SCADA access, or as a hardware pass-through for the Raspberry Pi serial port.
The hardware watchdog automatically power-cycles the Raspberry Pi if the software becomes unresponsive, ensuring continuous operation in unattended deployments.
A momentary push-button wired to GPIO 26 provides a safe way to issue a software shutdown command without a keyboard or monitor, preventing SD card corruption on power-off.
Up to eight cards can be stacked on any Raspberry Pi, scaling to 128 inputs. The card uses only I²C (GPIO2, GPIO3); all other GPIO pins remain available for other uses.
TECHNICAL DETAILS
CARD LAYOUT

MECHANICAL SPECIFICATIONS

DIP SWITCH AND STACKING
The onboard six-position DIP switch configures both the stack address and the RS485 port behavior. Cards of different Sequent HAT types can be freely mixed in the same stack.
| Switch | Name | Function |
|---|---|---|
| ID0 | Stack ID bit 0 | Binary stack address bit 0 (LSB) — sets card level 0–7 |
| ID1 | Stack ID bit 1 | Binary stack address bit 1 |
| ID2 | Stack ID bit 2 | Binary stack address bit 2 (MSB) |
| RX | RS485 RX select | ON: Raspberry Pi receives RS485 directly |
| TX | RS485 TX select | ON: Raspberry Pi drives RS485 directly |
| TERM | RS485 termination | Enable on the last card in an RS485 chain to prevent signal reflections |
ELECTRICAL SPECIFICATIONS
| Power | |
|---|---|
| Power supply | 5V from Raspberry Pi GPIO or 2-pin pluggable connector |
| Power consumption | 10 mA |
| Onboard resettable fuse | 3 A |
| Opto-Isolated Digital Inputs | |
|---|---|
| Input voltage range | 3–24 V AC/DC |
| Input Forward Current | Typical 5 mA, maximum 50 mA |
| Input Series Resistor | 2.2 KΩ |
| Isolation Voltage | 5,000 Vrms |
POWER REQUIREMENTS
Power supply: The card is powered from the Raspberry Pi GPIO header (5V) or from its own 2-pin pluggable connector. Operating current is 10 mA. If the 2-pin connector is used, no separate Raspberry Pi power supply is needed.
PLUGGABLE CONNECTORS
All I/Os connect to 3.5mm pitch pluggable screw terminal connectors, accepting wire gauges from 26 to 16 AWG. Connectors can be unplugged from the board for convenient field wiring and debugging without disturbing the rest of the installation.
COMMUNICATION INTERFACES
HARDWARE WATCHDOG
The Sixteen LV Digital Inputs Card includes a hardware watchdog that ensures your system automatically recovers if the Raspberry Pi software becomes unresponsive. The watchdog is disabled at power-up and activates after it receives the first reset command from the Raspberry Pi.
| Watchdog Parameters | |
|---|---|
| Initial timeout period | Configurable — allows time for Raspberry Pi to boot and start the application |
| Running timeout period | Configurable — normal operating timeout |
| Off period | Configurable — duration the Raspberry Pi power is cut when timeout triggers |
| Reset counter | Stored in non-volatile flash; can be read or cleared at any time |
For a full list of watchdog commands, run: 16inpind -h
COMPATIBILITY
| Interface | I2C |
| GPIO used | GPIO2 (SDA), GPIO3 (SCL) — 2 pins only; remaining 24 GPIO pins stay free |
| Max stack | 8 cards of each type; different Sequent HATs can be freely mixed with virtually no upper limit on total I/O |
| Compatible with | All Raspberry Pi versions from Zero to 5 (40-pin GPIO header) |
FIRMWARE UPDATE
The onboard microcontroller firmware can be updated in the field. The update tool downloads the latest firmware from Sequent Microsystems' servers and flashes it to the board over I2C.
Running the Update
~$ cd ~/16inpind-rpi/update/
~/16inpind-rpi/update$ ./update <id>
Replace <id> with the board stack address (0-7). Full instructions including recovery procedures are available at:
https://github.com/SequentMicrosystems/16inpind-rpi/tree/master/update/README.md
DOWNLOADS
| User's Guide (PDF) | Schematics (PDF) | CAD | Software & Integrations |
|---|---|---|---|
| User's Guide | Schematic V2.0 | 2D CAD Drawing V2.0 | Command Line |
| Schematic V3.0 | 3D STEP Model V3.0 | Python Library | |
| 3D Printing Enclosure | Node-RED nodes | ||
| MODBUS interface | |||
| CODESYS Library | |||
| Home Assistant |
COMPLIANCE
RoHS and REACH Compliance Declaration
WHAT'S INCLUDED
When you purchase the card you will receive the following items:
| 1. Sixteen LV Digital Inputs Card for Raspberry Pi |
|---|
![]() |
| 2. Mounting Hardware | |
|---|---|
![]() |
|
| 3. Connector Plugs for all Inputs and Outputs | |
|---|---|
![]() |
|
QUICK START
- Plug your card on top of your Raspberry Pi and power up the system.
- Enable I2C communication on Raspberry Pi using
raspi-config. - Install the software from GitHub:
~$ git clone https://github.com/SequentMicrosystems/16inpind-rpi.git~$ cd /home/pi/16inpind-rpi~/16inpind-rpi$ sudo make install~/16inpind-rpi$ 16inpind
The program will respond with a list of available commands. To read more about the CLI, please refer to the README file. If you would rather use a different platform, you can access the same functionality through dedicated, ready-to-use integrations in the Downloads tab above.
Expand Your System
-
In stockEight Relays 4A/120V 8-Layer Stackable HAT for Raspberry Pi
Eight Relays 4A/120VAC, 24VDC N.O./N.C. contacts and LED indicators; RS485 Port. -
In stockRTD Data Acquisition 8-Layer Stackable HAT for Raspberry Pi
Eight Channel RTD Data Aquisition HAT; 0.01% accuracy through calibration; PT100/1000 Sensors; RS485/MODBUS, Watchdog. -
In stockSmart Fan HAT the Best Cooling Solution for Raspberry Pi
PWM controlled 40x40x10mm Fan keeps Raspberry Pi temperature constant; Stackable with any other HAT. -
In stockFour Relays four HV Inputs 8-Layer Stackable HAT for Raspberry Pi
Four Relays 8A/240VAC; Four opto-isolated Inputs 3V-240V; RS485/MODBUS; Quadrature encoder, PPS counters, PWM inputs;









