EL Sequencer/Escudo Dos Hookup Guide

Similar documents
Si4703 FM Radio Receiver Hookup Guide

Spectrum Shield Hookup Guide

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

USER MANUAL ARDUINO I/O EXPANSION SHIELD

keyestudio Keyestudio MEGA 2560 R3 Board

AT42QT101X Capacitive Touch Breakout Hookup Guide

Module 003: Introduction to the Arduino/RedBoard

AT42QT1010 Capacitive Touch Breakout Hookup Guide

ARDUINO LEONARDO ETH Code: A000022

RedBoard Hookup Guide

ARDUINO UNO REV3 Code: A000066

Serial Basic Hookup Guide

VKey Voltage Keypad Hookup Guide

ARDUINO MEGA 2560 REV3 Code: A000067

Arduino ADK Rev.3 Board A000069

ZX Distance and Gesture Sensor SMD Hookup Guide

Lab 2.2 Ohm s Law and Introduction to Arduinos

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

ARDUINO LEONARDO WITH HEADERS Code: A000057

LilyPad ProtoSnap Plus Hookup Guide

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

User Guide v1.0. v1.0 Oct 1, This guide is only available in English Ce manuel est seulement disponible en Anglais

ARDUINO MEGA ADK REV3 Code: A000069

Introduction to Arduino

VL6180 Hookup Guide. Introduction. Board Overview - VL6180 Breakout. Covered in this Tutorial. Suggested Reading

SX1509 I/O Expander Breakout Hookup Guide

Adafruit Optical Fingerprint Sensor

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

X Board V2 (SKU:DFR0162)

Hardware Overview and Features

University of Hull Department of Computer Science C4DI Interfacing with Arduinos

ARDUINO MINI 05 Code: A000087

RB-See-217. Seeedstudio Grove XBee Carrier

Wireless Motor Driver Shield Hookup Guide

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

Insert the Bees in the proper direction. Use the Bee outline on the silk-screen. Voltage VDC

Building your own special-purpose embedded system gadget.

Introduction To Arduino

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Welcome to Apollo. For more information, please visit the website and select Apollo. Default Code

Device: PLT This document Version: 3.0. For hardware Version: 4. For firmware Version: Date: April 2014

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

Arduino Prof. Dr. Magdy M. Abdelhameed

MAG3110 Magnetometer Hookup Guide

Audio Enhanced Touch Sensors Build Instructions

USB Type A Female Breakout Hookup Guide

RC Tractor Guy Controller V2.1 Assembly Guide

Building the RGBW LED Controller

Photon RedBoard Hookup Guide

Procedure: Determine the polarity of the LED. Use the following image to help:

Halloween Pumpkinusing. Wednesday, October 17, 12

ITG-3200 Hookup Guide

Building and using JasperMIDI

