I cant find the problem here!
I have a motor hoocked up like shown in the tutorial motors and transistirs, I have a code turnin a PWM pin high and low (them i tried with 0 and 255, if there is even a difference)
void setup() {
pinMode(5, OUTPUT);
}
void loop() {
digitalWrite(5, HIGH);
delay(1000);
digitalWrite(5, LOW);
delay(1000);
}
I have 5 volts-0 Volts changing within a second, but when i connect the motor it stays at 0 volts
I hoocked up an LED and it works fine
The motor is not baked, i tried it by connecting it directly to 5 volts and it rotates.
The transistor i used is rated for 1A collector current.
Any ideas where the problem might be?





