Using the DE-11 Accelerometer to sense rotation

Hello!

Can the DE-11 lynxmotion.com/p-606-lynxmotion-buffered-2g-accelerometer.aspx buffered 2G Accelerometer be used to sense rotation about a vertical axis ?

I saw the biped examples that use this to sense tilt - front/back and side to side.

Is there a way to use this to sense a rotation - for example of an arm ?

Please advise!
I posted here as the search for DE-11 did not turn up anything.

Thanks
Gopal

You would ideally need a 3d accelerometer for that:
robotshop.com/sensors-accelerometers.html

Why not use a shaft encoder or pot to read the rotation of each joint?

Using an accelerometer to read the rotation around an axis will have to be differentiated to give you a the amount of rotation, but won’t give you an absolute position. Also, you have no reference.

You can of course read the gravity acceleration vector, but that would be slightly off with any movement of the arm. Plus, you’d want a 3D accelerometer for each prismatic element.

Alan KM6VV

Actually, many accelerometers detect the force of gravity, so laying on a table, the z axis reading would be different than in the x and y directions (which could both be calibrated to be zero acceleration). As you tilted the sensor, the force of gravity would be “transferred” to the x and y axes as vectors, which you could use to determine the angles.

FYI - I used one of these on my PhantomX Hex with the legs modified like Kåre (Zenta) did and the code detects when the robot is right side up or upside down and changes the leg positions. You can see this in action in the video that Kåre shot, which is up on the thread: forums.trossenrobotics.com/showt … omX-(video

The early part of the video shows where we mounted the sensor and maybe about 2:45 in the video shows this sensor in action.

Actually thought I like his first video of it, that you can see up on his blog:
robot-kits.org/2012/08/26/a-demo … d-walking/

Kurt

What joint has enough range to allow the flip-over?

Alan KM6VV

The first thing is the Servos have a 300 degree rotation (They also support continuous rotation).
The Femur servos can more or less go ±90 degrees.
The Tibias can pretty much go ±150 degrees after the changes that Zenta first did. We also have the tibia pointing straight out at 0, when we assemble it with this mod.

Kurt

My intent is not so much to measure absolute angles or positiins. I want to find if the robot has “rotated” about a central axis. I know a gyro can give me that kind of information - the yaw.
The 2 D accel seems suited to pitch and roll measurements when mounted “flat” or horizontal - parallel to earth’s surface. What I wonder is what will show up if I mount it vertically along one of the axes - will it show rotation about that axis ?
I will mount it vertically and see what happens but if anyone has already tried this it would be good to know what was rhe result.
Thanks!

As I mentioned before, on the PhantomX we use them to detect if the Hex has rolled over. Here is a picture showing one mounted vertically…
http://forums.trossenrobotics.com/attachment.php?attachmentid=4096&d=1344017139
More of the details about this are found on the Trossen thread: forums.trossenrobotics.com/showt … …/page18

Kurt

To measure rotation about (around) an axis, you want and IMU with 9DOF.

Alan KM6VV

Mounting the accel vertically instead of horizontally may help me get rotation - this is what Kurte has done.

I was just trying to put to use the accel I already have instead of going out and buying more and more stuff.

Don’t know why I would want a 9DOF IMU - I can get the same rotation using a gyro.