Do you think trash bins can be smart? Have you ever seen a trash bin that senses when you’re going to put trash in it and keeps track of how much trash does it hold? Is it even a ‘thing’, is it possible? Well, if it wasn’t before, it sure is going to now, with the help of two ultrasonic sensors, one servo motor, and of course your dear ol’ evive. That’s it; that is all that it will take to transform the trash bin in your home into a smart bin! Waste management made easy and smart with an amusing touch of DIY!
So, do you want to stick to your old bin, or transform it into a smart one?
|Image||Component||Quantity||Available in Kit|
|Metal Servo Motor and Accessories||1|
|Male to Female Jumper Cable 20cm||Few|
Step 1: Making
Then take the Metal Servo motor and Glue it at the back of the Trash Bin where the opening/closing mechanism of the bin was held.
Now attach the servo horn on top of the servo head.
Take a small thread whose one end is tied with the servo head and other to the opening/closing mechanism of the bin.
Step 2: Connection with evive
Step 3: Logic
The Ultrasonic at the front will sense your presence.
Thus, as you go forward to throw the trash into the bin, the sensor sends the data to evive.
In return, evive instructs the servo, causing the servo horn to turn downwards, pulling the thread along it. This returns in the opening of the lid of the dustbin.
The servo horn stays downwards for 3 seconds, before returning to its original position closing the lid.
The servo on the lid is used to sense the content quantity into the bin.
Once the percentage reaches 90%, the inbuilt buzzer in evive triggers, indicating that it’s time to empty the bin.
If you ignore the message and try putting more trash in it, the sensor in front has been disabled. And thus, you no longer will be able to put trash in it.
Step 4: Code
After completing the connections, upload the following code to evive.
Step 5: Conclusion
With this, your DIY smart trash bin is ready! Manage waste smartly and keep your abode clean!
Connect the two Ultrasonic Sensor and the Metal Servo to evive as shown.
|Arduino Code for Smart Trash Bin||Download|