With a 2N2222A, here's what I think would work.
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1915&stc=1&d=118632654 6">
If you don't have a good, solid, well filtered power supply, the PIC will have problems. Resetting, or just doing weird stuff.
And the motor's proximity to the circuit, may have the same effect.
<br>
Bookmarks