Decoding IR sensor for 1.5 ton Air conditioner

`Hi so im trying to decode another IR sensor. This is connected with a 1.5 ton unit card. The chip im using is ESP32 devkitV1. Not getting the required protocol. What seems to be the issue?

#include <Arduino.h>
#include <IRrecv.h>
#include <IRremoteESP8266.h>
#include <IRac.h>
#include <IRtext.h>
#include <IRutils.h>

const uint16_t kRecvPin = 14;
const uint32_t kBaudRate = 115200;
const uint16_t kCaptureBufferSize = 1024;

#if DECODE_AC
const uint8_t kTimeout = 50;
#else   // DECODE_AC
// Suits most messages, while not swallowing many repeats.
const uint8_t kTimeout = 15;
#endif  // DECODE_AC

const uint16_t kMinUnknownSize = 12;

// Legacy (No longer supported!)
//
// Change to `true` if you miss/need the old "Raw Timing[]" display.
#define LEGACY_TIMING_INFO false
// ==================== end of TUNEABLE PARAMETERS ====================

// Use turn on the save buffer feature for more complete capture coverage.
IRrecv irrecv(kRecvPin, kCaptureBufferSize, kTimeout, true);
decode_results results;  // Somewhere to store the results

// This section of code runs only once at start-up.
void setup() {
#if defined(ESP8266)
  Serial.begin(kBaudRate, SERIAL_8N1, SERIAL_TX_ONLY);
#else  // ESP8266
  Serial.begin(kBaudRate, SERIAL_8N1);
#endif  // ESP8266
  while (!Serial)  // Wait for the serial connection to be establised.
    delay(50);
  Serial.printf("\n" D_STR_IRRECVDUMP_STARTUP "\n", kRecvPin);
#if DECODE_HASH
  // Ignore messages with less than minimum on or off pulses.
  irrecv.setUnknownThreshold(kMinUnknownSize);
#endif  // DECODE_HASH
  irrecv.enableIRIn();  // Start the receiver
}

// The repeating section of the code
void loop() {
  // Check if the IR code has been received.
  if (irrecv.decode(&results)) {
    // Display a crude timestamp.
    uint32_t now = millis();
    Serial.printf(D_STR_TIMESTAMP " : %06u.%03u\n", now / 1000, now % 1000);
    // Check if we got an IR message that was to big for our capture buffer.
    if (results.overflow)
      Serial.printf(D_WARN_BUFFERFULL "\n", kCaptureBufferSize);
    // Display the library version the message was captured with.
    Serial.println(D_STR_LIBRARY "   : v" _IRREMOTEESP8266_VERSION_ "\n");
    // Display the basic output of what we found.
    Serial.print(resultToHumanReadableBasic(&results));
    // Display any extra A/C info if we have it.
    String description = IRAcUtils::resultAcToString(&results);
    if (description.length()) Serial.println(D_STR_MESGDESC ": " + description);
    yield();  // Feed the WDT as the text output can take a while to print.
#if LEGACY_TIMING_INFO
    // Output legacy RAW timing info of the result.
    Serial.println(resultToTimingInfo(&results));
    yield();  // Feed the WDT (again)
#endif  // LEGACY_TIMING_INFO
    // Output the results as source code
    Serial.println(resultToSourceCode(&results));
    Serial.println();    // Blank line between entries
    yield();             // Feed the WDT (again)
  }
}

```IRrecvDump is now running and waiting for IR input on Pin 14
Timestamp : 000010.420
Library   : v2.8.4

Protocol  : UNKNOWN
Code      : 0xA2A143C6 (26 Bits)
uint16_t rawData[51] = {9616, 3966,  874, 452,  852, 476,  850, 1492,  820, 506,  852, 454,  874, 450,  820, 1574,  852, 1492,  874, 1492,  852, 454,  872, 450,  820, 506,  852, 1494,  872, 454,  850, 1496,  872, 1492,  850, 1518,  878, 424,  848, 1520,  850, 452,  874, 1492,  850, 476,  852, 1492,  818, 508,  850};  // UNKNOWN A2A143C6


Timestamp : 000017.073
Library   : v2.8.4

Protocol  : UNKNOWN
Code      : 0x9D936F9A (26 Bits)
uint16_t rawData[51] = {9614, 3966,  846, 504,  852, 1494,  874, 1492,  850, 476,  852, 452,  846, 478,  852, 1494,  874, 1492,  850, 1496,  872, 450,  820, 506,  852, 454,  874, 1490,  850, 1518,  850, 450,  846, 1520,  852, 1492,  874, 452,  850, 1494,  874, 450,  820, 1548,  850, 452,  874, 1494,  850, 454,  874};  // UNKNOWN 9D936F9A``

What are you expecting to receive and what are you actually receiving, if anything ?

So, what i want to recieve is the protocol for this specific sensor and remote. im giving it signals to turn on/off increase temperature, change modes. if you scroll down from the program ive shown to the bottom you can see the output on the serial monitor it gives me.

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