Closed bilogic closed 5 years ago
you could try?https://github.com/ToniA/arduino-heatpumpir
Hello, in order to help, could you let me know from where is coming your raw code ? Are you using the the sample demo included ? regards,
Hi,
My raw code was captured using the AnalysIR sketch found here: http://www.analysir.com/blog/wp-content/uploads/2014/03/Arduino_Record_Long_AirConditioner_Infrared_Signals_10.txt
The sample I tested was https://github.com/r45635/HVAC-IR-Control/blob/master/HVACDemo/HVACDemo.ino, there was no reaction from the AC.
Ok for clarification. At that point i'm not able to use your raw code. As far i remind the soft from Chris (Analysis IR) should be able to detect your Mitsubishi protocol and therefore should provide you binary data instead of raw. I would strongly suggest to use 2 arduino for your debug purpose. Use one in reception with AnalysisIR and another one just for emission.
some basic checks : make sure to have an IR led emitter, make sure IR led is pointed directly to your HVAC (mine are very sensitive if you're not emitting to his direction).
regards,
Hi @bilogic . I've checked your IR code, there is a tiny difference between your code and @r45635 's protocol. The third bit of Byte 14 in your code is 1, which was not informed by @r45635 .
I think you can try this:
edit IRremote2.cpp, at line 399
byte data[18] = { 0x23, 0xCB, 0x26, 0x01, 0x00, 0x20, 0x08, 0x06, 0x30, 0x45, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F };
change the 15th(aka Byte 14) HEX number to 0x20, so the line will be like this
byte data[18] = { 0x23, 0xCB, 0x26, 0x01, 0x00, 0x20, 0x08, 0x06, 0x30, 0x45, 0x67, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x1F };
if this doesn't work, I think you should check your IR emitter, use another arduino board to recieve the code your sent and have it checked.
Thanks @bt4wang, i propose to closed that issue waiting a feedback confirmation from someone if such bit value is the reason of no HVAC reaction for this model.
Hi,
https://github.com/ToniA/arduino-heatpumpir got it working for me, his repo supports the P/N KM09G 0116667 remote control. Thank you.
I've read the code and I think the only difference is that when sending the "twin" packets, for msy he changes one byte at position 14.
// Pause between the first and the second data burst
// Also modify one byte for the second burst on MSY model. This does not affect the checksum of the second burst
if (j == 0) {
IR.mark(MITSUBISHI_AIRCON1_BIT_MARK);
IR.space(MITSUBISHI_AIRCON1_MSG_SPACE);
if (_mitsubishiModel == MITSUBISHI_MSY) {
MitsubishiTemplate[14] = 0x24;
}
}
Hi,
I tried this code, but no reaction from the AC. I have confirmed that the IR LED is indeed blinking (using smartphone camera)
Below are the RAW codes for my on and off. Any tips on the best way to get started? Thank you.