Arduino Smart Dustbin Report (3)
Arduino Smart Dustbin Report (3)
1. Introduction
Waste management is a significant challenge in modern cities.
Smart dustbins are designed to automatically open when someone approaches,
enhancing hygiene and efficiency in waste disposal. This project aims to design
a smart dustbin using an Arduino Uno, an ultrasonic sensor, and a servo motor.
3. Circuit Design
The ultrasonic sensor detects an approaching object,
and the Arduino processes this data to trigger the servo motor, which opens the bin lid.
Connections:
- VCC and GND of the sensor to 5V and GND of Arduino
- TRIG and ECHO to Arduino Digital Pins
- Servo Motor signal to PWM pin
4. Arduino Code
```c
#include <Servo.h>
Servo myservo;
const int trigPin = 9;
const int echoPin = 10;
void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
myservo.attach(6);
}
void loop() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
8. Conclusion
The Arduino-based smart dustbin successfully automated waste disposal. Future improvements
could include IoT integration for waste level monitoring.
9. References
- Arduino.cc
- HC-SR04 Sensor Datasheet
- Servo Motor SG90 Manual