An intelligent dustbin that automatically detects and segregates wet and dry waste using Arduino.
- Automatic object detection with ultrasonic sensor
- Wet/dry classification using moisture sensor
- Servo-controlled compartment opening
- Real-time Serial monitoring
- Arduino Uno
- HC-SR04 Ultrasonic Sensor
- Soil Moisture Sensor
- SG90 Servo Motor
- 
Hardware Setup - Connect HC-SR04: Trig=12, Echo=11, VCC=5V, GND=GND
- Connect Moisture Sensor: SIG=A0, VCC=5V, GND=GND
- Connect Servo: Signal=8, VCC=5V, GND=GND
 
- 
Software Setup - Install Arduino IDE
- Open src/smart_dustbin.ino
- Select: Tools β Board β Arduino Uno
- Select correct COM port
- Click Upload
 
- 
Calibration (Important!) - Test moisture sensor with dry and wet items
- Adjust wetWasteThresholdin code if needed
- Default: <600 = Wet, β₯600 = Dry
 
- Servo not moving? Check power supply
- False triggers? Adjust ultrasonicDistanceCM
- Wrong waste detection? Calibrate moisture threshold
- src/smart_dustbin.ino- Main Arduino code