Page 1 of 15
EL Sequencer/Escudo Dos Hookup Guide
Introduction
The SparkFun EL Sequencer is an Arduino-comptabile microcontroller, with
circuitry for controlling up to eight strands of electroluminescent (EL) wire.
SparkFun EL Sequencer
CO M-1278 1
The Arduino shield version of the Sequencer is the SparkFun EL Escudo
Dos, and it can be used with any Arduino Uno footprint-compatible
microcontroller.
Page 2 of 15
SparkFun EL Escudo Dos
CO M-1087 8
5
Materials Required
To follow along with this tutorial, we recommend you have access to the
following materials in addition to your Sequencer or Escudo Dos.
EL Sequencer Hookup Guide Wishlist SparkFun Wish List
SparkFun FTDI Basic Breakout - 5V
DEV-09716
This is the newest revision of our [FTDI Basic](http://www.sparkfun.co…
EL Inverter - 12v
COM-10469
EL inverters allow you to drive EL (electroluminescent) wires. This par…
EL Wire - Blue 3m
COM-10195
EL wire, or electroluminescent wire, is a flexible wire coated in phosp…
EL Wire - White 3m
COM-10197
EL wire, or electroluminescent wire, is a flexible wire coated in phosp…
EL Wire - Red 3m
COM-10191
EL wire, or electroluminescent wire, is a flexible wire coated in phosp…
Wall Adapter Power Supply - 12VDC 600mA
TOL-09442
This is a high quality AC to DC 'wall wart' which produces a regulated…
SparkFun USB Mini-B Cable - 6 Foot
CAB-11301
This is a USB 2.0 type A to Mini-B 5-pin cable. You know, the mini-B…
Suggested Reading
If you aren’t familiar with the following concepts, we recommend reviewing
them before beginning to work with the EL Sequencer or Escudo Dos.
• Installing the Arduino IDE
• How to Power Your Project
• Battery Technologies
Page 3 of 15
• How to Solder
• AC vs. DC Current
Hardware Overview - Similarities
This section will cover the features that are shared between both the EL
Sequencer and the EL Escudo Dos.
External Power Headers
External Power Headers on the EL Sequencer.
There are three power connection points on the Sequencer. The first is the
AC In connection, which is the default connection point for any external
inverter. The second connection is the DC Out line, which will connect to
any inverter that does not have an external power supply. This provides a
DC power supply to the inverter from the EL Sequencer itself. The final
power connection is the Batt In connection. This allows the user to
provide a power supply from a 3.7V lipo battery, or other power supply of
3.5V-16V.
These can be connected via a standard 0.1" 2-pin header, or via the JST
connector available on each line. If you ever forget the purpose of these
connections, they are clearly labeled on the bottom of the board.
External Power Headers on the EL Escudo Dos.
The power headers on the EL Escudo Dos have the same functionality as
the EL Sequencer. However, there is no Batt In header. This is because
the power for the Escudo comes from the VRAW line on the connected
Arduino or RedBoard.
Channel Headers (HIGH VOLTAGE)
Channel Headers on the Sequencer
Page 4 of 15
Channel Headers on the Escudo Dos
As the silk on the bottom side of the board states, there is high voltage in
this area of the board. Care must be given when handling the board in a
powered state, to prevent a shock to the user. These channels output the
AC current needed to drive the EL wire. This is output at 100+V AC,
4000Hz (dependent on the inverter used). Each channel (A-H) is attached
to one digital pin on the ATMega328 (pins 2-9, respectively). Driving the
digital pins HIGH triggers the EL wire to turn on.
These can be connected to EL devices (wire, panels, etc.) via a standard
0.1" 2-pin header, or via the JST connector available on each line.
Solder Jumpers
• SJ1 - This jumper allows the user to bypass the LM317 regulator
when it’s shorted. This regulator is used for external inverters. If left
open, the regulator output voltage can be modified by user-supplied
resistors on RA and RB pads. More on that below.
Solder Jumper 1 on the Sequencer.
Solder Jumper 1 on the Escudo.
• SJ2 - This jumper is included as an option for wirelessly uploading of
code to the Sequencer via XBee. This feature is experimental, and
no guarantees are given for this feature’s functionality.
Solder Jumper 2 on the Sequencer. This jumper is not present on the
Page 5 of 15
Escudo.
TRIACs and Optoisolators
The main functionality of the Sequencer/Escudo comes from the TRIACs
(Triode for Alternating Current) on-board. The MO3063S TRIAC
Optocoupler takes the logic output from the associated ATMega328 digital
pin which triggers the Z0103MN TRIAC to open the flow of the AC current
from the inverter through the gate to drive the EL channel. This keeps the
AC side of the circuit optically isolated from the DC portion of the circuit.
EL Sequencer TRIACs and Optoisolators
EL EscudoDos TRIACs and Optoisolators
Keep in mind that when the boards are powered and connected to an
inverter, touching these areas can lead to an unpleasant shock. It
won’t hurt you, but it doesn’t feel good.
Adjustable Voltage Regulator
The LM317 voltage regulator on this board is adjustable based on the
resistor values applied to it. By default, this board comes shipped with a
390Ω resistor on R1 and a 240Ω on R2. However, footprints for thru-hole
resistors (A and B) have been added for the user to adjust the voltage out
to their project needs. You’ll need to remove the SMD resistors first.
Then add thru-hole resistors of your choice. See the LM317 Datasheet for
more information on which resistor values correspond to which voltage
output.
Page 6 of 15
Resistors A and B on the EL Sequencer
Resistors A and B on the EL Escudo Dos
Hardware Overview - EL Sequencer
This section will cover the unique features of the EL Sequencer.
NRF24L01+ Header
This header is designed to interface with an NRF24L01+ module breakout.
This provides a 2.4GHz signal to the EL Sequencer, which provides remote
control options for the Sequencer at up to a 100m range.
FTDI Header
This is a 5V FTDI header, which is given to provide simple access for
reprogramming the ATMega328 via serial connections. This can also be
used to have the EL wire triggered via serial data in to the system.
XBee Header
This connection is provided to give users the option of wirelessly
connecting the EL Sequencer via XBee. This can be used for mesh
networking of several different Sequencers together (this is great for group
costume projects), or remote control of the Sequencer.
ICSP Header
Page 7 of 15
This 6-pin header is provided to allow the user to reprogram the
ATMega328 on board via an external programmer. This also allows you to
reprogram the EL Sequencer without the requirement of the Optiboot loader
from the Arduino IDE.
Analog Input Header
The additional analog pins on the ATMega328 are broken out to a standard
0.1" header on the EL Sequencer. This also gives the user the capability to
trigger the EL wires from analog inputs (such as a photocell, temperature
sensor, or a line sensor ).
Pins A6 and A7 are analog input only. Pins A0-A5 can be used as an
analog input or as a digital I/O.
Switches and Reset Button
• XBee to FTDI (far right, center) - This switch changes the RX line
from being supplied via the FTDI header or the XBee. If attempting to
program the Sequencer via FTDI, this switch must be set to the
FTDI side.
• USB/BATT (bottom, center) - This switch changes the power source
for the ATMega328. The USB setting allows the ATMega328 to be
powered via the FTDI connection, while the BATT setting allows the
Arduino part to be powered off of a lipo battery instead.
• Reset Button - Resets the Arduino sketch running on the
ATMega328. It pulls the RESET line low, allowing the system to
reset.
Hardware Overview - EL Escudo Dos
This section will cover the unique features of the EL Escudo Dos Arduino
Shield.
Shield Headers
Page 8 of 15
These headers allow the shield to be connected to any Arduino Uno/Uno
R3 compatible board. We will be using the SparkFun RedBoard for this
example.
Currently, the EL Escudo Dos Shield is designed for the original
Arduino Uno footprint (not the R3 footprint). However, this shield can
be used with Arduino Uno R3 boards without issue.
Channel Headers
The EL Escudo also provides a row of 0.1" spaced headers to allow the
user to read the signals from the microcontroller to the EL wires. This is
beneficial for debugging.
Hardware Hookup
To get started using the EL Sequencer or EL Escudo Dos, there are a few
basic steps that must be completed.
Solder Headers
EL Sequencer
At an absolute bare minimum, you must solder 6 pins on the FTDI header.
For simplicity’s sake, we recommend using male headers (either straight or
right angle as these are compatible by default with the FTDI breakout). This
will enable you to program the EL Sequencer via an FTDI breakout board.
Page 9 of 15
If you plan on using an XBee unit with your Sequencer, you will also want to
solder XBee Sockets to the board. If you plan on using any additional
connectors on the board, you will also want to solder those headers on
now. Keep in mind you may also want to trim off any excess header on the
bottom of the board if you intend to use this in a wearable application.
EL Escudo Dos
Thanks to the simplified design, you only need to solder Arduino shield
headers onto the Escudo. If you want to use any additional components in
your project (such as wireless modules or external sensors), you will want
to use stackable headers.
Connect the EL Wire
You have 8 channels available on the Sequencer to which you can plug in
EL wire, chasing EL wire, or EL panels.
Please check out this tutorial on working with EL Wire specifically, and the
current requirements for different types of materials.
Note: If you plan on using Chasing EL wire, keep in mind you will
need an adapter cable to make it compatible with the EL
Sequencer/EL Escudo Dos. You also will need 3 channels available
on the EL Sequencer for the chasing wire, in order to get the proper
‘chasing’ effect to display. This means you will only have 5 additional
channels available (or 2, if you plan to use 2 chasing EL wire strands).
Connect the Inverter
Once you have hooked all of your EL wires up, the next step is to hook up
the inverter.
• 3V Inverter - If you are using the 3V inverter, you will need to hook
up both wire pairs from the inverter to the Sequencer. The
black/black wire pair will plug into the AC In JST connector, while
the red/black wire pair plugs into the DC Out JST connector.
• 12V Inverter - While using the 12V inverter, there is only one wire
pair that will plug into the Sequencer. The red/black wire pair will plug
into the AC In JST connector. You will need a separate power
supply to run this inverter (such as the 12VDC 600mA Wall Adapter).
Note: Make sure all power has been removed from the system before
plugging in any inverter. This will help prevent any inadvertent shocks
to the user.
Page 10 of 15
Connect the Power Supply
EL Sequencer
If you are using a battery for the power supply, you can connect this to the
Batt In JST header without altering the board. Using an external power
supply with the 3V inverter will require closing SJ1. You will need to
connect that supply to the PTH headers labeled Batt In . Make sure the
power supply falls in the range of 3.5V-16V for an external power supply.
EL Escudo Dos
The power supply for the EL Escudo Dos actually comes from the Arduino.
We recommend using a 12V wall adapter for powering the Arduino.
Alternatively, if you would like to go wireless, you could use a male barrel
jack adapter along with a 12V battery. Typically, however, the EL
Sequencer will be a better option for you for wireless applications.
Final Circuit
Once everything is hooked up, your circuit should look something like the
following:
Arduino Code
Once you have all of your hardware hooked up properly, it’s time to
program your Sequencer to run the EL Wire display as you want. You will
need to download the Arduino code in order to follow along with the
example.
D OW NL OA D E L S E Q U ENC E R E X AM P L E F IR M WA R E
You can also download the most up-to-date code from the EL Sequencer
GitHub repository.
We will be working with the “SparkFun_EL_Example.ino” example. If you
need a review on how to upload Arduino code to your board or using the
Arduino IDE, please check our tutorial here. Also, if you are unsure about
installing the FTDI drivers, please check out this tutorial.
If using the EL Sequencer:
Plug in your FTDI board to the computer via USB, and insert the FTDI onto
the EL Sequencer. Make sure you match up the BLK to BLK and GRN to
GRN labels.
When uploading your code, please be sure to select the following settings
in the IDE:
• Board: LilyPad Arduino
• Processor: ATMega328
• COM port: Whichever port the FTDI Basic appears on for your
operating system.
If using the EL Escudo Dos + RedBoard:
Plug in the RedBoard to the computer via USB. Select the following settings
Page 11 of 15
in the IDE:
• Board: Arduino Uno
• COM port: Whichever port the FTDI Basic appears on for your
operating system.
Demo Code
This basic demo will cycle through each channel on the Sequencer, one by
one, repeating until the system is either reprogrammed or turned off.
In the first section, we must define each pin that we will be using on the
ATMega328.
/*******************Setup Loop***************************/
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
//Uncomment the following line if using this on the EL Escudo
Dos.
// Pin 10 is a status LED on the EL Escudo.
// pinMode(10, OUTPUT);
//Pin 13 is the status LED on both the EL Sequencer and Arduin
o for use with the EL Escudo Dos.
pinMode(13, OUTPUT);
}
Each pin is declared as an output, which will allow us to drive the channel
HIGH or LOW . We will cycle through each channel, turning them on
individually, waiting 1/10 second, turning off, and moving to the next
channel.
/*******************Main Loop***************************/
void loop()
{
int x,status;
//Step through all eight EL channels (pins 2 through 9)
for (x=2; x