I need some help controlling this hobby motor. I’m using the 2n2222 transistor, 1k ohm resistor, and a 1uf diode. I posted some pictures below. The motor only turns on if I have one to diode + and then one to ground. But inwant to be able to control it via the digital pad. Right now when I do get it to work it restarts the photon due to drawing too much power.
Any help would be appreciate.