A while back I got the idea if plugging in my DC motor to my Uno at the 5v and Gnd. Sure enough just plugging the Uno made the motor run.
Then I changed the 5v for a digital pin and wrote voltage to it. Again it worked beautifully.
Today I'm looking for motor tutorials and ran across 2 tutorials that make a more sophisticated connection using diode, transistor and resistor.
I'm not an electronics major but I have a decent understanding of basic electricity. I understand a resistor is necessary to limit the current flow in a led circuit because less are so sensitive to current flow. But I'm asking for help understanding what transistor and diode do in the motor circuit and more importantly how the setup can be interpreted.
How would you guys explain what is happening in this circuit in layman's terms?