Sent value and received value is different in IR transmission proccess

Hello guys hope you are doing well. I have problem with ir transmitting. I have package consists of 9 digit hex code (36 bit). I am using library irremoteesp8266 library and sendNEC function for sending my package. problem is if I dont change bit size of sendNEC from 32 to 36 function is sending last 8 digits and missing 1st digit. If I change bit size IR receiver is receiving totally different thing. For example. I am sending 0x5850004EE, but receiving 0x12DD2555. I dont think this is because of some noise. Because I am always receiving this value.

It would be helpful if you provided more information about your setup i.e. the code and components you are using.

0x5850004EE is a 9 bit number and 0x12DD2555 is an 8 bit number. so it looks to me like you might have to change the bit size in the receiving code setup as well as the sending code.

Could you please give some example? I looked for it but couldn`t find anything useful.

You need to provide the code, so that others can see how you have declared variables and the method you are using to transmit and receive data.

Grumpy_Mike is just saying the send data is one digit greater than the receiving code, without the code we are not able to determine why this is happening.

1 Like

Certainly, once you post your code and a schematic of your hardware, so we know where everything fits in.

We can only know what you tell us, and so far we have very little to go on.

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