Accelerometer and Magnetometer calibration

Well it depends how you need to turn it. Some need to be turned around only in one plane,
which you can do with some kind of turntable.

If you want to build some kind of 3-D gimbal thing, go ahead.

I just wave mine around randomly in all directions, collect thousands of samples on the SD card,
and them process them statistically in Matlab to get the calibration. So far, the calibration is
almost the same every time, so I am currently assuming that the scaling errors are set by the
manufacturing defect and not arising from the weather or other factors which continue to
change.