Lab Play: Tuesday 2/1/15 (Night Lamp) / by Aaron Samuel

I don't watch football so I was extremely bored - as all human focus is dedicated to football events on this glorious day. Any who, I wanted a night lamp to go with my NEW mood lights (next post). The frame is a small UPS packaging box lined with Aluminium Foil (reflective) and wrapped in Masking Tape (went all the way Ghetto with it). There are vents to allow light OUT of the box and each vent is covered with material which should disturb the light waves being emit by the diodes causing a softening effect...

Ahh right, the diodes =), INSIDE the Light box - sitting on small slice of card board (came from the UPS box also - ECO friendly), are 8 LEDs of various colours (red, green, blue, yellow). The LEDs are powered and "sequenced" by an Arduino Uno which has digital pins 4-11 connected to the Anode end of the 8 LEDs configured on a standard bread board. Each LED cathode is running through a 220 Ohm resistor before hitting ground.

The Light Box current code is below, it will be updated soon to do more interesting things.

//Multi LED Blink

int led1Pin = 4;
int led2Pin = 5;
int led3Pin = 6;
int led4Pin = 7;
int led5Pin = 8;
int led6Pin = 9;
int led7Pin = 10;
int led8Pin = 11;

void setup() {    
  //initialize the led pins as an outputs
  pinMode(led1Pin, OUTPUT);
  pinMode(led2Pin, OUTPUT);
  pinMode(led3Pin, OUTPUT);
  pinMode(led4Pin, OUTPUT);
  pinMode(led5Pin, OUTPUT);
  pinMode(led6Pin, OUTPUT);
  pinMode(led7Pin, OUTPUT);
  pinMode(led8Pin, OUTPUT);
  
}

void loop() {
  digitalWrite(led1Pin, HIGH);
  delay(100);
  digitalWrite(led1Pin, LOW);
  delay(100);

  //do the same for the other 3 LEDs
  digitalWrite(led2Pin, HIGH);
  delay(100);
  digitalWrite(led2Pin, LOW);
  delay(100);

  digitalWrite(led3Pin, HIGH);
  delay(100);
  digitalWrite(led3Pin, LOW);
  delay(100);

  digitalWrite(led4Pin, HIGH);
  delay(100);
  digitalWrite(led4Pin, LOW);
  delay(100);
  
  digitalWrite(led5Pin, HIGH);
  delay(100);
  digitalWrite(led5Pin, LOW);
  delay(100);

  
  digitalWrite(led6Pin, HIGH);
  delay(100);
  digitalWrite(led6Pin, LOW);
  delay(100);

  digitalWrite(led7Pin, HIGH);
  delay(100);
  digitalWrite(led7Pin, LOW);
  delay(100);

  digitalWrite(led8Pin, HIGH);
  delay(100);
  digitalWrite(led8Pin, LOW);
  delay(100);
}

 

A prototype version of the light box, micro-controller run night lights.