I have pulled a small fan from an old usb laptop cooler and I need to connect it to my arduino.
When I connect it directly to 5v it works as expected. But I need to control the speed of the motor/fan. To accomplish this I've connected it to a bipolar transistor(P2N2222A) and to pin 13 (for testing, I will use PWM) but it doesn't seem to work.
Anybody have any suggestions?