Last Updated on September 19, 2019 by technoreview85
Today I am going to describe how to make a Smart dustbin using Arduino UNO ( with Arduino code & video tutorial)
working principle
when your hand is near ultrasonic sensor then the servo motor rotates for 90 degrees & pull the dustbin’s cardboard cover & after few seconds servo rotates to 0 degrees & the dustbin become closed.
You need to make :
- Arduino Uno
- Ultrasonic Sensor HC-SR04
- 9G Servo Motor
- Cardboard
- Jumper wire
- A plastic Dustbin
- 9 Volt battery or power bank
- Arduino Code
The complete making process is in this video
Connections :
- Connect HC-SR04 Trig pin to Arduino D5 pin
- Connect HC-SR04 Echo pin to Arduino D6 pin
- HC-SR04 VCC to Arduino 5 volt
- HC -SR04 GND to Arduino GND
- Connect Servo motor signal pin to Arduino D7 pin
- Servo motor VCC to Arduino 3.3 volt pin
- Servo motor Gnd to Arduino gnd pin
- For the power supply, you can use 9Volt battery or power bank

For upload Code to Arduino Uno Please install & open Arduino IDE software
Select board Arduino UNO, select com port where Arduino is connected
creat a .ino new file & save it then delete all existing from new .ino file & Download the code txt file from here, copy all from downloaded, txt file & past it in new .ino file.
Upload the code to Arduino
Thanks for the project. Your code works fine. Better code compared others.
Thank you…