Garage Door
The purpose of this project was to create a working garage door by using an Arduino circuit and supplies to allow this garage door to be automated when detecting an object. This garage door operates by using an ultrasonic distance sensor which detects an object in it's range, when the object is in it's range the code tells the servo to spin so that the door attached may open. Additionally, we added a photoresistor that when covered, gives a specific code to turn on LED's, then to turn off when uncovered by a piece of material. The material covers the photoresistor with another servo that the material is attached to, the servo spins when the object is in the range of the ultrasonic distance sensor allowing the servo to spin. In conclusion, we've tested multiple versions of the project and modified it when necessary, currently the project is reliable and works as indented. The project just needs you to connect a 9 volt battery, and the project will run smoothly.
Supplies
Materials used for construction:
-Carboard box
-Duct tape
-Hot glue
-Scissors
-Cardboard cutter
**Supplies:**
-Arduino uno circuit (1x)
-Wires (20x)
-Resistor (470 ΩOHM)
-Resistor (10k ΩOHM)
-Resistor (220 ΩOHM)
-Ultrasonic distance sensor (1x)
-Photoresistor (1x)
-Servo (2x)
-Breadboard
-Push button (1x)
-Red LED's (2x)
-9 volt battery (1x)
-Battery wire (1x)
Wiring / Equipment Arrangments
To recreate this project you need to use tinker cad first to understand how the project is going to be in real life
Arrangement: (Place in the spots shown for better looking results)
- Grab an Arduino UNO and a Bread Board
- Plug the GRND to the negative side and plug the 5 volts into the positive side with a red and black wire (use red and black wire just for reference)
- Connect both sides of the Bread Board
- Place the resistors into the negative side of the bread board and connect to spots shown
- Connect the photoresistor's 1st terminal to the 470 Ω Ohm resistor and Analog 0 to the same terminal with wire, and connect the 5 volt positive side to the 2nd terminal with a wire
- Connect the 220 Ω Ohm resistor to the ground, and connect the wire in the same column that connects directly to a red LED's cathode, (recreate this with another LED)
- Connect the 1st red LED's Anode to D3, and the 2nd red LED with D2
- Place a Push Button in the middle of the bread board and connect terminal 1a to the negative side of the bread board and 2a with D5 by using a wire
- Grab 2 servos, plug them both to GRND and 5 Volts from the bread board, and plug the servo 1's signal to 9D, and the 2nd's signal to 8D
- Grab 1 Ultrasonic Distance Sensor, plug GRND into the GRND PIN, and the 5V to the 5V PIN, then plug D12 to the TRIG PIN, and lastly plug 11D to the ECHO PIN
Creating the Garage Door
Building the Garage Door:
- Get a big Cardboard Box, and cut with a cardboard box cutter 4 to 6 inches of the box and keep the piece that has been cut off
- Cut another 1 to 2 inches of the cardboard box and keep the piece that has been cut off
- Grab 2 servos, attach one inside of the box on the left of the door by using electrical tape and scissors to hold it into place, do the same for the other servo but attach it into the front right of the door (servo 1 = right servo, servo 2 = left servo)
- Use the Tinker cad design to recreate it in real life
- Use Hot glue the bread board and the Arduino UNO use to the top of the Cardboard Box
- Place the Ultrasonic Distance Sensor on the top of the Garage Door, and use electrical tape to hold it in place
- Place the photosensor on the top left of the Garage Door, and use the electrical tape to hold it into place
- Use the 4 to 6 inches piece that you had just cut, and tape it to the servo 1 lever, so it can turn to open and close, do the same to servo 2, but use the 1 to 2 inch piece that you also had cut from the Cardboard Box
Writing Diagram/Code
Copy code to the tinker cad: