5 Kilo-watt Led Chaser

Source Code of Led Chaser :- #define t 30 #define t1 20 #define t2 100 #define t3 50 void setup() { for (int i = 1; i <= 3; i++) { pinMode(i, OUTPUT); } } void loop(){ effect_1(); effect_1(); effect_2(); effect_2(); effect_3(); effect_3(); effect_4(); effect_4(); } void effect_1() { for(int i=1; i<3; i++){ digitalWrite(i, HIGH); … Read more

Smart Dustbin with Arduino

How to make a Smart Dustbin

Source code of smart dustbin are:- //Made by Innovative Chetan #include <Servo.h> Servo servo; int trigPin = 9; int echoPin = 10; int servoPin =8 ; long duration, dist, average; long aver[3]; void setup() { Serial.begin(9600); servo.attach(servoPin); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); servo.write(0); delay(100); servo.detach(); } void measure() { digitalWrite(10,HIGH); digitalWrite(trigPin, LOW); delayMicroseconds(5); digitalWrite(trigPin, HIGH); delayMicroseconds(15); … Read more

How to make a LED Cube

Source code:- int layer[4]={A3,A2,A1,A0}; int column[16]={13,12,11,10,9,8,7,6,5,4,3,2,1,0,A5,A4}; int time = 250; void setup() { for(int i = 0; i<16; i++) { pinMode(column[i], OUTPUT); } for(int i = 0; i<4; i++) { pinMode(layer[i], OUTPUT); } randomSeed(analogRead(10)); } void loop() { turnEverythingOff(); flickerOn(); turnEverythingOn(); delay(time); turnOnAndOffAllByLayerUpAndDownNotTimed(); layerstompUpAndDown(); spiralInAndOut(); turnOnAndOffAllByColumnSideways(); delay(time); aroundEdgeDown(); turnEverythingOff(); randomflicker(); randomRain(); diagonalRectangle(); goThroughAllLedsOneAtATime(); propeller(); spiralInAndOut(); … Read more

Amazing LED Effects | Arduino

    Source Code:- #define t 30 #define t1 20 #define t2 100 #define t3 50 void setup() { for (int i = 2; i <= 13; i++) { pinMode(i, OUTPUT); } } void loop(){ effect_1(); effect_1(); effect_2(); effect_2(); effect_3(); effect_3(); effect_4(); effect_4(); effect_5(); effect_5(); effect_6(); effect_6(); effect_7(); effect_7(); } void effect_1() { for(int i=2; … Read more

Security System with Arduino

Source Code:- int sensor = 0; int buzzer = 12; int led = 13; int Light = HIGH; void setup() { pinMode (sensor, INPUT); pinMode (buzzer, OUTPUT); pinMode (led, OUTPUT); } void loop() { Light = digitalRead(sensor); if (Light== HIGH) { digitalWrite(buzzer, HIGH); digitalWrite(led,HIGH); } else { digitalWrite(buzzer, LOW); digitalWrite(led,LOW); } }  

Distance Measuring Machine using Ultrasonic sensor

Source Code:- #include <LiquidCrystal.h> LiquidCrystal lcd(1, 2, 4, 5, 6, 7); const int trigPin = 9; const int echoPin = 10; long duration; int distanceCm, distanceInch; void setup() { lcd.begin(16,2); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); } void loop() { digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); distanceCm= duration*0.034/2; distanceInch = duration*0.0133/2; … Read more

Bluetooth Controlled Car

Source Code:- #include <AFMotor.h> AF_DCMotor motor1(1, MOTOR12_1KHZ); AF_DCMotor motor2(2, MOTOR12_1KHZ); AF_DCMotor motor3(3, MOTOR34_1KHZ); AF_DCMotor motor4(4, MOTOR34_1KHZ); char command; void setup() { Serial.begin(9600); } void loop(){ if(Serial.available() > 0){ command = Serial.read(); Stop(); //initialize with motors stoped switch(command){ case ‘F’: forward(); break; case ‘B’: back(); break; case ‘L’: left(); break; case ‘R’: right(); break; } } … Read more

Automatic Plant Watering System

Source Code:- int rainmodule = 0; int buzzer = 1; int led = 2; int Rain = HIGH; void setup() { pinMode (rainmodule, INPUT); pinMode (buzzer, OUTPUT); pinMode (led, OUTPUT); } void loop() { Rain = digitalRead(firesensor); if (Rain== LOW) { digitalWrite(buzzer, HIGH); digitalWrite(led,HIGH); } else { digitalWrite(buzzer, LOW); digitalWrite(led,LOW); } delay(400); }  

RGB Light controoled with Mobile

Source Code:- #include <SoftwareSerial.h> SoftwareSerial BLU(0,1); #define redPin 5 #define greenPin 6 #define bluePin 7 void setup() { //Serial setup Serial.begin(9600); Serial.println(“-= HC-05 Bluetooth RGB LED =-“); BLU.begin(9600); BLU.println(“-= HC-05 Bluetooth RGB LED =-“); pinMode(4, OUTPUT); digitalWrite(4,HIGH); pinMode(redPin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(bluePin, OUTPUT); setColor(255, 0, 0); delay(500); setColor(0, 255, 0); delay(500); setColor(0, 0, 255); delay(500); … Read more