by hivemind » Mon Aug 07, 2006 9:16 pm
by hivemind
Mon Aug 07, 2006 9:16 pm
an accelerometer measures the force of gravity, some of these can measure many times the force of gravity, and thus predict when you are falling, or in the case of a 3 axis acceloremeter can tell when you are tipping in any direction. Say for example you have two sets of code for your robot. The first routine lets your robot get up when it has fallen on its front, the second from its back. Now you can have another routine that can use the accelerometer to detect when to use one of these. Your robot could constantly be checking this to make sure it hasnt fallen over.
You could also use it to measure gravity from small shakes, ie: as a gyro. As long as it can react fast enough it can tell seperate servos to counteract a push that has been applied upon it.
Either way, you do not need it, but it can be a very useful tool and if used properly can help is many routines or sloped movement.
an accelerometer measures the force of gravity, some of these can measure many times the force of gravity, and thus predict when you are falling, or in the case of a 3 axis acceloremeter can tell when you are tipping in any direction. Say for example you have two sets of code for your robot. The first routine lets your robot get up when it has fallen on its front, the second from its back. Now you can have another routine that can use the accelerometer to detect when to use one of these. Your robot could constantly be checking this to make sure it hasnt fallen over.
You could also use it to measure gravity from small shakes, ie: as a gyro. As long as it can react fast enough it can tell seperate servos to counteract a push that has been applied upon it.
Either way, you do not need it, but it can be a very useful tool and if used properly can help is many routines or sloped movement.