ADLX345 i2c Driver for Arduino Mega

This is a driver for the analog devices ADLX345 triaxial acceleration and an Arduino mega.
Updated 1 Apr 2013

View License

This driver utilizes the Arduino i2c libraries from version 1.0 and driver architecture found from various sources on the web. It configures the sensor to +/- 4 G's at 100 Hz. The data sample rate is set to 0.05 second period via the S-Function builder update rate. Additional settings are described in the manual.

For additional information and tips please look at the excellent description by Giampiero Campa.

Cite As

Eddy Trinklein (2024). ADLX345 i2c Driver for Arduino Mega (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Instrument Control Toolbox Supported Hardware in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Two code revisions in the model outputs section due to compile errors, caught before anyone downloaded this file. Revision level kept the same to match readme file.