Intelligent Garbage Management in Smart Cities Using Iot
Intelligent Garbage Management in Smart Cities Using Iot
Intelligent Garbage Management in Smart Cities Using Iot
A PROJECT REPORT
Submitted by
KEERTHI.K.S 963617106007
AND TECHNOLOGY ,
MULLANGANAVILAI
APRIL 2021
SIGNATURE SIGNATURE
Assistant Professor
Department of ECE Department of ECE
Lourdes Mount College of Lourdes Mount College of
Engineering and Technology Engineering and Technology
Mullanganavilai Mullanganavilai
Submitted for the project viva-voice held on ________________
iii
LIST OF CONTENT
CHAPTER TITLE PAGE NO.
OFF
ABSTRACT
LIST OF FIGURES
LIST OF TABLES
LIST OF ABBREVIATIONS
1 INTRODUCTION 1
1.1 Internet-of-Things 1
1.2 Waste Management 3
1.3 Overview 7
2 LITERATURE SURVEY 10
2.1 Norfadzlia Mohd Yusof1,Aiman Zakwan 10
Jidin ,”SMART GARBAGE MONITORING
SYSTEM FOR WASTE MANAGEMENT ”,
MATEC Web of Conferences,2017
2.2 Shwetashree Vijay, Pilla Nitish Kumar, 10
“SMART WASTE MANAGEMENT SYSTEM
USING ARDUNIO IJERT”,2019
2.3 Pooja Devi , Wajge Ahubhan Ravidra,
S.K.L.V Sai prakash,”An IOT Enabled Smart 11
Waste Management System in Concern
with Indian Smart Cities “2nd international
conference “,2018
iv
2.4 Murugaandam Se,”EFFICIENT IOT 12
BASED SMART BIN FOR CLEAN
ENVIRONMENT ”,2017
2.5 Ashok Kumar Yadav,”WASTE 12
MANAGEMENT AND MONITORING
SYSTEM USING IOT”,2019
2.6 Sharmil barve,Ridhi Bhandari,”IOT BASED 13
WASTE MANAGEMENT SYSTEM
”International Research journal,2020
2.7 K.Alice Mary ,Porreddy Monica “IOT 14
BASED GARBAGE MONITORING
SYSTEM”, International Research journal
vol 8,2017
2.8 TEOH JI SHENG,”AN INTERNET OF 14
THINGS BASED SMART WASTE MANAGEMENT
SYSTEM USING LORA AND TENSORFLOW DEEP
LEARNING MODEL”,2020
2.9 N.Satheesh Kumar B.Vuayakakshmi,R.Jennifer” 15
IOT BASED SMART GARBAGE ALERT SYSTEM
USING ARDUINO UNO”,IEEE Region 10
Conference,2016
2.10 Parul Singh ,Akansha gupta ,”IOT BASED SMART 16
WASTE MANAGEMENT SYSTEM USING
ARDUINO ”,vol 3,2020
3 SYSTEM ANALYSIS 17
3.1 Existing system 17
3.1.1 Disadvantages of existing System 17
3.2 Proposed System 18
3.2.1 Advantages of Proposed system 18
v
4 SYSTEM DESIGN 19
4.1 Block Diagram 19
4.1.1Block Diagram Description 19
4.2 Circuit Diagram 20
4.2.1 Circuit Diagram Description 20
5 SYSTEM REQUIREMENTS 22
5.1 Hardware Requirements 22
5.2 software Requirements 22
5.3 Hardware Specification 22
5.3.1 Power Supply 22
5.3.2 LCD Display 23
5.3.3 ARDUINO UNO 24
5.3.4 Ultrasonic Sensor 27
5.3.5 Motor driver L293D 28
5.3.6 DC GEAR MOTOR 29
5.3.7 Wi-Fi Module 30
5.3.8 Soil moisture sensor 31
6 SYSTEM IMPLEMENTATION 33
6.1 Modules 33
6.1.1Sensor’s interfacing and its working 33
6.1.2Wireless transmission of sensor data 34
6.1.3Dustbin monitoring 34
6.1.4 Remote monitoring 35
6.1.5 Uninterrupted power supply 36
7 SOFWARE DESCRIPTION 37
7.1 Software specification 37
vi
7.1.1 Arduino IDE 37
LIST OF FIGURE
ACRONYM EXPANSION
IS Intelligent System
AI Artificial Intelligence
ix
CHAPTER 1
INTRODUCTION
1.1 INTERNET-OF-THINGS
The term Internet of Things was introduced by Kevin Ashton, who was the
director of the Auto-ID Center of MIT in 1999. The initial technical realization of IoT
was achieved by utilizing RFID technology for the identification and tracking of
devices and storing device information. However, IoT utilizing RFID technology was
limited to object tracking and extracting information of specific objects. The current
IoT performs sensing, actuating, data gathering, storing, and processing by connecting
physical or virtual devices to the Internet. For IoT applications performing these
functions, a variety of researches on IoT services including environmental monitoring,
object tracking, traffic management, health care, and smart home technology are being
conducted.
Owing to the characteristics and merits of IoT services, waste management has
also become a significant issue in academia, industry, and government as major IoT
application fields. An indiscriminate and illegal discharge of waste, an absence of
waste disposal and management systems, and inefficient waste management policies
have caused serious environmental problems and have incurred considerable costs for
waste disposal. To handle these problems, various researches into waste management
based on IoT technology have been conducted, from studies on RFID technology to
studies on waste management platforms and systems. However, there remains a lack of
research into waste management based on IoT technology or on the application of
developed waste management systems in Republic of Korea.
Advances in the field of IoT have made it possible to improve the existing waste
management system. Sensors implementation in the waste bin together with IoT
connectivity allow for real-time monitoring, which is absent in the existing waste
management system. Data such as filling level, temperature, humidity, and any
necessary data can be collected from the sensors. These data can then be transferred to
the cloud for storage and processing. The processed data can then be used to study and
access the limitation of the existing waste management system and therefore improve
the system’s efficiency as a whole. IoT application in the waste bin is one step towards
a smart city.
Waste management is one of the core concerns of modern age. As nations around
the world are developing, their concerns and accountability for a healthier and
sustainable environment is also increasing. While developed countries are inventing
and implementing smart solutions for waste management and bringing about huge
positive impacts, waste management seems to be a play out of the league for the under
developed or developing countries. There are numerous categories and each with
different classifications of waste materials, like clinical to nuclear, biodegradable to
non-bio-degradable and common household to industrial toxic waste. While developed
countries are able to manage and treat these waste materials of different categories,
developing countries like India and Bangladesh are still struggling with the collections
and proper disposal of common household waste materials. Disorganized management
and dumping of waste is a noticeable cause for ruining the environment in the major
cities of these developing countries.
Currently, according to a UNFPA report, Dhaka is one of the most polluted cities
in the world and one of the issues concerned is the management of municipal waste.
Implementing existing smart solutions for waste management systems in developing
countries like Bangladesh is a far greater challenge due to many different factors e.g.:
socioeconomic environment, and the unplanned infrastructural issues. Waste are
carried and thrown improperly leading to unhealthy and inhabitable environment that
costs the government insane amount of money with not at all positive impact.
Therefore, wastes and garbage need to be packed, dumped, collected, transported,
manipulated and recycled properly in such ways that garbage becomes a precious
wealth of the country.
Waste management (or waste disposal) includes the activities and actions
required to manage waste from its inception to its final disposal. This includes the
collection, transport, treatment and disposal of waste, together with monitoring and
regulation of the waste management process and waste-related laws, technologies,
economic mechanisms.
Waste can be solid, liquid, or gaseous and each type has different methods of
disposal and management. Waste management deals with all types of waste, including
industrial, biological and household. In some cases, waste can pose a threat to human
health. Health issues are associated throughout the entire process of waste
management. Health issues can also arise indirectly or directly. Directly, through the
handling of said waste, and indirectly through the consumption of water, soil and food.
Waste is produced by human activity, for example, the extraction and processing of
raw materials. Waste management is intended to reduce adverse effects of waste on
human health, the environment, planetary resources and aesthetics.
Waste management practices are not uniform among countries (developed and
developing nations); regions (urban and rural areas), and residential and industrial
sectors can all take different approaches. Proper management of waste is important for
building sustainable and liveable cities, but it remains a challenge for many developing
countries and cities. A report found that effective waste management is relatively
expensive, usually comprising 20%–50% of municipal budgets. Operating this essential
municipal service requires integrated systems that are efficient, sustainable, and
socially supported. A large portion of waste management practices deal with municipal
solid waste (MSW) which is the bulk of the waste that is created by household,
industrial, and commercial activity. Measures of waste management include measures
for integrated techno-economic mechanisms of a circular economy, effective disposal
facilities, export and import control and optimal sustainable design of products that are
produced.
In the first systematic review of the scientific evidence around global waste, its
management and its impact on human health and life, authors concluded that about a
fourth of all the municipal solid terrestrial waste is not collected and an additional
fourth is mismanaged after collection, often being burned in open and uncontrolled
fires or close to one billion tons per year when combined. They also found that broad
priority areas each lack a “high-quality research base”, partly due to the absence of
“substantial research funding”, which motivated scientists often require.
There are also large differences in the level of proficiency in the countries of the
world. It is easy to forget that the category of countries that are now ‘fine-tuning’ their
waste management systems is a minority. The vast majority of countries is busy
struggling with such basic issues as ensuring sufficient collection services and
implementing a minimal degree of control at disposal sites at the same time as they are
facing increasing waste amounts due to the trend of urbanisation.
1.3 OVERVIEW
Today big cities around the world are facing a common problem, managing the
city waste effectively without making city unclean. Todays waste management systems
involve a large number of employees being appointed to attend a certain number of
dumpsters this is done every day periodically. This leads to a very inefficient and
unclean system in which some dumpsters will be overflowing some dumpsters might
not be even half full. This is caused by variation in population density in the city or
some other random factor this makes it impossible to determine which part needs
immediate attention. Here a waste management system is introduced in which each
dumpster is embedded in a monitoring system which will notify the corresponding
personal if the dumpster is full. In this system, it is also possible to separate wet and
dry waste into two separate containers. This system provides an effective solution to
waste management problem.
We are living in an age where tasks and systems are fusing together with the
power of IOT to have a more efficient system of working and to execute jobs quickly!
With all the power at our finger tips this is what we have come up with. The Internet of
Things (IoT) shall be able to incorporate transparently and seamlessly a large number
of different systems, while providing data for millions of people to use and capitalize.
Building a general architecture for the IoT is hence a very complex task, mainly
because of the extremely large variety of devices, link layer technologies, and services
that may be involved in such a system. One of the main concerns with our environment
has been solid waste management which impacts the health and environment of our
society. The detection, monitoring and management of wastes is one of the primary
problems of the present era. The traditional way of manually monitoring the wastes in
waste bins is a cumbersome process and utilizes more human effort, time and cost
which can easily be avoided with our present technologies. This is our solution, a
method in which waste management is automated. This is our IoT Garbage Monitoring
system, an innovative way that will help to keep the cities clean and healthy.
CHAPTER 2
LITERATURE SURVEY
2.1 Norfadzlia Mohd Yusof1,Aiman Zakwan Jidin, and Muhammad Izzat Rahim,
” SMART GARBAGE MONITORING SYSTEM FOR WASTE
MANAGEMENT”, MATEC Web of Conferences, 2017
Piles of rubbish are one of the major problems faced by most people in Malaysia,
especially those who live in flats, as the number of bins is limited and shared among all
residents. It may cause pollutions, which may lead to sanitary issues and diseases. This
project presents the development of a smart garbage monitoring system in order to
measure waste level in the garbage bin in real-time and to alert the municipality, in
particular cases, via SMS. The proposed system is consisted by the ultrasonic sensor to
measure the waste level, the GSM module to send the SMS, and an Arduino Uno which
controls the system operation. It supposes to generate and send the warning messages
to the municipality via SMS when the waste bin is full or almost full, so the garbage
can be collected immediately. Furthermore, it is expected to contribute to improving
the efficiency of the solid waste disposal management.
2.2 Shwetashree Vijay , Pilla Nitish Kumar , Sam Raju , Vivekanandan S,
“SMART WASTE MANAGEMENT SYSTEM USING ARDUINO”, IJERT,
2019
The Indian population is rapidly growing especially in the urban area. The most
of the rural population is shifting to the urban area leads to the construction of new
municipalities and rehabilitation of existing cities. The Indian Government as a result
of this committed to the development of “Smart cities mission”. The increase in
population leads to an increase in generation of waste and this may impact on public
and environment health. The key factors responsible for the generation of this waste are
industrialization, urbanization, and growth in an economic way. The current systems of
waste management in India are not that much efficient which may lead to an overflow
of waste in most of the places. A clean and hygienic environment is essential for health
and provides clean living space. The remedy for this problem is a “Smart bin”. Hence,
an IoT enabled Smart waste management system is proposed and its performance is
analyzed.
2.4. Murugaanandam Se, “EFFICIENT IOT BASED SMART BIN FOR CLEAN
ENVIRONMENT”, 2017
describe a dustbins are containers used for collecting household waste all around the
world. In our day to day life, we dispose variety of waste materials categorized as
industrial waste, sewage wastes, domestic wastes etc. Dustbins are used for collecting
the domestic waste materials. Indoor dustbins are used to collect wastes from
household, which are then disposed into the outdoor dustbins maintained by the
Corporation or Municipality. Indoor dustbins are smaller in size, whereas municipal
dustbins present outdoors are so big in size since it has to accommodate all the wastes
from many household users in that area. Hence our main focus is on the dustbins placed
outside every corner in the streets in order to keep the environment clean. Road side
dustbins are not monitored and cleaned properly most of the times. In this paper we
propose a new system for managing garbage within Smart Cities. This Efficient Waste
disposal or Management System is considered as an essential for Modern Smart Cities
(MSC). Internet of Things (IoT) can be implemented both in IS and MSC creating an
highly developed proposal for future Operations. Special methods can be applied to
enhance technology used for high Quality of Service (QoS) in our waste management
system. Specifically, IoT components like sensors, detectors, and actuators are
integrated into Intelligent System (IS) and Inspection systems for efficient waste
management. We recommend a sophisticated IS for efficient waste management in
Smart Cities. The proposed system is an automated alert based smart bin or garbage
collection system and to alert the authorities like corporation or local waste disposal
team. Using this, we can monitor the complete waste disposal in an efficient way.
2.5 Ashok Kumar Yadav, “WASTE MANAGEMENT AND MONITORING
SYSTEM USING IOT”, NCRIETS, Vol. 7, No. 12, 2019
Many times, in our city we see that the garbage bins or dustbins placed at public
places are overloaded. It creates unhygienic conditions for people as well as ugliness to
that place leaving bad smell. To avoid all such situations we are going to implement a
project called IoT Based Smart Garbage and Waste Collection bins. These dustbins are
interfaced with microcontroller-based system having IR wireless systems along with
central system showing status of garbage, on mobile web browser with html page by
Wi-Fi. Hence, the status will be updated on to the html page. Major part of our project
depends upon the working of the Wi-Fi module; essential for its implementation. The
main aim of this project is to reduce human resources and efforts along with the
enhancement of a smart city vision.
2.6 Sharmila Barve, Ridhi Bhandari, Saurabh Chavan, Amit Devkar, “IOT
BASED WASTE MANAGEMENT SYSTEM, International Research Journal of
Engineering and Technology, Vol.07, No. 08, 2020
As the urbanization is increasing day by day peoples are producing more waste
than the past. Waste management is now becoming the most concerned topic thorough
out the world. The management of waste is becoming more serious problem and it may
aggravate numerous severe diseases for the nearby people. For mitigating the garbage’s
and maintains the cleanness, it requires ‘smartness based waste management system’.
This paper is proposed IOT based smart waste management system which checks the
waste level over the dustbins by using sensor systems. The details of the bins can be
directly viewed through app. The app shows the details of the bins like location of the
bin, the amount of garbage in it and the time it was cleaned previously. Once the
dustbin level is full it will directly send a notification to the authorities. This system
will help workers to collect the waste from the bins which are fully filled and those
who need urgent cleaning.
2.7 K. Alice Mary, Perreddy Monica, A. Apsurrunisa, Chathala Sreekanth, G.
Pavan, “IOT BASED GARBAGE MONITORING SYSTEM”, International
Journal of Scientific & Engineering Research, Vol. 8, No 4, 2017
Waste management is one of the primary problem that the world faces
irrespective of the case of developed or developing country. The key issue in the waste
management is that the garbage bin at public places gets overflowed well in advance
before the commencement of the next cleaning process. It in turn leads to various
hazards such as bad odor & ugliness to that place which may be the root cause for
spread of various diseases. To avoid all such hazardous scenario and maintain public
cleanliness and health this work is mounted on a smart garbage system. The main
theme of the work is to develop a smart intelligent garbage alert system for a proper
garbage management. This paper proposes a smart alert system for garbage clearance
by giving an alert signal to the municipal web server for instant cleaning of dustbin
with proper verification based on level of garbage filling. This process is aided by the
ultrasonic sensor which is interfaced with Arduino UNO to check the level of garbage
filled in the dustbin and sends the alert to the municipal web server once if garbage is
filled. After cleaning the dustbin, the driver confirms the task of emptying the garbage
with the aid of RFID Tag. RFID is a computing technology that is used for verification
process and in addition, it also enhances the smart garbage alert system by providing
automatic identification of garbage filled in the dustbin and sends the status of clean-up
to the server affirming that the work is done. The whole process is upheld by an
embedded module integrated with RF ID and IOT Facilitation. The real time status of
how waste collection is being done could be monitored and followed up by the
municipality authority with the aid of this system. In addition to this the necessary
remedial / alternate measures could be adapted. An Android application is developed
and linked to a web server to intimate the alerts from the microcontroller to the urban
office and to perform the remote monitoring of the cleaning.
2.10 Parul Singh, Akanksha Gupta, Saurabh Raj, “IoT Based Smart Waste
Management System Using Arduino”, Volume-3, Issue-5, 2020
As we know that the population is increasing every day. The population must be
neat and clean. And we should bring cleanliness in Our habits. As we can see that in
many Cities the overflow garbage bins are Creating unhealthy and harmful
Environment. This paper is a survey that is based on Smart Garbage management in
cities using IoT. This survey helps to keep our environment clean by implementing
various smart garbage management approach to discard of all these problems an IoT
based real time garbage and waste bins detection system by integrating different
sensing and communication technologies is proposed. The system in divided into three
section, the first section consists of bins with sensor nodes installed in it that are
moisture, ultrasonic and odour sensor interfaced with microcontroller. Second segment
contain of Wi-Fi module for data move to the server and third section is web page
CHAPTER 3
SYSTEM ANALYSIS
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 dustbins compare to
other methods.
• Cleaner Environments
CHAPTER 4
SYSTEM DESIGN
LCD Display
Motor Driver
Ultrasonic sensor 1
Arduino
Microcontroller
Ultrasonic sensor 2
Motor 1 Motor 2
Soil Moisture Sensor
Wi-Fi
Arduino microcontroller is used for this monitoring system. Soil moisture sensor
is sense the solid waste present in the dustbin. Ultrasonic sensor 1 is used for
monitoring the solid waste in the dustbin. Ultrasonic sensor 2 is used for monitoring the
dustbin is filling or not. Motor driver is used for controlling motors. Dc motor used for
rotating conveyer setup fot the dustbin. Wi-Fi is used for the communication between
the mobile and the controller. The alert messages are sending to the mobile from
controller through Wi-Fi. The power supply unit is given to the circuit for supply input
voltage of 12v. In this system consists of Arduino microcontroller, Wi-Fi module,
ultrasonic sensors, soil moisture sensor, motor, LCD-display and Android mobile.
CHAPTER 5
SYSTEM REQUIREMENTS
5.1 HARDWARE REQUIREMENTS
• Processor : Intel(R)Core
• RAM : 4 GB
The AC supply which when fed to the step down transformer is leveled down to
12 volts AC. This is then fed to full wave rectifier which converts it in to 12 volts DC.
This is then passed to a filter to remove the ripples. Then it is fed to a voltage regulator
that converts 12 V to 5 V stable voltages and currents.
USB: The USB port is used to power the board from the computer's USB port
and also to transfer the program code from computer into the Arduino microcontroller.
External Power: It is used to power the board if the USB connector is not used.
An AC adapter (9 volts, 2.1mm barrel tip, and center positive) could be used for
providing external power. If there is no power at the power socket, then the Arduino
will use power form the USB socket. But it is safe to have power at both the power
socket and USB socket.
Digital Pins(I/O): The Arduino Uno has 14 digital pins(0 to 13) of which the 6
are PWM(~).This pins can be either inputs or outputs .But we need to mention it in the
Arduino sketch(Arduino programming).The PWM(Pulse Width Modulated) pins acts
as normal digital pins and also used to control some functions. For example, control the
dimming of LED and control the direction of servo motor. Both digital inputs and
digital outputs can read one of the two values either HIGH or LOW.
Fig.5.3 Pin diagram of Atmega 328
Analog Pins: The Analog pins (0 to 5) acts as inputs which is used to read the
voltage in analog sensors such as temperature sensor, gas sensor, etc. Unlike digital
pins which can only read one of the two values (HIGH or LOW), the analog inputs can
measure 1024 different voltage levels.
3.3V Pin: A 3.3 volt supply generated by the on-board regulator. Maximum
current draw is 50 mA.
5V Pin: The regulated power supply used to power the microcontroller and other
components on the board. This can come either from an on-board regulator, or be
supplied by USB or another regulated 5V supply.
Reset Button: It is used to reset the microcontroller. Pushing this button will
temporarily connect the reset pin to ground and restart any code that is loaded on the
Arduino.
There are 4 input pins for l293d, pin 2,7 on the left and pin 15 ,10 on the right as
shown on the pin diagram. Left input pins will regulate the rotation of motor connected
across left side and right input for motor on the right hand side. The motors are rotated
on the basis of the inputs provided across the input pins as LOGIC 0 or LOGIC 1.
A geared DC Motor has a gear assembly attached to the motor. The speed of
motor is counted in terms of rotations of the shaft per minute and is termed as RPM.
The gear assembly helps in increasing the torque and reducing the speed. Using the
correct combination of gears in a gear motor, its speed can be reduced to any desirable
figure. This concept where gears reduce the speed of the vehicle but increase its torque
is known as gear reduction. This Insight will explore all the minor and major details
that make the gear head and hence the working of geared DC motor.
The ESP8266 Wi-Fi Module is a self contained SOC with integrated TCP/IP
protocol stack that can give any microcontroller access to your Wi-Fi network. The
ESP8266 is capable of either hosting an application or offloading all Wi-Fi networking
functions from another application processor. Each ESP8266 module comes pre-
programmed with an AT command set firmware, meaning, you can simply hook this up
to your Arduino device and get about as much Wi-Fi-ability as a Wi-Fi Shield offers.
The ESP8266 module is an extremely cost effective board with a huge, and ever
growing, community.
The ESP8266 is a low-cost Wi-Fi microchip with full TCP/IP stack and
microcontroller capability produced by Shanghai-based Chinese manufacturer
Espressif Systems.
The chip first came to the attention of western makers in August 2014 with the
ESP-01 module, made by a third-party manufacturer Ai-Thinker. This small module
allows microcontrollers to connect to a Wi-Fi network and make simple TCP/IP
connections using Hayes-style commands. However, at the time there was almost no
English-language documentation on the chip and the commands it accepted. The very
low price and the fact that there were very few external components on the module,
which suggested that it could eventually be very inexpensive in volume, attracted many
hackers to explore the module, chip, and the software on it, as well as to translate the
Chinese documentation.
Fig.5.7 ESP8266
The ESP8285 is an ESP8266 with 1 MiB of built-in flash, allowing for single-
chip devices capable of connecting to Wi-Fi.
SYSTEM IMPLEMENTATION
6.1 MODULES
Dustbin monitoring
Remote monitoring
The solid waste management system consist of components are Arduino Uno,
Soil Moisture sensor, Ultrasonic sensor, DC motor, motor driver and ESP8266 Wi-Fi
module etc. Two DC motors are used; one is for moving conveyor belt and second is
for rotating dustbin position to collect garbage in separate dustbin. Motor driver is used
for driving DC motors. Ultrasonic sensors are used to detect garbage level in dustbins,
to determine the dustbin is full or empty. One is used to detect garbage level of dry
dustbin and second is to detect garbage level of wet dustbin. First power supply to
Arduino is given through USB from laptop & external 12V power supply is given to
both DC motors. In our project first garbage is placed on conveyor belt, then conveyor
belt will move through DC motor then moisture sensor will detect garbage is dry or
wet, if garbage is dry then it is collected in dry side of dustbin and if garbage is wet
then dustbin will move 180 degree & collect garbage in wet side of dustbin. After this
ultrasonic sensor will detect level of garbage in dustbins and send information to
Arduino, then Arduino send this information to wifi module & wifi module update this
information on mobile app.
Wi-Fi Module is a self contained SOC with integrated TCP/IP protocol stack that
can give any microcontroller access to your Wi-Fi network. This module has a
powerful enough on-board processing and storage capability that allows it to be
integrated with the sensors and other application specific devices through its GPIOs
with minimal development up-front and minimal loading during runtime. Its high
degree of on-chip integration allows for minimal external circuitry, including the front-
end module, is designed to occupy minimal PCB area. The ESP8266 supports APSD
for VoIP applications and Bluetooth co-existance interfaces, it contains a self-
calibrated RF allowing it to work under all operating conditions, and requires no
external RF parts. Whereas, Wi-Fi at the CUC location is configured as coordinator and
is connected to a Arduino controller.
It gives a real time indicator of the garbage level in a trashcan at any given time.
An Ultrasonic Sensor is used for detecting whether the trash can is filled with garbage
or not. Here Ultrasonic Sensor is installed at the top of Trash Can and will measure the
distance of garbage from the top of Trash can and we can set a threshold value
according to the size of trash can. If the distance will be less than this threshold value,
means that the Trash can is full of garbage and will print the message “Basket is Full”
on the LCD and if the distance will be more than this threshold value, then we will
print the distance remaining for the garbage vat to be full. The soil moisture sensor
monitor the solid waste present in the trash.
For remote monitoring of the sensors data, all sensors data received at the CUC
is saved on a cloud server provided by Blynk server. Blynk Server is an Open-Source
Netty based Java server, responsible for forwarding messages between Blynk mobile
application and various microcontroller boards and SBCs (i.e. Arduino). All the data
are present graphically which makes the interpretation and visualization of data easier.
It can control hardware remotely, it can display sensor data, it can store data, vizualize
it and do many other cool things.
Blynk App - allows to you create amazing interfaces for your projects using
various widgets we provide.
Blynk Server - responsible for all the communications between the smartphone
and hardware. You can use our Blynk Cloud or run your private Blynk server locally.
Blynk Libraries - for all the popular hardware platforms - enable communication with
the server and process all the incoming and outcoming commands.
CHAPTER 7
SOFTWARE DESCRIPTION
A program written with the IDE for Arduino is called a sketch. Sketches are
saved on the development computer as text files with the file extension .ino. Arduino
Software (IDE) pre-1.0 saved sketches with the extension .pde.
The Arduino IDE supports the languages C and C++ using special rules of code
structuring. The Arduino IDE supplies a software library from the Wiring project,
which provides many common input and output procedures. User-written code only
requires two basic functions, for starting the sketch and the main program loop, that are
compiled and linked with a program stub main() into an executable cyclic executive
program with the GNU tool chain, also included with the IDE distribution. The
Arduino IDE employs the program avrdude to convert the executable code into a text
file in hexadecimal encoding that is loaded into the Arduino board by a loader program
in the board's firmware.
Step 2: Select the right port: The port number is assigned while installing the
hardware driver of board. You can find the port number by accessing device
manager on Windows. See the section Port (COM & LPT) and look for an open port
named Arduino Uno (COMxx). If using a different board, you will find a name
accordingly. What matters is the xx in COMxx part. In my case, it’s COM5. So my port
number is 5. To select the right port, go to Tools–> Serial Port and select the port
number.
Fig 7.2 Select the Port on Arduino IDE
There are two steps involved in loading the program from your PC to Arduino
board via the Arduino IDE. First step is compiling and second step is called burning.
Let’s see in detail.
Step 3: Compiling: This is the process of converting the code you have just
written in Arduino IDE to another form which is only understood by the micro
controller in your Arduino board. In our example, we use Arduino Uno board. It is
made using Avr micro controller (Atmega328). In the Arduino IDE, compiling is called
as verify. So hit the verify button in your IDE (see the button with tick mark just below
menu bar). Refer the screenshot given below as well. When you hit the verify button,
the program you have written in Arduino IDE will be compiled for any errors and then
converted to another form that Avr Atmega328 understands. You may refer our article
on the Arduino Software and Hardware to know in detail about the language used in
Arduino.
Step 4: Burning: Embedded designers use the word burning to refer to uploading
a program to any micro controller. So in this step, we are going to upload the verified
program in Arduino IDE to the Arduino board. To do this, press the upload button (see
the button with right arrow mark). A click on the upload button will begin the process
of burning the compiled program to Avr micro controller on your Arduino board.
Depending on the size of your program, this will take a little time. If you look on your
Arduino board, you can see the 2 LED’s near Tx and Rx blinking. This is an indication
of successful communication between your PC and Arduino board. If the program has
been uploaded successfully, you will see a message like Done Uploading. If the
uploading process was not successful, you will see an error message accordingly.
Refer the screenshot given below.
Fig 7.4 Burning
CHAPTER 8
8.1 SNAPSHOT
CHAPTER 9
9.1 CONCLUSION
In the future, this methodology will be extended with the development of more
advanced algorithms to monitor and control other soil parameters. Further, a mobile
application will be developed to remotely monitor and manual controlling of the soil
parameter. In this way both types of control options would be provided to the users.
APPENDIX
Source Code
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(I2C_ADDR,2,1,0,4,5,6,7,3,POSITIVE);
#include <TinyGPS.h>
TinyGPS gps;
ESP8266 wifi(&EspSerial);
long startMillis;
long secondsToFirstLocation = 0;
int Vo;
void setup() {
Serial1.begin(9600);
Serial2.begin(9600);
Serial.begin(9600);
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.setCursor(0,1);
delay(2000);
Serial1.println();
startMillis = millis();
Serial1.println("Starting");
EspSerial.begin(ESP8266_BAUD);
delay(10);
delay(100);
pinMode(trigPin1, OUTPUT);
pinMode(echoPin1, INPUT);
pinMode(trigPin2, OUTPUT);
pinMode(echoPin2, INPUT);
pinMode(motor1, OUTPUT);
pinMode(motor2, OUTPUT);
lcd.clear();
int n=0;
void loop() {
Blynk.run();
Vo = analogRead(moisture);
digitalWrite(trigPin1, LOW);
delayMicroseconds(5);
digitalWrite(trigPin1, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin1, LOW);
pinMode(echoPin1, INPUT);
Serial.println(cm1);
if(cm1<4 )
lcd.setCursor(0, 1);
delay(500);
lcd.clear();
}
if(Vo<800)
digitalWrite(motor2, HIGH);
lcd.setCursor(0, 1);
delay(500);
lcd.clear();
digitalWrite(motor2, LOW);
digitalWrite(motor1, HIGH);
lcd.setCursor(0, 1);
delay(500);
Blynk.virtualWrite(V0, " SOLID");
lcd.clear();
digitalWrite(motor1, LOW);
void place()
while (Serial1.available())
int c = Serial1.read();
++chars;
if (gps.encode(c))
newData = true;
}
}
if (newData)
if(secondsToFirstLocation == 0){
Serial.print("Acquired in:");
Serial.print(secondsToFirstLocation);
Serial.println("s");
//Serial.print("Location: ");
// Serial.print(lat, 6);
// Serial.print(" , ");
//Serial.print(lon, 6);
//Serial.println("");
lcd.print(lat);
lcd.setCursor(0,1);
lcd.print(lon);
Blynk.virtualWrite(V3, lat);
Blynk.virtualWrite(V4, lon);
delay(500);
delay(2000);
lcd.clear();
if (chars == 0){
//Serial.println("Check wiring");
}
REFERENCES
[1] Abdul Subhani Shaik, S. Usha, (2019), “Sensor Based Garbage Disposal
System”, IJITEE, ISSN: 2278-3075, Volume-8 Issue-4S2 March.
[2] Chander Partap Singh, Manisha, Pao-Ann Hsiung, (2019), “Automatic Waste
Segregator as an integral part of Smart Bin for waste management system in a
Smart City”, International Conference On Computing, Communication, Control
And Automation (ICCUBEA), 19-21 Sept.
[3] Eyhab Al-Masri, Ibrahim Diabate. (2018), “A Serverless IoT Architecture for
Smart Waste Management Systems”, ICII, 21-23 Oct.
[4] F.Maria Hadria, S.Jayanthy, A.Arunraja, (2018), “IoT Based Smart Waste
Management Using Top K-Query Scheduling”, ICICCS, ISBN: 978-1-5386-
2842-3.
[8] Pooja Devi, Wajge Shubham Ravindra, Sai Prakash S.K.L.V, (2018), “An IoT
enabled Smart Waste Management System in concern with Indian Smart Cities”,
Proceedings of the 2nd International Conference on Trends in Electronics and
Informatics, ISBN:978-1-5386-3570-4.
[9] S. Vinoth Kumar, T. Senthil Kumaran, A. Krishna Kumar, (2017), “Smart
Garbage Monitoring and Clearance System using Internet of Things”, ICSTM, 2
- 4 August. pp.184-189.
[11]Shashank Mithinti, Aman Kuma, Shivani Bokadia, (2019), “IoT Based Smart
Bin for Smart City Application”, ICICCS, ISBN: 978-1-5386-8113-8.
[12]Shivani Raina, Priya Gupta, Alice Kaw, (2017), “Iot Based Smart Garbage and
Waste Collection Bin”, IJESC Research Article Volume 7 Issue No.5.
[13]Shubham Jain, Aman Jatain, Shalini Bhaskar, “Smart City Management System
using IoT with Deep Learning”, ICCES, IEEE Xplore ISBN: 978-1-7281-1261-
9.
[15]Zainal Hisham Che Soh, Mohamad Azeer Al-Hami Husa, (2019), “Smart Waste
Collection Monitoring and Alert System via IoT”, ISCAIE, 27-28 April.