Ks0128 keyestudio EASY plug ADXL345 Three Axis Acceleration Module
Introduction
The ADXL345 module is a low power, 3-axis MEMS accelerometer with high resolution (13-bit) and measurement at up to ±16g (gravitational force).
Digital output data is formatted as 16-bit twos complement, and is accessible through either a SPI or I2C digital interface.
The ADXL345 is well suited to measures the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion or shock.
This module needs to be used together with EASY plug control board.
Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.
Features
- Connector: Easy plug
- Working Voltage: 2.0-3.6V
- Ultra Low Power @2.5v: 40uA /working mode; 0.1uA / standby mode
- Communication interface: I2C / SPI
- Tap/Double Tap Detection
- Free-Fall Detection
Technical Details
- Dimensions: 41mm*20mm*18mm
- Weight: 4.6g
Connect It Up
Connect the EASY Plug ADXL345 Acceleration module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
Upload the Code
Below is an example code. Open or drag below code to Mixly Blocks and upload the code to your board to check the 3-axis acceleration data and the module's tilt information.
What You Should See
Open the Serial monitor to see the 3-axis acceleration data. See changes as you sway the Accelerometer.
Little Knowledge:
If you think the monitor’s result is too fast to see the data clearly, you can drag a Delay block to add into the source code. Shown below.
After that, upload the code again and open the monitor, you should be able to see the display data clearly.
Extension Experiment
Controlling Three LEDs
Hookup Guide
Connect the EASY Plug ADXL345 Acceleration module and three LED modules to control board using RJ11 cables.
Test Code
Upload the test code below to your board to check the 3-axis acceleration data and the module's tilt information.
What You Should See
Upload success, open the serial monitor, it prints out the value of X,Y,Z axis. Each axis controls a light. If the measured value is greater than 200, LED lights up.
Resources
Download the Arduino datasheet:
https://drive.google.com/open?id=1T8nejCErqCIU77e3dA2IvNUA_3VbsHq3
Download the Mixly Code and Datasheet:
https://drive.google.com/open?id=1Oqg067IBgaQSLoRQcvfxpAa6rR1i2HVs