Smart Dustbin For Household Using Internet of Things (Iot)
Smart Dustbin For Household Using Internet of Things (Iot)
By
Esther Rai (19IT102014)
Twinkle Kumari (19IT102023)
Pelwang Dorji (19IT102026)
*
-.-i ls to certiff that Ms. Esther Rai, l!ts. Twinkle Kumari and 1$r. Pelwang Dorji
tu
\1r. Abhimanyu Sharma
Lecturer
fi
DECLARATION
-,:--r". i+clare that the work recorded in this project repcrt entitled "Smart
fr-rr Household using IOT' in partial fulfilment for the requirements far the
-;e:ree in Bachelor of Computer Application from SRM University Sikkim,
', .:,'uL and bonafide work carried out under the supen'ision and guidance ot'1Hr.
Th re5lltts of this i:rvestigation reported in this prcject have so far not beea reported
fu ry der Degree / Diploma or other technical tbrum.
Tbe essistaftce aad help received during the course of the investigation have been duly
tledged.
Ro}
EstrEr Rai {1slT1o2ol4) BIh!'\
rurinkre Kumari {1errr020 B}$ltfi&fi, ftilr*l'{i
.-' :i n.ang Dorji { 1 91Tl 020:6i
tv
C ERTTFICATE OF ACCEPTA}{CE
,:trr, that \Is. Esther Rai, *1s. Trryinkle Kumari and h{r. Felw*ng l}*rji
iii
BOITiAFTDE CERTTFICATE
, :::r:l-,, that this project report entitled uoSmart Dusthin for Househcld
tr( nT- -' ,ne bonatied rvork of 11'ts. Erther Raio Ms. Twinkle Kumari and SIr.
[],-,111 neanng Registraiion No. 19IT102014, 19IT102023 and 19IT1S2026
t ho camed out this proj*ct under my superv-isian.
" , rither certit. that the rlork referred herein does not form a part of any
' : - I - ---i Lrr dissertation tbr x&ich a degree Llr alvart has been conlbrred *n allv
I ----
=4-f
.
- --/
- ::akash Sharma GIIlDf,
. . TT
LI Ir{r. Abhiman3'i-r Sharma
OF IT Lecturer
lsundar Rajan S.
l--\
aJ' ) /'
E,L{1{TJ{ER
W
EXTERNALEXAMIITER
ACKNOWLEDGEMENT
To list who all have helped us is difficult because they are so numerous and the depth
is so enormous.
We take this opportunity to thank SRM University, Sikkim who provided the necessary
facilities, guidance and gave us the chance to do this project.
We would like to thank our Head of Department, Dr. Om Prakash Sharma who gave
us an opportunity to do this project on the topic "Smart Dustbin for Household using
Internet of Things", which helped us to learn many new things.
We take this opportunity to thank our Project Coordinator, Mr. Nawang Lama,
Assistant Professor for his valuable guidance, support and constant supervision in
completion of this project.
We would also like to express our sincere gratitude towards our project guide, Mr.
Abhimanyu Sharma, whose guidance and care made the project successful.
We would like to express our special gratitude and thanks to all the faculties of School
of Information Technology, SRM University for giving us such attention and time.
Our thanks and appreciations also go to our colleagues who have been helping us in
developing the project.
Thanking You,
In the present world, appropriate disposal of waste is a must. It is getting difficult day
by day to lead a healthy and sustainable life. Everyone is engrossed so much into their
work that they do not realize that if the dustbins are not emptied on time, unhygienic
and unpleasant smell causes several dangerous infections and human illnesses spread.
This creates the spread of garbage which in turn creates unhealthy conditions.
In order to reduce the waste and maintain good hygiene, we need a systematic approach
to tackle the problem. To avoid the spill over of the garbage and to improve the
cleanliness at home, Smart Dustbin for Household is designed. Smart Dustbin is a
normal bin to dispose the waste where integration of some hardware components is
done for more efficient use. This project IoT based Smart Dustbin for Household is a
very innovative system which will help to monitor the trash collected in the dustbin.
This system monitors and informs about the level of garbage collected in the garbage
bins. Ultrasonic sensors are used to detect the level of garbage collected in the bins.
TABLE OF CONTENTS
Acknowledgement vi
Abstract vii
List of Figures x
List of Tables x
Chapter 1 1-3
Introduction
1.1 Internet of Things (IoT)
1.2 Importance of IOT
1.3 IoT Platform Concepts
1.4 Smart Dustbin for Household using Internet of Things
Chapter 2 4-9
Literature Review & Problem Statement
2.1 Smart Garbage Monitoring System Using IOT
2.2 Smart Garbage Management System for a Sustainable Urban Life
2.3 Garbage Management using Internet of Things
2.4 Garbage Monitoring System Using IOT
2.5 Problem Definition
2.6 Objectives
2.7 Proposed System
2.8 Expected Outcome
Chapter 3 10-14
Methodology
3 Methodology
3.1 Block Diagram
3.2 Flow Diagram
3.3 Sequence Diagram
3.4 Data Flow Diagram
Chapter 4 15-23
System Requirement
4.1 Hardware Requirements
4.2 Software Requirements
4.3 Program ESP32 with Arduino IDE
Chapter 5 24
Results and Discussion
5.1 Result
Chapter 6 25
Conclusion
6 Conclusion
6.1 Future Scopes
Appendix 27-29
A. Circuit Diagram
B. Output
References 30
List of Figures
List of Tables
In this project, we are going to propose a system for the immediate cleaning of the
dustbins. To maintain the level of cleanliness, it is very important to clean all the
dustbins as they get filled. We will use the ultrasonic sensor which will alert that the
level of garbage has reached its maximum level. After this the bins should be emptied
as soon as possible. In the current situation, it is common to observe rubbish bins or
dust bins overflowing due to the daily growth in waste. These overflowing can create
an unpleasant smell and produce an unsanitary atmosphere. This promotes the spread
of germs and viruses that can cause a variety of diseases. As the world's population
grows day by day, the disposing of dustbins must be done to ensure clean and hygienic
for our better lives.
The Internet of Things is the concept of connecting any device to the Internet and to
other connected devices. The IoT is a giant network of connected things and people –
all of which collect and share data about the way they are used and about the
environment around them. IoT makes a “dumb" devices "smarter" by giving them the
ability to send data over the internet, allowing the device to communicate with people
and other IoT-enabled things.
An IoT ecosystem consists of web-enabled smart devices that use embedded systems,
such as processors, sensors and communication hardware, to collect, send and act on
data they acquire from their environments. IoT devices share the sensor data they
collect by connecting to an IoT gateway or other edge device where data is either sent
1
to the cloud to be analysed or analysed locally. Sometimes, these devices communicate
with other related devices and act on the information they get from one another. The
devices do most of the work without human intervention, although people can interact
with the devices -- for instance, to set them up, give them instructions or access the
data. The connectivity, networking and communication protocols used with these web-
enabled devices largely depend on the specific IoT applications deployed. IoT can also
make use of artificial intelligence (AI) and machine learning to aid in making data
collecting processes easier and more dynamic.
The internet of things helps people live and work smarter, as well as gain complete
control over their lives. In addition to offering smart devices to automate homes, IoT is
essential to business. IoT provides businesses with a real-time look into how their
systems really work, delivering insights into everything from the performance of
machines to supply chain and logistics operations. IoT enables companies to automate
processes and reduce labour costs. It also cuts down on waste and improves service
delivery, making it less expensive to manufacture and deliver goods, as well as offering
transparency into customer transactions. As such, IoT is one of the most important
technologies of everyday life, and it will continue to pick up steam as more businesses
realize the potential of connected devices to keep them competitive.
2
1.3 IoT Platform Concepts
The Internet of Things (IoT) strives to connect devices remotely for seamless
functioning and ease of operations. An IoT platform bridges the gap between device
sensors and data networks. It provides an insight into the data used in the backend
application. An IoT platform is a set of components that allows developers to spread
out the applications, remotely collect data, secure connectivity, and execute sensor
management. An IoT platform manages the connectivity of the devices and allows
developers to build new mobile software applications. It facilitates the collection of
data from devices and enables business transformation. It connects different
components, ensuring an uninterrupted flow of communication between the devices.
The IoT platform helps in understanding the customer’s need better and facilitate the
creation of products that fulfil their requirements. It provides organizations with greater
intelligence and visibility into operations, which enables better decision-making.
3
CHAPTER 2
LITERATURE REVIEW
1 Smart Garbage SSRN Electronic, This research paper The truck is called
Monitoring System February 2021 proposes an IoT every time the
Using IOT based smart system garbage bin is full
based on clean waste which can happen
Authors: management that several times a
assesses the level of day making the
Dr. Ihtiram Raza waste on dustbins process time
Khan through sensory consuming and
systems. In this resource
Mehtab Alam system the inefficient.
microcontroller is
Anuj Razdan used as a visual
connector connecting
the sensor and the IoT
system.
4
3 Garbage Management International This system uses the Uses GSM which
using Internet of conference on smart dustbin in is relatively old
Things. Electronics, which a GSM board (can use GPRS
Communication a sends messages by
Authors: nd Aerospace detecting the level of
Technology garbage using an IR
Mrs. Pallavi Nehete (ICECA), sensor. Water sensor
is used to detect the
Dhanshri Jangam March 2018 wet garbage.
Nandini Barne
Prajakta Bhoite
Shalaka Jadhav
5
2.1 Smart Garbage Monitoring System Using IOT
Abstract
This research paper proposes an IoT based smart system based on clean waste
management that assesses the level of waste on dustbins through sensory systems. In
this system the microcontroller is used as a visual connector connecting the sensor and
the IoT system.
Research Gap
The truck is called every time the garbage bin is full which can happen several times a
day making the process time consuming and resource inefficient.
2.2 Smart Garbage Management System for a Sustainable Urban Life: An IoT
Based Application
Abstract
This system consists of an identification system, an automated lid system, a display
system, and a communication system. Arduino Uno is used as a microcontroller to
synchronize all of the four systems. Sensors are used for identification and measuring
the garbage level. The system provides the facility of continuous monitoring of the
status of waste inside the garbage bin and shows the percentage filled up on liquid
crystal display (LCD). The communication system uses a global system for mobile
6
communications (GSM) module that will inform the corresponding authority to collect
the waste when the garbage bin is filled up
Research Gap
The system discussed in this report is extortionate and revolves around human
intervention in the functioning where there is clear lack in automation without human
intervention.
Abstract
This system uses the smart dustbin in which a GSM board sends messages by detecting
the level of garbage using an IR sensor. Water sensor is used to detect the wet garbage.
Research Gap
Uses GSM which is relatively old (can use GPRS).
7
Journal & Published Date: International Journal of Pure and Applied Mathematics,
November 12, 2017
Abstract
This system makes use of a microcontroller, LCD screen, and Zigbee methodology for
sending data. Ultrasonic sensors are used to detect the level of garbage collected in the
bins. The LCD screen is used to display the level of garbage collected in the bins. It
uses microcontroller using Zigbee methodology for collecting garbage from particular
area whose garbage bins are overflowing.
Research Gap
It suffers from the same drawbacks of being time consuming and resource inefficient
as technology used is not practical with output and time parameters i.e., a garbage truck
should only come in a periodical manner.
8
PROBLEM STATEMENTS AND OBJECTIVES
The traditional way of manually monitoring waste in the waste bin is a burdensome
process and utilizes more human effort, time and cost and it can be avoided with the
proposed system.
The working-class people are so engrossed in their work that they do not get time to
monitor the trashes that gets accumulated in the bin which leads to the spread of various
kinds of diseases.
This paper proposes a system which alters the user via a buzzer that the bin is full and
need to be emptied and the user can detect the level of garbage in the bin via a blynk
app.
2.6 Objectives
• To notify the user via a buzzer to alert that the dustbin is filled up.
• This system monitors the garbage bins and informs about the level of garbage
collected in the garbage bins.
The expected output of this project will be notifying the user with an alert via a buzzer
and the user can monitor the level of garbage via blynk app .
9
Chapter 3
METHODOLOGY
Methodology
After reviewing various existing garbage monitoring system, this smart dustbin for
household was proposed. A system uses the ESP32 and ultrasonic sensor. This Smart
Dustbin for Household using IoT uses the ESP32 and ultrasonic sensor to monitor the
level of the garbage in dustbin.
The Smart Dustbin for household has been developed using the following sensor and
equipment:
A block diagram is a diagram of a system in which the principal parts or functions are
represented by blocks connected by lines that show the relationships of the blocks. A
block diagram is used to represent a control system in diagram form.
10
Figure 2: Block Diagram
In the above Figure 2 shows a block diagram that covers the general flow of the system.
An ultrasonic sensor was used to detect distance and height on a trashcan, and an ESP32
was utilised to programme the uploading of a code for Wi-Fi connectivity. The data
obtained from the ESP32 is displayed on the serial monitor of Arduino IDE.
11
Figure 3: Flow Diagram
In the above Figure 3 shows a flow diagram in which the system monitors the garbage
bin and informs about the level of the garbage collected in the trash bin.
12
Figure 4: Sequence Diagram
13
Figure 5: Level 0 Data Flow Diagram
14
Chapter 4
SYSTEM REQUIREMENT
Hardware Requirements
15
Figure 7: Ultrasonic Sensor (HC-SR04)
The ultrasonic sensor uses sonar to determine the distance to an object. Here’s how it
works:
• The ultrasound transmitter (trig pin) emits a high-frequency sound (40 kHz).
• The sound travels through the air. If it finds an object, it bounces back to the
module.
• The ultrasound receiver (echo pin) receives the reflected sound (echo).
4.2 ESP32
ESP32 is created by Espressif Systems with a series of SoC (System on a Chip) and
modules which are low cost with low power consumption. The ESP32 is a set of
microcontroller chips that may be used to communicate with other systems and offer
16
Wi-Fi and Bluetooth capability. ESP32 chip ESP32-D0WDQ6 is based on a Tensilica
Xtensa LX6 dual core microprocessor with an operating frequency of up to 240 MHz.
The small ESP32 package has a high level of integrations such as:
• Antenna switches
• Balun to control RF
• Power amplifier
• Low noise reception amplifier
• Filters and power management modules
Figure 9: ESP32
17
• Core
ESP32 has dual core low-power Tensilica Xtensa 32-bit LX6 microprocessors.
It has an ultra-low-power co-processor that is used to perform analog-digital
conversions and other operations while the device is operating in deep
sleep low-power mode. In this way, a very low consumption by the SoC is
achieved.
Processors offer great advantages of a digital signal processor:
a. Operating frequency: 240 MHz (executes instructions 15 times faster
than an Arduino UNO board)
b. It allows performing operations with real numbers (numbers with
commas) very efficiently.
c. Allows multiplying large numbers instantly.
• Memory
In most of the microcontrollers based on Arduino, there are three types of
memories:
a. Program memory: to store the sketch.
b. SRAM memory: to store the variables that is used in the code.
c. EEPROM memory: to store variables that does not lose their value even
when the device is turned off.
One of the most important factors in any system is security. That is why
the ESP32 has algorithm accelerators aimed at encryption:
a. AES (FIPS PUB 197)
b. SHA (FIPS PUB 180-4)
c. RSA
d. ETC
These accelerators allow increasing the speed of operation and reducing the
complexity of the software allowing encryption and dynamic decryption. In this
way, the system is protected from possible hacking attacks that seek to obtain
the stored code.
18
• Digital pins
The ESP32 has a total of 34 digital pins. These pins are similar to Arduino
digital pins which allow adding LED display, OLED display, sensors, buttons,
buzzers, etc. to our projects.
Most of these pins support the use of internal pull-up, pull-down, and high
impedance status as well. This makes them ideal for connecting buttons and
matrix keyboards, as well as for applying LED control techniques
4.4 Buzzer
This is a small buzzer for the Sensor Shield. It creates a different sound based on the different
frequency of I/O toggling.
Bring oscillation source
Work Voltage: 3.3(ESP 32) -5V(Arduino)
Set bolt hole,
easy to assemble
PCB Dimension: 3.3cm*1.3cm
Pin Definition:
19
Vcc: 3.3-5v
GND: The Ground
I/O: I/O Interface of SCM
4.5 Breadboard
A breadboard is a rectangular plastic board with a bunch of tiny holes in it. Most
electronic components in electronic circuits can be interconnected by inserting their
leads or terminals into the holes and then making connections through wires where
appropriate. The breadboard has strips of metal underneath the board and connects the
holes on the top of the board. A breadboard allows for easy and quick creation of
temporary electronic circuits or to carry out experiments with circuit design.
Breadboards enable developers to easily connect components or wires thanks to the
rows and columns of internally connected spring clips underneath the perforated plastic
enclosure.
20
4.2 Software implementation
The open-source Arduino Software (IDE) makes it easy to write code and upload it to
the board. It runs on Windows, Mac OS X, and Linux. The environment is written in
Java and based on Processing and other open-source software. This software can be
used with any Arduino board. The Arduino development environment contains a text
editor for writing code, a message area, a text console, a toolbar with buttons for
common functions, and a series of menus. It connects to the Arduino hardware to
upload programs and communicate with them. Software written using Arduino are
called sketches. These Sketches are written in the text editor. Sketches are saved with
the file extension.ino. It has features for cutting/pasting and for searching/replacing
text. The message area gives feedback while saving and exporting and also displays
errors. The console displays text output by the Arduino environment including
complete error messages and other information. The bottom right-hand corner of the
window displays the current board and serial port. The toolbar buttons allow you to
verify and upload programs, create, open, and save sketches, and open the serial
monitor.
21
Blynk App
Blynk is a platform that allows to quickly build interfaces for controlling and
monitoring the hardware projects from iOS and Android device. After downloading the
Blynk app, we can create a project dashboard and arrange buttons, sliders, graphs, and
other widgets onto the screen.
There are three major components in the platform:
▪ Blynk App - allows to create amazing interfaces for projects using various
widgets we provide.
▪ Blynk Server - responsible for all the communications between the smart
phone and hardware.
▪ Blynk Libraries - for all the popular hardware platforms - enable
communication with the server and process all the incoming and out coming
commands.
• To program the ESP32 board with Arduino IDE, install Arduino IDE
• To upload code to the ESP32 using Arduino IDE, connect the ESP32 board to the
computer using data cable.
• To upload code to the ESP32 using Arduino IDE, check the following settings:
Now copy the below link and paste it into the “Additional Board Manager URLs”
field as shown in the figure below.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-
pages/package_esp32_index.json
22
Figure 15: Additional Board Manager URLs
• In Board Manager, search for ESP32 and install the “ESP32 by Espressif
Systems “.
23
Figure 17: Search for ESP32
24
CHAPTER 5
Through this project, we gained a knowledge about IoT and how the physical objects
with sensors, processor and other technologies connects and exchanges data with other
devices and systems over the internet. The majority of individuals are preoccupied with
their jobs and have little spare time. As a result, individuals frequently neglect to
dispose of garbage. The main objective of the Smart Dustbin for household System
using IoT is to reduce the usage of the resources and efforts to manually monitor the
dustbin. Improper disposal and storage of household waste creates problems for health
and leads to various kinds of disease. This system is developed using ultrasonic sensor
as distance measuring sensor, and a buzzer to alerts the users that the dustbin if full.
25
CHAPTER 6
CONCLUSION
Conclusion
The proposed system “Smart Dustbin for Household using IOT” provides the smart
solution regarding overflowing of garbage. The majority of people are from the working
class and have a busy schedule every day. Due to which they do not get enough time to
throw the garbage. So, this IoT based Dustbin helps the people to monitor the waste
and help them to get rid of it on time. It helps in maintaining the cleanliness level and
makes a healthier environment to live. There won’t be any kind of diseases and the
people will be fit and not prone to diseases caused by these waste materials.
IoT based Smart Dustbin for Household is an emerging technology that is utilized for
monitoring the garbage. The application of technology and its sophisticated service in
every sector has made our life quite easy.
26
Gantt chart
Planning
Research
Design
Implementation
Follow up/
Documentation
27
APPENDIX
A. Connection Diagram
A connection diagram represents the target information for each connection point of an
object. It makes use of diagram symbols instead of pictures to show components.
In the below diagrams shows a Connection diagram in which the Ultrasonic sensor is
connected with the ESP32. The VCC and the GND pin of ultrasonic sensor is connected
to the VCC and GND pin of the ESP32.
28
Figure 21: Connection Diagram
B. Output
29
Figure 23: Output
30
REFERENCES
[1] Dr. Ihtiram Raza Khan, Mehtab Alam and Anuj Razdan “Smart Garbage Monitoring
System Using IOT”, SSRN Electronic February 2021.
[2] Minhaz Uddin Sohag and Amit Kumer Podder “Smart Garbage Management
System for a Sustainable Urban Life: An IoT Based Application”, Science Direct
June 2020.
[3]. Murugaanandam. S, Ganapathy. V and Balaji. R, Efficient IOT Based Smart Bin
for Clean Environment, International Conference on Communication and Signal
Processing, April 3-5, 2018, India.
[4] Mrs. Pallavi Nehete, Dhanshri Jangam, Nandini Borne, Prajakta Bhoite and Shalaka
Jadhav “Garbage Management using Internet of Things”, International conference on
Electronics, Communication and Aerospace Technology (ICECA) March 2018
[5] Anitha A “Garbage Monitoring System using (IOT)”, IOP Conference Series:
Materials Science and Engineering 2017.
[6] https://www.ijitee.org/wp-content/uploads/papers/v9i7s/G10210597S20.pdf,march
[7] https://ieeexplore.ieee.org/abstract/document/8524230,april 2022.
[8] https://www.ijireeice.com/upload/2017/january-17/IJIREEICE%2015.pdf,april
31