Hey everyoneI'm just starting out with Arduino and have been working my way through the Vilros starter kit.I don't quite get circuit 10 (attached)I understand the purpose of the diode is to handle the voltage spike when the transistor is switched off and the motor's EMF collapses.
But why doesn't the current flow into 5V instead of going in a loop, since the spike's voltage will be much higher than 5?
And wouldn't it be easier to just have the motor's negative terminal connected to GND and have the transistor control current flow between the positive terminal and 5V? Wouldn't that let the current drain into GND without a diode?
One last question: if I connected the motor the other way around, so it spins counterclockwise, would it change the resulting voltage spike in any way?
I'm sensing my understanding of electricity is way off.. thanks in advance for your answers
Electricity will always look for the easiest way to flow, this is the way with the least resistant, being either ohm wise or another voltage