EL Wire Light-Up Dog Harness

Pages
Contributors: jenfoxbot
Favorited Favorite 8

Introduction

Whether it's to keep Fido (or in my case, Marley) visible on an adventure or as an awesome all-year-round costume, a light up dog harness is an excellent accessory for your favorite pup.

alt text

EL wire is a great option for wearable lights. It stays cool, is flexible, and comes in lots of different colors. This design uses the SparkFun EL Sequencer to automatically turn on EL wire when it is sufficiently dark outside, so you don't have to worry about locating Mr. Dog to turn the on system.

Materials

Here is a list of all the parts and tools used in making this project.

Electronics

alt text

Harness Materials

alt text

  • Dog harness
    • A vest or backpack will also work
  • Waterproof jacket w/ pocket(s)
  • Optional: Tupperware or other sealable plastic container

Tools

alt text

  • Safety goggles
  • Soldering Iron
  • Wire Cutter/Stripper
  • Epoxy (waterproof)
  • Scissors
  • Needle + thread OR fabric adhesive
  • Optional: Velcro

Recommended Reading

If you are new to electronics, EL wire, or the EL Sequencer, or would like more information on the main components in this project, check out this tutorial:

As this design also uses a lithium ion battery, I also recommend reading this tutorial to give you an overview on proper care and handling of lithium batteries.

Assembly

CAUTION: Although it is low current, EL wire runs on high voltage AC (100 VAC). There are exposed connections on the EL Sequencer board so BE CAREFUL when handling the board. Always double (and triple) check that the power switch is OFF before touching any part of the board. For final projects, it is recommended to coat all exposed connections in epoxy, hot glue, electrical tape, or other insulating material.

  1. Test the EL Sequencer with EL wire. Connect EL Wire, inverter, and battery to EL sequencer. Turn on power switch and check that the EL wire turns on (should be blinking). You can connect, and control, up to 8 different strands of EL wire.

    alt text

  2. Solder header pins onto 5V FTDI pinholes on the EL Sequencer.

    alt text

  3. Solder header pins to the "GND," "VCC," and "A2" pinholes EL Sequencer (right side).

    alt text

  4. Solder male end of breadboard wires to ambient light sensor. Coat exposed metal on the sensor in epoxy (do not coat actual sensor).

    Note: Recommended to solder the pins on the bottom of the sensor so that the sensor can more easily be attached to the harness (found this out the hard way..).

    alt text

  5. Attach EL wire to harness.

    alt text

    Sew EL wire onto harness with dental floss for a strong, durable bond. Can also use an appropriate fabric adhesive.

    alt text

    For straps/buckles: leave about 1" of unadhered EL wire on either side of the strap/buckle.

    You can either wrap the ELwire for its entire length, or cut it and insulate the ends.

    alt text

  6. Make a durable pouch for the electronics.

    For a waterproof pouch, cut out a pocket in a waterproof jacket. I also included a small tuperware container to house the electronics in the pouch to further insulate and protect them from weather and dog conditions.

    alt text

  7. Attach electronics pouch to harness.

    Sew pouch onto top side of harness, or wherever is comfortable and practical for your pup. Recommended to put harness on dog to find a suitable location for the pouch.

    alt text

  8. Cut small holes on underside of pouch for the EL wire JST connector and the light sensor wires.

    alt text

  9. Attach and secure light sensor to harness. Recommended to put harness on pooch and mark location for light sensor so that it faces upward.

    There was an ideal flap in the rainjacket pocket for me to cut a hole, push the sensor through, and epoxy the other side. You can also use velcro or sew the light sensor onto the pocket or harness, just be sure that it stays stationary and won't get covered when the dog is moving.

    alt text

  10. If using tuperware, cut or drill holes in tuperware for EL wire JST connector and light sensor wires.

    If you are not using tuperware, it is recommended to cushion the electronics and/or epoxy all connections (except the JST connectors) to protect them from your dog's antics.

    alt text

  11. Connect EL wire and light sensor to EL Sequencer (through holes in the tuperware), then epoxy the holes to keep wires in place and maintain a waterproof seal.

    alt text

Programming

Now it's time to program the electronics.

Connect EL Sequencer to computer via 5V FTDI BOB or cable.

Program the EL Sequencer using the Arduino platform; the EL Sequencer runs an ATmega 328p at 8 MHz and 3.3V.

Write a program to read in the analog value of the ambient light sensor, turn on the appropriate EL wire channels at a value that corresponds to low light, and turn off once the light sensor value is above the low light threshold.

Below is a sample Arduino sketch with a preset light threshold:

language:c
// EL Wire Dog Harness Program
// Turn EL wire on when ambient light is low.
// JenFoxBot
// Based on test sketch by Mike Grusin, SparkFun Electronics

void setup() {
  Serial.begin(9600);  
  // The EL channels are on pins 2 through 9
  // 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
  // We also have two status LEDs, pin 10 on the Escudo, 
  // and pin 13 on the Arduino itself
  pinMode(10, OUTPUT);     
  pinMode(13, OUTPUT); 
  pinMode(A2, INPUT);  
}

void loop() 
{
  int x,status;

  //If ambient lighting is too low, turn on EL wire
  if(analogRead(A2) < 50){
    digitalWrite(2, HIGH); //turn EL channel on
    delay(1000); //wait 1 second

    //Keep EL wire on until light sensor reading is greater than 50
    if(analogRead(A2) > 50){
      digitalWrite(2, LOW); //turn EL channel off
      delay(10);
    }

    Serial.println(analogRead(A2)); // Use this to check value of ambient light 

    digitalWrite(10, status);   // blink both status LEDs
    digitalWrite(13, status);
  }
}

Check that the EL wire turns on when the ambient light is low and turns off in bright light.

The Final Product

Place EL Sequencer, inverter, and battery inside the pouch (and tupperware). Connect all components to the EL Sequencer and turn it on using battery power. Test it in low and bright light to ensure that it functions properly.

alt text

If system works as expected, put on dog and go exploring! As an added bonus, you can use the electronics pouch to store other small, non-magnetic items. Enjoy!

alt text

alt text

And here's a video of it in action.

Resources and Going Further

Thanks for reading! Enjoy these other SparkFun Tutorials. There are tons of other awesome uses for EL wire! Check out this Heartbeat Straightjacket tutorial for more inspiration. Interested in using the RF features of the EL Sequencer? Check out the SparkFun NRF Transceiver Breakout Hookup Guide!

nRF24L01+ Transceiver Hookup Guide

A basic getting started guided to the SparkFun Transceiver Breakout - nRF24L01+

Heartbeat Straight Jacket

An EL project that displays one person's heartbeat on another person's costume.

Or check out some of this blog post for ideas: