My dog is always eating the food whenever I eat downstairs at my desk. Hell never eat it when your there, but the second you leave he pounces. The idea behind this project was to make a way I could automatically open and close a garbage can so I could throw stuff away while still sitting down.It works using a photon 2, microcontroller and motor. I would definitely recommend using a stronger motor, because mine is extremely slow, taking almost 10 minutes to fully open and close. I also would recommend using https://serial.huhn.me to track the numbers output by the sensor.
It works by using the pressure sensor to send a signal to the motor controller if the pressure value was high enough. The motor would than spin for a set amount of time in one direction to open the trash can, and than spin the other direction to close it. Since my motor was so slow I decided to take the lid of a candle and attach it to the motor to act as a gear to speed up the process a little bit.
You will see in the video of my working project, that I have to touch it a lot, this is because the weight of the lid pulls down on the candle lid I used, and over time the string started to fall off and completely close the trash can. This could be solved by using a stronger material, and I could've also been a little more percise when drilling the hole.
Use external power for the motor controller, and keep in mind you may need to change sensor pins every now and again. Also keep in mind if you use a different motor, you will have to change the amount of time the motor spins for.
Comments
Please log in or sign up to comment.