

Example code can be found in Files -> Example -> Adafruit ADX元45 -> sensortestġ. Similarly, search for Adafruit Unified sensor and install. To download the above libraries, open Arduino IDE and go to Sketch -> Include Library -> Manage Libraries. Search for Adafruit ADX元45 and install it. Connect 5V of Arduino -> Vcc of adxl345įor this ADX元45 Arduino project, we need two libraries for the ADX元45 Sensor.Connect GND of Arduino -> GND pin of adxl345.Connect A5 pin (SCL) of Arduino -> SCL pin of adxl345.Connect A4 pin (SDA) of Arduino -> SDA pin of adxl345.Components RequiredĬircuit diagram for ADX元45 accelerometer interface with Arduino is given below: Here we will use the Adafruit library for the ADX元45 sensor to interface it with Arduino Uno.

Also, these sensors are laboratory calibrated and don’t require any further calibrations. ADX元45 can measure static and dynamic accelerations and suitable for mobile applications. But its programming is difficult as it works on the SPI/I2C protocol. Let’s see the difference between these sensors.Ĭomparison: ADX元35 vs ADX元45 vs ADX元56Īmong the above three, ADX元45 is easy to interface because of its digital nature. These accelerometer sensors are very popular and apart from these three, there are many other accelerometer sensors like ADX元54, ADX元55, ADX元72, etc. These sensors measure acceleration in 3-axis (x,y,z). All these sensors are portable and can be fitted in any kind of device like wearables. They can be classified on the basis of precision, power consumption, and interfacing. There are many types of MEMS accelerometer sensors available in the market. You can see all the accelerometer-based projects here.


While Accelerometer can measure linear acceleration, the gyroscope can help find the rotational acceleration. We all know about accelerometer and gyroscope, they are primarily used to detect acceleration.
