Smart Waste Segregation System

Published May 15, 2026
 23 hours to build
 Intermediate

Our Smart Waste Segregation System automatically classifies waste into dry, wet, and metal categories using sensors and an ESP32 microcontroller. By reducing manual sorting and improving recycling efficiency, it provides a low cost and practical solution for cleaner waste management.

display image

Components Used

28BYJ-48 Stepper Motor
Power Management IC Development Tools Gear Stepper Motor Driver Pack
1
ESP32 development board
Main microcontroller used for sensor data processing and motor control.
1
IR Sensor
Detects the presence of waste object at the input.
1
Inductive Metal Sensor
Detects metallic waste materials.
1
Rain Sensor
Detects wet waste using moisture sensing.
1
ULN2003 driver module
Motor driver used to control the stepper motor.
1
Servo Motor
Controls the flap mechanism for dropping waste into the selected bin.
1
5v power supply
Provides power for motors and sensors.
1
Dustbin Prototype Structure
Physical structure containing bins for dry, wet, and metal waste segregation.
1
Description

The aim of this project was to develop an automated waste segregation system that can identify dry, wet, and metal waste and direct it into the correct bin automatically. The system was built using an ESP32 microcontroller, sensors, and motor mechanisms.

Step 1: Planning and Component Selection

We first planned the working of the system and selected suitable components for detection and movement. The main components used were:

  • ESP32 development board
  • IR sensor
  • Metal sensor
  • Rain/moisture sensor
  • 28BYJ-48 stepper motor with ULN2003 driver
  • Servo motor
  • 5V power supply
  • Dustbin prototype structure

These components were chosen to create a simple and cost-effective automated solution.

Step 2: Hardware Setup

The physical prototype was assembled with separate compartments for dry, wet, and metal waste.

The IR sensor was placed near the waste entry point to detect object insertion. The metal and moisture sensors were used to identify the type of waste. The stepper motor was connected to rotate the dustbin platform, while the servo motor controlled the flap mechanism for dropping waste into the selected bin.

All components were properly connected to the ESP32 with common grounding and stable power supply.

Step 3: Programming

The system logic was programmed using Arduino IDE.

The code continuously reads sensor values. Once waste is detected:

  • The IR sensor detects the object
  • The metal sensor checks for metallic waste
  • The moisture sensor identifies wet waste
  • Based on the result, the stepper motor rotates to the correct bin
  • The servo motor opens the flap to drop the waste

Libraries such as ESP32Servo and Stepper were used for motor control.

Step 4: Testing and Calibration

The prototype was tested using different waste materials such as metal objects, wet waste, and dry waste.

Sensor sensitivity and threshold values were adjusted for accurate detection. The motors were also tested to ensure smooth movement and correct positioning.

Step 5: Final Working

When waste is inserted into the system, it is automatically detected, classified, and directed into the appropriate bin. This reduces manual effort, improves hygiene, and makes waste segregation more efficient.

Codes

Downloads

ciruit diagram Download
Comments
Ad