Pages: [1]   Go Down
Author Topic: How Can I read the input voltage into a DC motor using Motor shield ??  (Read 555 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello smiley
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.
Logged

Massachusetts, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 627
Posts: 34230
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: