MOSFET pins [newbie]

i need to run this motor using arduino. so i looked up on videos on youtube, and got to know that i need to use MOSFET to run this motor, as it cant be run directly using arduino.

i intend to buy this MOSFET : http://www.ebay.com/itm/TOP-MOSFET-Button-IRF520-MOSFET-Driver-Module-for-Arduino-ARM-Raspberry-pi-/201145556765?pt=LH_DefaultDomain_0&hash=item2ed5359f1d

but there are more than 3 pins, as you can see V+ V- Vin Vgnd pins are there on top
what will be the use of those 4 pins? should i buy this or should i look for other alternatives?

Hi,

A Mosfet might be a bit overkill for this motor as it only draws 60-300mA.

The 5 pins are used like this.

BLUE BLOCKS
V+ and V- are connected to your Motor.

Vin and GND are connected to the 12V power supply.

PIN HEADER
SIG is the signal to turn the Mosfet on/off
VCC and GND is connected to your arduino.

Don't buy that MOSFET module!

It doesn't use a logic-level MOSFET - in fact it uses an ancient device the IRF520
which has poor performance compared to modern devices.

To work from 5V you must have a logic-level MOSFET. Datasheets will indicate
logic level devices something like this:

"Vds(on): 0.020 ohms at Vgs=4.5V" - in other words its rated for a gate-source
voltage of 5V (less a little for safety).

Do not be confused by Vth (threshold voltage) - this has nothing to do with
switching on the device.

JakobHalskov:
Hi,

A Mosfet might be a bit overkill for this motor as it only draws 60-300mA.

The 5 pins are used like this.

BLUE BLOCKS
V+ and V- are connected to your Motor.

Vin and GND are connected to the 12V power supply.

PIN HEADER
SIG is the signal to turn the Mosfet on/off
VCC and GND is connected to your arduino.

hi thanks for replying.
if MOSFET is overkill, what should i use?please give me ebay link or name of that module if anything reqd.
can arduino deal with 300mA current directly if i attach it to one of the pins?
EDIT: i googled and found arduino can take around 40mA current safely. so what should i use to run this motor? (i have worked with LEDs in past, but that was just for fun)

MarkT:
Don't buy that MOSFET module!

It doesn't use a logic-level MOSFET - in fact it uses an ancient device the IRF520
which has poor performance compared to modern devices.

To work from 5V you must have a logic-level MOSFET. Datasheets will indicate
logic level devices something like this:

"Vds(on): 0.020 ohms at Vgs=4.5V" - in other words its rated for a gate-source
voltage of 5V (less a little for safety).

Do not be confused by Vth (threshold voltage) - this has nothing to do with
switching on the device.

hi, thanks for sharing knowledge.
btw can you please give link to any good cheap logic level MOSFET about which you are telling?
i am actually a mechanical engineering student, so i dont know much about Vds Vth etc terms

My god... so many IRF520 modules!
I have a feeling they "sorta work" with logic level voltages, so the sellers can get away with it, even if they're being used outside of spec. Looking at the typical performance graph, it looks like you can scrape by at 5v on the gate if you're at low current (1.x v drop at 1A, saturates not far above that). I'm amazed that there aren't piles of MOSFET modules with cheap SMD parts on them...

http://www.ebay.com/itm/301357646243 is one that uses logic level FETs.

DrAzzy:
My god... so many IRF520 modules!
I have a feeling they "sorta work" with logic level voltages, so the sellers can get away with it, even if they're being used outside of spec. Looking at the typical performance graph, it looks like you can scrape by at 5v on the gate if you're at low current (1.x v drop at 1A, saturates not far above that). I'm amazed that there aren't piles of MOSFET modules with cheap SMD parts on them...

http://www.ebay.com/itm/301357646243 is one that uses logic level FETs.

can you please tell what is the type of MOSFET being used in https://www.youtube.com/watch?v=sOz41WQF7wE this video. that seems just like a common transister, looks compact. where can i get one of these?

