Main Site Documentation

Relay x16 Board


#1

Can I have multiple Relay x16 Boards on the same Cobra? I think I read they can be daisy chained but I cannot find anything on that.


#2

Yes they use I2C so they can be chained, up to 7 (112 relays!)

You need more than 16 relays?! Must be some cool project :slight_smile:


#3

homemade beer system!


#4

How do I chain them? Any pictures or docs around?


#5

You need to manually create “Y” cable. It is a simple pin to pin connection. Remember to change the address on the device using jumpers.


#6

Figured that out. But any recommendation on talking to the 2 boards at the same time? Seems only one I2C device can be active at the same time:

var I2C = new I2CDevice(new I2CDevice.Configuration(0x20, 100));
var I2C2 = new I2CDevice(new I2CDevice.Configuration(0x21, 100));

It fails when it trys to open i2c2…


#7

Correct. Read the wiki page on how to use multiple I2C devices http://wiki.tinyclr.com/index.php?title=I2C_-_EEPROM


#8

Thanks!


#9

I changed the driver to support 8 boards. Interested in it?


#10

yes sure


#11

I attached it. Works great for me. I like the function GetRelayFromNum but it does add lots of extra lines.


#12

Hi

I’d sure like to see this code. Can someone forward it to me? Also I don’t see any dips on my board

Thx


#13

Can someone post the code to address multiple relay boards? I’m too lazy to figure it out myself :wink: