ECE dustBIN FINALE
ECE dustBIN FINALE
COLLEGE OF ENGINEERING
(An Autonomous Institution Under VTU, Belagavi)
ANUSHA.R(1RV19CV017),
DHEERAJ.R(1RV19CV025),
JAYANTH RAJU G S (1RV19CV039)
MANU B.M (1RV19CV049)
INTRODUCTION:
Dustbins are small plastic (or metal) containers that are used to
store waste on a temporary basis. They are used in homes, offices, streets, parks
etc. In some places, littering is a serious offence and hence Public Waste
Containers are the only way to dispose small waste. Usually, it is a common
practice to use separate bins for collecting wet or dry, recyclable or nonrecyclable
waste.
The ultrasonic sensor echo pin and trigger pin is connected to pin
digital pin D7 and D8. The +Vcc pin is connected to +9V supply and
GND pin is connected to ground pin of arduino uno board. The
control (PWM) pin of servo motor is connected to digital pin D9 of
arduino. Hence, servo motor is used to open the cap of dustbin.
For this project and components used, the preset level of distance
between dustbin and hand is fixed to 30 to 70 cm.
Making of Smart dustbin
Aim:
How to Make a Smart Dustbin using Arduino, where the lid of the
dustbin will automatically open when you approach with trash.
Materials Used:
• Arduino UNO
• HC-SR04 Ultrasonic Sensor Module
• Tower Pro SG90 Servo Motor
• Connecting Wires
• 5V Power Supply
• A small dustbin with hinged lid
• Miscellaneous (glue, plastic tube, etc.)
Procedure:
Connecting the Servo:
• Now, let me take you through the actual setup and build process
of the Smart Dustbin using Arduino. First, I will start with the
mechanism to open the lid. As you might have already guessed, I
have used a Servo Motor for this purpose.
• In order to open the lid, I have fixed a small plastic tube (like an
empty refill of a ball-point pen) to the servo horn (a single ended
horn) using instant glue.
• Once the servo is in position, you can move onto the Ultrasonic
Sensor. Make two holes corresponding to the Ultrasonic Sensor on
the lid of the dustbin, as shown in the following image.
• Now, from the inside, place the Ultrasonic Sensor through the
holes and fix its position with the help of glue.
//-----Wiring---
#define trigPin 12
#define echoPin 11
#define servoPin 7
//----Wiring---
Servo;
void loop() {
if (flag==0) {
for (int i=0;i<=2;i++) { //average distance taken up to three
time measure(); aver[i]=dist;
delay(50); //50 milli second delay between measurements
}
dist=(aver[0]+aver[1]+aver[2])/3; //average distance by 3
measurements }
if (dist>10 && dist<30 && flag==0) { //if hand on the distance between 10 to 30 cm
servo.write(90);
delay(10000); //open cap for 10 seconds
servo.write(3);
delay(1000);
}
if (dist>30 && dist<60 && flag==0) { //if hand on the distance between 30 to 60 cm
servo.write(90);
delay(3000); //open cap for 3 seconds
servo.write(3);
delay(1000);
}
Conclusion:
A simple but useful project called Smart Dustbin
using Arduino is designed and developed here. Using this project, the
lid of the dustbin stays closed, so that waste is not exposed (to avoid flies
and mosquitos) and when you want dispose any waste, it will
automatically open the lid.