Analog Devices ADXL343 Element
The ADXL343 element is used to measure acceleration. It also provides triggers for tap detection and freefall detection with configurable thresholds. This element is for using the Analog Devices ADXL343 accelerometer.
The ADXL343 is a sensor element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
The following properties can be changed for the ADXL343 element:
The name of the element.
I2C Driver Instance
Instance of the I2C driver to use.
GPIO Driver Instance
Instance of the GPIO driver to use.
I2C address of the device.
Tap Detection Enabled
Enable tap detection. If this is set to true, interrupt mode must be set to Int1 or Int2.
The force required for the device to register a tap in mg.
Enable freefall detection. If this is set to true, interrupt mode must be set to Int1 or Int2.
The force required for the device to register freefall in mg.
The amount of time that the freefall threshold must be met before a freefall event is triggered.
The ADXL343 has two interrupt pins. This property allows you to select either pin or disable interrupts entirely.
The measuring data rate of the sensor.
The measurement range of the sensor.
Interrupt 1 Pin
Pin to use for interrupt 1. May be left at 0 if interrupt mode is set to disabled.
Interrupt 2 Pin
Pin to use for interrupt 2. May be left at 0 if interrupt mode is set to disabled.
The following triggers are available to execute events from within the ADXL343 element:
Execute an event when the source element connected to the ADXL343 element triggers.
X Acceleration Read
Execute an event when the X acceleration is read.
Y Acceleration Read
Execute an event when the Y acceleration is read.
Z Acceleration Read
Execute an event when the Z acceleration is read.
Execute an event when the combined X, Y, and Z acceleration values are read.
Execute an event when a single tap is detected.
Execute an event when a freefall condition is detected.
The following abilities are available for the ADXL343 element when its source element triggers:
Trigger the element(s) that follow the ADXL343 element.
Read X Acceleration
Read the X acceleration value in mg.
Read Y Acceleration
Read the Y acceleration value in mg.
Read Z Acceleration
Read the Z acceleration value in mg.
Read X, Y, and Z acceleration values in mg.