Using 4 or more relays with Individual Switchs

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
Black Cat
Posts: 62
Joined: 02 Mar 2016 00:52

Using 4 or more relays with Individual Switchs

Post by Black Cat »

Being a total newbie in the world of ZUNO, I created the 4 relay example (first project-yay) which was much easier to make than I thought.
I would now like to expand this to at least 8 relays or more. I can see how this is possible in the 74HC595 SPI 16 shift register example, however the example uses Multi-Level Dimmer where I would like to use Individual Child Devices/Switches, so I can see which zones are On/Off.
Is there an example of the code that I could use published?

Also what is the difference between using the 74HC595 SPI 16 shift register example against the MCP23017 I2C 16 input/output port
expander, I'm really not seeing the difference except different hardware?
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Using 4 or more relays with Individual Switchs

Post by PoltoS »

74HC595 uses SPI, while MCP23017 - I2C. Beside that both are similar. You can pick both examples from Z-Uno Examples menu. Then you need to change Multilevel part to Switch part looking into Switch example: change channels definition, setter code and getter reported values. And you are done!
Post Reply