OPEN_ROBO_HUB ← Back to Dashboard
Project Blueprint 02 // Advanced Eco-Automation

Smart 4-Compartment Waste Segregator

An eco-focused automated sorting hub using moisture metrics and structural color analysis arrays to segregate plastics, compostable organics, and dry scrap via high-torque servo sweeps.

📋 ESP32 & Servo Control Topology

Sensor/Actuator Pin Vector Target Node Pin
Moisture Sensor Analog Out ====> ESP32 GPIO 34 (ADC)
Color Sensor SDA (I2C) ====> ESP32 GPIO 21
Color Sensor SCL (I2C) ====> ESP32 GPIO 22
Flap Sorting Servo PWM ====> ESP32 GPIO 13 (PWM)

💻 Intelligent Automation Firmware

#include 

const int moisturePin = 34;
const int servoPin = 13;
Servo chuteServo;

void setup() {
  Serial.begin(115200);
  pinMode(moisturePin, INPUT);
  chuteServo.attach(servoPin);
  chuteServo.write(0); // Neutral Position
}

void loop() {
  int moistureRaw = analogRead(moisturePin);
  Serial.print("Moisture Level Array Matrix: ");
  Serial.println(moistureRaw);

  if(moistureRaw > 2500) { 
    Serial.println("Material Classification: Wet Waste / Compostable");
    chuteServo.write(45);  // Route to Compartment 1
    delay(2000);
  } else {
    Serial.println("Material Classification: Dry / Recyclable Array");
    chuteServo.write(135); // Route to Compartment 2
    delay(2000);
  }
  chuteServo.write(0); // Reset position
  delay(1000);
}