No Touch Lid

by rcordio in Circuits > Arduino

69 Views, 0 Favorites, 0 Comments

No Touch Lid

Screenshot 2024-03-28 at 3.43.46 PM.png

For this project, I made a model of a no touch lid trashcan. This simulates how to use a trashcan that you do not need to touch and it uses an Arduino UNO circuit board to detect when a hand is coming.

Supplies

knife.jpeg
servo sweep.jpeg
styrofoam.jpg
ultrasonic.jpeg
wires.jpeg
Screenshot 2024-03-28 at 3.55.36 PM.png
Screenshot 2024-03-28 at 3.56.17 PM.png
breadboard.jpeg
  1. Styrofoam sheets
  2. X-ACTO knife
  3. Duct tape
  4. Arduino UNO
  5. Wires
  6. Breadbboard
  7. Ultrasonic Sensor
  8. Servo Sweep

Upload the Arduino Code

Screenshot 2024-03-28 at 4.03.34 PM.png

First, install the Arduino app on your computer and connect the Arduino Uno board using the thick blue wire. Then, upload the code below.

Assemble the Circuit

Screenshot 2024-03-28 at 4.13.18 PM.png

Ultrasonic Sensor:

  1. Connect VCC to Arduino's 5V
  2. Connect GND to Ardunio's GND
  3. Connect Trig to Arduino's pin #9
  4. Connect Echo to Ardunio's pin #10

Servo Sweep:

  1. Connect Yellow wire to Ardunio's pin #3
  2. Connect Black wire to Arduino's GND
  3. Connect Red wire to Arduino's 5V

Power Supply:

  1. Positive Terminal (red line on Breadboard) to Arduino's 5V
  2. Negative Terminal (blue line on Breadboard) to Arduino's GND

Assemble Your Trash Can

Screenshot 2024-03-28 at 4.26.25 PM.png

Making the box:

  1. Cut the styrofoam into six 8x8 inch squares. Glue five of the squares into a box with no lid.
  2. Duct tape the back of the final square to the top of the box.

Adding the circuits:

  1. Tape the Servo Sweep Motor on the back and left side of the box with the bottom of the motor facing out.
  2. Tape the Ultrasonic Sensor to the front of the box with a slight upward angle.

Test Your Trashcan!

example.jpeg

Congratulations! You have completed your model of an automatic trashcan. Upload your code and test it out!