Hello, i've been lurking in the backgrounds, picking up what I need to program a Pronto TSU2000 remote, and am almost complete. The last device I'm trying to code is a NEC LT240K projector, which when it is powered on requires 2 seconds of the on button being held down. I've done some searches, and came across the IR tutorial, and tried diagnosing the IR code. I'm trying to isolate what I need to do to get a macro to have the on button seem to be on for the 2-3 seconds needed to power on the projector.. As a secondary purpose, I wanted to learn how to clean up the IR code to be a "clean" code, if possible.
Anyways, if anyone could take a look at this, I'd appreciate it!
Pronto Code: 0000 006d 0022 0002 0154 00aa 0016 0014 0016 0014 0016 0014 0016 003e 0016 003e 0016 0014 0016 0014 0016 0014 0016 003f 0016 0014 0016 0014 0016 003e 0016 0014 0016 003f 0016 003e 0016 003e 0016 0014 0016 0014 0016 0014 0016 003e 0016 0014 0016 0014 0016 0014 0016 0014 0016 003e 0016 003e 0016 003e 0016 0014 0016 003e 0016 003e 0016 003e 0016 003e 0016 0618 0154 0055 0016 0e3e
Preamble 0000- Always first word is 0000 indicating it was learned 006d-frequency of ir carrier formula: Frequency (kHz) = 1000000 / (N * .241246) where N = decimal value of second hex code (in this case dec[6D] = 109) so frequency = 38028.87 kHz. Freq has a tolerance of +- 10% so roughly a 40000 kHz cycle. 0022-Length of the One Time Burst DEC(22) = 34 0002-Length of the Repeat Burst DEC(02) = 2
BurstPair1 Lead in burst (NEC fixed 0156 00AB)
0154= DEC(154) = 340translates to 340 /170… 2 units of 00aa= CEC(ab) = 170on followed by 1 unit of off.
0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 2, bit2 = 0 0016 0014-(22 22 Decimal) Burst pair 2, bit2 = 0 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0
0016 003f-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 003f-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1
0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0
0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 0014-(22 22 Decimal) Burst pair 1, bit1 = 0 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1 0016 003e-(22 66 Decimal) Burst pair 2, bit2 = 1
Lead out (NEC fixed code 0016 0593) 0016 22 0618 1650
BurstPair2 (lead in?) 0154= DEC(154) = 340translates to 320 /80… 4 units of 0055= DEC(55)= 85ON followed by 1 unit of OFF
0016 0e3e
Okay, now is it just the 0016 0e3e that needs to be repeated? am I missing something here?
So i create a button with the repeatable code, and alias it, how many times?
also, the NEC codes are supposed to be 34 bits divided into 4 strings of 8 bits (say A, B, C, and D) A & B are supposed to be compliments but they aren't in the code learned above (dirty code?) C & D seem to be compliments of each other no questions here
and finally, how would one clean this up? or is it "good enough"?
Sorry for the length, I've tried going as far as I can, and just need a little push... :)
|