Open Lab
Open Lab
Every person in this world throws waste in the form of plastics, wet waste, dry
waste and etc. Also, every person looks for a place or a plastic container to
dispose that waste, that plastic container is the Dustbin which they look for.
Dustbin is a plastic container where everyone can dispose their waste. Dustbin is
used as a storage place to dispose waste, but we cannot estimate the exact
amount of waste disposed by a society, and the dustbin cannot take more waste
as the space should be available in it to take more. We need to know the level of
waste in the dustbin and based on that we can intimate people to use the
dustbin or not. In this Smart Dustbin project, we have designed a prototype
where the lid of the dustbin is opened, on detection of human hand and waste,
and the level of waste available inside the dustbin is sent as notification in the
form of LED. The main components we used in making this prototype are Arduino,
Servo Motor and Ultrasonic Sensors. The software component is the application
named as This dustbin can be a start to Smart Waste Management System where
the officials can clean or empty the dustbin which depends on the notification
received by them and not waiting for a call from a person of a society who
informs the garbage trucks to come and take the waste from them.
Dustbin is the storage container used for disposing waste by each and every
person in the world. The main thing they look in their surroundings for disposing
waste is the Dustbin. Smart Dustbin is just a normal bin where everyone can
dispose for more efficient use of it. Smart Dustbin is integrated with some
hardware components such as Arduino, Servo Motor, Ultrasonic sensors. These
components help in opening the lid, on detection of human hand and waste
and also sending the notification . The code required to perform the above-
mentioned operation is dumped in Arduino.
METHODOLOGY AND DESIGN
Servo motor : Servo Motor helps in opening the lid of the dustbin.
The Arduino is programmed in such a way that after detecting the waste
using ultrasonic sensor the lid should open automatically and this is
done using this servo motor.
Servo servo1;
int trigPin = 9;
int echoPin = 8;
long distance;
long duration;
void setup()
Serial.begin(9600);
servo1.attach(7);
pinMode(trigPin, OUTPUT);
void ultra_sonic()
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
Serial.println(duration);
distance = duration*0.034/2;
void loop()
ultra_sonic();
servo1.write(90);
if(distance <=9)
Serial.print("hi");
servo1.write(270);
}
Receiving code for messages
#include <SoftwareSerial.h>
int led = 7;
void setup()
pinMode(led, OUTPUT);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
fun();
void fun()
long duration,distance;
while(1)
{
digitalWrite(trigPin,HIGH);
delayMicroseconds(1000);
digitalWrite(trigPin, LOW);
duration=pulseIn(echoPin, HIGH);
distance =(duration/2)/29.1;
Serial.println(distance);
delay(1000);
if((distance<=5))
delay(1000);
delay(100);
mySerial.println(distance*10);
delay(100);
delay(1000);
digitalWrite(led, HIGH);
break;
}
else if(distance>5)
digitalWrite(led, LOW);
void loop()
}
CONCLUSION