Wearable Project – Turn Signal Backpack

on

Turn Signal Backpack
by: Nick Savidge

I created a wearable project in which the intent was to create a backpack that with a press of a button would control turn signals. I went through some setbacks and problems with the connections. Currently the backpack only flashes on the back left side. Below I have loaded my images, video, and code for what is presented.

Simple Blinking Code:

int ledPin = 13;   // the LED on the LilyPad
int leftSignal = 9; // my left turn signal is attached to petal 9
int rightSignal = 11; // my right turn signal is attached to petal 11
int signalLow = 10; // the – sides of my signals are attached to petal 10
void setup()  
{  
  pinMode(ledPin, OUTPUT); // sets the ledPin to be an output
  pinMode(leftSignal, OUTPUT); // sets the leftSignal petal to be an output
  pinMode(rightSignal, OUTPUT); // sets the rightSignal petal to be an output
  pinMode(signalLow, OUTPUT); // sets the signalLow petal to be an output
  digitalWrite(signalLow, LOW); // sets the signalLOW petal to LOW (-)
}  
void loop() // run over and over again
{  
  delay(1000); // wait for 1 second
  digitalWrite(leftSignal, LOW); // turn the left signal off
  delay(1000); // wait for 1 second
  digitalWrite(rightSignal, HIGH); // turn the right signal on
  delay(1000); // wait for 1 second
  digitalWrite(rightSignal, LOW); // turn the right signal off
  delay(1000); // wait for 1 second
}