accelerometer help....
nelson1000
Posts: 25
I have just got the memsic 2125 accelerometer, and have went through the stamps in class tutorial and nuts and volts: all about angles tutorial with no problems. Now I am trying to use the accelerometer to just measure the tilt in the x and y axis, so that my robot, if it is climbing a steep hill it will not fall over. The code that I am using seems to make sense but when I test it with my bot it does nothing, actually allows the bot to flip over. If someone could please look at my code and help me out that would be great.
Esentially what I am trying to do is, if the tilt on either axis is greater than 30 degrees, the bot stops and goes in reverse
Thanks,
Nelson
Post Edited (nelson1000) : 3/15/2006 11:28:49 PM GMT
Esentially what I am trying to do is, if the tilt on either axis is greater than 30 degrees, the bot stops and goes in reverse
Thanks,
Nelson
Post Edited (nelson1000) : 3/15/2006 11:28:49 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Boe-Bot® Robot Navigation with Accelerometer Incline Sensing
There is a list of other unpublished Stamps in Class chapters/activities on this page.
Stamps in Class "Mini Projects"
Thanks,
Nelson