Propeller Project Board USB (#32810)

Arduino Dock 2. The Hardware

ARDUINO M0 PRO Code: A000111

Qwiic Shield for Arduino & Photon Hookup Guide

Mailbox Notification Service. Created by Adam Kohring

How to Use an Arduino

Sanguino TSB. Introduction: Features:

Base Module Board. Engineering» Design» Product. User Manual. Blue Wolf, Inc W. State Street Garden City, ID 83714

TA0297 WEMOS D1 R2 WIFI ARDUINO DEVELOPMENT BOARD ESP8266

IDUINO for maker s life. User Manual. For IDUINO Mega2560 Board(ST1026)

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

WS2812 Breakout Hookup Guide

Adafruit USB Power Gauge Mini-Kit

Manual 601: : USB/RS232. Specifications. Contents. Options

Rob Faludi, 8/17/11

Serial.begin ( ); Serial.println( ); analogread ( ); map ( );

ARDUINO PRIMO. Code: A000135

WAVETEK BLE-WT51822AA/AB. Revision History. Bluetooth low energy Module WT51822AA (256k) /AB (128k) (Bluetooth Low Energy BT4.0) PRODUCT SPECIFICATION

An FTDI connection: The ATtiny microcontrollers don t have a hardware UART External Crystal header pins for an optional crystal

MMA8452Q Accelerometer Breakout Hookup Guide

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

Specification. 1.Power Supply direct from Microcontroller Board. 2.The circuit can be used with Microcontroller Board such as Arduino UNO R3.

Goal: We want to build an autonomous vehicle (robot)

Lab 2 - Powering the Fubarino. Fubarino,, Intro to Serial, Functions and Variables

Soil Moisture Sensor Hookup Guide

Adafruit 1-Wire Thermocouple Amplifier - MAX31850K

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

MPR121 Hookup Guide. MPR121 Overview. Materials

Observer Calibrator Instruction Manual

Connecting Arduino to Processing a

Microcontrollers for Ham Radio

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

Adafruit 1-Wire Thermocouple Amplifier - MAX31850K

Introducting Itsy Bitsy 32u4

LIS3DH Hookup Guide. Introduction. SparkFun Triple Axis Accelerometer Breakout - LIS3DH SEN Required Materials

Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S

Device: PLT This document Version: 1. For hardware Version: 1. For firmware Version: Date: 9 May 2014

In this activity you will create a tool to allow you to play games such as Red Light/Green Light. To create the game, follow the steps below.

GUIDE TO SP STARTER SHIELD (V3.0)

Prototyping & Engineering Electronics Kits Basic Kit Guide

Omega MP. Multi-Programming Shield for Atmel Microcontrollers. User Manual

Adafruit CAP1188 Breakout

Necessary software and hardware:

Transcription:

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 COM-12781 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 COM-10878 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. DOWNLOAD EL SEQUENCER EXAMPLE FIRMWARE 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<=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 t he EL Escudo Dos digitalwrite(13, status); // blink status LEDs status =!status; Each time a channel is cycled through, the status LEDs on the board will blink.

Page 12 of 15 Once the code is uploaded, you should see each strand of EL wire light up one by one. If you aren t seeing that, verify that you have the correct power settings on the USB/Batt switch, and that the inverter is connected properly, switched on (if using the 12V inverter), and that the power supply to the board is properly charged and/or connected. Going Wireless If you would like to add wireless capabilities to your project, there s just a few more steps to get up and running. Insert a radio unit: You can either use a paired XBee unit or an NRF24L01+ module. You will need to make sure headers are soldered on for either device. If you need additional information on adding an XBee module, please check out our tutorial here. On the EL Sequencer, you will also need to flip the XBee to FTDI switch to XBee to ensure XBee communication is working properly. Update the Code If using a Series 1 XBee: Upload the SparkFun_XBee_EL_Sequencer.ino sketch to your board. In the first section, the status LED is declared as an output, and the Serial connection is opened at 9600bps. //Declare character 'val' char val; /*******************Setup Loop***************************/ void setup(){ Serial.begin(9600); //Begin Serial communication for debuggi ng pinmode(13, OUTPUT); //Set pin mode as output for status LED val = 'A';// button pressed, therefore sending letter A Serial.println("EL Sequencer's XBee is Ready to Receive Char acters"); digitalwrite(13,low); //set Status LED off delay(1000); //Wait 1 second The main loop of the code simply waits for the XBee unit to receive the character A from a remote XBee unit. If the character is received, the status LED is turned on, and a message is output to the serial terminal.

Page 13 of 15 /*******************Main Loop***************************/ void loop(){ //Check if XBee is receiving data from other XBee if(serial.available()){ val = Serial.read(); //Check to see if character sent is letter A if(val == 'A'){ digitalwrite(13,high); //turn ON Status LED delay(50); Serial.println("Character Received"); else{ digitalwrite(13,low); //turn OFF Status LED If using an NRF24L01+: You will need to use the RF24 library with the nrf24l01+ boards. We have a tutorial with more information regarding installing this library here. We recommend using the RF24/examples/Usage/led_remote.ino example sketch. This is already configured to be compatible with the EL Sequencer with 6 channels of EL wire attached and will trigger each channel based on buttons hit on the remote unit. The EL Sequencer will trigger the channels on and off based on the LED role in the code.

Page 14 of 15 // // LED role. Receive the state of all buttons, and refl ect that in the LEDs // if ( role == role_led ) { // if there is data ready if ( radio.available() ) { // Dump the payloads until we've gotten everything while (radio.available()) { // Fetch the payload, and see if this was the las t one. radio.read( button_states, num_button_pins ); // Spew it printf("got buttons\n\r"); // For each button, if the button now on, then tog gle the LED int i = num_led_pins; while(i ) { if ( button_states[i] ) { led_states[i] ^= HIGH; digitalwrite(led_pins[i],led_states[i]); The code waits until the receiver gets data coming in and then swaps the LED states accordingly (in this case, the LEDs will be replaced with the EL channels). That s it! That s all you need to do to add wireless capabilities to your EL project. You can now remotely control your EL Sequencer project. Resources and Going Further Now that you have your EL Sequencer or EL Escudo Dos up and running, you can start creating your own awesome art displays, interactive costumes, or colorful installations. Making something really neat? Let us know - we d love to see it! If you have any feedback, please visit the comments or contact our technical support team at TechSupport@sparkfun.com. Check out these additional resources for more information and other project ideas. MOC3063 Datasheet Z0103MN 4Q Triac Datasheet LM317 Adjustable Regulator Datasheet EL Sequencer GitHub Repository EL Escudo Dos GitHub Repository EL Wire Burning Man Sign EnLightningment Setting up an EL display with the EL Escudo Dos

https://learn.sparkfun.com/tutorials/el-sequencerescudo-dos-hookup-guide?_ga=1.1994977... Page 15 of 15 12/7/2015 Heartbeat Straight Jacket Safe Jacob s Ladder