View Full Version : Ultrasonic parking alert using basic stamp

04-01-2010, 12:29 AM
Hello.· im new to basic stamps.· Im wanting to use the basic stamp with ultrasonic sensors to sense a wall.· when the sensor senses the wall about 3 meters out i want a speaker to have a pulsed chirp.· the closer the object the faster the chirps.·· has anyone experimented with this type of setup?· any information would be greatly appreciated...


04-01-2010, 01:05 AM
This may give you something to start with.



04-01-2010, 04:28 AM
Here's·a cheaper & simpler option,· a $12·Ultrasonic sensor from China that doesn't even need a Stamp for a simple yes/no LED indicator, you could have it turn an LED on or off at a preset distance:


I just ordered one. It has a digital output (normally high, active low) when triggered. You can adjust the range to·one of 16 distances .3-10 M. There is a different ·version with a range from .3 to 3 M.


·"If you build it, they will come."

04-02-2010, 12:50 AM
This project seems fairly simple.· I use a post mounted ultrasonic sensor aimed down at a piece of plywood to measure the depth of snow.· The sensor I use (SensComp #616105) has an output of 0 - 10 volts depending on distance (up to 20 feet).· If you use a MAX1270 analog to digital converter, this voltage can be converted to a digital value, and that value can be used to set a frequency for the beep.

Somewhere nearby is my recent post about a problem I was having with multiple inputs.· It has all the code necessary for my distance sensor, although the code for a Stamp chip used in a PLC is a bit different that if used with a Stamp motherboard and A/D converter.The title is "Does progarm section order make a difference?"

Of course, using a Ping and other A/D converter may be cheaper.· But you certainly should be able to work out how to translate the output voltage level from the US sensor to a change in beep tones.

04-02-2010, 02:21 AM
This would be VERY easy with a Basic Stamp, Ping and a noise maker of some kind. Of course it would cost $100 for the stamp and sensor :)

A guy might be able to do it with just the Ping, two 555 timers, a transistor and a speaker..... with assorted resistors, caps and a voltage regulator.... Maybe $40? The idea I have in mind would give you more of a variable frequency "static" or ticks than an actual tone.

Erco's link seems the best bet though, unless this is just an excuse to build something with the stamp :)

"puff"...... crap, there went another one.

PJ Allen
04-02-2010, 02:27 AM
Here's how to do it -- http://forums.parallax.com/showthread.php?p=636791

Chris Savage
04-03-2010, 05:37 AM
@erco - please re-read your sig line. =)

Chris Savage

Parallax Engineering

04-03-2010, 09:50 AM
All good, Chris! Besides, this may backfire on me yet. I emailed the China seller about the U/S sensor I mentioned and bought. I asked how to adjust the timing and distance, and his poor english seemed to imply that it's not adjustable... :( Description clearly states... Will advise.

In the mean time, Guys, "Build it (with Stamps and genuine Parallax parts) and they will come!"

·"If you build it, they will come."