

The ADX元45 sensor is a digital sensor, so it has several built-in registers that can be read and written over I2C or SPI. The most basic thing that is done with any accelerometer sensor is getting the acceleration values. ADX元45 can detect the presence or lack of motion by comparing acceleration values to user-defined thresholds. The sensor also has two interrupt pins and supports built-in sensing functions like free-fall detection and tapping by mapping sensing functions to its interrupt pins. It can be used to sense linear acceleration in 3 axes, tilt and free fall of an object. ADX元45 measures static acceleration due to gravity as well as dynamic acceleration resulting from motion or shock. It is a digital sensor in a 14-lead package that outputs sensor data through I2C and SPI interfaces.

It has a user-selectable range up to +/-16g, a maximum output resolution of 13 bits, sensitivity of 3.9 mg/LSB, and a maximum output data rate of 3200 Hz. ADX元45 is a small, ultra-low power, 3-axis accelerometer sensor that is used in electronic control systems of mobile device applications like mobile handsets, smartphones, gaming devices, pointing devices, personal navigation devices, hard drive protection, medical and industrial instrumentation.ĪDX元45 is a 3-axis MEMS capacitive digital accelerometer sensor. The digital sensor that we will talk with is the ADX元45 accelerometer. In this tutorial, we will use the I2C interface of Raspberry Pi to communicate with a digital sensor. In the previous tutorial, we discussed synchronous serial communication in Raspberry Pi using I2C protocol.
