View Single Post
Unread 09/20/2013, 10:57 AM   #19
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
you will just need to wire the first 8 just like outlet9-16 using the ULN2803A since chauvet relays are 12v. Then in the code, you will see the logic is inverted for outlets 0-7 and 8-15. So you will need to modify the code to just use the code for outlets 8-15 for all outlets 0-15 since they are all inverted logic now.

Likewise, I got a question from someone who is not using chauvet at all, and will just use 2 8 channel 5v relays. In this case wiring outlets 9-16 will just be the same as 1-8 (no ULN2803), and the corresponding change in the arduino code to use the code for outlets 0-7 for all outlets 0-15. BTW for 8 channel relay connection, you only connect Vcc from Arduino to Vcc on the relay board, no ground connection. Then you use another 5 v power supply to JDvcc and Gnd to power the relay coils. I would not use the same 5v from arduino to power the relay coils, because if all coils are on, it will take at least 500ma at 5v. I just gutted one of those USB charger wall warts (everyone has a few of those laying around) and use that to power the relay board.

the code is in outlets.ino



Last edited by d0ughb0y; 09/20/2013 at 11:02 AM.
d0ughb0y is offline   Reply With Quote