My AC does not recognize if I send what I captured with IRremote
-
- Posts: 8
- Joined: Fri May 03, 2024 3:53 pm
My AC does not recognize if I send what I captured with IRremote
I capture with the standard method "if (irrecv.decode(&results))" and save for later (attached full code and circuit diagram). I have assembled 2 PCBs one for receiving and one for sending
You do not have the required permissions to view the files attached to this post.
Re: My AC does not recognize if I send what I captured with IRremote
I will stay with the receiver part for now...
IR Receiver: That IR receiver you show is probably the worst you can get - but that is not likely your problem.
- I suggest you start again using the SimpleReceiver from the IRremote examples on Github. (You should only have to change the pin definition.)
IR Receiver: That IR receiver you show is probably the worst you can get - but that is not likely your problem.
- I suggest you start again using the SimpleReceiver from the IRremote examples on Github. (You should only have to change the pin definition.)
-
- Posts: 8
- Joined: Fri May 03, 2024 3:53 pm
Re: My AC does not recognize if I send what I captured with IRremote
Thanks! As you suggested, I started with SimpleReceiver. I am getting the following output for Off and On buttons. Should I store this as it is and send or any modification is requited?
START ..\SimpleReceiver.cpp from May 4 2024
>>>For Off button
Using library version 4.3.1
Ready to receive IR signals of protocols: NEC/NEC2/Onkyo/Apple, at pin 2
Received noise or an unknown (or not yet enabled) protocol
rawData[100]:
-3276750
+1000,- 500
+1000,-2550 +1000,- 500 +1000,-2600 +1000,-2550
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,-2550 +1000,- 500 +1000,-2550
+1000,- 550 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 550
+1000,- 450 +1050,- 500 +1000,- 500 +1000,-2550
+1000,-2550 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,-2550 +1000,-2600 +1000,-2550
+1000,- 500 +1000,-2550 +1000,-2550 +1000,- 500
+1000,- 500 +1000,-2550 +1000,-2550 +1000,-2550
+1050,- 500 +1000,-2550 + 950,-2600 + 950,- 550
+1000
Sum: 109600
>>>For On button
Received noise or an unknown (or not yet enabled) protocol
rawData[100]:
-3276750
+1000,- 500
+1000,-2550 +1000,- 500 +1000,-2550 +1000,-2550
+1000,- 500 +1000,- 500 +1000,- 550 +1000,- 500
+1000,- 500 +1000,-2550 +1000,- 500 +1000,-2550
+1000,- 500 +1000,- 500 +1000,- 500 +1000,-2550
+1000,- 500 +1000,- 550 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,-2550
+1000,-2550 +1000,- 550 +1000,- 500 +1000,- 500
+1000,- 500 +1000,-2550 +1000,-2550 +1000,-2550
+1000,- 500 +1000,-2550 +1000,-2550 +1000,- 500
+1050,- 450 +1050,-2550 +1000,-2550 +1000,-2550
+1000,- 500 +1000,-2550 +1000,-2550 +1000,- 500
+1000
Sum: 111600
START ..\SimpleReceiver.cpp from May 4 2024
>>>For Off button
Using library version 4.3.1
Ready to receive IR signals of protocols: NEC/NEC2/Onkyo/Apple, at pin 2
Received noise or an unknown (or not yet enabled) protocol
rawData[100]:
-3276750
+1000,- 500
+1000,-2550 +1000,- 500 +1000,-2600 +1000,-2550
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,-2550 +1000,- 500 +1000,-2550
+1000,- 550 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 550
+1000,- 450 +1050,- 500 +1000,- 500 +1000,-2550
+1000,-2550 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,-2550 +1000,-2600 +1000,-2550
+1000,- 500 +1000,-2550 +1000,-2550 +1000,- 500
+1000,- 500 +1000,-2550 +1000,-2550 +1000,-2550
+1050,- 500 +1000,-2550 + 950,-2600 + 950,- 550
+1000
Sum: 109600
>>>For On button
Received noise or an unknown (or not yet enabled) protocol
rawData[100]:
-3276750
+1000,- 500
+1000,-2550 +1000,- 500 +1000,-2550 +1000,-2550
+1000,- 500 +1000,- 500 +1000,- 550 +1000,- 500
+1000,- 500 +1000,-2550 +1000,- 500 +1000,-2550
+1000,- 500 +1000,- 500 +1000,- 500 +1000,-2550
+1000,- 500 +1000,- 550 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,- 500
+1000,- 500 +1000,- 500 +1000,- 500 +1000,-2550
+1000,-2550 +1000,- 550 +1000,- 500 +1000,- 500
+1000,- 500 +1000,-2550 +1000,-2550 +1000,-2550
+1000,- 500 +1000,-2550 +1000,-2550 +1000,- 500
+1050,- 450 +1050,-2550 +1000,-2550 +1000,-2550
+1000,- 500 +1000,-2550 +1000,-2550 +1000,- 500
+1000
Sum: 111600
-
- Posts: 8
- Joined: Fri May 03, 2024 3:53 pm
Re: My AC does not recognize if I send what I captured with IRremote
Thanks a ton!!!
Your suggestion to use SimpleReceiver led me to use another example - ReceiveAndSend. I made changes to the assembled PCB to have both trancemitter and receiver, and a button. I recorded the "On" command and now on button press it sends the "On" command and the AC turns on!!! It works of the "off" button as well. I will record some more buttons and see if it is successful too. I will post the results of that here
Your suggestion to use SimpleReceiver led me to use another example - ReceiveAndSend. I made changes to the assembled PCB to have both trancemitter and receiver, and a button. I recorded the "On" command and now on button press it sends the "On" command and the AC turns on!!! It works of the "off" button as well. I will record some more buttons and see if it is successful too. I will post the results of that here
Re: My AC does not recognize if I send what I captured with IRremote
Great....However...
- You will see that the buffer size of 100 may limit the size of signal received.
- It appears that the ON/OFF signal is less than 100 in size. (=71)
- That may not be the case for all the other signals.
So if you receive issues with the other signal simply increase the size defined for rawData in the library.
ref: Whirlpool mini split Air Conditioner (AC)
- You will see that the buffer size of 100 may limit the size of signal received.
- It appears that the ON/OFF signal is less than 100 in size. (=71)
- That may not be the case for all the other signals.
So if you receive issues with the other signal simply increase the size defined for rawData in the library.
ref: Whirlpool mini split Air Conditioner (AC)
Re: My AC does not recognize if I send what I captured with IRremote
FYI: you should be able to increase the IR current up to ~300mA for even better performance/range.
(assuming you are using a 5mm LED)
(assuming you are using a 5mm LED)
-
- Posts: 8
- Joined: Fri May 03, 2024 3:53 pm
Re: My AC does not recognize if I send what I captured with IRremote
Thanks, I will do both. For increasing the buffer size, is the following okay (this is already done in ReceiveAndSend.cpp)
#if !defined(RAW_BUFFER_LENGTH)
# if RAMEND <= 0x4FF || RAMSIZE < 0x4FF
#define RAW_BUFFER_LENGTH 120
# elif RAMEND <= 0xAFF || RAMSIZE < 0xAFF // 0xAFF for LEONARDO
#define RAW_BUFFER_LENGTH 400 // 600 is too much here, because we have additional uint8_t rawCode[RAW_BUFFER_LENGTH];
# else
#define RAW_BUFFER_LENGTH 750
# endif
#endif
#if !defined(RAW_BUFFER_LENGTH)
# if RAMEND <= 0x4FF || RAMSIZE < 0x4FF
#define RAW_BUFFER_LENGTH 120
# elif RAMEND <= 0xAFF || RAMSIZE < 0xAFF // 0xAFF for LEONARDO
#define RAW_BUFFER_LENGTH 400 // 600 is too much here, because we have additional uint8_t rawCode[RAW_BUFFER_LENGTH];
# else
#define RAW_BUFFER_LENGTH 750
# endif
#endif
Re: My AC does not recognize if I send what I captured with IRremote
just try increasing the value until you stop getting more pulses in your capture.
-
- Posts: 8
- Joined: Fri May 03, 2024 3:53 pm
Re: My AC does not recognize if I send what I captured with IRremote
One more question, rather than recording and playing back sequences for every command/button, any clue if it is possible to understand which part is let's say 25 degrees, which part is turbo on or off etc.? This way I can "compose" the raw data to be sent...
-
- Posts: 8
- Joined: Fri May 03, 2024 3:53 pm
Re: My AC does not recognize if I send what I captured with IRremote
I did further analysis into this, it seems there is a header, and 8 bytes for each setting, please tell me if my interpretation is correct? (attached screenshots)
You do not have the required permissions to view the files attached to this post.