Is it possible to connect ADXL 335 sensor and Arduino board with matlab for real-time interface?

댓글 수: 3

Ashish Uthama
Ashish Uthama 2012년 6월 7일
Without more information. I would say 'no. There are solution to interface with an Arduino board (ex: http://www.mathworks.com/academia/arduino-software/arduino-matlab.html).
But its the 'real-time' aspect that is tricky when you are running on a non RTOS machine, you can set it up and see if its 'fast' enough for your need though.
Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012년 6월 20일
Which version of MATLAB are you using?
hi, i am using ADXL 335 accelerometer+Arduino Mega 2560+Matlab R2013a to measure stroke patient arm level of function. connection from ADXL 335 to Arduino done, now i am having problem in connecting to Matlab. FYI i am doing this using block diagram. can you help me in how to design the block diagram. thank you for help.

댓글을 달려면 로그인하십시오.

답변 (2개)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012년 6월 14일

0 개 추천

If you are running the R2012a version of MATLAB/Simulink, you can install support for Arduino: # Enter targetinstaller in the MATLAB Command Window. This action opens Target Installer. # In Target Installer, follow the instructions for installing support for Arduino. After you have completed this process, create a Simulink model that uses Arduino Analog Input blocks to read the voltages from the ADXL 335 sensor.
Sreeram Mohan
Sreeram Mohan 2012년 6월 15일

0 개 추천

Just to make it more clear . Yes a real time (with some delay of course caused by the serial communication) one can interface adxl335 accelerometer to the Arduino and communicate to Matlab.
A simplified ideology is to
Controller Part (Arduino ) * Connect the adxl335 x y z outputs to arduino . * read the analog data and print them out to a serial port
Hope this helps
--sreeram

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

태그

질문:

2012년 6월 7일

댓글:

2016년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by