Professional Documents
Culture Documents
8th Sem Project File
8th Sem Project File
We are grateful to project guide Asso.Prof. P.K Jain who laid the time bound
program for the successful completion of the project. He initiated our thoughts
and extended timely suggestions and for his technical support and valuable
suggestions for which we are deeply indebted to him. We are grateful to him for
his comments and insights in the preparation of this report without which this
report would not have been completed.
We thank sincerely and profusely to all the staff members of our department of
our institute for their valuable help and guidance.
We also express our gratitude to the institute management to all those who have
indirectly helped us in successful completion of the project. Last but not the
least, we are deeply indebted to our parents for what we are today, because this
project report would not have a reality without their love and support.
Yours Sincerely
Chaitanya Kaskar
* Introduction
* Review
* Hardware description
:- List of components
:- Component description
* Project Working
* Software Description
* Problem Definition
* Result
This project IOT Garbage Monitoring system is a very innovative system which
will help to keep the cities clean. This system monitors the garbage bins and
informs about the level of garbage collected in the garbage bins via an app. For
this the system uses ultrasonic sensors placed over the bins to detect the
garbage level and compare it with the garbage bins depth. The system makes
use of AVR family microcontroller.The system is powered by a 6V Battery.
The Application is used to display the status of the level of garbage collected in
the bins. Whereas it show the status to the user monitoring it.It gives a graphical
view of the garbage bins and highlights the garbage collected in color in order
to show the level of garbage collected. The system uses messaging,when the
level of garbage collected crosses the set limit.Thus this system helps to keep
the city clean by informing about the garbage levels of the bins by providing
graphical image of the bins via IOT platform.
Review
Solid waste management (SWM) is a major problem for many urban local
bodies (ULBs) in India, where urbanization, industrialization and economic
growth have resulted in increased municipal solid waste (MSW) generation per
person. Effective SWM is a major challenge in cities with high population
density. Achieving sustainable development within a country experiencing
rapid population growth and improvements in living standards is made more
difficult in India because it is a diverse country with many different religious
groups, cultures and traditions.
Despite significant development in social, economic and environmental areas,
SWM systems in India have remained relatively unchanged. The informal
sector has a key role in extracting value from waste, with approximately 90% of
residual waste currently dumped rather than properly landfilled. There is an
urgent need to move to more sustainable SWM, and this requires new
management systems and waste management facilities. Current SWM systems
are inefficient, with waste having a negative impact on public health, the
environment and the economy. The waste Management and Handling Rules in
India were introduced by the Ministry of Environment and Forests (MoEF),
although compliance is variable and limited.
Hardware
Arduino UNO
The Board
The Arduino Uno can be powered via the USB connection or with an external
power supply. The power source is selected automatically.
External (non-USB) power can come either from an AC-to-DC adapter (wall-
wart) or battery. The adapter can be connected by plugging a 2.1mm center-
positive plug into the board's power jack. Leads from a battery can be inserted
in the Gnd and Vin pin headers of the POWER connector. The board can
operate on an external supply of 6 to 20 volts. If supplied with less than 7V,
however, the 5V pin may supply less than five volts and the board may be
unstable. If using more than 12V, the voltage regulator may overheat and
damage the board. The recommended range is 7 to 12 volts.
Memory
Communication
The ATmega328 also support I2C (TWI) and SPI communication. The Arduino
software includes a Wire library to simplify use of the I2C bus; see the
documentation for details.
Programming
The Arduino Uno can be programmed with the Arduino software (download).
Select "Arduino Uno w/ ATmega328" from the Tools > Board menu (according
to the microcontroller on your board). For details, see the reference and
tutorials.
The ATmega328 on the Arduino Uno comes preburned with a bootloader that
allows you to upload new code to it without the use of an external hardware
programmer. It communicates using the original STK500 protocol (reference, C
header files).
You can also bypass the bootloader and program the microcontroller through
the ICSP (In-Circuit Serial Programming) header; see these instructions for
details.
The ATmega8U2 firmware source code is available . The ATmega8U2 is
loaded with a DFU bootloader, which can be activated by connecting the solder
jumper on the back of the board (near the map of Italy) and then resetting the
8U2. You can then use Atmel's FLIP software (Windows) or the DFU
programmer (Mac OS X and Linux) to load a new firmware. Or you can use the
ISP header with an external programmer (overwriting the DFU bootloader).
Rather than requiring a physical press of the reset button before an upload, the
Arduino Uno is designed in a way that allows it to be reset by software running
on a connected computer. One of the hardware flow control lines (DTR) of the
ATmega8U2 is connected to the reset line of the ATmega328 via a 100
nanofarad capacitor. When this line is asserted (taken low), the reset line drops
long enough to reset the chip. The Arduino software uses this capability to
allow you to upload code by simply pressing the upload button in the Arduino
environment. This means that the bootloader can have a shorter timeout, as the
lowering of DTR can be well-coordinated with the start of the upload.
This setup has other implications. When the Uno is connected to either a
computer running Mac OS X or Linux, it resets each time a connection is made
to it from software (via USB). For the following half-second or so, the
bootloader is running on the Uno. While it is programmed to ignore malformed
data (i.e. anything besides an upload of new code), it will intercept the first few
bytes of data sent to the board after a connection is opened. If a sketch running
on the board receives one-time configuration or other data when it first starts,
make sure that the software with which it communicates waits a second after
opening the connection and before sending this data.
The Uno contains a trace that can be cut to disable the auto-reset. The pads on
either side of the trace can be soldered together to re-enable it. It's labeled
"RESET-EN". You may also be able to disable the auto-reset by connecting a
110 ohm resistor from 5V to the reset line.
The Arduino Uno has a resettable polyfuse that protects your computer's USB
ports from shorts and overcurrent. Although most computers provide their own
internal protection, the fuse provides an extra layer of protection. If more than
500 mA is applied to the USB port, the fuse will automatically break the
connection until the short or overload is removed.
Physical Characteristics :-
The maximum length and width of the Uno PCB are 2.7 and 2.1 inches
respectively, with the USB connector and power jack extending beyond the
former dimension. Three screw holes allow the board to be attached to a surface
or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"),
not an even multiple of the 100 mil spacing of the other pins.
Arduino can sense the environment by receiving input from a variety of sensors
and can affect its surroundings by controlling lights, motors, and other
actuators. The microcontroller on the board is programmed using the Arduino
programming language (based on Wiring) and the Arduino development
environment (based on Processing). Arduino projects can be stand-alone or they
can communicate with software on running on a computer (e.g. Flash,
Processing, MaxMSP). Arduino is a cross-platoform program. Youll have to
follow different instructions for your personal OS.
Check on the Arduino site for the latest instructions.
http://arduino.cc/en/Guide/HomePage.
Once you have downloaded/unzipped the arduino IDE, you can Plug the
Arduino to your PC via USB cable.
Blink LED :-
Now youre actually ready to burn your first program on the arduino board.
To
select blink led, the physical translation of the well known programming
hello
world, select
File>Sketchbook>
Arduino-0017>Examples>
Digital>Blink
Once you have your skecth youll see something very close to the screenshot on
the right.
In Tools>Board select
Now you have to go to
Tools>SerialPort
and select the right serial port, the one arduino is attached to.
Dimensional Drawing :-
Ultrasonic Sensor :-
Since it is known that sound travels through air at about 344 m/s (1129 ft/s),
you can take the time for the sound wave to return and multiply it by 344
meters (or 1129 feet) to find the total round-trip distance of the sound wave.
Round-trip means that the sound wave traveled 2 times the distance to the
object before it was detected by the sensor; it includes the 'trip' from the sonar
sensor to the object AND the 'trip' from the object to the Ultrasonic sensor
(after the sound wave bounced off the object). To find the distance to the object,
simply divide the round-trip distance in half.
Working
In this dumpster/garbage Monitoring System which will tell us that whether
the trash can is empty or full through the application,you can know the status of
your Trash Can or 'Dumpsters' from anywhere in the world over the Internet.
It will be very useful and can be installed in the Trash Cans at public places as
well as at home.
In this project,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 we will print the message Basket is
Full on the webpage and if the distance will be more than this threshold value,
then we will print the message Basket is Empty
Here we have used LAN cable to connect Arduino to Internet.
Software
ethernet_on_off.ino
/*
Web client
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
*/
#include <SPI.h>
#include <Ethernet.h>
#include <NewPing.h>
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
void loop() {
// if there are incoming bytes available
// from the server, read them and print them:
char c = client.read();
s = s + c;
Serial.print(c);
Serial.println(uS / US_ROUNDTRIP_CM);
if(uS / US_ROUNDTRIP_CM !=0)
{
connectclient(uS / US_ROUNDTRIP_CM);
}
// do nothing forevermore:
}
}
if (client.connect(server, 80)) {
Serial.println("connected");
// Make a HTTP request:
client.print("GET /arduino.php?value=");
client.print(analogvalue);
client.println(" HTTP/1.1");
client.println("Host: www.pitstall.in");
client.println("Connection: close");
client.println();
} else {
// if you didn't get a connection to the server:
Serial.println("connection failed");
}
}
App code
<?php
require_once 'header.php';
$status = fgets($myfil);
if (isset($_POST['name']))
{
queryMysql("UPDATE majorproject SET Isfull ='empty' WHERE Type =
'bin' ");
$status='Bin is Set To Empty';
}
fclose($myfil);
echo "<center>";
echo <<<_END
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'
type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=500, initial-scale=1">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<style>
body
{
width:95%;
overflow:hidden;
font-family: 'Roboto' ,sans-serif;
}
.bin{
position:relative;
left:10px;
}
#submitbutton
{
color:white;
font-family: 'Roboto' ,sans-serif;
background:#a2b7d9;
border:0px;
padding:10px;
border-radius:5px;
}
</style>
<br>$status<br><br>
<form action= 'majorappmain2.php' method='post' >
<input name='name' value='123456' type='hidden'>
<input class='bin' id='submitbutton' type='submit' value='Empty Bin'><br>
</form>
</center>
_END;
Arduino
<?php
require_once 'header.php';
$q = $_GET["value"];
$myfil = fopen("value.txt", "w") or die("Unable to open file!");
$q = (int)$q;
if($q < 7)
{
}
Problem Definition
As we have seen number of times the dustbins are getting overflown and
concern person dont get the informationwithin a time and due to
whichunsanitary condition formed in the surroundings, at the same time bad
smell spread out due to waste, bad look of the city which paves the way for air
pollution and to some harmful diseases around the locality which is easily
spreadable.
* Time consuming and less effective: trucks go and empty containers whether
they are full or not.
* High costs.
* Unhygienic Environment and look of the city.
* Bad smell spreads and may cause illness to human beings.
* More traffic and Noise.
The following are the results which obtained from this work,
This IoT based waste management is very useful for smart cities in different
aspects. We have seen that, in cities there are different dustbins located in the
different areas and dustbins get over flown many times and the concerned
people do not get information about this. Our system is designed to solve this
issue and will provide complete details of the dustbin located in the different
areas throughout the city. The concerned authority can access the information
from anywhere and anytime to get the details. Accordingly they can take the
decision on this immediately.
Conclusion and Future Work
The scope for the future work is this system can be implemented with time
stamp in which real-time clock shown to the concern person at what time dust
bin is full and at what time the waste is collected from the smart dustbins.