
Embedded Systems
Smart Dustbin
Abstract:
The Smart Dustbin is designed to provide automatic, touchless waste disposal using an Arduino microcontroller, ultrasonic sensor, and servo motor. The ultrasonic sensor detects the presence of a hand or object near the dustbin and measures its distance. Arduino processes the sensor readings and activates the servo motor to open the dustbin lid when an object enters the configured detection range. After a predefined delay, the servo automatically closes the lid. The project aims to improve hygiene, reduce physical contact with waste containers, and provide a convenient waste-disposal solution for homes, offices, schools, and public places.
Project Description:
This project develops an automatic smart dustbin using an Arduino Uno or Nano, HC-SR04 ultrasonic sensor, servo motor such as SG90 or MG90S, and a dustbin with a movable lid.
The ultrasonic sensor is mounted on the front side of the dustbin to detect a user's hand or an object approaching the container. It measures the distance between the sensor and the detected object.
Arduino receives the distance measurement and compares it with a predefined detection threshold. When an object is detected within the configured range, the controller sends a PWM signal to the servo motor to rotate the lid into the open position.
The lid remains open for a predefined duration, allowing the user to dispose of waste without touching the dustbin. After the delay, Arduino moves the servo back to its original position and closes the lid automatically.
The system can be extended with additional sensors to monitor waste fill level and provide notifications when the dustbin needs to be emptied.
Working Principle:
1. Object Detection: The HC-SR04 ultrasonic sensor detects a hand or object approaching the dustbin.
2. Distance Measurement: The sensor sends ultrasonic waves and measures the time taken for the reflected waves to return.
3. Data Processing: Arduino calculates the distance and compares it with the configured detection threshold.
4. Lid Opening: When an object is detected within the selected range, Arduino activates the servo motor.
5. Automatic Operation: The servo rotates the lid into the open position.
6. Delay Control: The controller keeps the lid open for a predefined duration.
7. Lid Closing: After the delay, the servo returns the lid to its closed position.
8. Continuous Monitoring: The system continues checking for approaching objects and repeats the process when required.
Notes:
- The HC-SR04 ultrasonic sensor is commonly used for distance-based object detection.
- Mount the sensor securely on the front of the dustbin and position it to detect hands approaching the lid.
- Configure the detection threshold according to the dustbin's size and installation.
- Use an SG90 servo for lightweight lids. A larger servo may be required for heavier lids.
- Do not power a servo that draws significant current directly from the Arduino 5 V pin. Use a suitable regulated external 5 V supply and connect the grounds together.
- Ensure that the servo has sufficient torque and that the lid mechanism moves freely without obstruction.
- Add a suitable delay or detection lockout to prevent repeated opening and closing.
- Keep the ultrasonic sensor protected from dust, moisture, and physical damage.
- The basic version opens and closes the lid but does not measure how full the dustbin is.
- Waste-level monitoring can be added using a separate ultrasonic sensor mounted inside the dustbin.
- An OLED/LCD display, buzzer, or IoT notification feature can be added as an optional enhancement.
Expected Outcome:
The expected outcome is a functional Arduino-based smart dustbin that automatically opens its lid when a hand or object is detected nearby and closes it after a predefined delay. It demonstrates ultrasonic distance measurement, servo motor control, sensor interfacing, and automatic waste-disposal mechanisms. The project aims to improve hygiene, reduce physical contact with dustbins, and demonstrate practical smart-waste-management automation.
All Projects




