Night Use Trash Can

by st101247 in Circuits > Arduino

128 Views, 0 Favorites, 0 Comments

Night Use Trash Can

IMG_1550.JPG

Everything is getting better and better ? But why not your Trash can ? This trash can Opens and Closes its own lid if it sees any Rubbish or your hand or body in front of you. You will just need to bring the trash or anything you want to throw in front of it and it'll open automatically and will wait for you to put it more trash than after a certain delay it'll close automatically. Watch the video to see what did it look like and how do it closed.It can be using it at night

Supplies

1.Arduino (any board)In here is Leonardo

2.Servo motor (i'm using micro servo S03T STD)

3. HC-sr04 ultrasound sensor

4. Servo arms

5. Card Board (just a little piece)

6. Trash Can

7.Light

8. speaker

9.Alligator clip

Draw Your Own Circuit

截圖 2021-05-10 下午11.01.40.png

The circuit is very easy. As the servo and sonar only takes less power you can just power them directly from Arduino 5v source.

Servo data (yellow) to pin 3 of Arduino Servo vcc (red) to 5v of Arduino Servo ground (black/gray) to Arduino Gnd Sonar sensor trig to Arduino 6 Sonar sensor echo to Arduino 5 Vcc to Arduino 5v Gnd to Arduino Gnd

And the add the lights to gnd and 4 pin .

Step 2: Connect to Servo Arm

IMG_1499.JPG

Just take this servo arm and connect it to a long card board piece with hot glue or other glues. You can also use Ice Cream stick instead of Card Board. Then connect the long servo arm to servo motor.Use thermoplastic to stick the wood stick on the servo.

Add Sonar Sensor

IMG_1501.JPG

Connect he sonar sensor facing up to the Bin like this. And put it to check the sensor is good about it.And put it in your box.

Step:4 Code

截圖 2021-05-10 下午10.57.49.png

Step 5: You Are Done

IMG_1550.JPG

Just see if there is any problem and dig holes put it in the box.If the ultra sensor is too sensitive and you can add some wood piece at the top to not make it to sensitive.

Step:6 Finish Product

IMG_1554.JPG

Finished your final product

Arduino