An advanced, IoT-enabled smart waste management system designed for smart cities, hospitals, and corporate environments. This project automates waste disposal with a touchless lid mechanism and monitors the bin's fill level in real-time to prevent overflow.
- Touchless Operation: Automatically opens the lid when a user's hand is detected, ensuring hygiene.
- Real-Time Level Monitoring: Continuously measures the waste level inside the bin.
- Automated Alerts: Triggers a buzzer and visual LED warnings when the bin reaches maximum capacity (85%).
- IoT Integration: Connects to the Blynk Cloud dashboard to display live fill percentages and push notifications.
- Microcontroller: ESP32 (Wi-Fi Enabled)
- Sensors: 2x HC-SR04 Ultrasonic Distance Sensors
- Actuator: SG90 / MG995 Servo Motor
- Indicators: Red LED, Green LED, Active Buzzer
- Platform/Software: Arduino IDE, C++, Blynk IoT Platform
Smart-Dustbin-Embedded-System/ ├── src/ │ └── main/ │ └── main.ino # Complete ESP32 Source Code ├── simulation/ │ └── wokwi-project.json # Virtual simulation environment config ├── circuit_diagram/ │ └── schematic.png # Hardware connection diagram ├── docs/ │ └── README.md # Project documentation └── .gitignore
| Component | Pin / Wire | ESP32 Pin |
|---|---|---|
| Lid Sensor (HC-SR04) | TRIG / ECHO | D4 / D5 |
| Level Sensor (HC-SR04) | TRIG / ECHO | D18 / D19 |
| Servo Motor | Signal (PWM) | D21 |
| Buzzer | Positive (+) | D22 |
| Red LED (Full Alert) | Anode (+) | D23 |
| Green LED (Normal) | Anode (+) | D32 |
(Note: All VCC/5V pins connect to ESP32 VIN, and all GND pins connect to ESP32 GND.)
- Go to Wokwi and create a new ESP32 project.
- Add
BlynkandESP32Servoin the Library Manager. - Wire the components as per the table above.
- Paste the
main.inocode, update your Blynk Credentials, and click Play.
- Install the Arduino IDE and set up the ESP32 Board Manager.
- Install the
BlynkandESP32Servolibraries. - Connect the physical components using jumper wires.
- Update
BLYNK_TEMPLATE_ID,BLYNK_AUTH_TOKEN, and Wi-Fi credentials in the code. - Select the correct COM port and click Upload.
- Empty Bin: Green LED ON, Red LED OFF, Buzzer OFF.
- Hand Detection (<20cm): Servo opens the lid to 90 degrees and closes after a 3-second delay.
- Bin Full (>85%): Red LED ON, Green LED OFF, Buzzer ON, Blynk App receives a Push Notification.