On Mon, Aug 01, 2005 at 10:22:57AM -0400, linux-os (Dick Johnson) wrote: > Huh? A laptop on the table is subjected to 1G on earth. If turned over, > is still subjected to 1G, although the sensor may show -1G. Unless > the correct k (calibration factor) is known, for each load direction, > it cannot be derived from +/- 1, the only readings you have, because > of the 1G bias of the load-cell itself.
The MEMS accelerometer measures the projection of the acceleration/gravity vector in two orthogonal directions. If you place the notebook on a horizontal table, the projection of gravity to both the directions measured will be zero, because the gravity vector is orthogonal to both of the directions. Thus for each direction you get the value at -1, 0, and +1 G, and that's perfectly enough to get a calibration, as long as the accelerometer is linear, which MEMSes to a reasonable degree are. > A pair of load-cells mounted orthagonally, will show the accelleration > in 4 axis. However, you can't assume that if you held the mass at > a 45 degree angle, for instance, that both sensors would read > 0.707 (cos 45) or that if at 90, one pair would read 0.0 Well, accelerometers are not load cells with a weight mounted to them, that's the thing. > You need to calibrate using real values. With a sping-scale, and > some room to swing the device, you can readily obtain some accurate > load values. The Earth's gravity is a very well known real value. -- Vojtech Pavlik SuSE Labs, SuSE CR - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/