This week we dove into motors. The schematic for my kit called for a slightly different transistor that the one provided. If your a techie basically the emitter and collector were swapped. Flip the transition around back wards and poof it works. I will confess to lots of troubleshooting thinking that I had wired things wrong.
What did I learn? Back to basic troubleshooting – eliminate the variables. BTW works that way with real life problems as well.
This is a code sketch that makes the motor accelerate to max speed and then back down again