SlideShare a Scribd company logo
‭
Arduino-Based Smart Dustbin‬
‭
Name - Hemant Verma‬
‭
Roll Number - 210435‬
‭
Email Id -‬‭
hemantv21@iitk.ac.in‬
‭
Drive Link :‬‭
Smart Dustbin‬
‭
Ideation‬
‭
An Arduino-based smart dustbin with motion detection presents a promising‬
‭
solution for hands-free waste disposal. The dustbin is equipped with sensors‬
‭
that can detect the presence of a person approaching it, and the servo motors‬
‭
will open the lid automatically, providing a touchless experience for users. This‬
‭
smart dustbin can also monitor the waste level and send alerts when it needs to‬
‭
be emptied. With the added convenience of a hands-free experience, users can‬
‭
dispose of waste more efficiently and hygienically. This innovative solution‬
‭
could significantly improve the waste management process and promote public‬
‭
health and safety.‬
‭
Sensors‬
‭
Ultrasonic sensors: They use sound waves to detect the distance of objects‬
‭
within their field of view. In the smart dustbin project, they can detect a‬
‭
person's presence and distance from the sensor, triggering the lid to open.‬
‭
Actuators‬
‭
Servo motors: They are small and precise motors that can rotate to a specific‬
‭
angle with high accuracy. They can be easily controlled using a microcontroller‬
‭
board like Arduino Uno. In the smart dustbin project, servo motors are used to‬
‭
move the lid of the dustbin up and down automatically in response to the‬
‭
sensor inputs. This provides a hands-free and hygienic solution for waste‬
‭
disposal.‬
‭
Development boards‬
‭
Arduino Uno: It is a widely-used microcontroller board in the maker community‬
‭
that features an ATmega328P microcontroller. It provides a simple and flexible‬
‭
way to program and control various sensors and actuators used in DIY‬
‭
electronics projects, including the smart dustbin. It is a cost-effective and‬
‭
versatile platform for prototyping and developing embedded systems.‬
‭
Code Used‬
‭
#include <Servo.h> //servo library‬
‭
Servo servo;‬
‭
const int trigPin1 = 6;‬
‭
const int echoPin1 = 7;‬
‭
const int servoPin = 8;‬
‭
long duration, dist, dist1, dist2, average;‬
‭
long aver[3]; //array for average‬
‭
int pos =0;‬
‭
int target = 120;‬
‭
const int trigPin2 = 13;‬
‭
const int echoPin2 = 12;‬
‭
const int redPin = 4;‬
‭
const int greenPin = 3;‬
‭
const int bluePin = 2;‬
‭
// Define threshold values for waste levels‬
‭
const int lowThreshold = 7;‬
‭
const int mediumThreshold = 15;‬
‭
const int highThreshold = 90;‬
‭
void setup() {‬
‭
Serial.begin(9600);‬
‭
servo.attach(servoPin);‬
‭
pinMode(trigPin1, OUTPUT);‬
‭
pinMode(echoPin1, INPUT);‬
‭
pinMode(trigPin2, OUTPUT);‬
‭
pinMode(echoPin2, INPUT);‬
‭
pinMode(redPin, OUTPUT);‬
‭
pinMode(greenPin, OUTPUT);‬
‭
pinMode(bluePin, OUTPUT);‬
‭
}‬
‭
void loop() {‬
‭
measure(trigPin1, echoPin1);‬
‭
dist1 = dist;‬
‭
Serial.print("Dist1 : ");‬
‭
Serial.println(dist1);‬
‭
int pos =13;‬
‭
servo.write(pos);‬
‭
if ( dist1<35 ) {‬
‭
//Change distance as per your need‬
‭
for(pos=0;pos<=target;pos+=1)‬
‭
{‬
‭
servo.write(pos);‬
‭
delay(8);‬
‭
}‬
‭
delay(3000);‬
‭
for(pos=target;pos>=0;pos+=-1)‬
‭
{‬
‭
servo.write(pos);‬
‭
delay(5);‬
‭
}‬
‭
}‬
‭
duration = 0;‬
‭
measure(trigPin2, echoPin2);‬
‭
dist2 = dist;‬
‭
Serial.print("Dist2 : ");‬
‭
Serial.println(dist2);‬
‭
// Check waste level and update RGB LED accordingly‬
‭
if (dist2 >= mediumThreshold) {‬
‭
// Low waste level, illuminate LED green‬
‭
digitalWrite(redPin, LOW);‬
‭
digitalWrite(greenPin, HIGH);‬
‭
digitalWrite(bluePin, LOW);‬
‭
} else if (dist2 >= lowThreshold) {‬
‭
// Medium waste level, illuminate LED yellow‬
‭
digitalWrite(redPin, LOW);‬
‭
digitalWrite(greenPin, LOW);‬
‭
digitalWrite(bluePin, HIGH);‬
‭
} else {‬
‭
// Maximum waste level, blink LED red‬
‭
digitalWrite(redPin, HIGH);‬
‭
digitalWrite(greenPin, LOW);‬
‭
digitalWrite(bluePin, LOW);‬
‭
delay(400);‬
‭
digitalWrite(redPin, LOW);‬
‭
digitalWrite(greenPin, LOW);‬
‭
digitalWrite(bluePin, LOW);‬
‭
delay(400);‬
‭
}‬
‭
// Wait a short time before repeating loop‬
‭
delay(200);‬
‭
}‬
‭
void measure (int trigPin, int echoPin) {‬
‭
digitalWrite(trigPin, LOW);‬
‭
delayMicroseconds(2);‬
‭
digitalWrite(trigPin, HIGH);‬
‭
delayMicroseconds(10);‬
‭
digitalWrite(trigPin, LOW);‬
‭
pinMode(echoPin, INPUT);‬
‭
duration = pulseIn(echoPin, HIGH);‬
‭
dist = (duration/2) / 29.1; //obtain distance‬
‭
}‬
‭
Explanation and working of the entire assembly with block‬
‭
Diagram‬
‭
The ultrasonic sensor used in the smart dustbin operates by emitting high-‬
‭
frequency sound waves and measuring the time it takes for the sound waves‬
‭
to bounce back from an object. The sensor can detect its object within its‬
‭
field of view and estimate their distance based on the time delay between the‬
‭
emitted and received sound waves. When a person approaches the dustbin,‬
‭
the ultrasonic sensor‬‭
detects the motion‬‭
and calculates the distance of the‬
‭
person from the dustbin. If the person is within the trigger distance, which can‬
‭
be set using the programming of the Arduino Uno board, the microcontroller‬
‭
sends a signal to the servo motor to‬‭
open the lid‬‭
of the dustbin.‬
‭
In addition to motion detection, the ultrasonic sensor also detects the waste‬
‭
level inside the dustbin. By placing the sensor at the top of the trash can and‬
‭
measuring the distance between it and the top of the waste pile, it is made‬
‭
possible. The sensor's distance measurement decreases as the waste level‬
‭
rises, allowing the microcontroller to determine the waste level inside the bin.‬
‭
If the waste level reaches a certain threshold, which can also be set using the‬
‭
programming of the Arduino Uno board, the microcontroller activates an LED to‬
‭
indicate that the dustbin is full. The LED can be programmed to change color‬
‭
based on the waste level or other conditions, such as when the dustbin needs‬
‭
to be emptied or when it's time for recycling. This feature provides a visual cue‬
‭
to users that the dustbin needs to be emptied and encourages them to practice‬
‭
responsible waste management.‬
‭
The microcontroller activates an LED to show the waste level in the smart‬
‭
dustbin‬
‭
●‬‭
When the dustbin is empty, a green light illuminates‬
‭
●‬‭
When the dustbin is half full, a blue light illuminates‬
‭
●‬‭
When the waste level reaches a programmed threshold, the LED‬
‭
changes to a red blinking light, indicating that the dustbin is full and‬
‭
needs to be emptied‬
‭
This feature helps users keep track of the waste level and encourages‬
‭
responsible waste management. The LED color can be customized to signal‬
‭
other conditions, such as when it's time for recycling.‬
‭
Reference‬
‭
1. Kiriaki M Keramitsoglou and Konstantinos P Tsagarakis. Public‬
‭
participation in designing the recycling bins to encourage‬
‭
recycling.Sustainability, 10(4):1240, 2018.‬
‭
2. Trushali S Vasagade, Shabanam S Tamboli, and Archana D‬
‭
Shinde. Smart solid waste collection and management system. In‬
‭
Techno- Societal 2018, pages 663–671. Springer, 2020.‬

