Arduino Parking Assistant

Arduino Parking Assistant

instructables Arduino Parking Assistant by addictedToArduino Those of us who have small garages know the frustration anything else electronic, so I knew from the start that it of parking a little bit too far in or a little too far out and would probably end up as a contraption with an Arduino not being able to walk around the vehicle. We recently inside and a bunch of LEDs on the front! bought a larger vehicle, and it has to be parked perfectly in the garage to walk around the front and back. I tried my best to document every step of this project well, but please note that it has some complicated, tight To appease my frustration I decided to design a device soldering; it probably shouldn't be your rst project. that would allow me to park in the exact spot every time. I love working with arduinos, leds, sensors, and nearly Step 1: You Will Need... Arduino Parking Assistant: Page 1 All of these materials are cheap and easily available. I'm not aliated with any of these suppliers, they're simply where I bought the supplies. Materials: 1x 2x4 - at least 8" long 8x Philips Screws - Preferably 1" Long 1x Power Supply - 5 volt, 850mA 1x Arduino Pro Mini - 5 volt, 16MHz 1x HC-SR04 Ultrasonic Distance Sensor 12x Through-Hole Resistors - 220 ohm, 1/4 watt 8x Green LEDs - 5mm 4x Red LEDs - 5mm 1x Tactile Pushbutton - 6mm 3x Four Conductor Wire Sold by the Foot - 22 gauge 1x Stranded Wire - 28 gauge Tools: Wire Stripper Bandsaw Soldering Iron Solder - I use 60/40 Rosin Core Hot Glue Gun Speed Square Stick Glue Philips Screwdriver Pencil Drill 7/64" Drill Bit - this depends on the size of your screws 3/16" Drill Bit 1/4" Drill Bit 1" Forstner Bit Computer with the Arduino IDE Download Here. FTDI Programmer Here Arduino Parking Assistant: Page 2 Step 2: Print and Cut! The rst step in this project is to make the enclosure. We're using a technique I wrote about in an earlier Instructable, Easy 2x4 Enclosures. Print the PDF Pattern included below. Be sure you're set to print at 100% scale. Now cut out the pattern and glue it to the 2x4. Be careful to line it up with the edges. It's only temporary, so only glue it lightly. Arduino Parking Assistant: Page 3 Download https://www.instructables.com/ORIG/F3Z/P7F4/J0COVN03/F3ZP7F4J0COVN03.pdf Step 3: Cut to Length! Use your bandsaw to cut the 2x4 along the edge of the pattern. You could also use a chop saw or table saw. Step 4: Cut the Lid! Now we need to turn this thing from a 2x4 into a box! Use your speed square to mark a line lengthwise on the side of the 2x4 about a quarter of an inch from the back of the box. Go back to the bandsaw and cut directly on the line. This will cut a separate piece that will become our lid. You'll be cutting close to your ngers; Please be careful! Arduino Parking Assistant: Page 4 Step 5: Bore It Out! Using your pencil, mark a rough square on the back of the larger block about a half inch from all the edges. Now use your 1-inch to drill bore out the rectangle. You need to drill as deep as possible without coming through the front. Don't drill too deep! Arduino Parking Assistant: Page 5 Step 6: Drill! Drill! Drill! Chock up your 3/16 inch drill bit and carefully drill each of the holes marked on the front of the pattern. I found it works best if you make a small indention with an awl before you drill. Next drill a 3/16 inch hole roughly in the center of the bottom. This will be the hole for your calibration button. Now use your 1/4 inch drill bit to drill two more holes in the bottom. These will be holes for the wires. Arduino Parking Assistant: Page 6 Step 7: Finish the Control Box! Now you're using pattern. Peel it o as cleanly as inch deep; don't drill through the front! possible. Use the screwdriver and screws to fasten the lid. Take the lid and lay it on the bottom. Turn it around if you have to, you need it in the original orientation. You don't have to, but it makes the box look a whole lot better if you give it a good, through sanding. Next use the 7/64 drill bit to drill a hole about a quarter of an inch from each corner. Drill about a quarter of an Arduino Parking Assistant: Page 7 Step 8: Insert the LEDs! It's time to electronicfy this box! (Who says that isn't a word?) The LEDs should be arranged in two rings; a large green ring on the outside with a smaller red ring inside that. Take a LED and stick it in a hole. Align it so the cathode (shorter lead) is toward the outside. Then put a little hot glue around it! Repeat this process until all the LEDs are in their holes. Be careful to put the right color in the right hole! Arduino Parking Assistant: Page 8 Step 9: Sand the LEDs! For a more seamless look, sand the LEDs ush with the wood. It works best to sand before the wires are in. (Unlike I did!) At this point I realized my holes were too big! (I used a size bigger than 3/16") Wood ller to the rescue! Arduino Parking Assistant: Page 9 Step 10: Solder the Grounds! Bend the shorter lead on a LED and touch it to the short leg on the next LED. Solder these two together and continue around the circle. A needle-nose pliers is a big help! Step 11: Solder the Resistors! Cut a short length of wire, about two inches long, and any other wires! Do this for each LED, and double-check strip it! Twist it around a leg of a resistor, it doesn't for shorts. matter which end. Use your soldering iron to make the connection permanent! Do this for all your resistors. Finally, solder a short length of wire to the leg that was left when you soldered the grounds. Next, grab a resistor-wire pair and carefully solder the free end of it to a LED. Be sure not to let the leads touch Arduino Parking Assistant: Page 10 Arduino Parking Assistant: Page 11 Step 12: Solder the Button! Cut and strip another short length of wire, and solder it to one of the button's leads. Then clip all the button's legs o except the one adjacent from your solder joint. Place the button in the box so you can push it from the outside through the hole. Solder the free lead of the button to the ground connections of the LEDs. Finally, drizzle a bit of hot glue over the button to keep it in place! Step 13: Solder to the Arduino! Solder the pin-headers to the programming port of the Arduino. Then push the two wires (from the power supply and the one for the sensor) through their holes and use a bit of hot glue to keep them from falling out. Strip the wires from the LEDs and button and solder them to the Arduino according to the wiring diagram above. Below is a printable version of the diagrams for your convenience. Arduino Parking Assistant: Page 12 Arduino Parking Assistant: Page 13 Download https://www.instructables.com/ORIG/FZR/I0IC/J0COVN64/FZRI0ICJ0COVN64.pdf Download https://www.instructables.com/ORIG/FVU/K2OP/J0COVN6D/FVUK2OPJ0COVN6D.pdf Step 14: Create the Sensor Enclosure! Now we need to make the enclosure for the distance sensor. I previously wrote about this in another Instructable, so I won't go over that here. Follow the directions in Easy 2x4 Electronic Enclosures to make the box, then use your 1/4 inch drill bit to drill a small hole in the bottom of the box. Step 15: Finish the Sensor Connections! Push the free end of the sensor wire through the hole in the box, then strip it and solder it to the sensor module as in the Arduino Parking Assistant: Page 14 picture. Black goes to GND Blue goes to ECHO Green goes to TRIG Red goes to VCC Use a bit of hot glue to secure the sensor in the case, then use another dab as stress relief for the cable. Screw the lid on, and you're done! Step 16: Program the Arduino! Arduino Parking Assistant: Page 15 Notice - March 25, 2017: As suggested by commenter Include Library > Add Zip Library... and point it the "MuchTall" I have updated the code to include an LED 'NewPing.zip' folder. countdown during calibration. Please download the new version of the code below. Next, extract the other zip le and open 'ParkingSystemV1.1.ino' in the Arduino IDE. Upload the -------------------------- sketch to the arduino. See this article or this article if you need help. In order to read the sensor, we need the NewPing library. You can download it here, I also included it below for Screw on the lid, and you are done! your convenience. In the Arduino IDE, click on Sketch > Download https://www.instructables.com/ORIG/FDC/ZQCM/J0MOQB7D/FDCZQCMJ0MOQB7D.zip Download https://www.instructables.com/ORIG/F9B/VYZD/J0COVN5V/F9BVYZDJ0COVN5V.zip Step 17: Mounting and Use! Arduino Parking Assistant: Page 16 Mount the sensor on your garage wall where it can sense When you drive into your garage, slowly approach the a at surface on your car's bumper, not the grill! Mount parking assistant; the green LEDs show your distance to the control box higher up where it's visible from inside the ideal parking spot, red shows you when to stop to the vehicle.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    21 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us