The DI6acDQ6rly I2C-HAT is a 6 digital input channels and 6 relay Raspberry Pi add-on board that uses the I2C bus for communication with Raspberry Pi. The DI6acDQ6rly offers 6 sink/source isolated digital input channels and 6 Form A power relay output channels. The input channels can be used as edge counters, every input channel has an two 32-bit counters attached, one for counting rising edges and the other for counting falling edges. The DI6acDQ6rly also has 6 LED indicators for digital inputs status monitoring and 6 LED indicators for power relay outputs status monitoring.
Users can stack up to 16x DI6acDQ6rly I2C-HATs on one Raspberry Pi. Make sure every DI6acDQ6rly from the stack has a unique I2C bus address. Setting the address value is accomplished using the on board I2C address jumpers.
Interrupt Requests - IRQs
Everyone of the Digital Input Channels has the capability of generating an Interrupt, on both rising and falling edges. The firmware determines the Digital Input Channels Interrupts and triggers the derived IRQ signal(open collector) that goes to a Raspberry Pi gpio(selectable using solder jumpers, but default is GPIO21). This IRQ signal will trigger an interrupt on Raspberry Pi thus informing that a change has occured on one or more of the Digital Input Channels and Raspberry PI should read the board DI_IRQ Capture Queue using the I2C bus commands. The Raspberry Pi GPIO21 pin should be configured with pullup resistor enabled and Falling Edge Interrupt enabled, please see python example
This type of HAT consumes a little more power than other types, check specs for power consumption. The reason for the power consumption is the high number of relays. Be careful when stacking multiple HATs that have relays in general.
|Interface||I2C @ 100 kbs|
|Power Consumption||0.75W(150mA@5V) max.|
|Operating Temperature||-25 to 75°C|
|Watchdog Timer||System and Communication|
|Digital Input Channels||6|
|Signal Type||Sink, Source, isolated channels with common ground or power|
|On Voltage Level||+3 to +30V|
|Off Voltage Level||+1V max.|
|Counter Channels||12(6rising & 6 falling), 32-bit, Max. Input Frequency : 100Hz, Min. Pulse Width : 5ms|
|Isolation Voltage||2000 VAC|
|Relay Type||Form A relay SPST (N.O.)|
|Contact Rating||5A @ 250VAC/30VDC|
|Breakdown Voltage||2000 VAC|
The DI6acDQ6rly I2C-HAT has 2 connectors(8 pin and 12 pin, 3.81mm pitch, detachable screw terminal).
The first connector(8 pin) is used by the 6 Digital Input channels, it has 6 Digital Input pins and 2 Common pins. Every input channel uses 2 pins:
- Ix, where x is the channel index, range [0..5]
The second connector(12 pin) is used by the 6 Relay Output channels. Every Relay Output channel uses 2 pins:
- NOx – NormalOpen
- COMx – Common where x is the channel index, range is [0..5]
For details about wiring diagrams check the Digital Inputs Sink/Source Types and Relay Outputs in the Application Wiring post.