CalK
Published © CC BY-SA

Blinky Bacon Blackboard - LED Art Light

It came with only an on/off switch. Adding an UNO to this LED chalkboard really gets your attention - it is quite a flashy pig.

BeginnerWork in progress4 hours1,424
Blinky Bacon Blackboard - LED Art Light

Things used in this project

Hardware components

LED (generic)
LED (generic)
the 3V LED's came with the pig wall hanging
×10
Arduino UNO
Arduino UNO
×1
Resistor 221 ohm
Resistor 221 ohm
×10
9V battery (generic)
9V battery (generic)
×1
9V Battery Clip
9V Battery Clip
×1
heat shrink tubing, multicolour
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
wire strippers
Mastech MS8217 Autorange Digital Multimeter
Digilent Mastech MS8217 Autorange Digital Multimeter
any multimeter will do, just needed to measure current of LED's when running at higher voltage

Story

Read more

Schematics

LED array hardwired to UNO

The LED's in the metal art frame were left in place, and wired directly to the UNO I/O pins

Code

Pig LED blinking / flashing patterns

Arduino
1 x 10 LED code installed on Pig LED wall mounted craft art
/*
10 LED Chaser Lights
Author: 
Date: December 28, 2016

This program flashes the 10 LEDs in various sequences
 */


// the setup function runs once when you press reset or power the board
void setup() {
  //                      RED LED's <   >BLUE LED's
  // initialize digital pin 13, 12, 11, 10, 9, 8 as an output.
  pinMode(13, OUTPUT);  //top center LED 'tcLED +0'
  pinMode(12, OUTPUT);  //tcLED +1
  pinMode(11, OUTPUT);  //tcLED +2
  pinMode(10, OUTPUT);  //tcLED +3
  pinMode(9, OUTPUT);   //tcLED +4
  pinMode(8, OUTPUT);   //tcLED +5
  pinMode(7, OUTPUT);   //tcLED +6
  pinMode(6, OUTPUT);   //tcLED +7
  pinMode(5, OUTPUT);   //tcLED +8
  pinMode(4, OUTPUT);   //tcLED +9
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   
  digitalWrite(12, HIGH);
  digitalWrite(10, HIGH);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(13, LOW);
  digitalWrite(12, LOW);
  digitalWrite(10, LOW);
  digitalWrite(9, LOW);
  delay(100);
  /////LED Alternate sides/////
  digitalWrite(11, HIGH);   
  digitalWrite(12, HIGH);
  digitalWrite(8, HIGH);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(11, LOW);
  digitalWrite(12, LOW);
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  delay(100);
  
  


}

Credits

CalK
0 projects • 1 follower
Contact
Thanks to ChromeCoyote.

Comments

Please log in or sign up to comment.