"Smart Dustbin Using Arduino": Maharashtra State Board of Technical Education, Mumbai
"Smart Dustbin Using Arduino": Maharashtra State Board of Technical Education, Mumbai
"Smart Dustbin Using Arduino": Maharashtra State Board of Technical Education, Mumbai
EDUCATION, MUMBAI
A
Project Report
On
Submitted by
MISS. LAVHATE VAISHNAVI
MISS. KADU GAYATRI
MISS. GAIKWAD LALITA
MISS. GAIKWAD MAYURI
Under Guidance of
PROF. P. R. GAVHANE
CERTIFICATE
I certified that the project report entitled “SMART DUSTBIN USING
ARDUINO”
Dr. V. R. Rathi
Principal
PRAVARA RURAL EDUCATION SOCIETY’S
PADMASHRI DR. VITTHALRAO VIKHE PATIL INSTITUTE OF
TECHNOLOGY & ENGINEERING (POLYTECHNIC), LONI
2020-2021
SUBMISSION
Date: / /2021.
Place: Loni [Pravaranagar]
ACKNOWLEDGEMENT
I deem it a privilege to have been a student of Electronics &
Telecommunication Engineering stream in Padmashri Dr.Vitthalrao Vikhe Patil
Polytechnic, Loni. I take this opportunity to express my gratitude to all those who
motivated, encouraged and helped me in the project work.
It is our proud privilege to express deep sense of gratitude to, Dr. V. R. Rathi,
Principal of Padmashri Dr.Vitthalrao Vikhe Patil Polytechnic, Loni, for his comments
and kind permission to complete this project. We remain indebted to Prof. R. B.
Nimbalkar H.O.D of Electronics & Telecommunication Engineering Department for
their timely suggestion and valuable guidance.
The special gratitude goes to Prof. P. R. Gavhane, staff members, technical
staff members of Electronics & Telecommunication Engineering Department for their
expensive, excellent and precious guidance in completion of this work. We thanks to
all the colleagues for their appreciable help for our working project.
We are also thankful to our parents who have provided their wishful support
for completion of our project work successfully.
And lastly we thanks to all our friends and the people who are directly or
indirectly related to our project work.
COURSE OUTCOMES
a) Install and maintain the sensors and transducers of mechatronics systems.
b) Install and Maintain CNC Machine.
c) Install and Maintain pneumatic components in mechatronic systems.
d) Install and Maintain hydraulic components in mechatronic systems.
e) Install and Maintain different components of robotic systems
PROPOSED METHODOLOGY:
Search For different management micro project topic from making
internet.
Selection of micro project & standard from project Guide
Collect Working & Resources as per Required
ACTION PLAN
RESOURSES REQUIRED
Dustbins (or Garbage bins, Trash Cans, whatever you call them) are small plastic (or metal)
containers that are used to store trash (or waste) on a temporary basis. They are often used in
homes, offices, streets, parks etc. to collect the waste.
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
non-recyclable waste.
In this project, I have designed a simple system called Smart Dustbin using Arduino,
Ultrasonic Sensor and Servo Motor, where the lid of the dustbin will automatically open itself
upon detection of human hand.
CONCEPT BEHIND SMART DUSTBIN USING ARDUINO
The main concept behind the Smart Dustbin using Arduino project is Object Detection. I
have already used Ultrasonic Sensor in Object Avoiding Robot, where upon detecting an
object, the Robot will change its course of direction.
A similar methodology is implemented here, where the Ultrasonic Sensor is placed on top of
the dustbin’s lid and when the sensor detects any object like a human hand, it will trigger
Arduino to open the lid.
DESING
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.
For this mechanism to be able to open the lid of the dustbin, it must be placed near the hinge
where the lid is connected to the main can. From the following image, you can see that I have
fixed the servo motor on the can.
Also, make sure that the lifting arm is parallel to ground under closed lid condition.
NOTE: According to the Laws of Physics, you will require more energy to push the lid from
the hinge than at the extreme end. But in order to open the lid and not have any obstacle, this
is the only place to fix the servo motor with its arm.
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.
WARNING: You have to use a sharp object with a lot of force to make these holes. Be
careful.
Now, from the inside, place the Ultrasonic Sensor through the holes and fix its position with
the help of glue.
The final step in the build process is to make the necessary connections using long
connecting wires as per the circuit diagram and securing these wires so that they don’t hang
around.
All the wires from both the components i.e. Ultrasonic Sensor and Servo Motor are connected
to respective pins of Arduino. This finishes up the build process of the Smart Dustbin.
CIRCUIT DIAGRAM
The following image shows the circuit diagram of the Smart Dustbin using Arduino. It is a
very simple design as the project involves only two components other than Arduino.
COMPONENTS REQUIRED
Arduino UNO
HC-SR04 Ultrasonic Sensor Module
TowerPro SG90 Servo Motor
Connecting Wires
5V Power Supply
A small dustbin with hinged lid
Miscellaneous (glue, plastic tube, etc.)
WORKING
After setting up the Smart Dustbin and making all the necessary connections, upload
the code to Arduino and provide 5V power supply to the circuit. Once the system is
powered ON, Arduino keeps monitoring for any object near the Ultrasonic Sensor.
If the Ultrasonic Sensor detects any object like a hand for example, Arduino
calculates its distance and if it less than a certain predefined value, Arduino will
activate the Servo Motor and with the support of the extended arm, it will list the lid
open.
After certain time, the lid is automatically closed.
RESULT
Smart Dustbin using Arduino, Ultrasonic Sensor & Servo Motor
In this project, I will show you How to Make a Smart Dustbin using Arduino, where
the lid of the dustbin will automatically open when you approach with trash. The other
important components used to make this Smart Dustbin are an HC-04 Ultrasonic Sensor and
an SG90 TowerPro Servo Motor.
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.
ANNEXURE
Code
The code for the project How to Smart Dustbin using Arduino is given below.
#include <Servo.h>
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);
}