×

SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

avatar

alaina

Member Since: April 23, 2011

Country: United States

  • Oh, and I should mention that I followed the first bit of instructions at the makezine article (http://blog.makezine.com/archive/2010/04/programmingelwire_fashion.html) that bennard posted. The jumper did seem to be required for my sequencer (again, it’s the 168 version) to work properly.
    Here are the #defines I use now in the Arduino IDE.
    #define DRIVER_A A0
    #define DRIVER_B A1
    #define DRIVER_C A2
    #define DRIVER_D A3
    #define DRIVER_E A4
    #define DRIVER_F A5
    #define DRIVER_G 8
    #define DRIVER_H 9

  • After fighting and fighting and fighting with this board (I have the ATmega168 version) and the sample code I’ve seen, I busted out the meter and spent some time experimenting. mellis' code was helpful, but I am using the Arduino IDE and couldn’t make TRIACs A-F work. G and H worked fine.
    So – for the ATmega168V version, at least–I found the mappings: TRIACs A through F are to mapped to pins A0-A5, and G and H are mapped to digital pins 8 and 9. If I use those mappings, everything works fine, including using A-F at the same time as G and H.
    Mappings, then, would be:
    A - A0
    B - A1
    C - A2
    D - A3
    E - A4
    F - A5
    G - 8
    H - 9
    Right now I have three 3m EL wires connected to D, F and G, and this code works for me:

    define DRIVER_G 8

    void setup()
    {
    pinMode(DRIVER_G, OUTPUT);
    pinMode (A3, OUTPUT);
    pinMode (A5, OUTPUT);
    }
    void loop ()
    {
    digitalWrite (DRIVER_G, HIGH);
    digitalWrite (A3, HIGH);
    digitalWrite (A5, HIGH);
    }

No public wish lists :(