8-channel relay module with an I2C IIC or USB connection for Raspberry Pi, Arduino, OpenWrt and moreDesigned by Peter Jakab, Ships from United Kingdom
You can directly connect this relay board to the Raspberry Pi or Arduino using just four wires (I2C) or an USB cable. Find the full documentation here. I2C version 8 channel relay module board wi...Read More…
You can directly connect this relay board to the Raspberry Pi or Arduino using just four wires (I2C) or an USB cable.
Find the full documentation here.
The I2C module board connects to the master device with connector CN21. The pinout for CN21 is: pin number - pin name
The logic power supply voltage should match the voltage levels on the I2C bus. The SDA and SCL lines are pulled up to VDD with 47k resistors on the relay module. The module contains an MCP23008 chip, please check the datasheet for the details.
Connect a power supply to the relay power input jack (5VDC or 12VDC, depending on the relay voltages). Connect CN22 to the bus master logic power supply and the I2C bus. For the Raspberry Pi the connections are:
Raspberry Pi P1 pin - relay module CN22 pin - pin name
Example of controlling the relays from an Arduino:
Arduino pin - relay module CN22 pin - pin name
Example of controlling the relays on a Raspberry Pi board or a Linux computer:
relayctl setport 0b00001100 # turn relay for CN3 and CN4 ON, all others OFF
relayctl setbit 0b10000000 # turn relay for CN8 ON, don't change the state of other relays
relayctl clearbit 0b01000001 # turn relay for CN1 and CN7 OFF, don't change the state of other relays
Pornthep | Oct. 17, 2017
We recognize our top users by making them a Tindarian. Tindarians have access to secret & unreleased features.
We look for the most active & best members of the Tindie community, and invite them to join. There isn't a selection process or form to fill out. The only way to become a Tindarian is by being a nice & active member of the Tindie community!