More Related Content

Similar to Arduino-Based Smart Dustbin - Hemant Verma - Google Docs.pdf

A Smart Stick For Assisting Blind Peoples
A Smart Stick For Assisting Blind PeoplesA Smart Stick For Assisting Blind Peoples
A Smart Stick For Assisting Blind Peoples
Asia Smith
 
el ppt second sem.pptx
el ppt second sem.pptxel ppt second sem.pptx
el ppt second sem.pptx
MOHAMMADSABEEL5
 
FLOOD RESCUE ROBOT FINAL PPT.pptx
FLOOD RESCUE ROBOT FINAL PPT.pptxFLOOD RESCUE ROBOT FINAL PPT.pptx
FLOOD RESCUE ROBOT FINAL PPT.pptx
EliasJanson1
 
VAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptx
VAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptxVAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptx
VAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptx
Ruchi843636
 
IRJET- Design and Implementation of Smart Dustbin using IoT Notifications
IRJET- Design and Implementation of Smart Dustbin using IoT NotificationsIRJET- Design and Implementation of Smart Dustbin using IoT Notifications
IRJET- Design and Implementation of Smart Dustbin using IoT Notifications
IRJET Journal
 
Smart Remote for the Setup Box Using Gesture Control
Smart Remote for the Setup Box Using Gesture ControlSmart Remote for the Setup Box Using Gesture Control
Smart Remote for the Setup Box Using Gesture Control
IJERA Editor
 
