Shop OBEX P1 Docs P2 Docs Learn Events
accelerometer help.... — Parallax Forums

accelerometer help....

nelson1000nelson1000 Posts: 25
edited 2006-03-16 02:56 in Robotics
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

Comments

Sign In or Register to comment.