Professional Documents
Culture Documents
Project Report On: Patuakhali Science and Technology University
Project Report On: Patuakhali Science and Technology University
Project Report On
Smart Dustbin Using Arduino
Remarks:
Course Code : EEE-212
Course Title : Electrical Technology
Sessional
Submitted to :
Submission Date: 20-12-2021
Md. Naimur Rahman
Submitted By : Associate Professor
Name Id Reg. No Department of
Md. Tasnif 1802014 08424 Electrical and
Rahman
Ruhit Shah 1802055 08465 Electronics Engineering
Faculty of computer
Level-2, Sem-1 , Session :2018-19 science and engineering
ABSTRACT:-
In the recent decades, urbanization has increased tremendously. At the
same phase there is an increase in waste production. Waste management
has been a crucial issue to be considered. This proposal is a way to
achieve this good cause. In this project smart dustbin is built on a
microcontroller based platform Arduino Uno board which is interfaced
with the Servo motor and ultrasonic sensor. Ultrasonic sensor is placed
at the top of the dustbin which will measure the stature of the dustbin.
COMPONENTS:-
Components required to make smart dustbin:-
Ultrasonic sensor
Arduino Uno
Servo motor
Jumper wires
COMPONENT DESCRIPTION
Ultrasonic Sensors:-
Ultrasonic sensors work by sending out a sound wave at a frequency
above the range of human hearing. The transducer of the sensor acts as
a microphone to receive and send the ultrasonic sound. Our ultrasonic
sensors, like many others, use a single transducer to send a pulse and to
receive the echo. The sensor determines the distance to a target by
measuring time lapses between the sending and receiving of the
ultrasonic pulse. Figure 2 shows the pin configuration for ultrasonic
sensor module (HC-SRO4) which includes.
Vcc (5 volt Supply )
Trigger pin
Echo pin
Gnd (0volt)
Servo Motor:-
A servo motor is an electrical device which can push or rotate an object
with great precision. If we want to rotate an object at some specific
angles or distance, then we use servo motor. It is just made up of simple
motor which run through servo mechanism. If motor is used is DC
powered then it is called DC servo motor, and if it is AC powered motor
then it is called AC servo motor. We can get a very high torque servo
motor in a small and light weight packages. Due to these features they
are being used in many applications like toy cars, RC helicopters and
planes, Robotics, Machine etc.
Arduino UNO:-
Arduino is an open-source platform used for building electronics
projects. Arduino consists of both a physical programmable circuit board
(often referred to as a microcontroller) and a piece of software, or IDE
(Integrated Development Environment) that runs on your computer, used
to write and upload computer code to the physical board.
The Arduino platform has become quite popular with people just starting
out with electronics, and for good reason. Unlike most previous
programmable circuit boards, the Arduino does not need a separate piece
of hardware (called a programmer) in order to load new code onto the
board — you can simply use a USB cable. Additionally, the Arduino
IDE uses a simplified version of C++, making it easier to learn to
program. Finally, Arduino provides a standard form factor that breaks
out the functions of the micro-controller into a more accessible package.
BREADBOARD AND CONNECTING WIRES:-
The main concept behind the Smart Dustbin using Arduino project is
Object Detection. 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.
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.
This Smart Dustbin sense the person or object using Ultrasonic
Sensor which send the message to Servo Motor using Arduino Uno.
When the person Comes closer to Smart Dustbin then the Dustbin Cap
will automatically open for waste and after some time it will
automatically Close.
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.
Smart dustbin Arduino Program:-
#include <Servo.h>
int distance;
float duration;
float cm;
void setup(){
pinMode(trigpin, OUTPUT);
pinMode(echopin, INPUT);
void loop()
digitalWrite(trigpin, LOW);
delay(2);
digitalWrite(trigpin, HIGH);
delayMicroseconds(10);
digitalWrite(trigpin, LOW);
cm = (duration/58.82);
distance = cm;
if(distance<30)
delay(2000);
}
else{
servoMain.write(40);
delay(50);
OBJECTIVES:-
ACKNOWLEDGEMENTS
This work was supported by Department of Electrical and Electronic
Engineering, Patuakhali Science and Technology University.