OpenTrashCan connects to your wifi network and sends you an email when its full, talks to you, and can even be controlled from the OpenTrashCan App for Android phones. See it in action here:

Want to buy one? Sign up for the preorder list here: OpenTrashCan

This project started out serious, then I kept thinking of funny things I wanted to make it do. The only way I could think to present it was a corny infomercial style video. Open Trash Can uses the Arduino Leonardo micro-controller. The trash can uses one range sensor in the front that opens the lid when it detects motion. There is a second range sensor in the back that detects the fill level of the trash can. Speech is played using an mp3 shield, through computer speakers. Emails are sent using a wifi shield shied and Temboo.

You need:

A cheap trash can (this one is from Target)

Computer Speakers

An Arduino Leonardo

An Iduino Yun Shield

An Elechouse MP3 Shield

Googly Eyes (don't skimp on these, get the good ones)

A 4GB SD Card

A Micro Servo Motor

2 HC-Sr04 Range Sensors

Some Jumper Wires

A Hot Glue Gun

A drill

Some wire cutters or heavy duty scissors

A Mini Breadboard

An HC-06 Bluetooth Module

A 9V battery or Wall Adapter (to power the Arduino board)

Step 1: Setup the Servo Motor

The lid moves up and down with a micro servo motor. The first step is to set the servo motor into the correct position before it is attached to the trash can. In this case we want to set it to 180 degrees.

Follow the connections in the first picture. Using male to male jumper wires connect the servo ground (black or purple) to the ground on the Arduino board, the power wire (red) to the 5v pin, and the control wire (yellow or orange) to pin 9 on the board.

Open up the Arduino IDE and upload this code to your Arduino board:

#include <Servo.h>

Servo myservo;  // create servo object to control a servo

void setup() {
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object

void loop() {

myservo.write(180);  // sets servo to 180 degree position

Dear brother i need.the code t&ocirc; open the lid activated by ultrasonic sensor please
Will it work with this<br>http://m.aliexpress.com/item/1725105281.html?aff_click_id=871fab4d9ff6406d9d99dec1ea6703a7-1459103573300-06796-UneMJZVf&amp;aff_platform=y<br><br>And this?<br>http://m.aliexpress.com/item/32374771895.html?aff_click_id=871fab4d9ff6406d9d99dec1ea6703a7-1459103573300-06796-UneMJZVf&amp;aff_platform=y<br><br>Thank you in advance.<br><br><br>
<p>A trash can that tells you when it's full? It's only useful if you're blind. Otherwise, if you really wanted to make a smart trash can, then make it compress the trash when it's full. Then, when it can compress no more, it should send you an SMS. That would make it somewhat smart.</p>
<p>Not a bad idea, I am anxiously awaiting the release of your smarter version...</p>
<p>I love it. I can't tell you how many times I would love to have the lid open because my hands were full of goo I didn't want on the lid. And the ability to spook the dog is quite helpful until they are trained. And the app can nag the kids to take out the trash rather than me. Next, I'd love to see it have a sensor that could report when it seriously stinks. Thanks for taking the extra time to make the demo video fun to watch. </p>
<p>Thanks so much! Maybe V2.0 I will add some more sensors. </p>

About This Instructable




Bio: My name is Matthew and I attend the University of Pittsburgh. Currently I am a senior, going for a bachelors in Information Science with a ... More »
More by matthewh8:How to Markerless Augmented Reality Tutorial: SLAM Make a Killer Augmented Reality App How to Markerless GPS Based Augmented Reality. 
Add instructable to: