DC motor with arduino

How to drive a DC moto using arduino UNO and irf 540 MOSFET????

Don't use that MOSFET, its not logic level and needs 10V of gate drive.

Find a logic level mosfet with a decent rating (low on-resistance), and drive it via analogWrite () (ie with PWM). You'd normally add a 10k resistor or so between gate and source to turn it off during power-up/reset and a 150 ohm series resistor to limit the current spikes from the Arduino pin.

Arduino pin -> 150 ohms -> gate, source->GND drain-> motor - Vmot -> motor + freewheel diode across motor terminals, cathode to Vmot.

Vmot is the motor supply, common the grounds.

What are LOGIC level MOSFET'S?????

http://www.electro-tech-online.com/threads/logic-level-vs-normal-mosfets.91756/

Steve

What's a "DC moto".

vishal_3: How to drive a DC moto using arduino UNO and irf 540 MOSFET????

Go for IRL540 - note the 'L' in 'IRL'.

Logic level mosfets will be able to fully 'turn on' when you apply (across the gate and the source) voltages at 'logic voltage levels' (eg.... read up on TTL logic voltage levels etc.... eg. 5V....but some other logic level mosfets handle 3.3V too).