Reverse car-parking
Reverse car-parkingReverse car-parking
Reverse car-parking
Salehin Rahman Khan
 
Color Sensor.pptx
Color Sensor.pptxColor Sensor.pptx
Color Sensor.pptx
RituSachan2
 
SMART DUSTBIN USING ARDUINO NANO
SMART DUSTBIN USING ARDUINO NANOSMART DUSTBIN USING ARDUINO NANO
SMART DUSTBIN USING ARDUINO NANO
NIET Journal of Engineering & Technology (NIETJET)
 
Smart walking Stick for blinds
Smart walking Stick for blindsSmart walking Stick for blinds
Smart walking Stick for blinds
AmbikaR4
 
UEE PPT.pptx
UEE PPT.pptxUEE PPT.pptx
UEE PPT.pptx
MansiKumari26
 
DAM SHUTTER 2.pptx
DAM SHUTTER 2.pptxDAM SHUTTER 2.pptx
DAM SHUTTER 2.pptx
2000520320051
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
chetan kadiwal
 
OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...
OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...
OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...
ijaia
 
Arduino Base Door Automation System.ppt
Arduino Base Door Automation System.pptArduino Base Door Automation System.ppt
Arduino Base Door Automation System.ppt
Sazzad Hossain
 
Know Your Teacher(KYT)
Know Your Teacher(KYT)Know Your Teacher(KYT)
Know Your Teacher(KYT)
Ashwani Kumar
 
IRJET - Aid for Blind People using IoT
IRJET - Aid for Blind People using IoTIRJET - Aid for Blind People using IoT
IRJET - Aid for Blind People using IoT
IRJET Journal
 
Garbage Monitoring System using Arduino
Garbage Monitoring System using ArduinoGarbage Monitoring System using Arduino
Garbage Monitoring System using Arduino
ijtsrd
 

Similar to Arduino-Based Smart Dustbin - Hemant Verma - Google Docs.pdf (20)

A Smart Stick For Assisting Blind Peoples
A Smart Stick For Assisting Blind PeoplesA Smart Stick For Assisting Blind Peoples
A Smart Stick For Assisting Blind Peoples
 
