Hi guys, can anyone help a novice code maker for a little project im trying to make happen. Im trying to create a 16 channel mega tree with simple on/off lights for next year using a arduino uno and two 8 channel sainsmart ssr's. I have set up a mock board with 16 strips of 12v led lights on a board fed throu the relays, and uploaded a sequence I got hold of from diyxmas onto the arduino. ive set up a test 16 channel sequence on vixen and set up the output pluggin. Now when I run the vixen sequence in loop mode the led's on the ssr 's run in the correct order but the actual led strips are all over the place. im think I need to put some kind of loop in the code.
all help much appreciated
regards cliff.
Not sure what you mean by "loop in the code" since each Arduino sketch has a "loop()" section. If you have a sync problem, are you using a header in your Vixen serial output and in your sketch?
Also, in the Arduino section of this forum there are numerous members using 16 channel code that you could also check out.
also you might tell us which version of Vixen are you using?
Hi guys thanks for replies, I'm using vixen 2 and I have copied a few different codes and tried to get them to work. I can get the ssr,s to work correctly with 8 channels ( one board ) but as soon as I try to add the other i.e. 16 channels it all goes haywire ??? Not that clued up on headers in arduino code or vixen serial output so I guess still more to learn.
No I'm not using a header in vixen serial output...?????
A header in arduino .....????
Any more help appreciated
Cliff
I would first get all 16 channels to work without using Vixen.
For that part you only need a sketch that sequences each relay slowly so you can hear, or see, it I working properly. This won't require Vixen. Once you have the hardware working by itself only then would I introduce the Vixen sequence.
If during this test 8 channels work but not 16, then check if you have enough power to drive 16 relays.
Other members have had similar problems like yours and worked it out.
The relays appear to work fine as the LED's on them light up in the right order it's just that the mock 12V lights I've set up on them stay lit and then do all crazy things but the LED's on the board carry on running correctly.
I'll look into the headers soon as. Cheers
Wondering if switching the negative 12volt will help ?
cliff smith wrote:Wondering if switching the negative 12volt will help ?
If you are using LED lights then the polarity for them needs to be correct. A wiring diagram would help us to see what you are doing.
You also need to know if you have enough current capacity from your 12VDC source to turn all 16 lights to full brightness.
If the relays work fine then it appears your sketch is also fine for your test. Now you can focus on why the relay outputs are not working correctly. See if you can get one relay output to blink a light correctly, then add another relay output so two lights work correctly, etc.
Keep the on-off speed slow enough to observe that it functions correctly. Maybe your wiring is incorrect somewhere.
I agree with others that if your Vixen sequence is controlling all 16 SSR leds as expected, you can focus on the electrical - in particular between the relays and the 12V lights.
A question of 12V power has come up - you might test by lighting only one channel at a time (if that's not what you are doing already). Once you get that working you can test for multiple channels on.
Could you post a link to the SSR board you are using? I'm not seeing an 8 channel 12V SSR at
http://www.sainsmart.com/arduino-compatibles-1.html?cat=69
I'm using a 5v ssr (8 channel ) but switching 12v LED strips on a test board. If I turn on one one channel at a time with vixen sequence the lights stay lit but the LED on the ssr goes off as expected. Is it ok to switch different voltage that operating voltage with ssr's ? .
