Go Down

### Topic: 0-15 V DC motor (Read 1 time)previous topic - next topic

##### Feb 23, 2011, 01:50 am
Is there a good way to get the ArduinoMega2560 to output 0-15 volts?  Our motor needs at least 10 Volts to spin at the speed we need and a smaller motor wont work due to the load we are trying to spin.  We have tried a MOSFET and it keeps blowing the IC.  The only answer we have come up with is to put a 7.5 volt battery in series with the 5 volt output from the arduino board.

Any ideas?

#### johnwasser

#1
##### Feb 23, 2011, 01:55 am
The MOSFET and an external power supply is a good idea.  You will need a MOSFET that can handle the voltage and current.  Expect a fairly large current spike when starting the motor from a stop.  Put a diode across the motor to absorb the "back EMF" of the motor windings.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

#### retrolefty

#2
##### Feb 23, 2011, 02:00 amLast Edit: Feb 23, 2011, 02:27 am by retrolefty Reason: 1

Quote
Is there a good way to get the ArduinoMega2560 to output 0-15 volts?  Our motor needs at least 10 Volts to spin at the speed we need and a smaller motor wont work due to the load we are trying to spin.  We have tried a MOSFET and it keeps blowing the IC.  The only answer we have come up with is to put a 7.5 volt battery in series with the 5 volt output from the arduino board.

Any Arduino output pin can only output 5vdc at low current. To power a motor you need to power it with a external DC power supply sized for the voltage and current requirement of the motor. A transistor is then used to control the motor and the arduino controls the transistor.

First you need to tell us the normal voltage and max current rating for the motor, otherwise any specific recommendation would just be guessing.

Lefty

#### zoomkat

#3
##### Feb 23, 2011, 02:32 am
Sparkfun has a logic level MOSFET for ~\$1 that might work for you.

http://www.sparkfun.com/products/10213
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

#### johnwasser

#4
##### Feb 23, 2011, 05:23 pm
That SparkFun MOSFET is a good choice.  I think it's the same one that Makerbot uses in the Extruder Controller.

Note that even though the MOSFET is rated or 30A it will only do that with a good heatsink.  Without a heatsink it will overheat at about 2 or 3 amps at 12v (24 to 36 watts) and shut itself down.  Fortunately the shutdown is just a protective measure and if you turn off the power it will reset.  It also has a built-in diode to protect against back-EMF from an inductive load.  They are hard to kill, which is good for experimenters.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

#### retrolefty

#5
##### Feb 23, 2011, 05:51 pm
Quote
Without a heatsink it will overheat at about 2 or 3 amps at 12v (24 to 36 watts) and shut itself down.

Could you expand on this 'automatic' feature you are talking about?

It's been my experience that it is very easy to destroy power mosfets by forcing them outside their SOA (safe operating area). Manufactures go to great detail in their datasheets to explain the limits and the need to avoid them.

Lefty

#### weirdo557

#6
##### Feb 23, 2011, 10:43 pm
the datasheet  mentions nothing of current or thermal shutdown. im pretty sure if you push this mosfet too hard it will blow up, not shut down. perhaps you are thinking of a 7805 or some other nicer mosfet.

#### weirdo557

#7
##### Feb 23, 2011, 10:45 pm
http://www.onsemi.com/PowerSolutions/product.do?id=NID5004N

those ones are current/ thermal protected.

#### johnwasser

#8
##### Feb 25, 2011, 04:08 pm

http://www.onsemi.com/PowerSolutions/product.do?id=NID5004N

those ones are current/ thermal protected.

You're right.  I got the two confused.  The ON Technology one is the kind used in the Makerbot.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up

Please enter a valid email to subscribe