No Touch Lid
![IMG_5980.jpeg](/proxy/?url=https://content.instructables.com/FTG/7OCE/LUGYMVSG/FTG7OCELUGYMVSG.jpg&filename=IMG_5980.jpeg)
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
![IMG_5990.jpeg](/proxy/?url=https://content.instructables.com/FW3/3F8V/LUGYMVVG/FW33F8VLUGYMVVG.jpg&filename=IMG_5990.jpeg)
![IMG_5982.jpeg](/proxy/?url=https://content.instructables.com/FP9/5N3E/LUGYMW0O/FP95N3ELUGYMW0O.jpg&filename=IMG_5982.jpeg)
Making a Box
![8678FFCD-1A4B-43A0-B212-58798C59544E.jpeg](/proxy/?url=https://content.instructables.com/FTB/97BR/LUIE3NQO/FTB97BRLUIE3NQO.jpg&filename=8678FFCD-1A4B-43A0-B212-58798C59544E.jpeg)
- 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.
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.)
Follow the Program
![B93316FB-A793-4773-A46D-4AC6683EE3B6_1_201_a.jpeg](/proxy/?url=https://content.instructables.com/F9Z/UQDX/LUGYNOKC/F9ZUQDXLUGYNOKC.jpg&filename=B93316FB-A793-4773-A46D-4AC6683EE3B6_1_201_a.jpeg)
![6E14577A-0423-44B3-8A65-ACEE005E627D_1_201_a.jpeg](/proxy/?url=https://content.instructables.com/FW7/Y97H/LUGYNOKQ/FW7Y97HLUGYNOKQ.jpg&filename=6E14577A-0423-44B3-8A65-ACEE005E627D_1_201_a.jpeg)
- 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
Wiring the Ultrasonic Sensor
![Screen Shot 2024-04-02 at 4.43.34 PM.png](/proxy/?url=https://content.instructables.com/FMW/GI88/LUIE3Q77/FMWGI88LUIE3Q77.png&filename=Screen Shot 2024-04-02 at 4.43.34 PM.png)
- 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
Wiring the SG90 Servo
![5E3772E8-9DA8-4B66-9DA6-25AA1EFF15CB_1_102_o.jpeg](/proxy/?url=https://content.instructables.com/FOX/55IL/LUIE3OGR/FOX55ILLUIE3OGR.jpg&filename=5E3772E8-9DA8-4B66-9DA6-25AA1EFF15CB_1_102_o.jpeg)
- 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
Wiring the GND and 5V
![Screen Shot 2024-04-02 at 4.41.25 PM.png](/proxy/?url=https://content.instructables.com/FN9/C0M7/LUIE3PVK/FN9C0M7LUIE3PVK.png&filename=Screen Shot 2024-04-02 at 4.41.25 PM.png)
- 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
Finishing the Box
![Screen Shot 2024-04-02 at 4.40.04 PM.png](/proxy/?url=https://content.instructables.com/F47/SQLT/LUIE3PRE/F47SQLTLUIE3PRE.png&filename=Screen Shot 2024-04-02 at 4.40.04 PM.png)
- 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
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
Testing the No Touch Lid
![9872A90A-1968-4C5B-9389-6ABFCB05FE23_1_102_o.jpeg](/proxy/?url=https://content.instructables.com/FZ7/QBV3/LUIE3PXF/FZ7QBV3LUIE3PXF.jpg&filename=9872A90A-1968-4C5B-9389-6ABFCB05FE23_1_102_o.jpeg)
- 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!