I've been watching this thread for quite some time now. Waiting for Steve's great example to provide the final, Yeah! it works.
But now to find out what the intended purpose was, I've assumed the position of hanging my head while shaking it back and forth. While this idea might have worked for a robot moving at a few inches per second, it doesn't have a chance in an R/C plane.
There are 2 parts to the gravity equation. There's the gravitational force (A force that pulls things together based on their mass and how close they are together). And, there's Inertia (The tendency of an object at rest to remain at rest, and of an object in motion to remain in motion.)
Gravity is the Weak force, and can be easily overcome by Inertia. So as the plane is making any kind of movement, the inertia stored in the weight on the sensor will want to continue moving in the direction it was going before the change in direction. It's not going to stay pointing straight down at the earth to relate to an artificial horizon. And the heavier it is, the more inertia it stores. Depending on the G forces applied, you can make a full loop and never have the weight move at all.
In order to track the changes in direction of a moving object that has no other reference point, you'll need a Gyroscope and an 3-axis Accelerometer. The accelerometer allows it to find out which way is down during straight and level flight, and the gyro tells it the orientation relative to the original accelerometer reading.
Now if all that sounds complicated, it's because it is. Just be glad you're not flying in space. Then you'd need to fix the location by star sightings. But you'd still need the gyro.
<br>
Bookmarks