what sketch are you using? you could be losing synchronization of the data stream. I use cheap led strings and don't notice flickering until I dim them a lot. As Martin asked, what SSR are you using?
I'm running 2 Sainsmart 8 channel SSR's. I don't see other distinguishing markings on them. I have 3 strings of GE StayBright 216-Count 19.6-ft Multicolor Integrated LED Plug-In Christmas Rope Lights. These are mount-and-leave "tape" lights.
Sketch as follows:
#define MEGA_VIXEN
//#define UNO_VIXEN
#ifdef MEGA_VIXEN
#define MAX_CHANNELS 16
int channels[MAX_CHANNELS] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18};
#endif
#ifdef UNO_VIXEN
#define MAX_CHANNELS 18
int channels[MAX_CHANNELS] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, A0, A1, A2, A3, A4, A5};
#endif
int incomingByte[MAX_CHANNELS];
void setup()
{
int i;
Serial.begin(9600); // set up Serial at 9600 bps
for ( i = 0; i < MAX_CHANNELS; i ++ ) pinMode(channels, OUTPUT);
}
void loop()
{
int i;
if (Serial.available() >= MAX_CHANNELS)
{
for (i = 0; i < MAX_CHANNELS; i ++) incomingByte = Serial.read();
}
for (i = 0; i < MAX_CHANNELS; i ++ ) analogWrite(channels, incomingByte);
I also have four 8" stars with incandescent mini bulbs, 8 candelarias, each with a C7 incandescent bulb. Finally there is a small LED flood light that lights up my Mr. Grinch at the appropriate parts of his theme song. All sequences are run on Vixen 3.5u3
Try changing analogWrite to digitalWrite and add a section of code to turn off (low) or on (high).
instead of this -
for (i = 0; i < MAX_CHANNELS; i ++ ) analogWrite(channels, incomingByte);
Try this -
for (i = 0; i < MAX_CHANNELS; i ++ )
if (incomingByte < 127) {
digitalWrite(channels, HIGH);
}
else {
digitalWrite(channels, LOW);
}
Also, this sketch does not have a means to synchronize the data. Some sketches look for a header or footer and sync off of those.
I'll make those changes tonight. Thanks! Where do I access info on header/footer?
