Let’s build something practical today. How about a smart sensor dustbin with a lid that opens automatically when you want to drop something into it? It’s hygienic and smart. We will use the Arduino as our microcontroller today.
Let’s get started!
If you are less than 16, do it under adult supervision!
Components Required
1) Ultrasonic Sensor HC-SR04
2) Arduino Uno
3) 9V Battery & Connector
4) Jumper Wires
5) Servo Motor SG-90
6) Glue Gun
7) Piece of Cardboard
8) Double-Sided Tape
9) Loose Wires
10) Empty Bucket
Watch the Video to Build a Arduino-Based Smart Dustbin Using Ultrasonic Sensor
Steps to Follow
- Using scissors, design cardboard as shown in the video.
- Connect the VCC of the Sensor to 5V of Arduino, the GND to the Ground, the TRIG to Pin5 of Arduino, and the ECHO to Pin6 of Arduino.
- Connect Signal Pin of Servo Motor to Pin9 of Arduino, VCC of Servo Motor to VCC of Arduino, and GND to Ground of Arduino.
- Connect the Positive Terminal of 9V Battery to VIN of Arduino and the Negative Terminal of 9V Battery to Ground of Arduino.
- Using the Glue Gun, Stick the Cardboard Over the Bucket. After that, place the Ultrasonic Sensor here with a Double Sided Tape and the Servo Motor on the Top of the Lid. With the loose wire, connect the folded part of the lid to the leg of the Servo Motor.
- Upload the Code to the Arduino.
Test the system if it’s working.
You can place this sensor dustbin anywhere in your home. It has very low power consumption and a 9V Alkaline Battery can run it for at least 3 weeks.