I am a new arduino user and I would like a little advise on driving a 12v dc motor I have. The motor I have is a 12v 3.7 amp 2350 rpm datyon 2M197. Is there a way I can use my arduino mega2560 to drive this motor? If so, what H-bridge would I need to use? If not is there a cheap way to drive this motor with such a high amp rating?
Thanks so much for you guys' help. I really appreciate it.
Stephen
If the motor needs to be able to run forward and backward, you need a full H-bridge.
You could make your own H-bridge with transistors or mosfets.
I would not use a 5A transistor, but for example a 20A mosfet.
I just need the motor to rotate one direction, CCW, which can be done by reversing the pos and neg to the power supply. Therefore I think I just need the 20A mosfet would do. Right?
Also, would anyone know what coating to use on coils for electromagnets to cool the coil down? Is it epoxy, polyurithane, etc.?
Would the Motor Controller Shield L298N work for the 12V 3.7 amp motor? I know it can handle two 12V motors ( the 24V is less than the 46V max) and since it has 4 H bridges with 2 Amp each so a total of 8 amp availiable. So would the Motor Controller Shield L298N be able to control one or two of the 12v 3.7 amp 2350 rpm datyon 2M197 motors?
If you only want to switch the motor on and off, you don't need a motor shield.
A motor shield with full H-bridge is to be able to turn the motor in both directions.
Combining the outputs for higher current is not possible (I think).
You have to switch them in software, and while the software turns the first one on, the first one gets the full current.
Your motor is 3.7 A, is that the "full load current" ?
If you search Ebay for "logic mosfet" you will find some. For example the IRL540N (100V, 36A).
Most of the times the resistance of the mosfet is lower, if the mosfet is capable to drive higher currents.
So a mosfet for 36A will stay cooler than a mosfet for 6A.
You could use an optocoupler to seperate the power supplies. Or you could connect the gate directly to a Arduino pin. In that case you must use good wiring, so the ground of the Arduino is not lifted by the current of the motor. I would add a resistor of 1k for safety from the Arduino to the gate. You could also add a resistor (22k or 100k) from the Arduino pin to ground to avoid the mosfet to turn on while the output pin is floating during power-up.
About your question for a coating to use on coils for electromagnet: I don't know anything about that, sorry.
Thanks for the help. I will look for the mosfet IRL540N (100V, 36A).
So the Motor Controller Shield L298N couldn't handle one let alone two of the motors that I have, huh?
Ok I have seen through the below website how to use an Arduino, a potentiometer, and a transistor to control the steed of a DC motor. So I would just put the mosfet in instead of the transistor the author used?
How would I power my DC motor? Can I power the 12V from the Arduino or do I need another power supply for the Arduino and one for the Motor? If I need a separate motor power supply how do I connect it through the Arduino which itself would be powered by usb? I know with the shield you just cut the jumper from VEX, is it the same for the Arduino itself?
StephenD420,
If you need to quickly switch current-direction to make your 'dc' motor run .. it wouldn't be a dc, but an ac (alternating current) motor.
Disclaimer: I'm not a motor-specialist .. just being rational. I don't know if there are other motor-types than steppers that needs ac.
It is a DC Motor. I do not need to change directions but control speed. And AC is not alternating motor directions, it is alternating current making a rotating magnetic field. Trust me I have done extensive university research on AC fields.
And even if I did need to change directions the motor runs, that can still be a DC function. As a test hook up a DC motor with the pos motor wire going to the positive power wire and the negative motor wire going to the negative power wire, the motor will rotate clockwise...now switch the wires so negative goes to positive and positive goes to negative...now the motor rotates counterclockwise...so direction is not a function of AC current... if it was any AC motor would rotate clockwise and counter clockwise 60 times a second....which it does not.
About the power supply. You could use a 12V Power supply that can deliver the 3.7 amp.
You can connect the same power supply to the arduino.
With the mosfet and the two resistors as I described, you also need a flyback switching diode over the motor. The diode should be fast enough to protect the mosfet and should be able to handle the 3.7 amp (assuming the flyback current is about the same as the normal current).
If you use two seperate power supplies, you have to connect the grounds.
The ground current of the motor could shift the ground for the Arduino, you have to take care with that and use a good ground plan.