Skip to content

Raspberry Pi HAT I/O board which offers an impressive 30A switching capability.

License

Notifications You must be signed in to change notification settings

plasmadancom/30A-Relay-HAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

30A Relay HAT

30A Relay HAT

The 30A Relay HAT is a dual SPDT power relay I/O board based on the Microchip MCP23008 I2C expander. Ideally suited to automation or industrial control, switching of household appliances, industrial machinery or automotive applications.

Features

  • 2 opto-isolated SPDT power relays with indicator LEDs
  • 30A @ 277V AC *
  • Supports up to 6mm2 / 10 AWG cable
  • 2oz copper PCB ensures maximum current flow
  • Easy to use interactive web GUI
  • Based on the MCP23008 8-port GPIO expander
  • Jumper selectable I2C address & GPIO voltage (3.3V / 5V)
  • Can be used with 3.3V or 5V I2C host devices (eg, Arduino)
  • Built-in user programmable ID EEPROM
  • Conforms to Raspberry Pi HAT Specifications

Interactive Web GUI

30A Relay HAT Web GUI

Once installed on your Raspberry Pi, this interactive GUI allows quick & easy control of your 30A Relay HAT without the need for any coding. It is designed to be both a user guide & quick reference to the 30A Relay HAT pinout. The GUI is fully responsive and adapts to any screen size.

Check-out the Live Demo.

Easy Installer

Our easy installer takes care of the setup process automatically.

sudo wget https://git.plasmadan.com/install.sh
sudo sh install.sh

This script will automatically enable I2C, install the required packages and setup the Web GUI.

Alternatively, you can install manually. See our setup guide.

Built-in GPIO Expander

Featuring the well-documented MCP23008 8 channel GPIO expander, 30A Relay HAT is easy to setup and control via I2C. Channels 0-1 are utilised for the relays, giving you an extra 6 GPIOs for use with your project.

Arduino Wiring

We built 30A Relay HAT to work with any device featuring an I2C bus. It can be used with either 3.3V devices (eg, Raspberry Pi) or 5V devices (eg, Arduino); by selecting the appropriate jumper (see device compatibility).

Maximum Ratings

  • 30A @ 277V AC *

Exceeding these limits may overload the PCB.

* 30A is no small fry! You must take into account the type of load you're switching. Study the relay datasheet! In open air 30A Relay HAT can safely handle 30A (resistive load) but beware of heat build-up with prolonged use.

DC Switching

DC is much more difficult to switch compared to AC. 30A Relay HAT is not rated to switch DC since it uses AC relays, however provided you stick to low voltages and keep the current reasonable, you should be fine. However this is entirely at your own risk and will likely reduce the operational life of the relays. Automotive applications at 12V DC should be fine also. We recommend a maximum 20A @ 30V DC.

Alternatively try our CTRL HAT boards which work with DC power-MOSFETs.

Electrical Safety

Mains voltage electricity is extremely dangerous. There is significant risk of death through electrocution, fire or explosion if not wired and fused correctly.

If using with mains voltages 30A Relay HAT must be installed in an electrically insulated enclosure by a qualified electrician and maintain at-least a 2mm air gap between all conductive parts of the Raspberry Pi (source).

Isolating the Relays

Removing the LINK jumper from 30A Relay HAT will disconnect 5V power to the relays. This allows you to power the relays from a dedicated supply if required.

Back-Powering

Using a decent power supply, such as the official Raspberry Pi adaptor, you can expect to pull around 1.5A from the 5V pins on a Raspberry Pi. You can use up to 8 30A Relay HATs with a single Raspberry Pi. That's up to 16 1W relays, 16 LEDs and 8 GPIO expanders which all need power. It's easy to see how quickly we can go over the limit, especially if the GPIO expanders are used to drive other devices. Back-powering can solve this.

The easiest way to back-power 30A Relay HAT is using the 5V power pins. Alternatively, solder directly to the supplementary power-in pads.

* Note: Back-powering is for 30A Relay HAT, not for Raspberry Pi. Remove the LINK jumper when back-powering to avoid damaging your Pi.

I2C Addressing

Address A2 A1 A0
0x20
0x21
0x22
0x23
0x24
0x25
0x26
0x27

Device Compatibility

30A Relay HAT is fully compatible with all 40-way Raspberry Pi models and clones.

Device Model Compatibility
Raspberry Pi 1 Model A+/B/B+ ✔️
Raspberry Pi 2 Model B ✔️
Raspberry Pi 3 Model B+ ✔️
Raspberry Pi 4 ✔️
Raspberry Pi Zero ✔️
Asus Tinker Board ✔️
Orange Pi ✔️
Odroid ✔️
ATMegaZero ✔️

To use with Arduino or any other 5V device the 3V3 jumper must be moved to 5V. Use the SDA & SDL breakout pins for I2C communication.

Dimensions

Mechanical Drawing

Known Compatible Cases

Where to Go From Here

Integrating 30A Relay HAT with your own projects is easy, just follow any guide which uses the MCP23008 or MCP23017 expander. We have provided some example Python scripts to get you started (see here).

Product Data

MPN: 30A-RELAY-HAT
EAN: 0616908588429

License

MIT © Dan Jones - PlasmaDan.com

About

Raspberry Pi HAT I/O board which offers an impressive 30A switching capability.

Topics

Resources

License

Stars

Watchers

Forks

Languages