People are increasingly improving various household things. Robots vacuum cleaners, smart refrigerators, etc. But today we will make a trash that will automatically open when we want to throw something into it. Of course, such trash cans of this type exist on sale, but their price is poor. Our trash will be much cheaper, but the functionality will not be inferior to the original. Let's get started!
Of the components we need:
• Simple trash bin or container flap
• Arduino Uno / nano
• Servo drive
• Ultrasonic distance sensor HC-SRO4
• Compartment for three finger batteries
• Case
From the tools:
• Soldering iron and soldering accessories
• Thermo adhesive
Having all the components, consider the assembly diagram.
Now, armed with a soldering iron, solder all the wires according to the scheme.
Let's get down to the hull. We mark on it all the places where holes are needed.
And we drill them.
We place all the components in the case and fasten using thermal glue.
We also attach a servo drive.
Now let's make a mechanism to open the trash.
We attach one end to the servo drive, the other to the trash.
All! The technical part is ready to move on to the software, but first we will consider the operation algorithm.
After studying the algorithm, you can download all the source code and fill them with arduino.
Congratulations! Our trash can with hinged lid is ready.