Smart Dustbin
Smart Dustbin
34 - Tejas Sabbani
35 - Fahad Salmani
36 - Mandar Salvi
37 - Riya Sanap
38 - Sakshi Sanas
39 - Raj Sangle
WHAT IS SMART DUSTBIN?
[AIM]
01 02 03 04
ULTRASONIC
ARDUNIO UNO SG-90 SERVO JUMPER WIRE
SENSOR
It is a It is used as an A servo motor is Used to do circuit
development object detection used for moving connections
board used to do sensor.It is used to the dustbin lid between different
all the processing measure the components
distance of the
object
from the sensor
CIRCUIT DIAGRAM :
HOW IT WORKS ?
The code for the project How to Smart Dustbin using Arduino is
given below.
#include Servo myservo;
int pos = 20;
const int trigPin = 5;
const int echoPin = 6;
const int led = 13;
long duration;
float distance;
void setup()
{
myservo.attach(11);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(led, OUTPUT);
myservo.write(pos);
}
void loop()
{
//Serial.begin(9600);
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = 0.034*(duration/2);
//Serial.println(distance);
if (distance < 27)
{
digitalWrite(led,HIGH);
myservo.write(pos+160);
delay(1000);
}
Else
{
digitalWrite(led,LOW)
myservo.write(pos);
}
delay(300);
}
WHERE IT WILL BE USED ?
papers.
public places.
ADVANTAGES :
Following are the advantages of using Smart dustbin:
1. A reduction in the number of waste collections needed by up to
80%, resulting in less manpower, emissions, fuel use and traffic
congestion.