Table of Contents

Play Video

Smart Bin

Smart Dustbin as its name represents it works smartly or we can say that it is an automatic dustbin. it works like when you will come in front of this dustbin it will open automatically with the help of a servo motor. so there is some sensor work to detect the object in front of the dustbin.

Introducing Smart Waste, the smart dustbin designed for  hygienic living. Using an ultrasonic sensor, servomotor, and Arduino Uno, Smart Waste makes waste disposal effortless. As you approach, the ultrasonic sensor detects your presence and signals the Arduino Uno to activate the servomotor, which smoothly opens the lid. This touchless operation ensures a more sanitary experience, reducing the spread of germs and keeping your hands clean.

Smart Waste is not only convenient but also user-friendly, with a straightforward design that fits seamlessly into any home or office. Its reliable components ensure durability and consistent performance, while the intelligent automation simplifies everyday tasks. Embrace a cleaner, more efficient lifestyle with Smart Waste, the innovative solution for your waste management needs.

#include<Servo.h>
Servo myservo;
const int trigPin=9;
const int echoPin=8; 
long tmeduration;
int distance;
 
void setup() {
myservo.attach(7);
pinMode(trigPin,OUTPUT);
pinMode(echoPin,INPUT);
Serial.begin(9600);
 
 
 
}
 
void loop() {
digitalWrite(trigPin,LOW);
delayMicroseconds(2);
digitalWrite(trigPin,HIGH);
delayMicroseconds(10);
digitalWrite(trigPin,LOW);
 
tmeduration=pulseIn(echoPin,HIGH);
distance=(0.034*tmeduration)/2;
 
if(distance<=200){
 
myservo.write(90);
  }
else{
myservo.write(0);}
 
Serial.print("distance:");
Serial.println(distance);
 
delay(500);
 
}
Scroll to Top