How To Make Smart Dustbin with Arduino–Step by Step||Electronic Technology||

In this project , I will show you How to Make a Smart Dustbin using Arduino,When you bring dirty garbage in front of the dustbin, the lid will open automatically and if you remove the dirty garbage, it will close automatically. If you go to my  YouTube channel and watch the YouTube video, you will understand the subject better,Moreover, if you read the whole article with your mind, it will become a general idea about your smart dustbin.

Introduction

You can make this smart dustbin by setting certain tools with the help of a small plastic bucket.You can use this dustbin in your home, office, road or exactly where the dustbin is used. By using this dustbin, you can create a disease-free environment. Moreover, by using this dustbin, you can keep all the members of your household, especially children, free from diseases.This project is very good ,to provide as a project school or college students.

Using component

  1. Arduino Uno[Buy Now]
  2. Ultrasonic Module[Buy Now]
  3. Servo Motor[Buy Now]
  4. Jumper Wire[Buy Now]

Amazon Link

Arduino Uno- https://amzn.to/3fJgJ6Z

Ultrasonic Module- https://amzn.to/2L9gLa1

Servo Motor- https://amzn.to/2xKbBOB

Jumper Wire- https://amzn.to/3dTriCB

Circuit Diagram

I hope you can understand the project if you look at the diagram with a little mind.And if you have any doubts after seeing the diagram, then you must watch the video from YouTube. To watch video in youtube Click here.

Working

Connect all components to the Arduino circuit according to the circuit diagram and upload the code to the computer.Now set up the appliance coolie with the dustbin (you can take the help of YouTube in this case, the YouTube link is inside the article).Home Office Road Where Dustbin Is Used, You Can Definitely Use This Smart Dustbin.

Full Video Tutorial (YouTube)

If you watch the full video, you will understand how the smart dustbin is being made.

Coding

Below is the code you will use to manage the arduino or others components. You must download the Arduino software to use coding.[Click Here]

DOWNLOAD[Click Here]


#include <Servo.h> //servo library
Servo servo;
int trigPin = 4;
int echoPin = 5;
int servoPin = 6;
int led= 10;
long duration, dist, average;
long aver[3]; //array for average

void setup() {
Serial.begin(9600);
servo.attach(servoPin);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
servo.write(0); //close cap on power on
delay(100);
servo.detach();
}

void measure() {
digitalWrite(10,HIGH);
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(15);
digitalWrite(trigPin, LOW);
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
dist = (duration/2) / 29.1; //obtain distance
}
void loop() {
for (int i=0;i<=2;i++) { //average distance
measure();
aver[i]=dist;
delay(10); //delay between measurements
}
dist=(aver[0]+aver[1]+aver[2])/3;

if ( dist<50 ) {
//Change distance as per your need
servo.attach(servoPin);
delay(1);
servo.write(0);
delay(3000);
servo.write(150);
delay(1000);
servo.detach();
}
Serial.print(dist);
}


Conclusion

The Smart Dustbin Project is a digital project, that will help you protect your environment from pollution.

Since the lid in this dustbin automatically shuts off after disposal, there is no chance of mosquitoes, flies or other germs spreading.If you like this project, please comment ,and share it with all your friends.Thank You.

 

2 thoughts on “How To Make Smart Dustbin with Arduino–Step by Step||Electronic Technology||”

Leave a Comment

Your email address will not be published. Required fields are marked *