Arduino Calculator

Arduino Calculator

Source Code:- #include <LiquidCrystal.h> #include <Keypad.h> LiquidCrystal lcd(0, 1, 2, 3, 4, 5); const byte ROWS = 4; const byte COLS = 4; char keys [ROWS] [COLS] = { {‘1’, ‘2’, ‘3’, ‘=’}, {‘4’, ‘5’, ‘6’, ‘+’}, {‘7’, ‘8’, ‘9’, ‘-‘}, {‘C’, ‘0’, ‘/’, ‘*’} }; byte rowPins[ROWS] = {13,12,11,10}; byte colPins[COLS] = {9,8,7,6}; Keypad … 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