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