Go Down

Topic: How Can I read the input voltage into a DC motor using Motor shield ?? (Read 609 times) previous topic - next topic

zaciatok

Hello :)
I would like to read the input voltage into a DC motor using Matlab. I'm new using ARDUINO with the MOTOR shield.
I hope there is someone who can help me with this.
Thank you.

ecigan

Here's an item on MathWorks File Exchange -- you'll find a package with a guide that explains, in a step-by-step fashion, how to develop device driver blocks (blocks that perform target-specific functions when executed on a target platform). There are examples for a DC motor and a stepper motor, both with the Arduino AF Motor Shield.

http://www.mathworks.com/matlabcentral/fileexchange/39354-device-drivers

General info re. using Arduino with MATLAB and Simulink is at http://www.mathworks.com/arduino

Grumpy_Mike

As the arduino can only read up to a maximum of 5V you will also need to put a potential divider between the DC motor and the arduino.

zaciatok

Thank you guys for your responses :)) I'm going to work on it.

Go Up