Raspberry Pi relay tutorial

Raspberry Pi relay tutorial

INTRO I’m writing this tutorial to highlight the advantages of using the DQ10rly I2C-HAT, a relay board specifically designed as an add-on for Raspberry Pi rather than using a generic relay board. Advantages: easy install, just mount DQ10rly on top of Raspberry Pi using the mounting kit, no wires required stackable up to 16x, use the mounting extension kit to stackRead more about Raspberry Pi relay tutorial[…]

I2C-HAT firmware update

I2C-HAT firmware update

Download and install stm32flash on Raspberry PI stm32flash is the tool you need to update the firmware on the I2C-HATs. Open a terminal on Raspberry PI and go to the directory where you want to download stm32flash, type the following commands to download and install:

STM32 integrated bootloader All I2C-HATs are based on STM32Read more about I2C-HAT firmware update[…]

I2C clock stretching timeout on the Raspberry PI

I2C clock stretching timeout on the Raspberry PI

Clock stretch timeout register – CLKT The TOUT field from CLKT register provides a timeout on how long the master waits for the slave to stretch the clock before deciding that the slave has hung,  the default value for TOUT is 0x40(64 decimal), this is from BCM2835-ARM-Peripherals doc. TOUT field is 16 bit long. Calculating timeoutRead more about I2C clock stretching timeout on the Raspberry PI[…]

Application Wiring

Application Wiring

In the following diagrams there are two sections: Internal External Internal section reflects a simplified version of the on-board circuit. The External section reflects the wiring that the user can build. Digital Inputs Bi-directional Opto-coupler Input Sink Type Source Type   Digital Outputs Relay Outputs The LOAD element in the following diagrams can be aRead more about Application Wiring[…]