actually i need to run motor at different RPMs. i found that the MOSFETs are like switches. can be turned ON or OFF. so what to do to make motor run at different RPMs? how to send PWM? please respond (try to bear with me as i am quite new to electrical,sry)

That's a MOSFET in the TO-220 package.

There are shitloads of suitable FETs in that package (though not nicely installed in breakout boards for you).

This godawful wall-of-text link should get you to a list of suitable fets from Digikey (imo the best run, most on-the-ball electronics vendor I've dealt with)

http://www.digikey.com/product-search/en?pv608=1889&pv608=1702&pv608=1356&pv608=1713&pv608=1261&pv608=1311&pv608=2085&pv608=2304&pv608=2649&pv608=1578&pv608=1247&pv608=1626&pv608=1759&pv608=2200&pv608=1536&pv608=1341&pv608=1767&pv608=1615&pv608=3313&pv608=2310&pv608=1989&pv608=2028&pv608=1156&pv608=2788&pv608=2575&pv608=2878&pv608=1577&pv608=2024&pv608=3330&pv608=1716&pv608=1255&pv608=2505&pv608=2452&pv608=1545&pv608=1756&pv608=2359&pv608=2757&pv608=1865&pv608=1685&pv608=1528&pv608=1584&pv608=2469&pv608=3023&pv608=1635&pv608=2862&pv608=2482&pv608=1949&pv608=2422&pv608=2696&pv608=2114&pv608=2070&pv608=2430&pv608=1813&pv608=2842&pv608=1883&pv608=3216&pv608=2745&pv608=1324&pv608=1930&pv608=2240&pv608=1254&pv608=2064&pv608=1235&pv608=2527&pv608=3440&pv608=1986&pv608=1979&pv608=2678&pv608=2682&pv608=2097&pv608=2776&pv608=2410&pv608=1473&pv608=2171&pv608=2712&pv608=1885&pv608=1970&pv608=1875&pv608=2123&pv608=1589&pv608=1189&pv608=2726&pv608=2059&pv608=2851&pv608=1529&pv608=2233&pv608=1477&pv608=1660&pv608=2393&pv608=2754&pv608=2193&pv608=1567&pv608=1655&pv608=3442&pv608=2760&pv608=1464&pv608=1688&pv608=2267&pv608=2619&pv608=2404&pv608=2362&pv608=2560&pv608=1554&pv608=1508&pv608=2317&pv608=2125&pv608=1810&pv608=2626&pv608=1644&pv608=2232&pv608=1612&pv608=1413&pv608=2848&pv608=1442&pv608=2225&FV=fff40015%2Cfff8007d%2C1c0002%2C1c0003%2C1c0006%2C1c003e%2C1c00c5%2C40203a%2C40220d%2C402a4c%2C402e34%2C40316e%2C403170%2C4033df%2C4037f6%2C40381f%2C9780013%2Cefc0005%2Cefc0012&mnonly=0&newproducts=0&ColumnSort=0&page=1&stock=1&quantity=0&ptm=0&fid=0&pageSize=500

Any of those should work, assuming I got all the filters right. Some of them are monstrous, and excessive for your task.

You can do PWM using analogWrite() on a PWM pin.

You're driving a motor - remember the diode between the pins to clamp the back EMF (put a diode - just about any diode beefier than a signal diode - between the two terminals on the motor, with the band towards the positive side (ie, so you'd expect it to never conduct, if you didn't know about inductive loads - when you disconnect an inductive load like a motor, it wants to keep the current flowing - which means the voltage at the old negative side will briefly spike. So you put a diode there to "clamp" it.)

bluepratham57:
hi, thanks for sharing knowledge.
btw can you please give link to any good cheap logic level MOSFET about which you are telling?
i am actually a mechanical engineering student, so i dont know much about Vds Vth etc terms

Electronic suppliers stock literally thousands of different power MOSFETs. The key
is to use their online search tools to find suitable device(s). I use Farnell/Element14, there
are many others.