How To Make Smart Dustbin At Home
Hello friends, this is smart dustbin which will open the cover when you put garbage into the dustbin. In this project I used ultrasonic sensor to sensing the garbage using distance method. this is very simple to make just follow all the step and make your own smart dustbin.
Diagram :

Components :
1) Plastic Dustbin : https://amzn.to/31oMOP8 or https://amzn.to/3DpUfCo
2) Arduino Nano: https://roboman.in/59h4
3) Arduino Nano Type C : https://roboman.in/xkfu
3) MT-3608 Boost module : https://roboman.in/xdcw
4) TP-4056 Module : https://roboman.in/oa0m
5) Servo Motor SG90 : https://roboman.in/cnn5
6) Ultrasonic Sensor: https://roboman.in/6sce
7) SPST Switch : https://roboman.in/74he
8) 18650 Lithium Battery 2500mah 3C :https://roboman.in/utwc
8) 18650 Lithium Battery 2600mah 3C :https://roboman.in/mmab
8) 18650 Lithium Battery 2200mah 1C :https://roboman.in/70b5
8) 18650 Lithium Battery 2000mah 1C :https://roboman.in/7em9
8) 18650 Lithium Battery 1800mah 1C :https://roboman.in/ywss
Code :
#include <Servo.h>
Servo servoMain;
int trigpin = 5;
int echopin = 4;
int distance;
float duration;
float cm;
void setup()
{
servoMain.attach(6);
pinMode(trigpin, OUTPUT);
pinMode(echopin, INPUT);
void loop()
{
digitalWrite(trigpin, LOW);
delay(2);
digitalWrite(trigpin, HIGH);
delayMicroseconds(10);
digitalWrite(trigpin, LOW);
duration = pulseIn(echopin, HIGH);
cm = (duration/58.82);
distance = cm;
if(distance<30)
{
servoMain.write(0); // Turn Servo back to center position (90 degrees)
delay(3000);
}
else{
servoMain.write(110);
delay(50);
}
}
Good day! I just wish to give you a huge thumbs up for your excellent information you have got here on this post. I am coming back to your blog for more soon. Good day! I just wish to give you a huge thumbs up for your excellent information you have got here on this post. I am coming back to your blog for more soon. נערות ליווי בהרצליה