We will learn how to create a smart trash can with an Arduino Uno and an ultrasonic sensor in this tutorial-style post.
A fantastic Arduino board project is smart Dustbin. It functions similarly to clever stuff. We may conclude that it is a good appliance for keeping your house tidy and appealing. due to the fact that almost all children of house constantly make it dirty and distribute waste to a great amount through paper, rappers, and numerous other things.
Hardware RequiredSmart Dustbin Kit https://www.flyrobo.in/components-for-smart-dustbin-project
Working ConceptThe ultrasonic sensor HC-SR04 is used by the smart trashcan to identify items in front of it.
The signals are subsequently transmitted to Arduino Uno. The Servomotor opens the flap on top of the trash can after the Arduino recognizes the signal and sends a signal to it.
Here, the race is only intended to be open for three seconds before it automatically closes. Simply by making little modifications to the code in the Arduino IDE, you can change that time.
The project is displayed below.- The Ultrasonic sensor HC-SR04 pins echo and trig are connected to Arduino Uno pins 5 and 6 respectively. The VCC pin is connected to 5V on Arduino Uno and both the grounds are connected together.
- Servo motor signal pin to 7 and gnd to gnd and positive to 3.3 V
- A 9v battery has been connected to Vin pin on the Arduino Uno and grounds are connected together.
Comments
Please log in or sign up to comment.