Project in progress
Blinky Bacon Blackboard - LED Art Light

Blinky Bacon Blackboard - LED Art Light © CC BY-SA

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.

  • 630 views
  • 0 comments
  • 4 respects

Components and supplies

09590 01
LED (generic)
the 3V LED's came with the pig wall hanging
×10
A000066 iso both
Arduino UNO & Genuino UNO
×1
Mfr 25fbf52 221r sml
Resistor 221 ohm
×10
Tens70
9V battery (generic)
×1
Keystone 233 image 75px
9V Battery Clip
×1
heat shrink tubing, multicolour
×1

Necessary tools and machines

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

About this project

Got an Uno for Christmas, and this LED Pig gift was a little boring, so I looked around Hackster for ways to flash up and sequence its 10 LED array..... luckily the Arduino is the perfect tool to do it. With great code from ChromeCoyote, and after a few hours of transplant surgery to add its new UNO heart, it is a flashy pig indeed.

Code

Pig LED blinking / flashing patternsArduino
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);
  
  


}

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
Img 3665 tf2gcpwi7m

Comments

Similar projects you might like

LED as a Light Sensor

Project tutorial by Harsh Dethe

  • 1,751 views
  • 8 comments
  • 17 respects

Controlling LED light intensity using smartphone light senso

Project tutorial by Nikola Travis

  • 1,757 views
  • 0 comments
  • 3 respects

48 x 8 Scrolling LED Matrix using Arduino.

Project tutorial by Prasanth K S

  • 18,921 views
  • 4 comments
  • 24 respects

LED Dice

Project showcase by EvdS

  • 14,276 views
  • 11 comments
  • 49 respects

LED Cube

Project tutorial by Praditha Alwis

  • 5,038 views
  • 0 comments
  • 12 respects

LED light "Whack-a-mole"

Project tutorial by courtlandjensen

  • 3,703 views
  • 4 comments
  • 14 respects
Add projectSign up / Login