2011-10-04, 11:41 | Link #1 |
Knight Errant
Join Date: Dec 2007
Location: Dublin, Ireland
Age: 35
|
Electric motors
This is a pretty weird place to ask this, but I figure one of you here will be able to at least set me in the right direction.
I'm doing a small projectm and as part of it I need to be able to control an electric motor. I figure the best and easiest way to do so is to have a computer do it, IE either have some kind of computer controlled amplifier hooked up to the motor, or just plug the motor directly into my computer. Problem is I've never done it before. If one of you guys can help me out, or even point me to another forum, you'll have lots of gratitude from me. Basically, I need to find a small electric motor/controller combo that I can plug direct into a PC. |
2011-10-04, 12:07 | Link #2 |
Senior Member
Join Date: Apr 2004
Location: Edinburgh
Age: 42
|
Try googling for robotic forums.
But from what you describe you want a controller with serial/usb port for a DC motor, correct? Just google for "DC motor controller +usb". Pretty sure you can build one on a breadboard, but gathering the components can be a hassle unless you have access to a lab. |
2011-10-04, 13:19 | Link #3 |
Obey the Darkly Cute ...
Author
Join Date: Dec 2005
Location: On the whole, I'd rather be in Kyoto ...
Age: 66
|
There's a real time computer controller my son bought for his EE robotics work. I can't remember the name of it so I've sent him a query. You access it through a USB cable to program.... that may be overkill. Unless the motor has a control unit built-in with a USB or serial port, its unlikely you can just hook it to your computer directly there needs to be some kind of DAC (digital-analog-convertor) and then possibly an amplifier to step up the power to something the motor will recognize.
Here's an interesting article I googled up on building your own system for a stepper motor with the parallel port as a control conduit. http://channel9.msdn.com/coding4fun/...-Stepper-Motor Depending on why you need to change the motor speed (what are the feedback criteria), you might be able to build a simple analog feedback circuit as well that doesn't require a computer at all. How you proceed just really depends on what your current skills are and what you want to take time to learn.
__________________
|
2011-10-04, 16:12 | Link #4 |
Asuki-tan Kairin ↓
Join Date: Feb 2004
Location: Fürth (GER)
Age: 43
|
What size is the electric motor?
Is it a stepper motor or a spindle? For large sized motors you will need a frequency inverter additonally to the control unit. For small sized stepper motors the control unit is sufficient. How much money do you want to spend? Which precission are you aiming for (with or without taking into account the motor characteristics)?
__________________
|
2011-10-04, 19:09 | Link #5 |
Knight Errant
Join Date: Dec 2007
Location: Dublin, Ireland
Age: 35
|
Well, I'm looking to rig up a propeller to a cheap electric motor, and so be able to control the lift it produces. Once I've done that I'd like to be able to make a feedback control where the propeller will produce more power depending on how it's angled, IE so I can tilt it at any angle and still maintain the same level of vertical "lift".
Obviously the latter part is a whole other problem, but the first thing is just having an electric motor I have some semblance of control over. What I think is the easiest solution is to have some kind of electric motor I can power off my computer, and be able to tell my computer to turn it on and off rapidly to create an ad-hoc PWM amplifier. For this project, the electric motor would be pretty much always attached to the computer, so it doesn't need to be able to store information. Likewise, the controls required for this project are not going to be simple (as propellers do not have linear behaviour), so an analog controller isn't going to cut it. Plus I'm used to programming with Control Theory. So I think what I'm going for is a DC motor, low price point, consistent behaviour, good power to weight ratio (needs to be able to life itself), and that I can somehow control from a computer in a cheap manner. I don't mind getting down and dirty and messing with my computer, but I do need to be able to control it from a computer program. Propellers are cheap, I can get one for less then 5$, and Motors can be pretty cheap too, but I don't want to get the wrong one. I'm coming from an engineering background, so I know the mathematics and theory, but not a lot about the practicals of different motor types. Given that my power requirements are going to be 10-50 watts(so low), I would think that if you could somehow have the motor directly draw power from the computer would be the way to go. That way the computer can directly change how much power it's giving the motor, either by directly changing the voltage or current, or through PWM. Given that a computer already powers fans and hard drives and whatnot, it shouldn't be beyond the realms of possibility. You guys seem to know your stuff, so I hope the extra details helps. @Vexx: I did see that link previously, but I wasn't sure whether or not it's the best way forward, and I wanted to ask around a bit first before I tried messing with my ports. I also wasn't sure if a stepper would be the best type of motor for this purpose. Last edited by DonQuigleone; 2011-10-04 at 19:22. |
2011-10-04, 19:21 | Link #6 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
It sounds like you need a Arduino board (costs around 25 EUR).
__________________
|
2011-10-04, 22:16 | Link #7 | |
Obey the Darkly Cute ...
Author
Join Date: Dec 2005
Location: On the whole, I'd rather be in Kyoto ...
Age: 66
|
Quote:
but yeah if you have a fan connector on your mobo that isn't being used for other purposes and you can control the speed via software then you could plumber's-nightmare something from that
__________________
|
|
2011-10-05, 02:51 | Link #8 | |||||||||
Asuki-tan Kairin ↓
Join Date: Feb 2004
Location: Fürth (GER)
Age: 43
|
Quote:
You can do it on the PC too, but if the PC is very busy with something you cannot guarantee the processing of the data. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
What you need it is something with the capability of one or two analog inputs and one analog output with ms response times. Well, if you have the money... http://sine.ni.com/nips/cds/view/p/lang/en/nid/201612 But you'ld still need a device that amplifies the analog output signals to drive the motor.
__________________
|
|||||||||
2011-10-05, 07:28 | Link #9 |
NYAAAAHAAANNNNN~
Join Date: Nov 2007
Age: 35
|
10-50 Watts? How many rpm are you aiming for? If you want to lift something, your propeller must generate enough downward force (air current) to lift it AND the motor.
My brain is a little fried on engineering and Physics related stuff, but if you have money problems trying to get parts or fuel, I can advise you on how and where to get them. DISCLAIMER : Not all methods suggested may be legal in where you live. But it is legal so long as you don't get caught.
__________________
|
2011-10-05, 08:00 | Link #10 | |||||||
Knight Errant
Join Date: Dec 2007
Location: Dublin, Ireland
Age: 35
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
When we consider that a computer is already capable of driving fans and hard drives, there must be a capability in there to drive a motor outside the machine. If you want to, it's fairly easy to use hard electronics to change the speed an electric motor operates at, after all your average RC car can operate at different speeds. Why is it difficult for a computer to do so? |
|||||||
2011-10-05, 10:00 | Link #11 | |
Senior Member
Join Date: Apr 2004
Location: Edinburgh
Age: 42
|
Quote:
Do you have a pic or avr programmer? I am pretty sure you can build a simple controller with some further parts, best is to ask a electrical engineer or mechatronics buddy. They could probably draw/design a suitable circuit for you, assembling should be easy and besides the fun part. |
|
2011-10-05, 10:25 | Link #12 | |
Knight Errant
Join Date: Dec 2007
Location: Dublin, Ireland
Age: 35
|
Quote:
In which case, can I attach the controller to any other electric motor? |
|
2011-10-05, 12:54 | Link #13 |
Asuki-tan Kairin ↓
Join Date: Feb 2004
Location: Fürth (GER)
Age: 43
|
@Sides,
Those controlers inside those simple devices are often analog controllers... .e.g. temperature of sensor goes up... resistance of voltage divider goes down... voltage for fan goes up... speed of fan goes up. As far as I understood DonQuigleone, he wants to be able to digitally influence the controller - i.e. use an algorithm on his PC to control the motor. @DonQuigleone, if you really want to control the motor in real time on your PC you will need some sort of analog input/output with moderate cycle times. However, this approach will be quite expensive (at least to my knowledge). The Arduino board in combination with a highly responsive power amplifier e.g. op-amp (audio equipment output stage? - might need an additional resistor)... might be the next best solution. You cannot control the motor directly with your PC though but with the programmed controller board (I don't know if the program can be stripped down enough to fit on the controller though... or if the cycle times of the controller are sufficient).
__________________
|
2011-10-06, 03:02 | Link #14 | ||
Senior Member
Join Date: Apr 2004
Location: Edinburgh
Age: 42
|
Quote:
Quote:
It is better to get a programmable kit, since it is more flexible, and you can reuse it for later projects. How much is the preassembled Arduino anyways? |
||
|
|