However ... this simple BASIC program sometimes runs 'forever' but sometimes just stops at some random point ...
Code: Select all
10 I%=0
20 REPEAT
30 PRINTI%;" ';
40 I%=I%+1
50 UNTIL FALSE
Seems super weird.
Code: Select all
10 I%=0
20 REPEAT
30 PRINTI%;" ';
40 I%=I%+1
50 UNTIL FALSE
Code: Select all
30 PRINTI%;" ";
Code: Select all
I%=0
REPEAT
IF I%MOD2 THEN PROCON ELSE PROCOFF
PROCWAIT
I%=I%+1
UNTIL FALSE
END
DEFPROCON
*MOTOR 1
ENDPROC
DEFPROCOFF
*MOTOR 0
ENDPROC
DEFPROCWAIT
LOCAL X
FOR X=1 TO 100:NEXT X
ENDPROC
OK, that's interesting: it doesn't mean you have a reliable machine, as you've already shown you don't. It means Elite attract mode isn't a good test for your particular machine's defect.
You’re welcome!Bobbi wrote:Thanks for your comprehensive analysis!! I have to say it sounds about right to me. If the diode were bad (or has a dry joint) then there would be a big fat back EMF from the relay which could kill the LED. Also, that big fat back EMF could well cause a big hiccup on the power rails sufficient to crash the machine.
So it seems the protection diode was incorrect. I guess I will mod the circuit to put the diode in parallel with the relay coil as intended, then replace the LED.The position of D13 was changed to put it in parallel with the relay coil rather than across the collector and emitter of the transistor (Q3).