What I did was connect analog pin 6 to a 10k ohm resistor
For the schematics, I don't know how to draw schematics on here.
Btw, I've copied exact circuits from others explaining it, but it still doesn't work.
I've tried for a very long time to try to get a transistor to act as a switch in order to control a motor with a 9v battery (external power supply). I've watched many tutorials and have read countless articles on it. My circuit doesn't work though. To make sure I have it right, I know that a small current on the base of the transistor makes a higher current flow from the collector to the emitter. What I did was connect analog pin 6 to a 10k ohm resistor which was connected to the base of the transistor. The collector side of the transistor I connected the positive side of the external Power supply. Finally the emitter was connected to one side of the motor and the other side of the motor connected to ground. I put common ground on everything and made a simple sketch which sent PWM signals to pin 6 (the control pin).Any feedback would be appreciated, as I'm just learning this. Thanks
Tom i think OP is taking about servo motor. In your circuit you are missing signal wire.
Ive seen rc "servo" motors but after disassembly i found it not to be a servo its just dc motor with servo mechanism inside.