IR code conversion from RAW

Hey guys

Do you know to convert this IR raw code to a format like EOEO40BF and the opposite?

0000 006d 0022 0003 00a9 00a8 0015 003f 0015 003f 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 003f 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003f 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 003f 0015 0702 00a9 00a8 0015 0015 0015 0e6e

No. Code for what processor? A Z80 I might be able to tell about..

Go back to the beginning reading the first topic telling how to use this forum.

The opposite, you can't do. It's a hash, multiple raw code sequences would produce the same 32 bit code value.

First step: figure out the ones and zeroes. My guess would be "0015 003f" is a 1 and "0015 0015" is a 0. That leaves one case of "0015 0040" which is close enough to "0015 003f" to be called a 1. After doing those replacements:

0000 006d 0022 0003 00a9 00a8 
1 1 1 0 
0 0 0 0 
1 1 1 0 
0 0 0 0 
0 1 0 0 
0 0 0 0 
1 0 1 1 
1 1 1 1 
0015 0702 00a9 00a8 0 0015 0e6e

Converting those groups of 4 bits into hex you get:
E0E040BF

Ignore the garbage at the beginning and end. :slight_smile:

This is great, thank you. I will probably have to study this method, i am sorry if this is a standard practice. I am new to this RS232 control of equipment through Arduino. If you have a suggestion on some article about this conversion for further study, it would be great.Thanks again really

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.