I am trying to drive a nema 17 stepper motor with a 12v external power source between the collector and emitter. The base voltage will be 5v supplied by an Arduino Uno. I have read a lot on the net about transistors and stepper motors. However, the diagrams on the net have diodes in different places and some have resistors and some have not.
I have tried my best to draw a diagram to represent how I have it currently connected. I do not have any resistors in the diagram because I do not know why I would need it and where to add them. I added the diode between the 5v signal source and the base thinking it will prevent the external 12v from pushing back into the Arduino. Some positive input to help me understand will be most welcome.