Fun with the Acceleration Sensor



I've been playing with the HiTechnic Acceleration Sensor. Here you'll see a small program (a modification of a test program HiTechnic created) that outputs the values of the X, Y, and Z axes.
As the Surveyor rolls up and over objects, I can see the values change. Now what I need to do is translate those values into useful information that can help me determine if the robot is at a dangerous angle (possibly ready to tip over on its side). In Surveyor, I originally used the Acceleration Sensor to determine the up/down position of the camera as well as to center the camera parallel to the floor. (Brian Davis used the sensor with his LNE robot to determine if it was "upside down.")

I'm working on a special little bot now that will use the Acceleration Sensor to keep an object it is holding in a very specific orientation. More on this soon...
You can find more info on the Acceleration Sensor here. HiTechnic will also soon make the NXT-G block available for download soon, so keep your eyes open.

Comments

Brian Davis said…
Another thing you can use it for here is contouring or ascending; You can have the robot move until it encounters a slope (you may have to "debounce" the sensor readings, as vibration in the frame can easily be seen). Once it's on a slope, it can rotate in place until it can determine it is pointed "upslope", to climb a hill.

On LNE, I've been using it for things like autonomous step climbing: it can locate, approach, and climb over a step, recognizing when it has finished the step, or when it is in danger of tipping over, etc. A very handy and fun sensor, especially for things like LNE or other high-mobility 'bots.

--
Brian Davis

Popular Posts