Automatic Waste Segregation System

by cakee in Circuits > Arduino

31 Views, 0 Favorites, 0 Comments

Automatic Waste Segregation System

IMG_20250128_150135.jpg

An automatic waste segregation system built using Arduino, an ultrasonic sensor, a soil moisture sensor, and a servo motor. The system detects waste, identifies whether it is wet or dry, and automatically directs it into the appropriate bin.

Supplies

  1. Arduino Uno
  2. Ultrasonic Sensor (HC-SR04)
  3. Soil Moisture Sensor
  4. Servo Motor
  5. Cardboard
  6. Jumper Wires
  7. Breadboard
  8. Battery / Power Supply / Power Bank

Hardware Setup

Assemble the waste segregation system using cardboard and mount all the components as shown in the images below.

Main Components

  1. Ultrasonic Sensor – Detects the presence of waste.
  2. Soil Moisture Sensor – Identifies whether the waste is wet or dry.
  3. Servo Motor – Directs the waste into the appropriate bin.
  4. Arduino Uno – Controls the entire system.

Connections

Ultrasonic Sensor (HC-SR04)

  1. VCC → 5V
  2. GND → GND
  3. Trig → D9
  4. Echo → D10

Soil Moisture Sensor

  1. VCC → 5V
  2. GND → GND
  3. AO → A0

Servo Motor

  1. Signal → D6
  2. VCC → 5V
  3. GND → GND

Power

  1. Arduino powered using a Power Bank


Arduino Code

Upload the code using the Arduino IDE.

The Arduino reads data from the ultrasonic and moisture sensors. Based on the moisture level detected, the servo motor rotates and directs the waste into the corresponding collection bin.

Note: Since this project was built several years ago, the original source code is no longer available. The code provided below is a sample implementation that demonstrates the same working principle. Pin numbers and moisture threshold values can be adjusted according to your hardware setup.

Working

IMG_20250128_134204.jpg
IMG_20250128_150148.jpg

When an object is placed into the system, the ultrasonic sensor detects its presence and initiates the sorting process.

The moisture sensor then checks the moisture content of the waste. Based on the sensor reading, the servo motor rotates to guide the waste into either the wet waste bin or the dry waste bin.

This allows waste to be sorted automatically without manual intervention.