SmartDustBin2
This project will be Improve base on the previous project that I found on instructable. Originally, the cover of the bin was stick on the top using hot glue. This means that there can be a trash bag that can fit into the bin. This will make the bin disgusting overtime. In order to fix this problem, I need to create a new top that can be remove each time so there can be a trash bag in the bin, leaving with no mess.
Second, perhaps that you are too far away to activate the bin, there is no way the bin will open because it need someone around to activate the censor. To fix this issue, I am going to add a button that can activate the trigger despite to are too far away to activate the bin.
Original Source:
Supplies
1. Trash Can
2. Plastic Cardboard
3. 1 Servo Motor
4. Mother Board
5. Driller
6. Twist Drill Bit
7. Step Drill Bit
8. Hot Glue
9. String
10. Tape
11. Power Bank
12. Utility knife
13. 2 Button
14. Measurement Tool
15. Distance Censor
16. 10 dollar Coin
17. A Computer
18. Information Transfer Wire
19. Trash Bag
20. 12 Regular Wire
Find a Bin and Drill Two Hole on It
Find a regular trash can and measure the size of the distance censer. the measurement of the two circle is about 1.6x1.6 cm. The distance apart is about 1 cm. Draw the guideline on the dust bin. Use the driller to drill two small hole on the dust bin first as the guide hole, After finish drilling the two small hole, make the hole wider until the width reach 1.6x1.6 cm which the distance censer can fit into. make sure the two hole aren't too big, it need to be just the right size to secure the distance censer to make sure it will not fall apart.
Make a Removable Top (1)
Step 2.1: Measure the size of the bin's diameter
Step 2.2: Trace the distance you measure of the diameter onto a big piece of plastic cardboard
Step 2.3: After you trace the line onto the plastic cardboard, cut the part out with 2 cm of thickness
Step 2.4: Place the bin onto the plastic cardboard and trace a circle around the bin and then cut out the circle you trace
Step 2.5: Find the center of the plastic cardboard circle you cut out and trace a line across make sure you follow the hollow part of the plastic cardboard
Step 2.6: Cut the line you just trace
Step 2.7: Stick some tape across the cut line so the circle can flip up
Step 2.8: Measure the length the part of the top that will not flip, take the previous cardboard you cut out base on the diameter of the dust bin
Step 2.9: Cut one side of the hollow part of the cardboard so it is flexible, do not cut the whole thing through
Step 2.10: Stick the side that is not cut onto the part of the top that will not be flip
Step 2.11: make some more flexible plastic cardboard and stick them onto the button of the bin to make sure the top will not be warbling back and fourth after it is place on top of the bin
Make a Removable Top (2)
First, drill a small hole that the string can go through on the part that will flip while activate. Keep it close to the bending point but not to close or the device will not work. Second, drill another hole where the wire of the servo motor can go through. Keep it closer to the motor or the appearance won't look good during presentation. Third, drill the last hole on the back of the top. This is where wire of the button will go through. Lastly, you stick the 10 dollar coin under the removable top. It need to stay closer to the edge so the can will "flip down"
Servo Motor Attachment
Get out your servo motor, put some hot glue underneath the motor and stick it onto the either side of the removable top. In my case, I am sticking it on the left because the place where the motor will spin will be in the front. this can make the flip process more fluent. After you finish sticking the motor, take the wire and poke it through the hole you previous that is closer to the motor. Last, you take a piece of plastic with small little hole on it, cut off half of it and stick it onto the motor. Cut off some string and place the string through the small hole on the plastic, pick the one that is closer to the flipping connection. Stick the other side of the string into the small hole you previous drill on the flipping side. Place a round washer underneath the removable top and, you need to make sure the string also go through the hole as well. After that, you tie a knot, make sure it's as tight as possible.
Programming
I make some changes with the program. First, I add a button setting so people an open the bin other than using the distance censer. Second, I've shorten the distance where the censer will detect. It's because every time I get close, it will accidentally open the bin even though I am not trying. Third, I change the degree that servo motor will spin. While I am doing the test, I discover that the bin can close it it reach a specific angle.
Downloads
Wiring
Additional Button
In some situation, we can use our hand to activate the bin which is why I am adding two extra button to make sure the bin can be open at any possible situation. For the button on the bottom of the bin, I carved out two pieces of small plastic cardboard that was define as trash. I trace the line onto the cardboard base on how round the bin is and drill a hole that the wire of the button could fit. On the top of the bin (which is removable), I add another button and also, I stick the wire of the button into the hole that I previous carved out. I has to be perfect or the wire will be flying around and make a mess.
Testing
This is the final result