Shop OBEX P1 Docs P2 Docs Learn Events
Garage Parking Assistant — Parallax Forums

Garage Parking Assistant

Chris SavageChris Savage Parallax EngineeringPosts: 14,406
edited 2010-07-13 17:21 in Robotics
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.

[noparse][[/noparse]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
«1

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-09 00:37
    Here are a few more pictures for your viewing pleasure...Also a Bill Of Materials is listed below.
    Desig.  Component                                Source         Part #
    -------------------------------------------------------------------------
    U1      BASIC Stamp 2 Module                     Parallax, Inc. BS2-IC
    PCB     Super Carrier Board                      Parallax, Inc. 27130
    LED1    10mm Red LED                             N/A            N/A
    LED2    10mm Yellow LED                          N/A            N/A
    LED3    10mm Green LED                           N/A            N/A
    R1      470 Ohms, 1/4W                           Parallax, Inc. 150-04710
    R2, R3  220 Ohms, 1/4W                           Parallax, Inc. 150-02210
    PING))) PING))) Sonar Rangefinder                Parallax, Inc. 28015
    BOX1    Project Enclosure (3x2x1")               Radio Shack    270-1801
    BOX2    Project Enclosure (5.1x3.1x1.5" Sealed)  PAC-TEC        OD45
    
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support


    Post Edited (Chris Savage (Parallax)) : 3/9/2007 6:19:37 PM GMT
    1024 x 768 - 59K
    1024 x 768 - 51K
    1024 x 768 - 75K
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-03-09 04:57
    Chris Savage

    This a real cool Project and a real·good·idea.gif
    Thanks For sharing this project

    I like your Project
    The code· routine is very easy to follow

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
  • Max WoodenMax Wooden Posts: 112
    edited 2007-03-09 06:07
    Very cool! I like the way the Ping looks mounted in the case.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-13 20:55
    Functionality over Glamour…Along with simplicity our own Beau Schwabe has built the Garage Parking Assistant with some changes to the code as well and support for a single Bi-Color LED. Please see the following pictures and code for his version which works quite well for him. He has agreed to share his version.· Enjoy and Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    600 x 900 - 64K
    600 x 900 - 92K
    600 x 900 - 76K
  • stamptrolstamptrol Posts: 1,731
    edited 2007-03-14 12:33
    Nice projects , Chris and Beau.

    While its always important to stress to SWMBO (she who must be obeyed) the value of stamping and ordering all those neat parts to solve a household problem, I also received a parking assistant this past Christmas from Winners ( TJMaxx clearance place).

    Its a baseplate and a fibreglas rod that stands in front of the car. The head has an inertia switch, batteries and several flashing LEDS. When the front bumper of the car taps the rod, the LEDS blink for a few seconds then shut off. Lots of entertainment for less than $10!

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-14 14:26
    Tom,

    When I built this unit I had future expansion in mind…Here are two ideas which could be easily implemented with little to no hardware…In fact, the only thing you would need for the second one is a second PING))) Module. Additional LEDs would be needed for both…

    1) My wife usually gets home from work about 15 minutes before I do…I also leave before her in the morning so with her in the garage I park in front of it. This isn’t a problem except if she happens to be a few minutes late then I am blocking her off. One modification I was considering would be to run an indicator out to the front of the garage (something innocuous) which would tell me if there’s a car in the garage before I block it off, in which case I could park in the street until she gets home.

    2) Expanding a bit further on both the original concept and the above would be that for some people with 2 and 3 car garages they don’t always park on the same side consistently. My parents are a good example. It depends on who needs to unload stuff into the house as to who will be closer to the breezeway between the house and garage. An additional PING and indicators would allow for two vehicles to have the parking assistant (which in my parents garage would be nice with all the junk) and two indicators outside would show not only IF there’s a car in the garage but which side it’s on so that they line up with the empty side before opening the door to enter.

    All of this could be done on the same BASIC Stamp and Super Carrier board. Only a handful of small interface parts would be needed. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Naphtali MooreNaphtali Moore Posts: 42
    edited 2007-03-16 11:46
    So, when pulling into my garage I know when I pass the recycleing bin to slow down. There is a block of wood bolted to the floor and when I feel it I know to stop. I also have windows in the the doors so I can tell who parked where and what space is available. hehe. K.i.s.s.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-16 14:26
    And then there's the classic tennis ball hanging from a string...I prefer the Stamp version...This could have easily been done with a BS1 as well...Or an SX...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Mr. RichardMr. Richard Posts: 51
    edited 2007-03-18 11:39
    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?
  • Shawn LoweShawn Lowe Posts: 635
    edited 2007-03-29 19:37
    Mr. Richard-
    I think you were kidding, but if you weren't, Chris meant he prefers the computerized version of a distance detector OVER the classics hanging a tennisball in your garage and waiting until you touch the ball to know your in your garage far enough for the door to close.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    My last words shall be - "NOT YET!!!"
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-30 14:11
    Maybe I missed that…No production is planned…All the information is here for everyone to build their own. Take Care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Mr. RichardMr. Richard Posts: 51
    edited 2007-03-31 12:35
    Sorry about that, i was trying to be funny, but i usually fail at it!
  • Jim RicheyJim Richey Posts: 82
    edited 2007-03-31 13:01
    Thanks for sharing this most interesting information.Hopefully in the
    near future I will be able to utilize a ping sensor on one of my machines,now
    that you've explained so clearly how it is used.

    Take care,Jim Richey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thanks, Parallax!
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-01 18:20
    Here’s a very small video clip of me sitting in the passenger seat while my wife pulls into the Garage. I had her pull in normally, then pull ahead a little to show how the Parking Assistant responds for that. Then she backed off. This shows all 5 possible displays you can see…OFF (no car in garage), Green (car entering), Yellow (slow down), Red (stop) and Flashing Red (you’ve gone too far this time!)…Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • skylightskylight Posts: 1,915
    edited 2007-04-01 21:00
    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 smilewinkgrin.gif OOps better check over my shoulder nono.gif
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-04-02 03:21
    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

    skylight

    ·You may just want to that if your wife is like mine she would not find that funny at all·smilewinkgrin.gif OOps better check over my shoulder nono.gif





    ·I do find this some what funny...hop.gif.........jumpin.gif........ Just like these Guys can be funny......I do not mean to hurt anyone feeling in any way

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
  • LightfootLightfoot Posts: 228
    edited 2007-04-18 00:08
    Those LED's I can see, however I know some people who will have trouble seeing them. Maybe you could use incandescent bulbs with colored lenses over them. Drive them with triacs.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-18 01:22
    Lightfoot,

    That’s the neat thing about projects like this…they’re so easy to customize! If you do something like this, by all means reply and post your modifications. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • jhoyozajhoyoza Posts: 72
    edited 2007-04-19 05:53
    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
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-04-19 14:31
    J,

    For something like that you’d probably want a radar-based system…That’s what they’re putting in most of the newer cars. They have more range and the transducer is weather resistant/proof. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • pwillardpwillard Posts: 321
    edited 2007-06-23 02:58
    What a great project... I too went with a DUAL LED solution. I happened to have a BG MICRO LED 1024 handy, which is a multi-color (red/green) 16-LED cluster that they claim was removed from road sign equipment. It seemed perfect and quite visible when powered by the recommended 12V DC. Anyway, I modified the code to flash GREEN where AMBER would normally be lit in the original. I had a now rare peripheral interface device handy (SN75452) and it worked a treat for driving the LED cluster.· (NOTE: The 75452 is still available from NTE as NTE75452b from places like FRYE's brick and mortar or Mouser online)

    Post Edited (pwillard) : 6/23/2007 12:52:57 PM GMT
    649 x 962 - 63K
    1001 x 759 - 87K
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-06-23 20:38
    Nice modification!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • pwillardpwillard Posts: 321
    edited 2007-06-24 23:57
    Thanks... it works great... but due to mounting difficulty, I opted to just use 12V·incandecents·while testing it out.· Seeing how well·it works while testing I've opted to just leave my test lamp fixture as the permanent solution.
    384 x 512 - 12K
    576 x 768 - 51K
  • bulkheadbulkhead Posts: 405
    edited 2007-06-30 20:06
    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?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-02 14:20
    Bulkhead,

    The range is actually 3m and in order to realize your goals a few factors would have to be overcome. First of all you’d need PING))) sensors in the garage as well as pointing outside so you would know when the car was backing out. Otherwise you’d need to know when to check. A simpler approach might be to simply indicate inside if there’s a car outside rather than waiting to start backing up.

    This leads us to the second problem…In order for the PING))) to properly detect the vehicle it needs to be able to bounce its signal off the car and receive it back. Depending on the angle (and since you’re already on a slope) this cold get tricky. I recently had to move the PING))) sensor up in our garage since our new cars are higher up and the signals were being deflected to the floor or ceiling depending on whether we pulled in or backed in.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-01-30 15:25
    Possibly not mentioned earlier in the thread was that when I got this idea it was primarily because I had seen it before on the forums, but did not remember who posted it. Recently the thread was revived and I wanted to give credit to RTurley for posting the original Garage Parking Assistant project which inspired my own version. Please see the link below his project. Take care!

    http://forums.parallax.com/showthread.php?p=523373

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • pwillardpwillard Posts: 321
    edited 2008-07-03 13:47
    For those who have wildy varying temperatures in their Garage, as I do, you might want to see my attempt at adding temperature compensation to my version of the project posted here.

    Using a DS1620, a nice way to get temps into a STAMP, I then did some work in Excel to create a working table of computations.· These were then added to a lookdown/lookup table combination to create a form of temperature compensation for temperatures between -15C and +45C.








    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    There's nothing like a new idea and a warm soldering iron.

    Post Edited (pwillard) : 7/3/2008 3:23:48 PM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-07-03 14:08
    Pwillard,

    That was a great idea! Temperature compensation has long been a subject on these forums in relation to the PING))) sensor under various environments. It’s not very often that someone tackles the problem though. I must admit that it is a worthwhile upgrade to the existing project and could easily be added to my own system. I will have to add this to my “to-do” list.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • jeffjohnvoljeffjohnvol Posts: 197
    edited 2008-07-03 14:37
    What would be even nicer is if the Ping sensor was ever modified by Parallax (or whomever designed/manufactured it) to include this kind of compensation [noparse]:)[/noparse]

    But that is a very useful section of code, pwillard. Very well commented too. It would make for a nice N&V article, if there isn't one out there already.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2008-07-20 00:30
    ·Pwillard,

    Very nicely done and Very well commented too

    I even learned something as well



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
Sign In or Register to comment.