Interfacing a Sharp IR distance sensor to a Basic Stamp
I received a Sharp IR distance sensor In my Parallax Mystery stocking. These are small and handy, but they require A/D conversion to interpret their output. This isn't a big deal for an Arduino or PropBOE. But not for a Basic Stamp or vanilla Propeller chip because they're not amenable to RC time without some additional circuitry. But this page provides a nice summary of how to do it:
http://www.noisemantra.com/BASICStampAnalogInput.htm
I need to put this on my list of projects to try shortly.
http://www.noisemantra.com/BASICStampAnalogInput.htm
I need to put this on my list of projects to try shortly.
Comments
For my balance bot, I just used a resistor ladder to bracket the sensor's analog output into 8 different zones. Simple, but requires many I/O pins: http://forums.parallax.com/showthread.php/126312-Balancing-Bot?p=961523&viewfull=1#post961523
This would be good for Gordon's new Quikstart Volume 2! :-)
He covers ADCs, and also measuring various voltages using RCtime. "One pin, many switches" is required reading where I come from.
Hmmm. Tracy Allen, PJ Allen, Allen Wrench. Ethan Allen, Woody Allen, Tim Allen. Mere coincidence? I think not...