Sixteen Solid State 2A/24V Relays 8-Layer Stackable HAT for Raspberry Pi

SequentSKU: 106012
Price:
Sale price £68.90
incl. VAT
excl. VAT
Stock:
In stock
Quantity:

Compatible with:

Awesome Extras

DIN-RAIL Kit Type-1 - Parallel to Rail - for Raspberry Pi - The Pi HutDIN-RAIL Kit Type-1 - Parallel to Rail - for Raspberry Pi - The Pi Hut
DIN-RAIL Kit Type-2 - Perpendicular to Rail - for Raspberry Pi - The Pi HutDIN-RAIL Kit Type-2 - Perpendicular to Rail - for Raspberry Pi - The Pi Hut
Raspberry Pi 5 - The Pi HutRaspberry Pi 5 - The Pi Hut
Raspberry PiRaspberry Pi 5
Sale priceFrom £46.60 incl. VAT excl. VAT

This is a copycat of our 16-Relays HAT, for Raspberry Pi with one significant difference: Solid State instead of mechanical relays. While mechanical relays are very reliable and have close to zero ohms resistance on contacts, they have a limitation in the number of lifetime cycles.

The relays we use on the original 16-Relay HAT have a Mechanical Life of 1,000,000 operations. While this might be OK if relays are not triggered too often, what if your application requires 1-second intervals? A relay might engage 3,600 times an hour, or 86.400 times each day. It will run out of cycles in less than 2 weeks, which is a major drawback.

The 16 Solid State Relays HAT overcomes this limitation, having an infinite number of lifetime cycles.

The Solid State Relay HAT is software compatible with the 16 Relays HAT and can be stacked up to 8 levels in combination with all other Sequent Microsystems cards equipped with a processor. Perfect when you have to control a large number of loads. Stackable to 8 layers, the card can add up to 128 relays to each Raspberry Pi in a compact form factor.

Pluggable connectors make the card easy to use when multiple cards are stacked up too. Bicolour LEDs conveniently grouped on one side of the board show when relays are on or off. A power LED shows when power is applied. A reset switch permits shutting down the Raspberry Pi without the use of a keyboard and monitor.

Raspberry Pi not included

Compatibility

The card is compatible with all Raspberry Pi versions from Zero to Raspberry Pi 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.

Power Requirements

The 16-Relay card needs 5V to operate and can be powered from a Raspberry Pi or from its own 2-pin pluggable connector.

The card draws 20mA. If power is applied to the board's connector, no other power supply is needed for the Raspberry Pi.

LED Indicators

A power LED shows when power is applied to the board. Due to space limitations, bicolour LEDs are used to show the status of groups of 8 relays.

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.

Stacking Multiple Cards

Up to eight cards can be stacked on your Raspberry Pi. The three left positions of the DIP Switch are used to select the stack level.

RS485/MODBUS Port

The 16 Solid State Relay Card has an RS485 port which can be driven from the Raspberry Pi, or 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:

~$ 16relind [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 parameter 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.

Reverse Power Supply Protection

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

Reset Pushbutton

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 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.

Hardware Watchdog

The card contains a built-in hardware watchdog which will guarantee that your mission-critical project will recover and continue running even if Raspberry Pi software hangs up. After power up the watchdog is disabled, and becomes active after it receives the first reset or first-period set.

The default timeout is 120 seconds. Once activated, if it does not receive a subsequent reset from Raspberry Pi within 2 minutes, the watchdog cuts the power and restores it after 10 seconds.

Raspberry Pi needs to issue a reset command on the I2C port before the timer on the watchdog expires. The timer period after power-up and the active timer period can be set from the command line. The number of resets is stored in flash and can be accessed or cleared from the command line. All the watchdog commands are described by the online help function.

DIN-Rail Mounting

The 16-Relays 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.

Features

  • Sixteen Solid State Relays 2A/24V 8-Layer Stackable HAT for Raspberry Pi
  • All Relays with Status LEDs and N.O. contacts
  • Eight layer stackable to 128 Solid State Relays
  • Pluggable Connectors 26-16 AWG wires
  • 5V power supply with reverse polarity protection
  • On board hardware watchdog
  • RS485 Port
  • General purpose push-button
  • 8 LEDs showing status of groups of 8 relays
  • Software self-test
  • Sixteen Solid State Relays Raspberry Pi
  • Uses only I2C port, all GPIO pins available
  • Works with any Raspberry Pi from ZERO to 5
  • ECCN Code EAR99

Specifications

  • Power Supply: 5V/8A pluggable connector with reverse polarity protection
  • On board resettable fuse: 3A
  • Relays: NO contacts, 2.0A/24 VAC/DC
  • Ron resistance: 60mΩ typ.
  • Off-state leakage current: max. 1μA
  • Turn On Time: 1.5mS max.
  • Turn Off Time: 0.5mS max.
  • Load Current: 2.5A max.
  • Peak Load Current: 5A 100mS pulse
  • Electrical and Mechanical endurance: unlimited

Resources

Quick Start

  • Plug your 16-Solid State Relays card on top of your Raspberry Pi and power up the system.
  • Enable I2C communication on Raspberry Pi using raspi-config.
  • Install the 16-RELAYS software from github.com:

~$ git clone https://github.com/SequentMicrosystems/16relind-rpi.git
~$ cd /home/pi/16relind-rpi
~/16relind-rpi$ sudo make install
~/16relind-rpi$ 16relind

The program will respond with a list of available commands.

Software Interfaces

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 we supply. You can drag-and-drop the functional blocks to design your application. Examples are provided at GitHub.

Relay Self-test

The card can be tested before installation by running a simple command from the command line. The card will cycle each relay on and off at 0.5 seconds interval. The lighting of the LEDs will assure that all relays are functioning.

Package Contents

  • 1x Sixteen Solid State Relays HAT
  • 4x M2.5x18mm male-female brass standoffs
  • 4x M2.5x5mm brass screws
  • 4x M2.5 brass nuts
  • 11x Connector plugs

Raspberry Pi not included

Payment & Accreditations

Payment methods
Visa Mastercard Maestro PayPal Amazon Klarna

Your payment information is processed securely. We do not store credit card details nor have access to your credit card information.

Accreditations