← All Projects
Smart Dustbin with Auto-Open Lid
157 viewsFebruary 10, 2026
ArduinoServoHC-SR04UltrasonicAutomation
Build an automatic dustbin that opens its lid when it detects someone approaching. Uses an HC-SR04 ultrasonic sensor to detect proximity and a servo motor to control the lid. Perfect for touchless hygiene.
Components & Supplies
Circuit Connections
Overview
This smart dustbin uses an ultrasonic sensor mounted on the front to detect when a hand or object is within 30cm. When triggered, a servo motor rotates to lift the lid open. After 3 seconds of no detection, the lid closes automatically.
This project is a great introduction to servo control, proximity sensing, and simple state machines on the Arduino platform.
Assembly Guide
Assembly steps:
- Mount the HC-SR04 sensor on the front panel of the dustbin, facing outward.
- Attach the servo motor to the lid hinge so that a 90° rotation lifts the lid open.
- Wire everything to the Arduino and power via USB or a 9V battery.
- Upload the sketch and test the detection range by adjusting the threshold.