No Touch Lid Box

by svalencia3 in Circuits > Arduino

57 Views, 0 Favorites, 0 Comments

No Touch Lid Box

Screenshot 2024-04-16 at 10.41.08 AM.png
No Touch Lid Box

I created a No Touch Lid Box for my EGR 150 Course!

Supplies

download.jpg
download.jpg
color_foam_core__30908.jpg
download.jpg
download.jpg
download.jpg
arduino_logo_1200x630-01.png
download.png
download.jpg
download.jpg
15569-Ultrasonic_Distance_Sensor_-_HC-SR04-01a.jpg
SKU047142.41__96752.jpg
images.jpg
download.jpg
  • A marker OR pencil
  • A 12-inch ruler
  • 1 large piece of foam core board OR cardboard
  • X-Acto knife OR a pair of scissors
  • Hot glue gun (extra hot glue sticks)
  • Duct Tape
  • Arduino IDE Program
  • Code (create through ChatGPT OR on your own)
  • Arduino Uno Board
  • Breadboard Expansion Board
  • SRO4 Sonic Detector
  • SG90 Motor
  • DuPont wires
  • Standard jumper wires

Create Your Box

Part A: With your marker, trace out 6 pieces (each 5 inches by 5 inches) on posterboard.

Part B: Next, take your X-Acto knife and cut out each square.

Part C: After allowing your hot glue gun to heat up, start gluing each of your squares together to form a cube; but, do not glue the top of your box.

Part D: Once all the sides and bottom of your box are glued together, grab a piece of ductape to then connect your box top to the rest of the box.

Above is a picture of my box! My box was not 5 inches by 5 inches, but the size of your box is completely up to you!

Create & Upload Your Code

To connect your code to your circuit boards, you will need to download Arduino software.

Part A: Open a web server and search "Arduino Uno Program" and click the first link.

Part B: Under "Downloads Arduino IDE 2.3.2" download the correct option for your computer.

Part C: Next, you need to decide if you are going to write your own code or upload a prewritten code.

Part D (you have written your own code): Write your code into the Arduino Uno Software Program you downloaded.

Part D (you are uploading a prewritten code): Open ChatGPT and ask chat to "Write a program where an Arduino IDE using a SRO4 sonic detector and SG90 motor to detect an object 5 inches or less rotates the servo 90 degrees and when the object disappears, rotate the servo back to 0 degrees".

Part E (you are uploading a prewritten code): Copy the code from ChatGPT and paste it into the Arduino Uno Software Program you downloaded.

Connect Your Circuits

Attaching wires can be tricky at first, just be patient and follow each step carefully!

Part A - Connecting SG90 Motor: Take 3 standard jumper wires and connect...

  • the RED wire on the servo to the RED LINE on the breadboard.
  • the BROWN/BLACK wire on the servo to the BLUE LINE on the breadboard.
  • the ORANGE/YELLOW wire on the servo to the Arduino Uno board to the assigned pin number in the code.


Part B - Connecting SRO4 Sonic Detector: Take 4 DuPont jumper wires and connect...

  • VCC on the detector to the RED LINE on the breadboard.
  • TRIG on the detector to the Arduino Uno board to the assigned TRIG pin number in the code.
  • ECHO on the detector to the Arduino Uno board to the assigned ECHO pin number in the code.
  • GND on the detector to the Arduino Uno board in a GND spot.

Part C - Connecting your Arduino Uno board to your breadboard: Take 2 standards jumper wires and connect...

  • one end of the wire to the Arduino Uno board in the 5V spot and the other end to the RED LINE.
  • one end of the wire to the Arduino Uno board in the GND spot and the other end to the BLUE LINE.

You should now be able to upload your code and have a working circuit!

Attach Your Circuits & Boards to Your Box

download.png

Part A: Have the opening of the box facing you. Take an X-Acto knife and on the left side of the box (as it is facing you) cut out a section the size of the servo box to then hot glue it as a part of the box.

Part B: Finally, hot glue or ductape the breadboard and Arduino board to the back of your box!

Congratulations, your No Touch Lid Box is complete!