IR Reciver not working!

Hello,

I bought the elegoo the most complete starter kit and
my IR Reciver stopped reciving ir signal from my arduino. It worked fine last day. I checked the code and its fine. here is the photo from the circuit


is the sensor broken?
please someone help me!

#include "IRremote.h"

int receiver = 11; 
int led = 12;

IRrecv irrecv(receiver);     
decode_results results;   


void setup()   
{
  Serial.begin(9600);
  Serial.println("IR Receiver Button Decode"); 
  irrecv.enableIRIn(); // Start the receiver
  pinMode(led,OUTPUT);
  digitalWrite(led,HIGH);

}


void loop()   
{
  if (irrecv.decode(&results)) 

  {
    Serial.println(results.value, HEX);
    irrecv.resume(); // receive the next value
  }  
}

Hello, do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation of your ask).

➜ check the battery of the remote control
➜ try with one of the built-in example, if that works then the issue is likely in your code
➜ post your code with code tags

sorry i am new to this arduino forum. i tried the built in example but no success and i noticed that when i slightly pull out the sensor from the breadboard, it sends some values to serial monitor.

Could it be that you have misaligned the Dupont wires and the module's pins ? :slight_smile:

oh thank very much

We have all been there !

Sometimes this has bad consequences through if you send power in the wrong pin…

1 Like

Hello,
the reason may be the misaligned wire and components. and if it is right then tries this given link for reference. here code and the circuit are given. This is a TSOP module that works with IR frequency.

TSOP with Arduino

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