Smart Waste Segregation Monitoring System Using Node Mcu
Smart Waste Segregation Monitoring System Using Node Mcu
A Project Report On
“SMART WASTE SEGREGATION
MONITORING SYSTEM USING NODE MCU”
Submitted in partial fulfillment of the requirements for the award of degree of
Bachelor of Engineering
In
Electronics & Communication Engineering
Submitted by
Bibi Muskan USN: 4MN17EC006
Nethravathi H S USN: 4MN17EC017
Pramodini V USN: 4MN17EC020
Sahana B V USN: 4MN17EC025
CERTIFICATE
Certified that the project work entitled “Smart Waste Segregation Monitoring
System Using Node MCU” carried out by Ms.Bibi Muskan (USN: 4MN17EC006),
Ms.Nethravathi H S (USN: 4MN17EC017), Ms.Pramodini V (USN: 4MN17EC020)
and Ms.Sahana B V (USN: 4MN17EC025), bonafide students of Maharaja Institute
of Technology, Thandavapura, in partial fulfillment for the award of the degree of
Bachelor of Engineering in Electronics & Communication Engineering of the
Visvesvaraya Technological University, Belagavi, during the year 2020-2021. It is to
certify that all the corrections/suggestions indicated for the internal assessment have been
incorporated in the Report deposited in the departmental library. The project report has
been approved as it satisfies the academic requirements in respect of the Project work
prescribed for the said Degree.
External Viva
1.
2.
ACKNOWLEDGEMENT
A realization of the goal can be successful when it is packed with proper guidance
and blessings. We take this opportunity to acknowledge all those who have supported us to
complete this project.
We are grateful to Dr. Y.T Krishne Gowda, Principal, MIT, Thandavapura, for all
his encouragement and support.
We extend our heartful thanks to our respected Head of Electronics and
Communication Department, MIT, Thandavapura, Mr. Srinivasa M G, who with his
immense experience and knowledge helped us throughout the duration of the course and
inspires us in continuance.
We convey our sincere thanks to our project coordinator Mr. Ravikumar R,
Assistant Professor, Dept. of ECE, MIT, Thandavapura, for their encouragement and
cooperation.
We extend our sincere thanks and gratitude to our guide, Mrs. Subhashini R ,
Assistant Professor, Dept. of ECE, MIT, Thandavapura, for his valuable inputs during the
course of the project work.
Our sense of gratitude to teaching and non-teaching staff for their encouragement and
help, which was our foundation and we treasure them for our future endeavors.
i
ABSTRACT
The rapid growth in the population has led to a surge in the volume of waste being generated
on a daily basis. This increase in the generation of waste due to continuous growth in the
urbanization and industrialization has become a severe problem for the local and the national
government. It is also posing a serious problem for the local authorities to manage the wastes
being dumped everywhere as landfill. To ensure minimal risk to the environment and human
health, it is necessary to take meticulous measures while segregating and transporting waste.
Segregation of waste in a proper manner brings to the limelight actual economic value of the
waste. The traditional method used for segregating of waste in India is through rag pickers
which is time-consuming and can have adverse effects on the health of the people who are
exposed to such wastes. Here we propose the use of an Automated Waste Segregator (AWS)
which is cheap and also an easy to use solution for segregation of household waste. It is
designed to segregate the waste into three categories viz. metallic, dry and wet waste. The
system makes use of a moisture sensor for the segregation of wet and dry waste and an inductive
proximity sensor for the detection of metallic waste. This wet waste can be recycled by a
method of composting which can be used to produce compost which can be used as manure for
plants .
ii
CONTENTS
1.2 Motivation 2
iv
LIST OF FIGURES
v
Smart Waste Segregation Monitoring System Using Node MCU 2020-21
k
l
CHAPTER 01
h
l INTRODUCTION
i
i
In hIndia about 60 million tonnes of waste is being generated every year. Ten million tonnes
of i garbage is generated in metropolitan cities. According to a sanitation survey called
h
“Swachh
i Survekshan-2016” conducted by the ministry of urban development under the
h
Swachh
h Bharat mission, it was found that about 50% people in India face the problem of
h
improper waste collection and management. According to centre of science and
environment, innovative disposal and recycling methods must be introduced instead of
landfill sites.
The common method of waste disposal is by unplanned and uncontrolled dumping at landfill
sites. This harmful method of disposal of waste can contaminate surface and ground waters
and can harbor disease vectors which can spread harmful diseases and can degrade the
aesthetic value of the natural environment. This method is hazardous to human health, plant
and animal life. When the waste is segregated into basic streams such as dry, wet and,
metallic, the waste has a higher potential of recovery, and then, it can be recycled and
reused.
Thus, we have proposed a cost effective “Automatic waste segregator” for proper
management of waste. Automatic waste segregator categorizes the waste as wet, dry and
metallic. The wet waste is converted either into compost or methane-gas or both. Compost
can replace demand for chemical fertilizers, and biogas can be used as a source of energy.
The metal waste could be reused or recycled.
Even if there are large scale industrial waste segregators present, it is always feasible to
separate the waste at the source itself. The benefit of doing so is that the occupational hazard
for waste workers is reduced. Also, the separated waste could be directly sent to the recycling
and processing plant instead of sending it to the segregation plant then to the recycling plant.
1.1 Motivation
Nowadays, cities with developing economies experience exhausted waste collection
services, inadequately managed and uncontrolled dumpsites and the problems are worsening
An automation of this style not only saves the manual segregators of the numerous health
issues, but also proves to be economical to the nation. Besides, this system utilizes low cost
components for the successful segregation of most types of waste. When installed in
apartments or small colonies, it proves to be beneficial in sorting the waste at the site of
disposal itself.
The common method of waste disposal is unplanned and uncontrolled dumping of garbage
at landfill sites. This harmful method of disposal of waste can contaminate surface and
ground waters and can harbor disease vectors which can spread harmful diseases and can
degrade the aesthetic value of the natural environment.
People are not segregating waste in spite of awareness. People are not using two separate
bins for dry and wet waste. Due to the unauthorized garbage throwing habits, our
environment is getting polluted every day. To avoid this, waste has to be segregated at the
This system sorts waste into three different categories, namely metal, dry and wet waste
using conveyor belt mechanism. A simple 8051 microcontroller forms the heart of the
system. It controls the working and timing of all the sub sections so as to sort the waste into
the three primary categories.
An effective method of segregation of waste into dry, wet and metallic waste is using
Arduino microcontroller and Android Bluetooth SPP Pro. The whole system is controlled
by an Arduino Uno board. All other parts like ultrasonic sensors, inductive proximity
sensor, DC motors, blower and electromagnet are interfaced to the Arduino board.
The robotic arm will sort out three different materials like metals, paper and glass. It has
two motors for motion.one is used for gripping movement and another is used for ARM
movement. The arm is being used for picking and placing the waste. The robotic arm moves
with respect to the command given by user.
The sensing of waste filling level inside a bin is based on the measurement of the time of flight
i.e. the time taken by an ultrasonic pulse to transmit and receive its reflected echo between the
sensor and the sensed material level.
Description: This system will actively monitor the waste collection process and will provide
real time feedback such as waste collection status, live tracking of trucks and trash bins etc.
The system can receive complaints from residents about uncollected wastes as well as the
illegal disposal of wastes.
IoT internet of things based smart waste management system which allows waste
management authorities to continuously monitor status of dust bins placed at different
locations and as per the status take appropriate actions to collect it immediately and
efficiently. This is not a unique thought, for the usage of keen trash container.
3.1 Hardware
Node MCU is an open-source firmware and development kit that helps you to prototype or
builds IOT products. It includes firmware that runs on the ESP8266 Wi-Fi SOC from
Espressif Systems, and hardware which is based on the ESP-12 module.
The development board equips the ESP-12E module containing ESP8266 chip having
Tensilica Xtensa® 32-bit LX106 RISC microprocessor which operates at 80 to 160 MHz
adjustable clock frequency and supports RTOS.
The ESP8266 Node MCU has total 17 GPIO pins broken out to the pin headers on both
sides of the development board. These pins can be assigned to all sorts of peripheral duties,
including:
SPI, I2C & I2S interface – SPI and I2C interface to hook up all sorts of
sensors and peripherals.
I2S interface – I2S interface if you want to add sound to your project.
There’s also 128 KB RAM and 4MB of Flash memory (for program and data storage)
just enough to cope with the large strings that make up web pages, JSON/XML data, and
everything we throw at IOT devices nowadays.
The ESP8266 Integrates 802.11b/g/n HT40 Wi-Fi transceiver, so it can not only connect
to a Wi-Fi network and interact with the Internet, but it can also set up a network of its own,
allowing other devices to connect directly to it. This makes the ESP8266 Node MCU even
more versatile.
Through the potentiometer knob, we can adjust the detection distance, the effective
distance range 2 ~ 10cm working voltage of 3.3V-5V. The detection range of the sensor can
be adjusted by the potentiometer.
Proximity Sensors are used to detect objects and obstacles in front of sensor. Sensor keeps
transmitting infrared light and when any object comes near, it is detected by the sensor by
monitoring the reflected light from the object. It can be used in robots for obstacle
avoidance, for automatic doors, for parking aid devices or for security alarm systems, or
contact less tachometer by measuring RPM of rotation objects like fan blades.
A metal detector is an electronic instrument which detects the presence of metal nearby. We
use an Inductive proximity sensor which operates under the electrical principle of
inductance. Inductance is the phenomenon having a magnetic component, which induces
an electromotive force (emf) in a target object. The inductive proximity sensor consists of
four components such as coil, oscillator, detection circuit and output circuit. The oscillator is
used to generate a fluctuating magnetic field around the coil that is placed in the device’s
sensing face. When a metal object moves into the inductive proximity of sensors detection,
Eddy circuits build up in the metallic object, magnetically push back, which is used to reduce
the Inductive sensors own oscillation field.
Moisture sensors sense the water content of the substance. It typically refers to a sensor that
estimates volumetric water content. When there is less moisture content, the sensor output
is at high level, otherwise, the sensor output is at low level.
The sensor creates a voltage proportional to the dielectric permittivity. The sensor averages
the water content over the entire length of the sensor. There is a 2 cm zone of influence with
respect to the flat surface of the sensor, but it has little or no sensitivity at the extreme
edges. The Moisture Sensor is used to measure the loss of moisture over time due to
evaporation and plant uptake, evaluate optimum moisture contents for various species of
plants, monitor soil moisture content to control irrigation in greenhouses and enhance bottle
biology experiments.
Ultrasonic sensors are based on the measurement of the properties of acoustic waves with
frequencies above the human audible range, often at roughly 40 kHz. They typically operate
by generating a high-frequency pulse of sound, and then receiving and evaluating the
properties of the echo pulse. Ultrasonic sensor module SRF-04 provides 2cm - 400cm non-
contact measurement function, the ranging accuracy can reach to 3mm. The module includes
ultrasonic transmitters, receiver and control circuit in a single package.
Basically SRF04 works by transmitting an ultrasonic (well above human hearing range)
pulse and measuring the time it takes to "hear" the pulse echo.
The Output from SRF04 is in the form of a variable-width pulse that corresponds
the distance to the target. The Module automatically sends eight 40 kHz by using 10 trigger
for at least Ious high level signal and detect whether there is a pulse signal back. If the signal
back, through high level, time of high output 10 duration is the time from sending ultrasonic
to returning. If the width of the pulse is measured in VS, then dividing by 58 will give you
to
An ultrasonic sensor is an instrument that measures the distance to an object using ultrasonic
sound waves. An ultrasonic sensor uses a transducer to send and receive ultrasonic pulses that
relay back information about an object's proximity.
A servo is a type of motor that is often used in robotics. The position of the motor can be
controlled very precisely which makes it great for steering remote control vehicles and
robots. Unlike a standard motor a servo requires a signal to tell the motor how far to turn.
Most servomotors have a 3 wire interface. One for input voltage, one goes to ground and
one for control signal.
The signal that controls the servo is a series of pulses, with the length of the pulses
Firebase provides a real-time database and back-end as a service. The service provides
application developers an API that allows application data to be synchronized across clients
and stored on Firebase's cloud. The company provides client libraries that enable integration
with Android, iOS, JavaScript, Java, Objective-C, Swift and Node.js applications. The
database is also accessible through a REST API and bindings for several JavaScript
frameworks such as AngularJS, React, Ember.js and Backbone.js The REST API uses the
Server-Sent Events protocol, which is an API for creating HTTP connections for receiving
push notifications from a server. Developers using the real-time database can secure their data
by using the company's server-side-enforced security rules.
Once the input waste is placed on the waste bin segregator first it will check for the metal
presence, wet presence and dry according to the sensor output the waste will be segregated
according to the sensor values. The waste accumulated in the bins will be monitored and sent
to the real-time database that value will be seen in the android app.
The waste in the container is sensed is it is full the notification is sent android app.
Inductive proximity sensor to detect metals. If the waste is metallic, it is sent to the
first bin.
If it is not metallic, it is sensed by the moisture sensor to detect wet waste. If it is wet
waste, it is sent to the second bin.
If it is neither a metallic nor a wet waste, it is sent to the third bin containing
dry waste.
The whole system is controlled by Node MCU development Board. Each and every
component is interfaced to the Node MCU board.
5.2.1 Connections
VCC of IR sensor to-3.3V of ESP8266 is connected with red wire.
void setup() {
Serial.begin(115200);
pinMode(IR_pin ,INPUT);
}
void loop() {
IR_value = digitalRead(IR_pin);
Serial.println("IR_Sensor_value=");
Serial.print(IR_value);
if(IR_value) Serial.println("Object found");
else Serial.println("Object not found");
delay(1000);
}
Moisture Sensor are used to check the moisture content present on the substance It provide
analog output the Esp8266 has 10bit ADC converter so it provide value between 0 to 1023
the below shown formula is used to calculate ADC value.
Resolution of the ADC is It is the ratio between the maximum signal measured to
the smallest part that can be resolved for example ESP8266 10bits converter (2n-1)
is 1023
System voltage is the supplied voltage to the microcontroller i.e., 3.3V in ESP8266
3.3 2.1
5.5.1 Connections
VCC of Moisture sensor to-3.3V of ESP8266 is connected with red wire
Example of ultrasonic sensor calculation-If the object is 10 cm away from the sensor, and the
speed of the sound is 340 m/s or 0.034 cm/ps the sound wave will need to travel about 294 u
seconds. But what you will get from the Echo pin will be double that number because the
sound wave needs to travel forward and bounce backward. So in order to get the distance in
cm we need to multiply the received travel time value from the echo pin by 0.034 and divide
it by 2.the circuit is as below here voltage divider rule is used to convert 5V to 3.3V
Ultrasonic Sensor
5.6.1 Connections
VCC of Ultrasonic sensor to-5V of ESP8266 is connected with red wire
void loop() {
First need to create your firebase console and create a new project. After your project
is ready, go to the database section and make sure to create a Realtime Database. Select
start in test mode and proceed as you'll be using this database only for testing and prototyping
and not for production solutions (so you can ignore the red warning). Now the database should
be ready for use.
To get Firebase authentication key go to setting>service account>Database secret>copy the
secret key
To get Firebase host go to Database > Realtime database copy only address by removing
https://
Create Fields in Data where data need to be stored or from where data to be fetched
Serial.println("");
Serial.println("WiFi connected"); Serial.println("lP
address:
Serial.println(WiFi.locallP());
FIREBASE_AUTH);
void loop() {
Wet_waste_value = random(0, 1 00);
Firebase.setlnt("Wet_waste", Wet_waste_value);
delay(3000);
The "main" activity starts when the user taps your app's icon. You can also direct the user to
an activity from elsewhere, such as from a notification or even from a different app.
Other components, such as broadcast receivers and services, allow your app to perform
background tasks without a UI.
7. Make sure on that "Phone and Tablet" is the only box that is checked.
8. If you are planning to test the app on your phone, make sure the minimum SDK is
below your phone's operating system level.
1 1 . Click "Next."
To simplify, it can be said that Firebase is a mobile and web application development
platform. It provides services that a web application or mobile application might
require. Anyone can easily include firebase to their application and it will make their
online work way easier than it was used to be.
Below are the steps to include Firebase to Android project in Android studio:
Now click on the Connect to Firebase option in the menu of desired service.
Add the dependencies of your service by clicking on the Add [YOUR SERVICE
NAME] to the app option. (In the image below, the Firebase cloud messaging service
is chosen)
// defines variables
long duration1;
//Metal waste
digitalWrite(trigPin3, LOW);
delayMicroseconds(2);
// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin3, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin3, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
Chapter 6
RESULTS AND DISCUSSION
Whole wastage is separated and falls into corresponding dustbins by sensors and gates
through the waste bins. The Below Figure shows the sensor value calculated by controller
is sent to real-time database that data it can be seen in the database that is shown in below
figure.
The data saved in database can be seen in the android application the screenshot of the
android app is shown below
If the smart bin is full, the notification is sent to the application installed android phone the
screenshot of the notification is shown below.
It Protects the environment, Recycling helps you to get money, Reduces all types of
waste , Saves the earth and conserves energy.
4. System requires more number of waste bins for separate waste collection as per
population in the city. This results into high initial cost due to expensive smart dustbin
compare to other methods.
5. But in all the facets of waste management, a huge amount of labor is needed. Right
from the collection to the final step of segregation, every phase needs manpower and
ultimately a large number of employment opportunities get opened up.
6. The process is not always cost-effective, The resultant product has a short life.
7. This is also true since the resulting recycled product cannot be expected to have a
durable quality.
8. Though waste management creates employment, it only has the ability to produce low-
quality jobs. These jobs include right from sorting the garbage collector to the intensive
and laborious jobs that are needed in the factories and outlets.
2. It can also be used in public places like railway stations, bus stands, shopping complexes,
etc.
4. IoT applications in waste management are engaging citizens and cities alike in the project
of making our waste practices more sustainable.
Future Scope
The automatic waste segregator has been implemented for the segregation of waste into dry,
wet and metallic waste smart dustbin is an innovative step in the direction of bringing a
change in the current garbage disposal system.
This type of product can be used in housing societies, offices, etc. Since it is cost effective, it
can be implemented on a large scale as well with some modifications.
Using a robotic arm along with a conveyor belt will make the process of segregation easier.