ADXL34x Accelerometer
R2026bMeasure linear acceleration along axes of ADXL34x family of accelerometers
Since R2022a
Libraries:
Simulink Support Package for Arduino Hardware /
Sensors
Description
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
The ADXL34x Accelerometer block reads data from the ADXL34x family of accelerometers (ADXL343, ADXL344, ADXL345, and ADXL346) with Arduino hardware.
You can use this block to measure linear acceleration along the X, Y and Z-axes. The block also provides the option to enable the data ready interrupt.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"arduinosensorlib/ADXL34x Accelerometer"
Example: add_block("arduinosensorlib/ADXL34x Accelerometer","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2022a