SortPulse ESP32 Smart Dry-Wet Waste Segregation Bin
About this project
SortPulse is a self-sorting smart dustbin that classifies waste as DRY or WET the instant it is placed on its sensing tray, then physically routes it into the correct compartment — no manual segregation, no separate bins to choose between. An HC-SR04 ultrasonic sensor watches the tray for an object; once something is detected and allowed 500ms to settle, a capacitive moisture probe embedded in the tray surface takes 15 oversampled analog readings, median-filters them to reject noise, and compares the result against a two-point calibrated threshold (dry-air reading vs. wet-sample reading). Based on the classification, an SG90 micro-servo smoothly tilts the tray toward the dry chute or the wet chute using a non-blocking, one-degree-per-step sweep (never an instant jerky rotation), holds briefly for the waste to slide off, then returns to a level, neutral sensing position. Two additional HC-SR04 sensors continuously monitor fill level inside the dry and wet compartments and raise a buzzer + on-screen warning past 85% full. The ESP32 joins your WiFi network and hosts a live browser dashboard (fetch()-polled JSON, refreshed every second) showing current state, last sort result, live moisture ADC reading, both bin fill percentages, and running dry/wet counts — alongside a local SSD1306 OLED for at-a-glance status without a phone. The project covers five CSE-relevant concepts: capacitive dielectric sensing vs. resistive probes, ultrasonic time-of-flight distance measurement, non-blocking servo motion via millis()-gated angle stepping, a finite state machine (IDLE→SETTLING→SENSING→SORTING→RETURNING→COOLDOWN) for a physical sequencing task, and an ESP32 WebServer JSON API consumed by JavaScript. Build time: 4 hours.
What you get
- Complete, commented source code
- Full components list with quantities
- Pin-by-pin wiring guide and connection table
- Step-by-step upload and testing guide
- Project report (.docx, IEEE style)
- Presentation slides (.pptx)