11-29-2012 08:34 AM
the problem is that i can't find this motor shield in my country and i don't have the time to bring it from forign country....and i know u can't give me the exact code..but all i want is any code of any dc motor without using this motor shield the rest (current and the voltage) i will take care of. I know i ask u a lot but for the moment you are the only one who is helping me
11-29-2012 12:37 PM
To use Arduino to drive a DC motor you need a power amplifier. The power amplifier is connected between Arduino and a DC motor. It is used to amplify the very low level power output capability of Arduino to a value compatible with the DC motor's requirements. This could be something as simple as a transistor or as complicated as a motor shield. The code must be designed to work with a particular power amplifier. There is no such thing as generic code available for drving DC motors.
Here is a transistor example.
<http://arduino.cc/playground/Main/DCMotorControl>
Here is an example that uses a L293D IC
<http://luckylarry.co.uk/arduino-projects/control-a-dc-motor-with-arduino-and-l293d-chip/>
Here is an examle that uses a SN754410 IC.
<http://www.cla.purdue.edu/vpa/etb/resources/robotics01_SN754410_Arduino.pdf>
Notice the differences in code between the various examples.
For additional examples do a Google search on the phrase "Arduino DC motor".
hrh1818
11-30-2012 03:52 PM
You are really trying to help me but not with what i ask for...Look i already succeed turning on the dc motor with arduino my problem is LABVIEW !!!! how can i make the code and there is no predefined symbol for dc motors unlike servo motors and stepper motor you see ?
11-30-2012 07:46 PM
You say:
"Look i already succeed turning on the dc motor with arduino my problem is LABVIEW !!!! how can i make the code and there is no predefined symbol for dc motors unlike servo motors and stepper motor you see ?"
I answered this question with my reply to your very first question. But you didn't tell me why this answer didn't help you.
Next I gave you a second chance when I asked You:
"Who is the manufacturer and what is the DC motor's model number.
What Arduino shield will you be using to drive the DC motor. "
You gave me a vague answer to the DC motor question but never answered the Arduino shield question.
Conclusion, based on the meager information you supplied the answer I gave to your first question is the best answer I can give. We are not here to teach you how to use Labview.
hrh1818
Hrh1818
12-01-2012 05:31 AM
Look when i said i succeed turning on my dc motor i'm talking about yesterday i found it on google...and i'm not asking you to teach me labview i have ust one question i'm not asking the entire code....the question is simple in the labview palette i find sevo motor and stepper motor and there is no dc motor i googled it and there is no answer
03-02-2017 11:30 AM
hiiii all
i am designing some thing like CNC but works in x-y direction with power screw to get precise calculation and distances.I want to control steps and directions of 2 stepper motors NEMA 17 (4.2 kg.cm) with labview interfaced with arduino mega or uno (whatever).
what are drivers and components (resistor, transistors) needed ??
another what is difference between stepper dc motor and regular dc motor? is that controlling steps only!!
i have little experience of programing labview ANY HELP.
03-05-2017 01:17 PM
All of your questions can be answered by searching online since they are very common questions that don't relate to LabVIEW. I recommend that you search for your questions in the context of Arduino (not LabVIEW).
04-19-2017 05:45 PM
Hi, did you fix the issue?
04-20-2017 11:48 AM
no
10-16-2017 01:45 AM