No readinging recived

/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(115200);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    Serial.println(results.value);
    
    if (results.value == 0xFF00FF)
    {
      Serial.println("!");
    }
    irrecv.resume(); // Receive the next value
  }
}

hi , there no error in code but no reading i get


this wierd thing appear . what should i do?

The baudrate in the sketch and in the serial monitor shoukd match.


Your question became part of the code. I've fixed it for you. Please pay attention next time.

2 Likes

hi ,sorry but i dont understand how boundeate and serial monitor are different

In your code, you are setting the serial baud rate to 115200.

However, the serial monitor is set to 250000. Both numbers must match.

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