Hello gang, here is my project: I want to order in IR my electric fireplace from the arduino because I do not have a thermostat on my home electric. (In addition, I would like to do a heating program).
I have 2 arduino to do my tests. The first, with an IR receiver, and the code to display the received signal.
(I captured the signal from the remote control of the electric fireplace).
The second, with a 940nm IR LED, sends the signal, for the moment simply the PowerON-OFF.
Here is my problem. The received signal is not the same as the one sent. Do you have an idea to help me because I'm blocking.
Thank you
IR Remote control signal and sent signal:
unsigned int fireplaceONOFF[67] = {8900,4300, 650,450, 650,450, 600,500, 600,500, 650,500, 600,450, 650,450, 650,450, 600,1650, 600,1600, 600,1550, 650,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600,500, 650,1550, 600,500, 600,500, 600,500, 600,500, 600,500, 650,450, 600,1600, 600,500, 600,1600, 600,1600, 650,1550, 600,1600, 650,1550, 650,1600, 600}; // NEC FF40BF
IR signal receive :
09:49:47.050 -> Encoding : NEC
09:49:47.050 -> Code : FF40BF (32 bits)
09:49:47.097 -> Timing[67]:
09:49:47.097 -> +8900, -4300 + 650, - 500 + 600, - 500 + 600, - 500
09:49:47.191 -> + 600, - 500 + 600, - 500 + 600, - 500 + 600, - 500
09:49:47.237 -> + 600, - 500 + 600, -1600 + 600, -1600 + 600, -1600
09:49:47.331 -> + 600, -1600 + 600, -1600 + 600, -1600 + 600, -1600
09:49:47.378 -> + 600, -1600 + 600, - 500 + 650, -1550 + 600, - 500
09:49:47.472 -> + 650, - 500 + 550, - 500 + 650, - 500 + 600, - 500
09:49:47.566 -> + 550, - 500 + 650, -1600 + 600, - 500 + 600, -1600
09:49:47.612 -> + 600, -1600 + 600, -1600 + 600, -1600 + 600, -1600
09:49:47.659 -> + 600, -1600 + 600
09:49:47.706 -> unsigned int rawData[67] = {8900,4300, 650,500, 600,500, 600,500, 600,500, 600,500, 600,500, 600,500, 600,500, 600,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600,500, 650,1550, 600,500, 650,500, 550,500, 650,500, 600,500, 550,500, 650,1600, 600,500, 600,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600,1600, 600}; // NEC FF40BF
09:49:48.081 -> unsigned int data = 0xFF40BF;