Introduction: No Touch Lid

During the COVID-19 Pandemic, germs everywhere, especially on trash cans. If you have to throw away a used tissue, you would need to lift the lid of the trash to throw a used tissue away. That is why I have created a "No Touch Lid" using my Arduino Starter Kit, to minimize the spread of germs.

Supplies

Step 1: Making a Box

  • Cut out 6 5x5 squares from the poster board with an exacto knife
  • Hot glue 5 of the squares together, leave one of the squares aside and the top of the box opened


  • For the top of the box, use duct tape to make a hinge for the lid on the box.

Step 2: Writing a Program

  • Using Chat GBT, ask it to write a Program:

"Write a code using a sor4 ultrasonic detector and an uno microcontroller with a sg 90 servo motor, have it rotating at 90 degrees when an object is detected less than 5 inches when the object disappears the servo should rotate back to 0"

  • Chat GBT should give you a program that you will need to copy and paste into your Arduino IDE (The code is very important, so you know how to do all the wiring.)

Step 3: Follow the Program

  • Now you will need to grab your tools (Arduino Uno Controller Board, Breadboard Jumper Wires, Female-to-Male Dupont Wires, Tie-Points BreadBoard, USB Cable, Ultrasonic Sensor and Servo Motor SG90)


  • Using the USB Cable, plug it into the Arduino Uno Controller Board and your Computer

Step 4: Wiring the Ultrasonic Sensor

  • Grab the Ultrasonic Sensor and Female-to-Male Dupont Wires
  • Take the yellow wire and connect it to the Ultrasonic Sensor in the "Trigger" slot
  • Take the other end of the yellow wire, and plug it into the Control Board in pin 2
  • Then, take the orange wire and plug it into the Sensor in the "Echo" slot
  • Take the other end of the orange wire and plug it into the Control Board in pin 3


  • Then take the red wire, and plug it into the ____ Slot
  • Plug the other end into the Tie-Points Breadboard, on the red side
  • Then Take the black wire, and plug it into the "GND" Slot
  • Take the other end and plug it into the Tie-Points Breadboard, on the Blue side

Step 5: Wiring the SG90 Servo

  • Grab the SG90 Servo and Breadboard Jumper Wires


  • Take an orange wire, and connect it to the orange wire that is connected to the Servo
  • Then take the other end of the wire into the Control Board in pin 9


  • Take a red wire, and connect it to the red wire that is connected to the Servo
  • Then take the other end of the wire and plug it not the Tie-Points Breadboard on the red side


  • Take a black/brown wire and connect it to the black/brown wire that is connected to the Servo
  • Then take the other end of the black/brown wire and plug it not the Tie-Points Breadboard on the blue side

Step 6: Wiring the GND and 5V

  • Grab a red and white Breadboard Jumper Wires


  • Take one end of the red wire, and plug it into the "GND" on the Control Board
  • Then, take the other end of the red wire and plug it into the blue side of the Tie-Points Breadboard


  • Take the white wire, and plug it into the "5V" on the Control Board
  • Then, take the other end of the white wire and plug it into the red side of the Tie-Points Breadboard

Step 7: Finishing the Box

  • Take your Box, Exacto Knife, Ultrasonic Sensor, and SG90 Servo


  • Attach the Ultrasonic Sensor to the front of the box/the opening angled up a little bit


  • Take the Exacto Knife, and cut a little opening for the Servo to fit in, on one side of the box
  • Tape down the Servo into the slot you made to make sure it is secured

Step 8: Verify and Upload

  • Copy and paste the program Chat gives into the Arduino IDE
  • Once the program is in the IDE, click on the green check mark in the top left hand corner to verify the code
  • After the code is verify, click on the green arrow in the top left hand corner to upload the program to the Arduino Uno

Step 9: Testing the No Touch Lid

  • Lastly, test the final product


  • Place your hand in front of the Sensor (The lid should go up and stays up)
  • After the lid is up, then remove your hand from the Sensor, which will close the lid


  • If it doesn't work, go back and follow the steps and program again to make sure you did it correctly!