**ARDUINO WISHES "HAPPY BIRTHDAY"**
PROJECT MADE BY:
M.FAIZAN MAZHAR
BS.c (EE) APCOMS
PROJECT:
In this project a Program is fed in to Arduino , first Arduino displays some scrolling text on LCD then LEDs
Red ,Blue & Green Blinks in sequence , after that Candle lits , again LEDs blink and at the end Fan blows the Candle.You can use any version of Arduino.
WATCH ON:
COMPONENTS:
*Arduino
*Jumper wires
*LCD 16x2
*LEDs
*Breadboard
*Variable Resistor 50k(Volume)
*Any NPN transistors in Heatsink pakage D313 2x
* 470 ohm Resitors for LEDs 3x
*FAN 12v
IMAGES:
CIRCUIT DIAGRAM LCD:
PIN 4,5,6,7,8,9 of Arduino are connected with LCD . Variable controls Brightness of LCD .
CANDLE FILAMENT:
Making candle filament is most tricky part you can use it for any other project. i used an old soldering iron (burnt) & took out the element and removed sheets and upper winding . there were many windings of very thin wire ,i used that wire and passed current through that wire . It is property of that wire that it turns red on passing current.Now wind that wire on bare copper wires and
connect them with supply. Your candle lighter is ready.
C-CODE:
/**********************************
* ARDUINO WISHING HAPPY BIRTHDAY
* CODE WRITTEN BY:
* M.FAIZAN MAZHAR
* WEBSITE:
* www.CreativeEagle.net
*********************************/
#include <LiquidCrystal.h>
LiquidCrystal lcd(8,9,4,5,6,7);
void setup() {
pinMode(30, OUTPUT);
pinMode(32, OUTPUT);
pinMode(34, OUTPUT);
pinMode(36, OUTPUT);
pinMode(38, OUTPUT);
lcd.begin(16, 1);
lcd.print("ITS 28TH of JANUARY :)ARDUINO WISHES U HAPPY BIRTHDAY**M.FAIZAN MAZHAR**");
delay(2000);
}
void loop() {
for (int positionCounter = 0; positionCounter < 64; positionCounter++) {
lcd.scrollDisplayLeft();
delay(300);
}
delay(2);
digitalWrite(30, HIGH);
delay(200);
digitalWrite(30, LOW);
delay(2);
digitalWrite(32, HIGH);
delay(200);
digitalWrite(32, LOW);
delay(2);
digitalWrite(34, HIGH);
delay(200);
digitalWrite(34, LOW);
delay(2);
digitalWrite(30, HIGH);
delay(200);
digitalWrite(30, LOW);
delay(2);
digitalWrite(32, HIGH);
delay(200);
digitalWrite(32, LOW);
delay(2);
digitalWrite(34, HIGH);
delay(200);
digitalWrite(34, LOW);
digitalWrite(30, HIGH);
delay(200);
digitalWrite(30, LOW);
delay(2);
digitalWrite(32, HIGH);
delay(200);
digitalWrite(32, LOW);
delay(2);
digitalWrite(34, HIGH);
delay(200);
digitalWrite(34, LOW);
delay(2);
digitalWrite(30, HIGH);
delay(200);
digitalWrite(30, LOW);
delay(2);
digitalWrite(32, HIGH);
delay(200);
digitalWrite(32, LOW);
delay(2);
digitalWrite(34, HIGH);
delay(2000);
digitalWrite(34, LOW);
delay(2000);
digitalWrite(36, HIGH); // MOOMBATTI
delay(3000); // wait for a second
digitalWrite(36, LOW); //
delay(20);
digitalWrite(30, HIGH);
delay(400);
digitalWrite(30, LOW);
delay(4);
digitalWrite(32, HIGH);
delay(400);
digitalWrite(32, LOW);
delay(4);
digitalWrite(34, HIGH);
delay(400);
digitalWrite(34, LOW);
digitalWrite(30, HIGH);
delay(400);
digitalWrite(30, LOW);
delay(4);
digitalWrite(32, HIGH);
delay(400);
digitalWrite(32, LOW);
delay(4);
digitalWrite(34, HIGH);
delay(400);
digitalWrite(34, LOW);
delay(4);
digitalWrite(30, HIGH);
delay(400);
digitalWrite(30, LOW);
delay(4);
digitalWrite(32, HIGH);
delay(400);
digitalWrite(32, LOW);
delay(4);
digitalWrite(34, HIGH);
delay(400);
digitalWrite(34, LOW);
delay(4);
digitalWrite(30, HIGH);
delay(400);
digitalWrite(30, LOW);
delay(4);
digitalWrite(32, HIGH);
delay(400);
digitalWrite(32, LOW);
delay(4);
digitalWrite(34, HIGH);
delay(400);
digitalWrite(34, LOW);
delay(4);
digitalWrite(30, HIGH);
delay(400);
digitalWrite(30, LOW);
delay(4);
digitalWrite(32, HIGH);
delay(400);
digitalWrite(32, LOW);
delay(4);
digitalWrite(34, HIGH);
delay(400);
digitalWrite(34, LOW);
delay(4);
digitalWrite(30, HIGH);
delay(400);
digitalWrite(30, LOW);
delay(4);
digitalWrite(32, HIGH);
delay(400);
digitalWrite(32, LOW);
delay(4);
digitalWrite(34, HIGH);
delay(400);
digitalWrite(34, LOW);
delay(4);
digitalWrite(38, HIGH); // fan
delay(13000);
digitalWrite(38, LOW);
delay(9000);
}
/********************************** * ARDUINO WISHING HAPPY BIRTHDAY * CODE WRITTEN BY: * M.FAIZAN MAZHAR * WEBSITE: * www.CreativeEagle.net *********************************/ #include <LiquidCrystal.h> LiquidCrystal lcd(8,9,4,5,6,7); void setup() { pinMode(30, OUTPUT); pinMode(32, OUTPUT); pinMode(34, OUTPUT); pinMode(36, OUTPUT); pinMode(38, OUTPUT); lcd.begin(16, 1); lcd.print("ITS 28TH of JANUARY :)ARDUINO WISHES U HAPPY BIRTHDAY**M.FAIZAN MAZHAR**"); delay(2000); } void loop() { for (int positionCounter = 0; positionCounter < 64; positionCounter++) { lcd.scrollDisplayLeft(); delay(300); } delay(2); digitalWrite(30, HIGH); delay(200); digitalWrite(30, LOW); delay(2); digitalWrite(32, HIGH); delay(200); digitalWrite(32, LOW); delay(2); digitalWrite(34, HIGH); delay(200); digitalWrite(34, LOW); delay(2); digitalWrite(30, HIGH); delay(200); digitalWrite(30, LOW); delay(2); digitalWrite(32, HIGH); delay(200); digitalWrite(32, LOW); delay(2); digitalWrite(34, HIGH); delay(200); digitalWrite(34, LOW); digitalWrite(30, HIGH); delay(200); digitalWrite(30, LOW); delay(2); digitalWrite(32, HIGH); delay(200); digitalWrite(32, LOW); delay(2); digitalWrite(34, HIGH); delay(200); digitalWrite(34, LOW); delay(2); digitalWrite(30, HIGH); delay(200); digitalWrite(30, LOW); delay(2); digitalWrite(32, HIGH); delay(200); digitalWrite(32, LOW); delay(2); digitalWrite(34, HIGH); delay(2000); digitalWrite(34, LOW); delay(2000); digitalWrite(36, HIGH); // MOOMBATTI delay(3000); // wait for a second digitalWrite(36, LOW); // delay(20); digitalWrite(30, HIGH); delay(400); digitalWrite(30, LOW); delay(4); digitalWrite(32, HIGH); delay(400); digitalWrite(32, LOW); delay(4); digitalWrite(34, HIGH); delay(400); digitalWrite(34, LOW); digitalWrite(30, HIGH); delay(400); digitalWrite(30, LOW); delay(4); digitalWrite(32, HIGH); delay(400); digitalWrite(32, LOW); delay(4); digitalWrite(34, HIGH); delay(400); digitalWrite(34, LOW); delay(4); digitalWrite(30, HIGH); delay(400); digitalWrite(30, LOW); delay(4); digitalWrite(32, HIGH); delay(400); digitalWrite(32, LOW); delay(4); digitalWrite(34, HIGH); delay(400); digitalWrite(34, LOW); delay(4); digitalWrite(30, HIGH); delay(400); digitalWrite(30, LOW); delay(4); digitalWrite(32, HIGH); delay(400); digitalWrite(32, LOW); delay(4); digitalWrite(34, HIGH); delay(400); digitalWrite(34, LOW); delay(4); digitalWrite(30, HIGH); delay(400); digitalWrite(30, LOW); delay(4); digitalWrite(32, HIGH); delay(400); digitalWrite(32, LOW); delay(4); digitalWrite(34, HIGH); delay(400); digitalWrite(34, LOW); delay(4); digitalWrite(30, HIGH); delay(400); digitalWrite(30, LOW); delay(4); digitalWrite(32, HIGH); delay(400); digitalWrite(32, LOW); delay(4); digitalWrite(34, HIGH); delay(400); digitalWrite(34, LOW); delay(4); digitalWrite(38, HIGH); // fan delay(13000); digitalWrite(38, LOW); delay(9000); }
0 comments:
Post a Comment