Good day! I have a probem with regards on controlling dc motors using potentiometers and general purpose transistor(PN2222). What I want to come up with is a motor controlled by a LDR that when detects light reverses its rotation.....
You need to do some research (beginning with the motor current). From your previous posts it appears that this isn't easy for you, but it is essential.
The chances are your transistor is too small to power the motor, you're much better off using a power transistor like the TIP32 or a power MOSFET like the IRF540.