0% found this document useful (0 votes)
27 views14 pages

Open Lab

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views14 pages

Open Lab

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

INTRODUCTION

Every person in this world throws waste in the form of plastics, wet waste, dry
waste and etc. Also, every person looks for a place or a plastic container to
dispose that waste, that plastic container is the Dustbin which they look for.
Dustbin is a plastic container where everyone can dispose their waste. Dustbin is
used as a storage place to dispose waste, but we cannot estimate the exact
amount of waste disposed by a society, and the dustbin cannot take more waste
as the space should be available in it to take more. We need to know the level of
waste in the dustbin and based on that we can intimate people to use the
dustbin or not. In this Smart Dustbin project, we have designed a prototype
where the lid of the dustbin is opened, on detection of human hand and waste,
and the level of waste available inside the dustbin is sent as notification in the
form of LED. The main components we used in making this prototype are Arduino,
Servo Motor and Ultrasonic Sensors. The software component is the application
named as This dustbin can be a start to Smart Waste Management System where
the officials can clean or empty the dustbin which depends on the notification
received by them and not waiting for a call from a person of a society who
informs the garbage trucks to come and take the waste from them.

Dustbin is the storage container used for disposing waste by each and every
person in the world. The main thing they look in their surroundings for disposing
waste is the Dustbin. Smart Dustbin is just a normal bin where everyone can
dispose for more efficient use of it. Smart Dustbin is integrated with some
hardware components such as Arduino, Servo Motor, Ultrasonic sensors. These
components help in opening the lid, on detection of human hand and waste
and also sending the notification . The code required to perform the above-
mentioned operation is dumped in Arduino.
METHODOLOGY AND DESIGN

The cycle of the first part of dustbin


Components used:

Ultra sonic sensor: Ultrasonic Sensor is an instrument which


measures the distance to the waste using ultrasonic sound waves. It has
a transducer that helps to send and receive ultrasonic pulses.

Servo motor : Servo Motor helps in opening the lid of the dustbin.
The Arduino is programmed in such a way that after detecting the waste
using ultrasonic sensor the lid should open automatically and this is
done using this servo motor.

Gsm module: A GSM modem or GSM module is a device that


uses GSM mobile telephone technology to provide a wireless data link to a
network. GSM modems are used in mobile telephones and other
equipment that communicates with mobile telephone networks. They
use SIM to identify their device to the network.

ARDUINO : Arduino is an open-source electronics platform based on


easy-to-use hardware and software. Arduino boards are able to read
inputs - light on a sensor, a finger on a button, or a Twitter message - and
turn it into an output - activating a motor, turning on an LED, publishing
something online. You can tell your board what to do by sending a set of
instructions to the microcontroller on the board. To do so you use
the Arduino programming language (based on Wiring), and the Arduino
Software (IDE), based on Processing
BUILDING BLOCK DIAGRAM
DESIGN
• Dustbin is used as a storage place to dispose waste, but we cannot
estimate the exact amount of waste disposed

• In this Smart Dustbin project, we have designed a prototype where


the lid of the dustbin is opened, on detection of objects, and the level
of waste available inside the dustbin is sent as notification in the form
of message.

• The main components we used in making this prototype are Arduino,


gsm module, Servo Motor and Ultrasonic Sensors.

• This dustbin can be a start to Smart Waste Management System


where the officials can clean or empty the dustbin which depends on
the notification received by them and not waiting for a call from a
person of a society who informs the garbage trucks to come and take
the waste from them.
Software/hardware implementation
#include <Servo.h>

Servo servo1;

int trigPin = 9;

int echoPin = 8;

long distance;

long duration;

void setup()

Serial.begin(9600);

servo1.attach(7);

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);// put your setup code here, to run once:

void ultra_sonic()

digitalWrite(trigPin, LOW);

delayMicroseconds(2);

digitalWrite(trigPin, HIGH);

delayMicroseconds(10);

digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);

Serial.println(duration);

distance = duration*0.034/2;

void loop()

ultra_sonic();

servo1.write(90);

if(distance <=9)

Serial.print("hi");

servo1.write(270);

}
Receiving code for messages
#include <SoftwareSerial.h>

SoftwareSerial mySerial(9, 10);

int trigPin = 11;

int echoPin = 12;

int led = 7;

void setup()

mySerial.begin(9600); // Setting the baud rate of GSM Module

Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)

pinMode(led, OUTPUT);

pinMode(trigPin, OUTPUT);

pinMode(echoPin, INPUT);

fun();

// put your setup code here, to run once:

void fun()

long duration,distance;

while(1)

{
digitalWrite(trigPin,HIGH);

delayMicroseconds(1000);

digitalWrite(trigPin, LOW);

duration=pulseIn(echoPin, HIGH);

distance =(duration/2)/29.1;

Serial.println(distance);

delay(1000);

if((distance<=5))

mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode

delay(1000); // Delay of 1 second

mySerial.println("AT+CMGS=\"+918247253126\"\r"); // Replace x with mobile


number

delay(1000);

mySerial.println("Dustbin is full ");// The SMS text you want to send

delay(100);

mySerial.println(distance*10);

delay(100);

mySerial.println((char)26);// ASCII code of CTRL+Z for saying the end of sms


to the module

delay(1000);

digitalWrite(led, HIGH);

break;
}

else if(distance>5)

digitalWrite(led, LOW);

void loop()

}
CONCLUSION

IOT based Dustbins help the people to manage the waste


easily and help them reduce the work of calling or waiting for
the specific person to make the area clean and makes a
heathier environment to live. They won’t be any kind of
diseases and the people will be fit and are not prone to
diseases caused by these waste materials. The mission
Swachh Bharat can also be implemented easily. This system
assures the cleaning of dustbins soon when the garbage level
reaches its maximum. It will take power supply with the help of
Battery. If the dustbin is not cleaned in specific time, then the
record is sent to the Sweeper or higher authority who can take
appropriate action against the concerned contractor. It
ultimately helps in keeping the surrounding clean and the
waste management can be much easier.
based on the object’s proximity. It detects the objects and the waste mate

You might also like