 |
|
 |
| Parallax Forums > Public Forums > Completed Projects > Garage Parking Assistant | Forum Quick Jump
|
|  Chris Savage (Parallax) Forum Moderator

       Date Joined Jul 2004 Total Posts : 10533 | Posted 3/8/2007 4:33 PM (GMT -8) |   | |
Hello Everyone,
We recently moved and the new place has a bigger garage than before. My wife now parks in the garage, something she’s never done before. Her main problem is not knowing how far forward to pull the car in. Instead of the traditional Tennis Ball hanging from a string I decided to take a Parallax approach to the problem at the risk of hurting Tennis Ball sales.
The Garage Parking Assistant makes it easy to pull in the garage by signaling you with a traffic-light style display of when to pull in (GREEN), slow down (YELLOW) and stop (RED). If you pull too far in the Red LED blinks to let you know. Although this type of project has been done before I wanted to take my own approach and simplify the code and hardware while making it easy to adjust/personalize for your own use. By default all measurements are in inches, although you could easily use centimeters since that value is available as well. The range of the PING))) sensor is split up into four zones labeled Zone1 through Zone4. Please see the first attachment for a map of the zones. The values for each zone are inches from the sensor/wall.
Zone1 is closest to the sensor/wall and indicates the area you don’t want to occupy. When you are in this zone the Red LED will flash on/off to indicate you are too close. In our garage this area is big since we want to be able to come around the front of the car with plenty of room. The default setting for Zone1 is 36 inches (3 feet).
Zone2 is the area where you want the front of the car to stop in. This will be between the Zone1 and Zone2 settings. When you are in this zone the Red LED will be on solid telling you to stop since you are in the desired zone. You don’t want to make this zone too small since you will need to stop within it without having to keep adjusting. You also don’t want to make it too big. The default setting is 46 inches. When you set this you want to make sure this is as far back away from the wall as you want to be as well. In our garage if we’re closer to the Zone2 mark the back of our car still has about 12 inches of clearance from the overhead door.
Zone3 is the area you set where you want to be prepared to stop. When you are in this zone the Yellow LED will be on letting you know you are approaching the Red zone. The default setting for this zone is 80 inches and works well for our garage and the speed that my wife enters it. You will of course want to tune all of these values.
Zone4 is the area from where the PING))) sensor first detects the car until where you enter the Yellow zone. When you are in this zone the Green LED will be on. By default this value should be the maximum range detected by your PING))) when no car is in the garage. This is the zone where you can pull in normally.
While not required, a laptop is a great help in getting everything where you want because while the code is running it is displaying the values it sees on the DEBUG screen and you can note these positions when setting your Zone constants. You will definitely want to know what the maximum value your PING))) sensor reports when no car is in the garage and you’ll want to make sure that value is stable and set the Zone4 value to this number.
As in many previous projects this one was built on a Super Carrier Board. This inexpensive project board is ideal for finished projects because it contains most of what the Board Of Education does, except that it is intended for soldering and runs the BASIC Stamp Module from the on-board regulator allowing a wider range of supply voltages. The cases that the PING))) and Super Carrier Board were mounted in were just plastic prototyping enclosures I had in my parts cabinets. You can refer to the Bill Of Materials for the sources of the ones I used although any enclosure which will fit these boards in will work. Optionally you can mount both the Super Carrier Board and the PING))) right to the wall, although you may want to cut the Power LED trace to prevent it from giving you a false GO signal.
As you can see by the pictures attached I used 10 mm LEDs in this project since they’re much easier to see. The schematic shows that there are 220 ohm current limiting resistors for the Green/Yellow LEDs while the Red has a 470 ohm resistor. This is because the Red LED requires less current at the same light intensity. So to make the LEDs uniform I used these values. Different LEDs have different forward voltages and currents so you may need to adjust these values depending on the LEDs you use. Often 220 ohm through 470 ohm resistors will work for most LEDs. You may also notice I used 1/4 inch plastic spacers to keep the LEDs at the same height from the PCB.
If you have any questions on this project please feel free to post in this thread, PM or e-mail me. Parallax can not provide phone support for this project. Comments and suggestions are welcome. Thanks everyone.
[Edit: Small Fix to code made for DEBUG messages] Chris Savage
Parallax Tech Support
Post Edited (Chris Savage (Parallax)) : 3/10/2007 12:38:25 AM GMT
File Attachment : Garage Parking Assistant.bs2 7KB (application/octet-stream)This file has been downloaded 608 time(s). | | Back to Top | | |
  |  sam_sam_sam Soldering Junkie

       Date Joined May 2005 Total Posts : 1409 | Posted 3/8/2007 8:57 PM (GMT -8) |   | | Chris Savage
