Welcome to Kerala Project Center.
Image: Rubbish bins in Adelaide 01.jpg by AlphaLemur via Wikimedia Commons, CC0
Touching a dustbin lid to open it defeats some of the hygiene benefit of disposing waste in the first place, especially in shared or public spaces.
This project automates lid opening using an ultrasonic or IR sensor that detects an approaching hand, triggering a servo motor to open the lid without any physical contact, and close it again automatically once the hand moves away.
// Simplified smart dustbin lid control - Arduino #includeServo lidServo; #define TRIG 9 #define ECHO 10 unsigned long lastDetected = 0; long readDistanceCM() { digitalWrite(TRIG, LOW); delayMicroseconds(2); digitalWrite(TRIG, HIGH); delayMicroseconds(10); digitalWrite(TRIG, LOW); return pulseIn(ECHO, HIGH) * 0.034 / 2; } void setup() { pinMode(TRIG, OUTPUT); pinMode(ECHO, INPUT); lidServo.attach(6); lidServo.write(0); // closed } void loop() { if (readDistanceCM() < 20) { lidServo.write(90); // open lastDetected = millis(); } else if (millis() - lastDetected > 3000) { lidServo.write(0); // close after 3s idle } }
Monday - Saturday: 9:00 AM - 5:00 PM
Sunday: Not Working
2nd Floor, Comptron Arcade, Kallattumukku,
Thiruvananthapuram, Kerala 695012
+91 9633118080