Okay, so I've not responded to this ever occurring subject, now I must.
First, as Robert has pointed out, many many times, If you reprogram your CG litter box,
the original OEM code is gone !! End Of Story !!!
Next, even if you could 'finally" extract the OEM code from a CG litter box, You can not use it.
All companies Copywrite their code, for good reason. It is illegal to use Copyright Code, plain and simple
I've programmed eight CG litter CPU's. Most were CG-120 series (two were newer units) and the remaining were CG-60's The only issue I've had in the programming process were my own fault.
My oversights,,
I had one newer CG-120 that (after re-programming) when it finished the initial scoop routine it never started the wash routine - the litter box never filled. The CG litter box just ran the bowl in the same direction - Endlessly.
After three attempts at re-programming this litter box I decided to back up and see what I was dong WRONG
I decide to run the Diag program.
I immediately knew that I was making an error because the Roberts marvelous Diagnostic ran perfectly. I was using the MPLAB program. I simple fact is that when I programmed Roberts Run program I was selecting the incorrect CPU. No, I don't recall the exact error other than I selected the incorrect CPU, one of the letters.
On another occasion the CG litter box operated rather unexpectedly. Every time I cycled the A.C. Power the litter box started somewhere in he middle of the program. I discovered that one of the pins on the programming socket was defective, holding retention was very loose. Of course it was the serial pin. Replacement of this socket solved my problems. One can test the retention by inserting a single pin into each location in the connector
The other common errors were forgetting to check the boxes in the PicKit programmer GUI or forgetting to plug in the CG litter box so as to have the + 5 Volt D.C on the circuit board.
I don'r utilize or design PIC CPU's, in anything that I've designed over the last couple of decades. So, for Me, the small details can quickly make a re-program a difficult and frustrating task.
I've long since forgotten what your original problem with your CG-120 is. But, if you have installed the Diag program and this program does operate properly, please list the exact errors in the operation of daig program.
IF your tests indicate a defective IR LED in the H2O detect circuit then please detail out your test and how you reached this conclusion.
Do KNOW that the IR Detector is very sensitive to ambient light. Yes it is an IR device and should not be sensitive to visible ambient light, but it in fact this one is.
So if you plan to test the D.C voltage output of the IR sensor then you will need to accomplice this in a dimly lighted area.
Once AGAIN. THERE is 120 Volts on this circuit board and extreme caution must be taken when testing a CG circuit board that is HOT, plugged in 120 Volts !!
BE Careful !!
Michael...