gary wrote:No I am not contradicting Klaas, as I said UNLESS your supply voltage exceeded the spec of the motor there was no need for it. I didn't realise your supply voltage was so high (in your schematic you have the positive side tied to ground
). In that case you have no choice but to have a resistor (acting as a voltage divider) if you want the transistor to go into saturation (which you do). The resistor could now just as easily be in the emitter leg (Klaas presumably had it in the collector to eliminate the need for the base resistor but as you now see that has a potential disadvantage). There is no other advantage either way but be aware that whatever current your motor is pulling will now be passing through that resistor and being dissipated as heat (power = square(I) x R ~ 1.75 watts @ 0.5A).
Then I've drawn the diagram wrong. I will review and correct.
I built a new power board. It is working again!
A few notes
The motor came up to speed
really slowly. Obviously that 7 ohm resistor. I shorted it, and now it's back to how it was. Down a rabbit hole, really - the motor needs more current than I thought, and in any case the 1K resistor protects the Arduino. So I learned some stuff, all good. And the Arduino is not fried: even better.
OK, Klaas put the resistor on the emitter, going to ground. If my diagrams show it on the collector, they're wrong. I labeled the pins on the TIP122 E B C to be clear.
If you are saying that beause of the orientation of the schottky diode that defines the positive side of the motor, then the diode is drawn the wrong way around - I did put a note there to that effect. Otherwise, I have a real problem in my circuit sketch and need to understand/correct.
All appears to be working now - I'm back to where I was before I stupidly decided to play with the motor board.
Diagnosis:
a) I blew up the TIP122 because it did have a lot of heat for a fair while when I was soldering - i had to desolder globs and took some time. I noticed it was really hot.
b) I screwed up the wiring/circuit somehow.
c) When I was testing PWM from the pin, I did that wrong, or somehow other parts of the circuit were affecting it.
Been an interesting few hours.