4th-Yr-PROJECT-REPORT
4th-Yr-PROJECT-REPORT4th-Yr-PROJECT-REPORT
4th-Yr-PROJECT-REPORT
 
el ppt second sem.pptx
el ppt second sem.pptxel ppt second sem.pptx
el ppt second sem.pptx
 
FLOOD RESCUE ROBOT FINAL PPT.pptx
FLOOD RESCUE ROBOT FINAL PPT.pptxFLOOD RESCUE ROBOT FINAL PPT.pptx
FLOOD RESCUE ROBOT FINAL PPT.pptx
 
VAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptx
VAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptxVAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptx
VAISHNO KANPUR INSTITUTE OF TECHNOLOGY PPT.pptx
 
IRJET- Design and Implementation of Smart Dustbin using IoT Notifications
IRJET- Design and Implementation of Smart Dustbin using IoT NotificationsIRJET- Design and Implementation of Smart Dustbin using IoT Notifications
IRJET- Design and Implementation of Smart Dustbin using IoT Notifications
 
iot project Smart dustbin ppt.pptx
iot project Smart dustbin ppt.pptxiot project Smart dustbin ppt.pptx
iot project Smart dustbin ppt.pptx
 
Smart Remote for the Setup Box Using Gesture Control
Smart Remote for the Setup Box Using Gesture ControlSmart Remote for the Setup Box Using Gesture Control
Smart Remote for the Setup Box Using Gesture Control
 
Reverse car-parking
Reverse car-parkingReverse car-parking
Reverse car-parking
 
Color Sensor.pptx
Color Sensor.pptxColor Sensor.pptx
Color Sensor.pptx
 
SMART DUSTBIN USING ARDUINO NANO
SMART DUSTBIN USING ARDUINO NANOSMART DUSTBIN USING ARDUINO NANO
SMART DUSTBIN USING ARDUINO NANO
 
Smart walking Stick for blinds
Smart walking Stick for blindsSmart walking Stick for blinds
Smart walking Stick for blinds
 
UEE PPT.pptx
UEE PPT.pptxUEE PPT.pptx
UEE PPT.pptx
 
DAM SHUTTER 2.pptx
DAM SHUTTER 2.pptxDAM SHUTTER 2.pptx
DAM SHUTTER 2.pptx
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
 
OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...
OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...
OUTDOOR MOBILE ROBOTIC ASSISTANT MICRO-CONTROLLER MODULE (ARDUINO), FIRMWARE ...
 
Arduino Base Door Automation System.ppt
Arduino Base Door Automation System.pptArduino Base Door Automation System.ppt
Arduino Base Door Automation System.ppt
 
Know Your Teacher(KYT)
Know Your Teacher(KYT)Know Your Teacher(KYT)
Know Your Teacher(KYT)
 
IRJET - Aid for Blind People using IoT
IRJET - Aid for Blind People using IoTIRJET - Aid for Blind People using IoT
IRJET - Aid for Blind People using IoT
 
Garbage Monitoring System using Arduino
Garbage Monitoring System using ArduinoGarbage Monitoring System using Arduino
Garbage Monitoring System using Arduino
 

Recently uploaded

一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
projectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdfprojectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdf
farazahmadas6
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
Mansi Shah
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
M. A. Architect
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
TeeFusion
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
madhavlakhanpal29
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
Alan Dix
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 

Recently uploaded (20)

一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
projectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdfprojectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdf
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 