This a real cool Project and a real good 
Thanks For sharing this project
I like your Project
The code routine is very easy to follow Thanks for any that you may have and all of your time finding them
Sam | | Back to Top | | |
 |  Max Wooden College Student
        Date Joined May 2005 Total Posts : 110 | Posted 3/8/2007 10:07 PM (GMT -8) |   | | Very cool! I like the way the Ping looks mounted in the case. | | Back to Top | | |
      |  Mr. Richard Registered Member
        Date Joined Oct 2006 Total Posts : 52 | Posted 3/18/2007 3:39 AM (GMT -8) |   | I don't understand fully, I live in a row house in a city and I park a car and mini-van on the street (I use the park-by-braille). Why would one hang a microchip from a string? Wouldn't you run the risk of scratching the windshield?
Nice clean packaging. If you could put this into production, do you have an estimated price? | | Back to Top | | |
   |  Mr. Richard Registered Member
        Date Joined Oct 2006 Total Posts : 52 | Posted 3/31/2007 4:35 AM (GMT -8) |   | | Sorry about that, i was trying to be funny, but i usually fail at it! | | Back to Top | | |
   |  skylight Registered Member
        Date Joined Mar 2007 Total Posts : 416 | Posted 4/1/2007 1:00 PM (GMT -8) |   | I would have to add a trigger so that airbags inflated in front of the car if my wife was trying to park in the garage OOps better check over my shoulder | | Back to Top | | |
 |  sam_sam_sam Soldering Junkie

       Date Joined May 2005 Total Posts : 1409 | Posted 4/1/2007 7:21 PM (GMT -8) |   | | Chris
This is a very nice project if i did not have so STUFF in my Garage
I would built one these myself but this maybe awhile before i know what to with all THE STUFF that in the garage
The link that you have for the case I order some free samples from them there case are very nice
You may just want to that if your wife is like mine she would not find that funny at all  OOps better check over my shoulder 
Sam | | Back to Top | | |
   |  jhoyoza Registered Member

       Date Joined Sep 2006 Total Posts : 72 | Posted 4/18/2007 9:53 PM (GMT -8) |   | Slick design!
I have seen a collision avoidance system, I think on a Volvo TV commercial? Could this be adapted as an add on mounted to the front to the car? (Perhaps hidden in the radiator grill?)
Simple and clean. Professional all the way.
-J | | Back to Top | | |
     |  bulkhead Registered Member
        Date Joined Sep 2005 Total Posts : 407 | Posted 6/30/2007 12:06 PM (GMT -8) |   | I have another garage parking scenario which could use some microcontroller assistance.
This calls for detecting the presence of a 3rd car parked on the driveway of a 2 car garage. It isn't always easy to see the 3rd car because of the slope and angle of the driveway. The microcontroller would be able to sound a buzzer or flash lights (the "alarm") if one of the cars in the garage would back into the car on the driveway.
I'm not sure if the PING))) would work because of its 2m or so range. It would be nice to keep all of the electronics inside the garage instead of outside somewhere, so if this were the case, the PING))) would be detecting from inside the garage, outwards, and might not have enough range. Also, it would be nice if the "alarm" only went off in the case where the car actually started backing out. It would be easy to just use a switch connected to the garage door to just set off the "alarm" each time the door opened with a car parked in the driveway, but it could get annoying and sound too often, ultimately failing to serve as a true alarm in a real situation. Any ideas on a simple (or not) solution? | | Back to Top | | |
 | 53 posts in this thread. Viewing Page : 1 2 3 | | Forum Information | Currently it is Tuesday, February 09, 2010 3:17 AM (GMT -8) There are a total of 415,988 posts in 57,637 threads. In the last 3 days there were 78 new threads and 885 reply posts. View Active Threads
| | Who's Online | This forum has 18517 registered members. Please welcome our newest member, try388. 50 Guest(s), 7 Registered Member(s) are currently online. Details Graham Stabler, humanoido, Bob Lawrence (VE1RLL), computer guy, Rick Brooks, JohnandElspeth, mikestefoy |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2010 |
|
|