Mark Easley
Published © GPL3+

EL Wire Motorcycle Helmet

Make a sweet glow in the dark helmet for night time cycling, costumes, and more that is controlled by the TI LaunchPad.

IntermediateFull instructions provided2,242
EL Wire Motorcycle Helmet

Things used in this project

Hardware components

MSP-EXP430G2 MSP430 LaunchPad
Texas Instruments MSP-EXP430G2 MSP430 LaunchPad
×1
Texas Instruments BOOSTXL-BATTPACKMKII
×1
SparkFun Red EL Wire
×1
SparkFun EL 3.3V Inverter
×1

Software apps and online services

Energia
Texas Instruments Energia

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Code

elwire.ino

C/C++
basic EL wire example
/*
  Basic EL wire operation
  
  This example code is in the public domain.
*/

#define LED 2  // EL wire hooked to digital pin 2
#define LED2 3 // EL wire hooked to digital pin 3

  
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(LED, OUTPUT);
  pinMode(LED2, OUTPUT);  
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(LED, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(LED2, HIGH);  // blink LED2 at twice as fast rate
  delay(250);
  digitalWrite(LED2, LOW);   // turn the LED off by making the voltage LOW
  delay(250);
  digitalWrite(LED, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(LED2, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(250); 
  digitalWrite(LED2, LOW);   // turn the LED off by making the voltage LOW
  delay(250);
}

Credits

Mark Easley

Mark Easley

43 projects • 106 followers
Texas Instruments LaunchPad SW Engineer

Comments