EL Wire Light Up Dog Harness

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.

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 system on.

Here’s a video tutorial for this project.

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.

Materials

Electronics

  • EL Wire
    • EL wire comes in variety of colors, pick your favorite!

Harness Materials

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

Tools

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

Build it! Pt. 1

**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.

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

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

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..).

 

 

 

 

Build it! Pt. 2 

1. Attach EL Wire to harness.
Sew EL wire onto harness with dental floss for a strong, durable bond. Can also use an appropriate fabric adhesive.For straps/buckles: leave about 1″ of unattached 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.2. Make a durable pouch for the electronics.
For a waterproof pouch, cut out a pocket in a waterproof jacket. I also included a small tupperware container to house the electronics in the pouch to further insulate and protect them from weather and dog conditions.

Build it! Pt. 3

1. 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.

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

3. Attach and secure light sensor to harness. Recommended to put harness on your dog 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.

4. If using tupperware, cut or drill holes in tupperware 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.

5. 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.

Program It!

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

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


3. 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.Here’s a sample program with a preset light threshold:

// 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 EL Sequencer, 
  // 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);
  }
}

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

Test it and Put it to Work!

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.

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!