Controlling Chasing El wire with EL Escudo Dos shield

Hi,

I have a beginners problem - I have set up my arduino with the EL escudo Dos shield following this guide: https://learn.sparkfun.com/tutorials/el … okup-guide

I also loaded the example code onto my arduino, that is supposed to light up normal EL wires. I am working with chasing El wires though, and the code does not do anything for them (probably not surprising). I can’t find any code example of how to actually address the three different channels that are needed for the chasing EL wire and control their speeds etc.

Does anybody have an idea on how the code would look?

This is the example code that is used for normal EL wire that I have now:

void setup() {

// The EL channels are on pins 2 through 9 on the ATMega328

// Initialize the pins as outputs

pinMode(2, OUTPUT); // channel A

pinMode(3, OUTPUT); // channel B

pinMode(4, OUTPUT); // channel C

pinMode(5, OUTPUT); // channel D

pinMode(6, OUTPUT); // channel E

pinMode(7, OUTPUT); // channel F

pinMode(8, OUTPUT); // channel G

pinMode(9, OUTPUT); // channel H

pinMode(10, OUTPUT);

//Pin 13 is the status LED on both the EL Sequencer and Arduino for use with the EL Escudo Dos.

pinMode(13, OUTPUT);

}

/Main Loop********/

void loop()

{

int x,status;

//Step through all eight EL channels (pins 2 through 9)

for (x=2; x<=9; x++)

{

digitalWrite(x, HIGH); // turn the EL channel on

delay(100); // wait for 1/10 second

digitalWrite(x, LOW); // turn the EL channel off

//digitalWrite(10, status); //Uncomment this line if using the EL Escudo Dos

digitalWrite(13, status); // blink status LEDs

status = !status;

}

}

Hi grapemind.

While I can’t help you with code, I can tell you that the chasing EL wire is really three strands of EL all in one wire. To make it chase, you just need to light up the first strand, (we will call it A) then the second (B), then the last. (C)

So of you write code to turn on A, delay for a moment, then turn off, then do the same with B and C you will get a chasing effect.

The code you have now pretty much already does this, but it steps through all 8 channels where you only need 3. If you modify the code to just step through the first three channels and play around with the delay value, that should get you the results you’re looking for.

Ok, thank you for your answer! Then the problem is somewhere else, rather in the wiring I guess than the code as I was hoping…