This project is read-only.

EL Escudo Dos Shield

This shield is designed by Sparkfun, to drive 8 EL-wires and works with Netduino.

Shield connections

  • Pins D2 to D9 are connected to EL-Wire sockets A to H.
  • Pin D10 is connected to the status LED

Sample code in C#

// The EL Escudo Dos Shield has EL-wire sockets connected to pins D2 to D9
OutputPort[] Channels = {
    new OutputPort(Pins.GPIO_PIN_D2, false),
    new OutputPort(Pins.GPIO_PIN_D3, false),
    new OutputPort(Pins.GPIO_PIN_D4, false),
    new OutputPort(Pins.GPIO_PIN_D5, false),
    new OutputPort(Pins.GPIO_PIN_D6, false),
    new OutputPort(Pins.GPIO_PIN_D7, false),
    new OutputPort(Pins.GPIO_PIN_D8, false),
    new OutputPort(Pins.GPIO_PIN_D9, false)
};
// The EL Escudo Dos Shield has a status LED connected to pin D10
OutputPort StatusLED = new OutputPort(Pins.GPIO_PIN_D10, true);

while (true)
{
    for (int Wire = 0; Wire < Channels.Length; ++Wire)
    {
        Channels[Wire].Write(true);
        Thread.Sleep(500);
        Channels[Wire].Write(false);
    }
}

Sample code in VB

' The EL Escudo Dos Shield has EL-wire sockets connected to pins D2 to D9
Dim Channels() As OutputPort = New OutputPort() {
    New OutputPort(Pins.GPIO_PIN_D2, False),
    New OutputPort(Pins.GPIO_PIN_D3, False),
    New OutputPort(Pins.GPIO_PIN_D4, False),
    New OutputPort(Pins.GPIO_PIN_D5, False),
    New OutputPort(Pins.GPIO_PIN_D6, False),
    New OutputPort(Pins.GPIO_PIN_D7, False),
    New OutputPort(Pins.GPIO_PIN_D8, False),
    New OutputPort(Pins.GPIO_PIN_D9, False)
}
' The EL Escudo Dos Shield has a status LED connected to pin D10
Dim StatusLED As OutputPort = New OutputPort(Pins.GPIO_PIN_D10, True)

Do
    For Wire As Integer = 0 To Channels.Length - 1
        Channels(Wire).Write(True)
        Thread.Sleep(500)
        Channels(Wire).Write(False)
    Next
Loop

Last edited Nov 8, 2012 at 6:31 AM by Garrcomm, version 1