Project in progress

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.

  • 177 views
  • 0 comments
  • 0 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.

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

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);
  
  


}

Comments

Similar projects you might like

LED Cube

Project tutorial by Praditha Alwis

  • 145 views
  • 0 comments
  • 3 respects

Makers (Cubecon) #1 Infrared Transmit & Infrared Receive

Project in progress by Alpha

  • 70 views
  • 0 comments
  • 3 respects

DHT11 Temperature/Humidity Sensor

Project tutorial by Zach Haslam

  • 190 views
  • 0 comments
  • 4 respects

Windows PC Lock/Unlock Using RFID

Project tutorial by Prasanth K S

  • 6,279 views
  • 6 comments
  • 28 respects

DINternet IoT Controller

Project in progress by Craig Hissett

  • 200 views
  • 0 comments
  • 3 respects
Add projectSign up / Login