hello
i am trying to control the motion of a motor by using simulink blocks(of arduino matlab support package).i need an encoder(position) input as feed back in my control model.
can any one help me how can i read encoder value in my control model?
Can I control a servo motor from Matlab without using a motor shield
I tried to use this code:
a=arduino('COM3');
a.pinMode(10, 'OUTPUT');
a.analogWrite(10, x); % where x= from 0 up to 255
but it did not work
can anyone help me??
Hello
First of all I must thank you for providing us with such a nice interface between MATLAB and Arduino.
Actually I was wondering if you have any function like Arduino's 'MAP' function which can actually map analoginput data into a specific range.
Thanks in Advance
Comment only