FEATURES
The latest version of the 8-MOSFET card (V5.0), now in stock, has several major improvements:
- On board processor permits proportional load control using PWM at 1kHz
- RS485 port connected to the local processor permits operation as MODBUS RTU slave, replacing the Raspberry Pi with any PLC
- Heavy duty, 5mm pluggable connectors can control loads up to 12A
- High current channels are galvanically separated from the High Voltage channels
- TVS diode protection on high current outputs, diode protection on high voltage
- All jumpers replaced with DIP Switches
- 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, 4A/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
- Home Assistant Integration
DESCRIPTION
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.
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.
DIP SWITCH CONFIGURATION
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.
DIP Switch | ||||||||
Stack Level | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
I2C Addr. | 0x3F | 0x3E | 0x3D | 0x3C | 0x3B | 0x3A | 0x39 | 0x38 |
RS485/MODBUS PORT
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.
RS485 TERMINATOR
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.
- Power supply: Pluggable connector
- Power consumption: 10mA
- On board resettable fuse: 3A
- MOSFETS 1-4: 240V, 220 mOhm
- MOSFETS 5-8: 24V, 6.2 mOhm
- Connector ratings: 250V/8A
- MOSFETS gate voltage: 12V
DOWNLOADS
SOFTWARE
YOUR KIT
- Four M2.5x18mm male-female brass standoffs
- Four M2.5x5mm brass screws
- Four M2.5 brass nuts
QUICK START
- Plug your 8-MOSFETS card on top of your Raspberry Pi and power up the system using only one 5V/3A power supply.
- Enable I2C communication on Raspberry Pi using raspi-config.
- Install the 8-MOSFETS software from github.com:
- ~$ git clone https://github.com/SequentMicrosystems/8mosind-rpi.git
- ~$ cd /home/pi/8mosind-rpi
- ~/8mosind-rpi$ sudo make install
- ~/8mosind-rpi$ 8mosind -h