Be the first to rate this file! 59 Downloads (last 30 days) File Size: 132 KB File ID: #41027
image thumbnail

ADLX345 i2c Driver for Arduino Mega

by Eddy Trinklein

 

01 Apr 2013 (Updated 01 Apr 2013)

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

| Watch this File

File Information
Description

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.

http://www.mathworks.com/matlabcentral/fileexchange/39354

Acknowledgements

Device Drivers inspired this file.

MATLAB release MATLAB 8.1 (R2013a)
Other requirements Arduino Mega 2560 Sparkfun 9DOF sensor stick
Tags for This File  
Everyone's Tags
arduino, embedded code, i2c, instrument driver, measurement, simulink
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
22 Apr 2013 Eddy Trinklein

Phil,

If you could provide more info on where you run into problems I might be able to help you. It sounds like you've used this example to build a custom LCD driver? Awesome, I would love help.

Thanks,

Ed

19 Apr 2013 phil

hey man great work. i am trying to follow your steps but i keep getting errors when trying to upload my driver (lcd driver)...it would be amazing if you could maybe do a screenrecord of the process and put it on youtube...i cant figure out what i am doing wrong...thanks!

Updates
01 Apr 2013

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.

Contact us