... and a few steps backwards.
After so much effort getting the motor control circuit to work, you'd think I'd have learned a lesson. Instead of buying duplicate components, and transferring the circuit to my 'single board', I instead drew a diagram how it was all connected, ripped it all off the prototype board, and built it up on my single board. And... it doesn't work.
I'm going to have to go through the whole debugging process again. I've started with the IR LED combination -- for some bizarre reason this shows 12V at the receiver 'output' (cathode), so I figure that's shorted. I don't understand the numbers once again... and I went right back to square 1 and built up the IR send/receive part on the proto board, just to reassure myself they were working. Well, they weren't. Having just one spare handy, I hooked that up, and it worked ever so briefly... then stopped.
I must be doing something wrong. In any case, I'm out of IR LEDs, so it's a trip to a different electronics store tomorrow to see if I can find any more.
One thing that scared me today when doing this was when measuring the voltage in a part of my circuit, it read 120V. This got me REALLY nervous for a while, carefully back-tracking in the circuits to find out how I'd managed to build a 10x voltage amplifier. The trick to this, I discovered, is the little switch on the 10x probe -- which had accidentally been knocked back to '1x'
However, I've really been rather careless with this moving of the motor control circuit to my single board. When I was reconnecting things, after having soldered the motor circuit components in, I placed the LED negative, instead of to the LED controlling pin, to ground. This meant that there was now 20+V going through the LED matrix, when it was designed with just balancing resistors (or, suitable for 12V). The magic smoke literally streamed out of my lovely now ex-array. One of the resistors was burned brown, and at lest 75% of the LEDs have clearly burned out. Damnation!
My original array still works, so I'll use that for the while -- and possibly order another batch of LEDs soonish, so that they arrive by the time I burn out this display. I know now that I should have placed a precautionary resistor in the array board that would cater for the off chance that I'd connected the array direct to 20V.
So, I've really stepped back a week or two as far as progress goes. What I think I might do is go and buy duplicate components for a motor array, build it up on the prototype board again, get that going, and then use the working one as a way to debug the problems in the one that's now sitting on my single board. THe real issue is, I don't know if components are dead or not, or if I've just made a mistake with the wiring. Really really annoying.
One GOOD thing about this process is that I've solved a bit of a mystery I had. Every now and then, when measuring the line pulse, instead of a clean 60ms 12V signal, I'd get one that was 12V, but superimposed over a sine wave. I couldn't figure for the life of me why this was happening -- but things seemed to be working OK, so I kind of pushed this one under the carpet.
Well, it showed up as part of debugging my motor circuit in the single-board configuration -- and I realised that my two separate power rectifing circuits (the 12V powering the motor circuit, and the 20V powering the LED array/motor) did not share a common ground. And when I was measuring the line pulse signal, occasionally I'd choose one of those ground 'lines', and occasionally the other. The problem of the AC interference totally disappeared when I connected the grounds of the rectifying circuits together. So, lesson learned.
Very very frustrating weekend, though!