Thanks for the reply.
Can the resistor be removed and the wires directly going to +5V without the resistor? (Since in the link in the original post, 3 pins went directly to 5V on the L293D driver without a resistor). Otherwise I'm just going to include the resistor as in the schematic.
While I am going to add diodes as shown in the schematic because that is the correct way, I'm also trying to understand what goes on and why that design of diodes works.
I attached an image of my basic understanding of diodes, which can be seen on the top of the image. When there is back EMF the coil is shorted from one end to the opposite end.
On the bottom, the diodes for one of the stepper motor coils are shown. I hope someone can explain how the coil is shorted when there is back EMF.
I don't see any open path from one coil to the other coil through the diodes. I also see that the diodes completely block current to ground, and I'm assuming ground will always have the lowest voltage, thus the diodes and the wiring to ground can be eliminated as shown on the image to the right, since no current will ever flow there. If I'm wrong, please help me out.
Thanks!