Skip to content

dingggjc/smart-dustbin-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Smart Dustbin - Automatic Waste Segregation System

An intelligent dustbin that automatically detects and segregates wet and dry waste using Arduino.

πŸš€ Features

  • Automatic object detection with ultrasonic sensor
  • Wet/dry classification using moisture sensor
  • Servo-controlled compartment opening
  • Real-time Serial monitoring

πŸ“‹ Components

  • Arduino Uno
  • HC-SR04 Ultrasonic Sensor
  • Soil Moisture Sensor
  • SG90 Servo Motor

πŸš€ Quick Start

  1. 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
  2. Software Setup

    • Install Arduino IDE
    • Open src/smart_dustbin.ino
    • Select: Tools β†’ Board β†’ Arduino Uno
    • Select correct COM port
    • Click Upload
  3. Calibration (Important!)

    • Test moisture sensor with dry and wet items
    • Adjust wetWasteThreshold in code if needed
    • Default: <600 = Wet, β‰₯600 = Dry

πŸ› Troubleshooting

  • Servo not moving? Check power supply
  • False triggers? Adjust ultrasonicDistanceCM
  • Wrong waste detection? Calibrate moisture threshold

πŸ“ Files

  • src/smart_dustbin.ino - Main Arduino code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages