08-11-2011 04:04 AM - edited 08-11-2011 04:04 AM
Hi,
is there a simple way to control the rotation speed of a electric motor (12V) using LabVIEW?
I have an idea how to achieve this by using NI measurment card, by its not that cheap. Any ideas?
Maciek.
Solved! Go to Solution.
08-11-2011 05:09 AM
Maciek,
It is definitely possible. You just need to control the DC voltage input to the motor. A cheap power supply with some sort of communication interface would do the job of controlling voltage.
Satish
08-11-2011 05:27 AM
satish_21,
Could you be more specific?
What do you mean by writing "cheap power supply with some sort of communication interface"? Can you give me some examples?
It's important for me to solve this problem.
08-11-2011 05:37 AM
Rubid,
There are power supplies, that come with USB / GPIB interface. With the power supply, connected to PC, you can use the LabVIEW driver of that power supply (can be downloaded from NI) to control the output voltage of power supply. The output of the power supply will be the input to your motor and hence you can control motor's rotation speed. Below is a NI link, showing the drivers of some of the power supplies.
Satish
08-11-2011 06:03 AM - edited 08-11-2011 06:05 AM
08-11-2011 06:23 AM
Oh, now I understand what power suppliers you meant. OK, it really is the simpliest way to do that.
Let's complicate the problem. Is there a way to control the output voltage of the USB port in my PC?
08-11-2011 06:37 AM - edited 08-11-2011 06:41 AM
@Rubid wrote:
Let's complicate the problem. Is there a way to control the output voltage of the USB port in my PC?
Do you know what a USB-RS232 converter is??
Buy one together with that power supply and your problem is solved
What do you mean with "control the output voltage of the USB port" do you want to drive the motor directly from the USB port
08-11-2011 06:52 AM
Yeah, that was my latest idea 🙂
The motor is really small, and the current is not as big, so it shouldn't be a problem... Am I right?
The power supplier is not as cheap as I thought, so any other suggestions will be welcome 🙂
There's no necessity to change of the rotation speed fluently. Maybe it's possible to change the voltage from the power supplier (a normal one 230 to 12V) by using several transistors and resitors?
08-11-2011 07:00 AM
Forget the USB port!
You never get 12V out of it.
Doe the motor need to run left & right?
If yes, then you need a so called H bridge Click
Do you have electronic background to design such H bridge or not?
08-11-2011 07:07 AM
Alain,
Even in case we have a H bridge, we will need a DAQ or some sort of DIOs (which will definitely be a shoot in his budget considering his requirement) to control the H bridge. I can't think of any device or supply that supplies 12V, cheap and configurable from LabVIEW
Satish