Programming

How do you program a Basci stamp 2 to respond to sensor input, like if when the range finder said less than 3 in, back up i foot?

By the way, you might want to put this under the “Lynxmotion Forums Index -> BotBoard + Basic Stamp 2” topic.

Well, I don’t have any experience with rangefinders, but you can find example code of how to do this at the Parallax site.

Go to the sensors page on there and find the rangefinder that best suits your needs.
The Ping sensor is a nice one for most jobs.

Once you find the one that you like, there are links to .pdf documents at the bottom that explain how to program with them.
There’s also .zip files with example code for them, too.

Thnks man .