arduino interface with matlab

4 views (last 30 days)
fremond khoo
fremond khoo on 19 Mar 2011
hi and good day to all,
i want to ask about the interface with arduino and matlab..i am now trying to get the data from potentiometer which is attached at my stepper motor shaft..can anybody tell me how to get the data from potentiometer through arduino board to my computer(MATLAB) and try to plot the graph at the same time?..i have the code to plot the graph but i cant run both files at the same..
either i run my motor or get data from potentiometer by turning the potentiometer myself..so how do i solve this??..
anyone would be so kind to help out here??
thanks in advance^^

Accepted Answer

Javier Ruiz
Javier Ruiz on 19 Mar 2011
Can you provide more information? Are you successfully acquiring the data from Arduino to MATLAB?
  2 Comments
fremond khoo
fremond khoo on 19 Mar 2011
yup..i successfully acquire data from arduino to matlab already..
my project is to connect and run a two-link robot arm..by attaching a potentiometer at each of the motor shaft, i am required to obtain the data from the potentiometer to know the rotation of my motor shaft..but i need to use arduino to get the data then transfer the data to matlab and plot the graph..
now i have successfully acquire the data from arduino to matlab by manually rotating the potentiometer myself and not by the motor..
my stepper motors operate by using MATLAB GUI so since i have to operate my motor to move the potentiometer i cant open another file at the same time to acquire the data from potentiometer..
the problem is how do i acquire the data from arduino to matlab by operating my stepper motor at the same time?..i wish to acquire the real result of my potentiometer while attaching to my moving stepper motor simultaneously..how do i do that?..do i need to combine both the files together??
thanks again for your information^^
fremond khoo
fremond khoo on 19 Mar 2011
can anyone help me out??..please?

Sign in to comment.

More Answers (3)

Tee
Tee on 19 Mar 2011
=.=

Tee
Tee on 19 Mar 2011
now, i try learning IO package, but don't know how to link with Matlab GUI, after u learnt this data acquisition teach me, haha

Tee
Tee on 19 Mar 2011
i think i have to use it, cause i need control the motor through it...

Categories

Find more on Hardware Discovery and Setup in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!