Eight MOSFETS 8-Layer Stackable HAT for Raspberry Pi
Four PWM Loads 12A/24V plus four PWM loads 4A/240V with status LEDs; RS485/MODBUS Port.
Overview
Eight-layer stackable MOSFET output HAT for Raspberry Pi with four high-voltage channels (4A/240VDC) and four high-current channels (12A/24VDC), all supporting 1 kHz PWM. Wide-range power supply (5V or 10–24VDC) includes an onboard DC-DC converter that powers the Raspberry Pi at 5V/5A.
- 4 high-voltage MOSFET outputs (4A/240VDC) + 4 high-current outputs (12A/24VDC)
- PWM control at 1 kHz on all outputs — ideal for proportional load control
- RS485/MODBUS standalone operation — no Raspberry Pi required
- Hardware watchdog; galvanic isolation between high-voltage and high-current channels
- Power from 5V or 10–24VDC wide-range supply; provides 5V/5A to Raspberry Pi
- Eight-layer stackable; compatible with all Raspberry Pi versions from Zero to 5
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 |
|---|---|---|
| • 4 High-Voltage Outputs CH1–4 (4A/240VDC) | • I2C Port to Raspberry Pi | • Command Line |
| • 4 High-Current Outputs CH5–8 (12A/24VDC) | • RS485/MODBUS Port | • Python Library |
| • Status LED per Output | • Node-RED nodes | |
| • Push Button (GPIO 26 / pin 37) | • CODESYS Driver | |
| • OpenPLC Module | ||
| • Home Assistant | ||
| • Arduino Library | ||
| Other Features | ||
| • 1 kHz PWM on all 8 outputs — onboard processor enables proportional control independent of Pi | ||
| • Standalone MODBUS RTU slave operation — no Raspberry Pi required | ||
| • Wide-range power input: 5V or 10–24VDC; provides 5V/5A peak to Raspberry Pi | ||
| • Galvanic isolation between high-voltage (CH1–4) and high-current (CH5–8) channels | ||
| • Hardware watchdog monitors Raspberry Pi and power-cycles on lockup | ||
| • Eight-layer stackable — up to 64 MOSFET outputs per Raspberry Pi | ||
DESCRIPTION
The Eight MOSFETS HAT adds eight independently controlled solid-state outputs to the Raspberry Pi. Channels 1–4 are rated for high-voltage loads up to 4A at 240VDC; channels 5–8 are rated for high-current loads up to 12A at 24VDC. All eight channels support 1 kHz PWM for proportional control of motors, heaters, lighting, and similar loads.
Channels 1–4 are rated at 4A/240VDC. Each output includes diode and TVS protection and is suitable for switching 240V AC or DC loads. Pluggable connectors simplify field wiring.
Channels 5–8 are rated at 12A/24VDC with TVS protection. These channels are galvanically isolated from the high-voltage channels, making it safe to power different load types simultaneously from the same card.
All eight outputs support 1 kHz PWM. The onboard processor handles PWM generation independently of the Raspberry Pi, so the duty cycle remains stable even when the Pi is under load. Ideal for proportional control of motor speed, heating power, and LED brightness.
When the TX and RX DIP switches are set to OFF, the card operates as a MODBUS RTU slave — any MODBUS master (PLC, SCADA, HMI) can control all outputs without a Raspberry Pi. Set TX and RX to ON to use the port as a passive bridge for the Pi. A full list of MODBUS registers is available on GitHub.
The onboard watchdog monitors the Raspberry Pi and power-cycles it if a reset command is not received within the configured timeout. Disabled at power-up; activated automatically after the first reset command is issued by the application.
Accepts 5V or 10–24VDC input. When a wide-range supply is used, the onboard DC-DC converter provides 5V/5A peak to power the Raspberry Pi — no separate Pi power supply needed. A resettable 2.5A fuse protects the board.
TECHNICAL DETAILS
CARD LAYOUT

MECHANICAL SPECIFICATIONS

DIP SWITCH AND STACKING
The onboard 6-position DIP switch configures the stack address and RS485 port behavior. Up to eight Eight MOSFETS HATs can be stacked on one Raspberry Pi; cards can be stacked in any order.

| 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) |
| TX | RS485 TX select | ON = Raspberry Pi drives RS485 TX; OFF = onboard processor drives TX (MODBUS RTU slave) |
| RX | RS485 RX select | ON = Raspberry Pi receives RS485 RX; OFF = onboard processor receives RX |
| TERM | RS485 termination | ON = enables 120 Ω termination resistor; set ON if this card is the last on the RS485 bus |
ELECTRICAL SPECIFICATIONS
| Power | |
|---|---|
| Power supply | 5V/5A or 10–24VDC/2.5A pluggable connector |
| Provides to Raspberry Pi | 5V/5A peak |
| Onboard resettable fuse | 2.5 A |
| Power consumption (card) | 10 mA (outputs off) |
| High-Voltage Outputs (CH1–4) | |
|---|---|
| Max voltage | 240 V |
| Max current | 4 A |
| RDS(on) | 200 mΩ at 10V gate drive |
| High-Current Outputs (CH5–8) | |
|---|---|
| Max voltage | 24 V |
| Max current | 12 A |
| RDS(on) | 4.6 mΩ at 10V gate drive |
| Connectors | |
|---|---|
| Connector rating | 300 V / 15 A |
| Wire gauge | 24–12 AWG |
POWER REQUIREMENTS
Power supply: The card accepts 5V input from the Raspberry Pi or its own pluggable connector, or 10–24VDC from a wide-range supply. When a wide-range supply is used, the onboard DC-DC converter outputs 5V/5A peak to power the Raspberry Pi — no separate Pi supply is needed. The card itself draws 10 mA with all outputs off. A resettable 2.5A fuse protects the board.
SELF TEST
The card can be tested before installation by running a command from the command line. The card will cycle each output on and off at 0.5-second intervals. The LED indicators confirm that all outputs are functioning correctly.
COMMUNICATION INTERFACES
HARDWARE WATCHDOG
The onboard hardware watchdog monitors the Raspberry Pi. If the application fails to send a reset command within the configured timeout, the watchdog cuts power to the Pi and restores it after the configured off period. The watchdog is disabled at power-up and is activated automatically after the first reset command is received. Use 8mosind -h to see all watchdog commands.
| Parameter | Value |
|---|---|
| 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 |
COMPATIBILITY
| Interface | I2C |
| GPIO used | GPIO2 (SDA), GPIO3 (SCL) — 2 pins only; remaining GPIO pins stay free |
| Max stack | 8 cards of each type; different Sequent HATs can be freely mixed |
| 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 ~/8mosind-rpi/update/
~/8mosind-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/8mosind-rpi/tree/main/update/README.md
DOWNLOADS
| Schematics (PDF) | CAD | Software & Integrations |
|---|---|---|
| Schematic V2.0 | 2D CAD Drawing | Command Line |
| Schematic V4.0 | 3D STEP Model V5 | Python Library |
| Schematic V5.0 | 3D STEP Model V6.1 | Node-RED nodes |
| Schematic V6.1 | 3D Printing Enclosure | CODESYS Driver |
| OpenPLC Module | ||
| Home Assistant | ||
| Arduino Library |
COMPLIANCE
RoHS and REACH Compliance Declaration
WHAT'S INCLUDED
When you purchase the card you will receive the following items:
| 1. Eight MOSFETS HAT 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/8mosind-rpi.git~$ cd 8mosind-rpi~/8mosind-rpi$ sudo make install~/8mosind-rpi$ 8mosind -h
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 stockSixteen LV Digital Inputs 8-Layer Stackable HAT for Raspberry Pi
Sixteen 3V-24V Opto-isolated Inputs with LED indicators; RS485/MODBUS, Hardware Watchdog.










