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 Add Element button located in the toolbox from the Embedded tab.

Element Icon
ADXL343 Element

Properties

The following properties can be changed for the ADXL343 element:

Name

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

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.

Tap Threshold

The force required for the device to register a tap in mg.

Freefall Enabled

Enable freefall detection. If this is set to true, interrupt mode must be set to Int1 or Int2.

Freefall Threshold

The force required for the device to register freefall in mg.

Freefall Time

The amount of time that the freefall threshold must be met before a freefall event is triggered.

Interrupt Mode

The ADXL343 has two interrupt pins. This property allows you to select either pin or disable interrupts entirely.

Data Rate

The measuring data rate of the sensor.

Range

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.

Triggers

The following triggers are available to execute events from within the ADXL343 element:

Triggered

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.

Acceleration Read

Execute an event when the combined X, Y, and Z acceleration values are read.

Tap Detected

Execute an event when a single tap is detected.

Freefall Detected

Execute an event when a freefall condition is detected.

Abilities

The following abilities are available for the ADXL343 element when its source element triggers:

Trigger

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 Acceleration

Read X, Y, and Z acceleration values in mg.