# DQ10rly I2C-HAT

Raspberry Pi HAT, 10 relays (5A @ 250VAC). Cuts coil power use by 75%, stack up to 16 boards, fail-safe PowerOnValue and SafetyValue.

- **Seller:** [Raspihats](https://www.lectronz.com/stores/raspihats), Alba Iulia, Alba, Romania
- **Price:** €63.75 (EUR, before shipping and taxes)
- **Availability:** In stock
- **Categories:** Raspberry Pi, Home automation, Robotics
- **Country of origin:** Romania
- **Product page:** https://www.lectronz.com/products/dq10rly-i2c-hat

## Links

- [Documentation](https://raspihats.com/downloads/products/dq10rly-i2c-hat-datasheet.pdf)
- [Code](https://github.com/raspihats/raspihats)

## Images

![DQ10rly I2C-HAT](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NjUxNTEsInB1ciI6ImJsb2JfaWQifX0=--9259eef5e0d0a53ab0c03c2853b3a1f3a8a830e0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/top-front-view.png)
![DQ10rly I2C-HAT](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NjUxNTUsInB1ciI6ImJsb2JfaWQifX0=--b01c43d7d3723534fdaf1b19cbaf8ca61d5b32ca/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/top-right-view.png)
![DQ10rly I2C-HAT](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NjUxNTksInB1ciI6ImJsb2JfaWQifX0=--a6cc6e7d6517161adb910addd23320d772d43633/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/connector-view.png)
![DQ10rly I2C-HAT](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NjUxNjMsInB1ciI6ImJsb2JfaWQifX0=--056c685cffaf284e92fa65c9a8ca3074d6b9711e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/mounted-on-raspberry-pi-view.png)

## Description

# What is it?

The DQ10rly I2C-HAT is an add-on board for the Raspberry Pi that adds 10 power relay outputs, controlled over the I2C bus. It lets your Pi switch real-world loads like pumps, lights, heaters, motors and valves, using detachable screw terminals and with LED indicators for every relay.

# Why did you make it?

The Raspberry Pi is a great brain for automation projects, but its GPIO pins cannot switch real-world loads, and most hobby relay boards are not built for serious, always-on use. I wanted a relay HAT that behaves like proper industrial I/O and stays in a known, safe state even if something goes wrong. Because it talks over I2C instead of eating GPIO pins, it also leaves the rest of the header free for your project.

# What makes it special?

* **PWM relay drive**: the relays are PWM-driven instead of continuously energized, cutting average coil power consumption by up to 75%
* **Stackable**: thanks to that low power draw, up to 16 boards can be stacked on a single Pi (address jumpers), for up to 160 relay outputs, no extra hardware needed
* **PowerOnValue**: each relay has a configurable state it takes at startup
* **SafetyValue**: each relay has a configurable fail-safe state it falls back to if the communication watchdog trips

# Stacking

Need more than 10 relay outputs? You can stack up to 16x DQ10rly I2C-HATs on a single Raspberry Pi using the onboard I2C address jumpers - no extra hardware required. Every device on an I2C bus needs a unique address, so before stacking multiple boards, set each one’s address jumpers to a different value.

The default (unjumpered) address is 0x50, which is also the address used in the Quick Start example below. Because the relays are PWM-driven rather than continuously energized, average power draw per board stays low - that’s what keeps a full 16-unit stack within a single Raspberry Pi’s power budget.
Software

Fully supported by the open source raspihats Python library, install it with pip install raspihats and control a relay in just 3 lines of code. A Robot Framework integration is also available for test automation setups.

# Quick Start

Install the library:

```pip install raspihats```

Get started with just 3 lines of code:

    from raspihats.i2c_hats import DQ10rly
    hat = DQ10rly(address=0x50)
		
    # Set all relays at once using a bitmask (0x01 = only relay 0 ON)
    hat.do.value = 0x01
		
    # Set a single relay - True to energize, False to release
    hat.do.channels[0] = True

# Documentation

Datasheet and CE Declaration of Conformity are available for download on the product page at raspihats.com.

## Shipping policy

Orders ship twice a week, and you will receive a notification with tracking as soon as your parcel is on its way. Delivery takes a few days if you are located in the EU, it will take more if you are outside the EU. Our main shipping partner is FedEx.

Buyers outside the EU may have to pay customs duties or import taxes. These charges depend on your country's import laws and are the buyer's responsibility.
