Project in progress

Blinky Bacon, the LED Art Light Chaser / Sequencer © CC BY-SA

Adding an Arduino UNO pacemaker and heartbeat light patterns, this LED chalkboard changed from boring into quite the flashy pig.

  • 36 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

Moisty v2 - a Plant Moisture Sensor

Project tutorial by Mitch K

  • 175 views
  • 0 comments
  • 4 respects

Automatizing Percussion with Solenoids: "The Sound Compass"

Project tutorial by touchmysound

  • 786 views
  • 0 comments
  • 4 respects

Control a led with the remote control

Project showcase by Nicholas_N

  • 283 views
  • 0 comments
  • 4 respects

Soil Moisture Sensor With LCD Display

Project tutorial by Patel Darshil

  • 2,057 views
  • 0 comments
  • 16 respects
Add projectSign up / Login