Introduction: Turn a Dustbin Into a Smart Dustbin With LinkitONE

Picture of Turn a Dustbin Into a Smart Dustbin With LinkitONE

Want to make a cool science project? Want your dustbin to open automatically when you are near to it so you can throw items easily? Then you are at the right place!

Here I’ll show you how to make a basic dustbin that automatically opens up when any kind of motion is detected.

Step 1: What Do You Need?

Picture of What Do You Need?

1 . LinkitONE board

2. Servo motor

3. Breadboard

5. PIR motion sensor

6. Battery pack

Step 2: Looking Into the Dustbin

Picture of Looking Into the Dustbin

Look into the dustbin and see that where can you fix a motor that opens the head of the dustbin. I found a foot-opener and I’ll attach the servo motor there.

Step 3: Assembling Up the Servo Motor

Picture of Assembling Up the Servo Motor

Now assemble your servo motor as shown in the images.

Carefully do it so it is permanently tight enough.

Step 4: Attaching Motor to the Dustbin

Picture of Attaching Motor to the Dustbin

Now attach a servo motor to the foot-opener of the dustbin using a servo motor. When the servo motor will rotate, the dustbin will automatically open its cap.

Step 5: Attaching Motion Sensor

Picture of Attaching Motion Sensor

Now attach the PIR motion sensor to the dustbin just as shown in the image.

Pin connections: PIR to LinkitONE

VCC – 5V



After this we’ll write some code for the sensor that activates the motor when motion is detected!

Step 6: Writing Some Code

The code is really simple here!

We just need to read the motion sensor, if the motion is detected, the servo motor will start.




Servo myservo;

void setup() {


pinMode(8, INPUT);



void loop() {

if(digitalRead(8) == 1)











Step 7: Finalizing It!

Picture of Finalizing It!

Now attach the board to the dustbin tightly and finalize the project!

Check for all the connections that they are correct.

Once done, you are ready for testing!

Step 8: Now Test It Out!

Picture of Now Test It Out!

Take a balled-paper near dustbin and see it open up automatically!

Congrats! you've made your own smart dustbin!


hakim1 (author)2016-07-27

can i use adruino

AndreaC86 (author)2015-12-26

can i use also arduino?

Rinim (author)2015-12-14

Nice job,.

DIY Hacks and How Tos (author)2015-12-12

This has got to be the coolest trash can that I have ever seen.

About This Instructable




More by ssarthak598:DIY Smart Home Monitoring BottleArduino Video Game (The DIY Gift)Is My Fridge Door Open?!
Add instructable to: