Use FREE-SHIPPING discount code for all US orders over $15

Eight MOSFETS 8-Layer Stackable HAT for Raspberry Pi

SKU: SM-I-006

Regular price $50.00


The latest version of the 8-MOSFET card (V5.0), now in stock, has several major improvements:

  1. On board processor permits proportional load control using PWM at 1kHz
  2. RS485 port connected to the local processor permits operation as MODBUS RTU slave, replacing the Raspberry Pi with any PLC
  3. Heavy duty, 5mm pluggable connectors can control loads up to 12A
  4. High current channels are galvanically separated from the High Voltage channels
  5. TVS diode protection on high current outputs, diode protection on high voltage
  6. All jumpers replaced with DIP Switches
  7. Software compatible with previous version
  • Eight MOSFETS 8-Layer Stackable HAT for Raspberry Pi
  • Eight Level Stackable
  • Works with any Raspberry Pi from  ZERO to 5
  • Four High Current Loads, 12A/24VDC
  • Four High Voltage Loads, 2A/240VDC
  • PWM at 1kHz on all outputs
  • Reverse polarity power supply protection
  • General purpose/reset pushbutton
  • TVS protection on high current Outputs
  • DIP-Switch selection - no jumpers
  • Pluggable Connectors 24-12 AWG wires
  • Status LEDs on all Outputs
  • RS485/MODBUS Port
  • Uses only I2C port (address 0x20..0x27 or 0x38..0x3f ), all GPIO pins available
  • ECCN Code EAR99
  • MOSFETS Raspberry Pi
  • All mounting hardware included: stand-offs, screws and nuts
  • Open source hardware and schematics
  • Command Line 
  • Python Drivers
  • Node Red Nodes
  • OpenPLC module


8-MOSFETS: Eight Solid State drivers for high current/high voltage DC loads
The 8-MOSFETS card is a stackable expansion card for Raspberry Pi. It has four high current channels which can drive 12A/24V loads and four high voltage channels which can drive loads of 4A/240V. Stackable to 8 layers, the card can provide up to 64 solid state outputs to each Raspberry Pi.
Pluggable connectors make the 8-MOSFETS card easy to use when multiple cards are stacked up. Status LEDs show when MOSFETs are on or off. 

The card is compatible with all Raspberry Pi versions from Zero to 5. All stacked cards share the I2C bus using only two of the Raspberry Pi’s GPIO pins to manage all eight cards.  This feature leaves the remaining 24 GPIOs available for the user. 

The 8-MOSFETS card needs 5V to operate and can be powered from Raspberry Pi or from it's own pluggable connector.  The card draws about 50mA. If power is applied to the card, no other power supply is needed for the Raspberry Pi. 


A six position DIP switch is used to select the source of the RS485 port and the position of the card in the stack, if multiple cards are used. 

8 Mosfets DIP Switch Configuration

Up to eight 8-MOSFETS cards can be stacked on your Raspberry Pi. The three right positions of the DIP Switch are used to select the stack level.
DIP Switch 8-MOSFET for Raspberry Pi Stack Level 8-MOSFET for Raspberry Pi Stack Level 8-MOSFET for Raspberry Pi Stack Level Selection 8-MOSFET for Raspberry Pi Stack Level 8-MOSFET for Raspberry Pi Stack Level 8-MOSFET for Raspberry Pi Stack Level 8-MOSFET for Raspberry Pi Stack Level 8-MOSFET for Raspberry Pi Stack Level
Stack Level 0 1 2 3 4 5 6 7
I2C Addr. 0x3F 0x3E 0x3D 0x3C 0x3B 0x3A 0x39 0x38


The card has an RS485 port which can be driven from the Raspberry Pi, or from the local processor. Leave the TX and RX switches in the OFF position to connect the port to the local processor. Set both to ON to connect to USART1 of the Raspberry Pi.

When DIP Switches are ON, Raspberry Pi can communicate with any device with an RS485 interface. In this configuration the card is a passive bridge which implements only the hardware levels required by the RS485 protocol. To use this configuration, you need to tell the local processor to release control of the RS485 bus:

~$ 8mosind [0]  rs485wr 0 0 0 0 0

When DIP Switches are OFF, the card operates as MODBUS slave and implements the MODBUS RTU protocol. Any MODBUS master can access all the card's inputs, and set all the outputs using standard MODBUS commands. A detailed list of commands implemented and parameters addresses can be found on GitHub:

In both configurations the local processor needs to be programmed to release (jumpers installed) or control (jumpers removed) the RS485 signals. See the command line online help for further information.


