Clare Guckenberger
Published © GPL3+

Hot Air Balloon Light Up Tee

A wearable piece of art, hot air balloons scattered across the sky, when it gets dark the fire that fuels them becomes visible.

IntermediateFull instructions provided3 hours161
Hot Air Balloon Light Up Tee

Things used in this project

Hardware components

SparkFun lilypad protosnap kit
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics

How to set up the circuit

Code

Materials needed

Arduino
No preview (download only).

Planning

Arduino
No preview (download only).

Planning

Arduino
No preview (download only).

Code

Arduino
Random Twinkling lights for LEDs when dark
int lightSensor = A2;
int numLEDs = 2;
int LED[3] = {6,A7};
int threshold = 50;
void setup()
{
  int x;
  pinMode(lightSensor, INPUT);

  for (x = 0; x <= numLEDs; x++)
  {
    pinMode(LED[x],OUTPUT);
  }
  Serial.begin(9600);
}
void loop()
{
  int x,lightLevel,brightness;
  lightLevel = analogRead(lightSensor);
  Serial.print("light level: ");
  Serial.print(lightLevel);
  Serial.print(" threshold: ");
  Serial.print(threshold);
  Serial.print(" twinkle: ");
  if (lightLevel < threshold)
  {
    Serial.println("ON");
    x = random(numLEDs);

    for (brightness = 0; brightness <= 255; brightness++)
    {
      analogWrite(LED[x],brightness);
      delay(1);
    }

    for (brightness = 255; brightness >= 0; brightness--)
    {
      analogWrite(LED[x],brightness);
      delay(1);
    }

    delay(random(1000));
  }
  else
  {
    Serial.println("off");
  
  }
}

sewn in

Arduino
No preview (download only).

Credits

Clare Guckenberger

Clare Guckenberger

1 project • 1 follower
Thanks to Sparkfun.

Comments