Arduino-Based Smart Dustbin - Hemant Verma - Google Docs.pdf

  • 1. ‭ Arduino-Based Smart Dustbin‬ ‭ Name - Hemant Verma‬ ‭ Roll Number - 210435‬ ‭ Email Id -‬‭ hemantv21@iitk.ac.in‬ ‭ Drive Link :‬‭ Smart Dustbin‬
  • 2. ‭ Ideation‬ ‭ An Arduino-based smart dustbin with motion detection presents a promising‬ ‭ solution for hands-free waste disposal. The dustbin is equipped with sensors‬ ‭ that can detect the presence of a person approaching it, and the servo motors‬ ‭ will open the lid automatically, providing a touchless experience for users. This‬ ‭ smart dustbin can also monitor the waste level and send alerts when it needs to‬ ‭ be emptied. With the added convenience of a hands-free experience, users can‬ ‭ dispose of waste more efficiently and hygienically. This innovative solution‬ ‭ could significantly improve the waste management process and promote public‬ ‭ health and safety.‬ ‭ Sensors‬ ‭ Ultrasonic sensors: They use sound waves to detect the distance of objects‬ ‭ within their field of view. In the smart dustbin project, they can detect a‬ ‭ person's presence and distance from the sensor, triggering the lid to open.‬ ‭ Actuators‬ ‭ Servo motors: They are small and precise motors that can rotate to a specific‬ ‭ angle with high accuracy. They can be easily controlled using a microcontroller‬ ‭ board like Arduino Uno. In the smart dustbin project, servo motors are used to‬ ‭ move the lid of the dustbin up and down automatically in response to the‬ ‭ sensor inputs. This provides a hands-free and hygienic solution for waste‬ ‭ disposal.‬ ‭ Development boards‬ ‭ Arduino Uno: It is a widely-used microcontroller board in the maker community‬ ‭ that features an ATmega328P microcontroller. It provides a simple and flexible‬ ‭ way to program and control various sensors and actuators used in DIY‬ ‭ electronics projects, including the smart dustbin. It is a cost-effective and‬ ‭ versatile platform for prototyping and developing embedded systems.‬
  • 3. ‭ Code Used‬ ‭ #include <Servo.h> //servo library‬ ‭ Servo servo;‬ ‭ const int trigPin1 = 6;‬ ‭ const int echoPin1 = 7;‬ ‭ const int servoPin = 8;‬ ‭ long duration, dist, dist1, dist2, average;‬ ‭ long aver[3]; //array for average‬ ‭ int pos =0;‬ ‭ int target = 120;‬ ‭ const int trigPin2 = 13;‬ ‭ const int echoPin2 = 12;‬ ‭ const int redPin = 4;‬ ‭ const int greenPin = 3;‬
  • 4. ‭ const int bluePin = 2;‬ ‭ // Define threshold values for waste levels‬ ‭ const int lowThreshold = 7;‬ ‭ const int mediumThreshold = 15;‬ ‭ const int highThreshold = 90;‬ ‭ void setup() {‬ ‭ Serial.begin(9600);‬ ‭ servo.attach(servoPin);‬ ‭ pinMode(trigPin1, OUTPUT);‬ ‭ pinMode(echoPin1, INPUT);‬ ‭ pinMode(trigPin2, OUTPUT);‬ ‭ pinMode(echoPin2, INPUT);‬ ‭ pinMode(redPin, OUTPUT);‬ ‭ pinMode(greenPin, OUTPUT);‬
  • 5. ‭ pinMode(bluePin, OUTPUT);‬ ‭ }‬ ‭ void loop() {‬ ‭ measure(trigPin1, echoPin1);‬ ‭ dist1 = dist;‬ ‭ Serial.print("Dist1 : ");‬ ‭ Serial.println(dist1);‬ ‭ int pos =13;‬ ‭ servo.write(pos);‬ ‭ if ( dist1<35 ) {‬ ‭ //Change distance as per your need‬ ‭ for(pos=0;pos<=target;pos+=1)‬ ‭ {‬ ‭ servo.write(pos);‬
  • 7. ‭ // Check waste level and update RGB LED accordingly‬ ‭ if (dist2 >= mediumThreshold) {‬ ‭ // Low waste level, illuminate LED green‬ ‭ digitalWrite(redPin, LOW);‬ ‭ digitalWrite(greenPin, HIGH);‬ ‭ digitalWrite(bluePin, LOW);‬ ‭ } else if (dist2 >= lowThreshold) {‬ ‭ // Medium waste level, illuminate LED yellow‬ ‭ digitalWrite(redPin, LOW);‬ ‭ digitalWrite(greenPin, LOW);‬ ‭ digitalWrite(bluePin, HIGH);‬ ‭ } else {‬ ‭ // Maximum waste level, blink LED red‬ ‭ digitalWrite(redPin, HIGH);‬
  • 8. ‭ digitalWrite(greenPin, LOW);‬ ‭ digitalWrite(bluePin, LOW);‬ ‭ delay(400);‬ ‭ digitalWrite(redPin, LOW);‬ ‭ digitalWrite(greenPin, LOW);‬ ‭ digitalWrite(bluePin, LOW);‬ ‭ delay(400);‬ ‭ }‬ ‭ // Wait a short time before repeating loop‬ ‭ delay(200);‬ ‭ }‬ ‭ void measure (int trigPin, int echoPin) {‬ ‭ digitalWrite(trigPin, LOW);‬
  • 9. ‭ delayMicroseconds(2);‬ ‭ digitalWrite(trigPin, HIGH);‬ ‭ delayMicroseconds(10);‬ ‭ digitalWrite(trigPin, LOW);‬ ‭ pinMode(echoPin, INPUT);‬ ‭ duration = pulseIn(echoPin, HIGH);‬ ‭ dist = (duration/2) / 29.1; //obtain distance‬ ‭ }‬
  • 10. ‭ Explanation and working of the entire assembly with block‬ ‭ Diagram‬
  • 11.
  • 12. ‭ The ultrasonic sensor used in the smart dustbin operates by emitting high-‬ ‭ frequency sound waves and measuring the time it takes for the sound waves‬ ‭ to bounce back from an object. The sensor can detect its object within its‬ ‭ field of view and estimate their distance based on the time delay between the‬ ‭ emitted and received sound waves. When a person approaches the dustbin,‬ ‭ the ultrasonic sensor‬‭ detects the motion‬‭ and calculates the distance of the‬ ‭ person from the dustbin. If the person is within the trigger distance, which can‬ ‭ be set using the programming of the Arduino Uno board, the microcontroller‬ ‭ sends a signal to the servo motor to‬‭ open the lid‬‭ of the dustbin.‬ ‭ In addition to motion detection, the ultrasonic sensor also detects the waste‬ ‭ level inside the dustbin. By placing the sensor at the top of the trash can and‬ ‭ measuring the distance between it and the top of the waste pile, it is made‬ ‭ possible. The sensor's distance measurement decreases as the waste level‬ ‭ rises, allowing the microcontroller to determine the waste level inside the bin.‬ ‭ If the waste level reaches a certain threshold, which can also be set using the‬ ‭ programming of the Arduino Uno board, the microcontroller activates an LED to‬ ‭ indicate that the dustbin is full. The LED can be programmed to change color‬ ‭ based on the waste level or other conditions, such as when the dustbin needs‬ ‭ to be emptied or when it's time for recycling. This feature provides a visual cue‬ ‭ to users that the dustbin needs to be emptied and encourages them to practice‬ ‭ responsible waste management.‬ ‭ The microcontroller activates an LED to show the waste level in the smart‬ ‭ dustbin‬ ‭ ●‬‭ When the dustbin is empty, a green light illuminates‬ ‭ ●‬‭ When the dustbin is half full, a blue light illuminates‬ ‭ ●‬‭ When the waste level reaches a programmed threshold, the LED‬ ‭ changes to a red blinking light, indicating that the dustbin is full and‬ ‭ needs to be emptied‬ ‭ This feature helps users keep track of the waste level and encourages‬ ‭ responsible waste management. The LED color can be customized to signal‬ ‭ other conditions, such as when it's time for recycling.‬
  • 13. ‭ Reference‬ ‭ 1. Kiriaki M Keramitsoglou and Konstantinos P Tsagarakis. Public‬ ‭ participation in designing the recycling bins to encourage‬ ‭ recycling.Sustainability, 10(4):1240, 2018.‬ ‭ 2. Trushali S Vasagade, Shabanam S Tamboli, and Archana D‬ ‭ Shinde. Smart solid waste collection and management system. In‬ ‭ Techno- Societal 2018, pages 663–671. Springer, 2020.‬