The last position on the DIP switch is the RS485 line terminator. Set it to ON if the card is last on the RS485 chain.


The board is protected to accidental reverse power supply with a 5.8A, 39 mOhm MOSFET which breaks the ground line if reverse power is applied. 


Shutting down the Raspberry Pi by turning off the power can result in SD Card failure. To prevent this, a shutdown command needs to be used before power cut-off. But this requires a monitor, keyboard and mouse connected to the Pi. 

A momentary on push button installed at the edge of the board provides a convenient way to shut down the Raspberry Pi. The button is routed to pin 37 (GPIO 26). You need to write a script which monitors this pin, and if pressed for more than a desired time, issues the shut-down command.

8-MOSFET for Raspberry Pi

  • Power supply: Pluggable connector 
  • Power consumption: 10mA
  • On board resettable fuse: 3A
  •  MOSFETS 1-4: 125V, 7.5 mOhm
  • MOSFETS 5-8:  250V, 280 mOhm
  • Connector ratings: 250V/8A
  • MOSFETS gate voltage: 12V




You can write your own application using the Command Line or Python Libraries provided. No programming is required if you use the Node-Red nodes provided. You can drag-and-drop the functional blocks to design your application. Examples are provided at GitHub.
The 8-MOSFETS card can be tested before installation by running a simple command from the command line. The card will cycle each MOSFET on and off at 0.5 seconds interval. The lighting of the LEDs will assure that all MOSFETS are functioning. Optional loads on each channel can extend the user's confidence in the hardware.


The 8-MOSFETS card can be installed parallel on a DIN-Rail using the DIN-Rail Kit Type 1, or perpendicular using the DIN-Rail Kit Type 2.


The Smart Fan provides a stackable cooling solution for Raspberry Pi. Its on-board processor powers the fan just enough to maintain the preset temperature of the Pi. If the 8-MOSFETS card is used to drive multiple high current loads, a secondary Smart Fan can be installed on top of the card to provide adequate cooling.


When you purchase the 8-MOSFETS Card you will receive the following items:
1. 8-MOSFETS Stackable HAT for Raspberry Pi
8 Mosfets for Raspberry Pi

  • Four M2.5x18mm male-female brass standoffs
  • Four M2.5x5mm brass screws
  • Four M2.5 brass nuts
Brass Mouting Hardware

4. All connector plugs required
Pluggable connector plugs


  1. Plug your 8-MOSFETS card on top of your Raspberry Pi and power up the system using only one 5V/3A power supply.
  2. Enable I2C communication on Raspberry Pi using raspi-config.
  3. Install the 8-MOSFETS software from
  4. ~$ git clone
  5. ~$ cd /home/pi/8mosind-rpi
  6. ~/8mosind-rpi$ sudo make install
  7. ~/8mosind-rpi$ 8mosind -h
The program will respond with a list of available commands.
Connect your load between pin 2 of any of the load connectors and the positive side of your external power supply. Connect the negative side of your external power supply to pin 1 of the output connectors. Turn on and off the load using the corresponding command.

Customer Reviews

Based on 4 reviews
It never arrived - but it has now

Wow - these guys give you the personal service - my product didn't arrive and they asked for feedback - so I rated them bad - they then called me out for the bad review as they checked and my product did arrive - like the day after they asked for feedback - lol.

Anyway - it's arrived I'm sure it's fine - all happy now.

Tony D
Best Mosfet Card Around

Giday everyone
If you need to control equipment then this is the card to Have. Fans to keep equipment cool or heating pads to keep the LIFO batteries warm & stop them from freezing then this is the card you need especially with the new added feature PWM control & using a PID routine that can be found in the Fan controller Hat REPO you have a winning combination.
Support is excellent & very quick to offer assistance. On a side not Alex is it possible to include the PID control from the Fan control Hat & have it included as standard in the Mosfet 8 IO card & the new soon to come 16 IO card

Thankyou Alex for all the assistance given. "U deserve a pay rise !!! "

Regards TonyD

Daniel Franklin
Outstanding product

This board is fantastic, great for controlling a wide range of loads, trivially easy to interface with, comes with everything you need, scalable and flexible.

Well, it's another Pi.

It's faster, they pretty much rectified all of the previous shortcomings of the past models, most notably the absolutely crippling front side bus bottleneck (making older versions very... Impractical to say the most). Interface throughput rates make sense now, resources are up, and critical features have been added.

Notify Me When Available

Fill in the required details to get notified when the product is again in stock!