android gyroscope, accelerometer test data

 

The acceleration sensor is also called G-sensor, which returns the acceleration value of the x, y, and z axes.

This value includes the effect of gravity, in m/s^2.

Lay the phone flat on the desktop, the x-axis defaults to 0, the y-axis defaults to 0, and the z-axis defaults to 9.81.

Place the phone face down on the table with a z-axis of -9.81.

Tilt the phone to the left with a positive x-axis.

Tilt the phone to the right with a negative x-axis.

Tilt the phone up with a negative y-axis.

Tilt the phone down with a positive y-axis.

The accelerometer is probably the most mature mems product, and there are many types of accelerometers on the market.

Commonly used acceleration sensors in mobile phones include BOSCH (Bosch) BMA series, AMK's 897X series, ST's LIS3X series, etc.

These sensors generally provide an acceleration measurement range of ±2G to ±16G, and are connected to the MCU using I2C or SPI interface, and the data accuracy is less than 16bit

 

-------------------Test data(x,y,z)---------------------- -----------------

plane up - 0.0499999970.0710.0199995

 

build 0.419.920.08

Recumbent -9.25-1.173.56

Plane Up Motion Translation 9.9999970.0710.0199995

 

 

The gyroscope sensor is called Gyro-sensor, which returns the angular acceleration data of the three axes of x, y, and z.

The unit of angular acceleration is radians/second.

According to the actual measurement of Nexus S mobile phone:

Rotate horizontally counterclockwise, and the Z axis is positive.

Rotate horizontally counter-clockwise, the z-axis is negative.

Rotate to the left, the y-axis is negative.

Rotate to the right, the y-axis is positive.

Rotate up, the x-axis is negative.

Rotate down, the x-axis is positive.

---------------Test Data--------------------------------- ---------------

Plane up 0.01 0.049999997-0.21

 

Rotate left 0.0 2.9099998 0.96999997

 

Rotate left -0.29 -2.3999999 -0.14999999

 

 

Rotate down 3.4399998 0.83 -0.21

Rotate up -8.96 -1.0799999 1.31

 

Counterclockwise rotation of the plane 0.089999996 0.19999999 -5.89/5.56

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326905644&siteId=291194637