Can't control a motor from pwm port

Hi all, I've a motor I should use for a little project, but I don't know how to work with it:

  • tried to power it from a usb port of my pc, and it works
  • tried to power it from the 5v pin on my arduino uno and it works
  • tried to power it from a pwm port, but it doesn't work

I don't know how much current it drains (also I don't know how to measure it), how can I make it work with a pwm port?

Sorry if my explanation is confused or something.

You need a transistor, as shown here.

Hi,
You need to use a MOSFET to control the motor current.

Tom.. :slight_smile:

Thank you for your fast answers, I have many transistor I can use (one from an stereo and many from a printer board), how can I tell if them are mosfets or normal transistors?

I've searched datasheets for all of them but I don't know what to look for.