How many times do you have some gooey, oily, or sticky mess in your hands when you’re cooking and need to throw it into the trash can, but you have one of those inside-the-cabinet mounted trash bins that’s currently closed?
(a) put the mess down in the sink and wash or wipe off your hands before opening the trash bin
(b) use your foot to try to pull open the trash bin, and probably fall down or drop what you’re holding in the process
(c) get the mess all over the handle and wipe it off later
Yep, you’re probably thinking “first world problems, they require overly convoluted technological solutions…”, so I present another option:
(d) ask Alexa to open the trash bin for you
My solution started by hacking a Kasa HS100 Smart Plug to allow remote actuation of the on/off button. A screw under the the label is removed and the case is carefully snapped open. Then a couple internal screws are removed and the circuit board is freed from the case. The terminals that are closed when the momentary switch on the board is actuated were found and a couple thin wires were added. The wires were spliced to a thicker gauge wire and a dab of hot glue was added to hold things together before being routed out a hole drilled into the side of plug’s case. Now an external momentary microswitch can do the same thing as pressing the switch on the front of the plug.
Thingiverse post was used. The gearbox as designed was quite noisy and some of the gears were a somewhat wobbly on their shafts so I modified the design to add some small ball bearings to the gears in question, which made things a lot quieter. I put my modified gear STL files on Thingiverse too. The gearbox’s motor runs on about 9 volts DC supplied by a transformer.
Amazon Echo is simply programmed with a routine that recognizes the spoken phrase “open trash can” and turns on the HS100. The HS100 powers the transformer and the gearbox begins to turn. The turntable goes around and pushes the trash bin open. When the microswitch is actuated by the blade, the HS100 turns back off again just as a the mechanism completes its revolution. As a safety measure in the unlikely event the switch isn’t actuated for some reason (the switch goes out of alignment, the switch breaks, etc.), the Echo routine sends an ‘off’ command to the HS100 after 15 seconds – this would prevent the turntable from spinning endlessly if the switch ever failed.
Here’s a video of the whole thing operating, along with some views of how the mechanism works.