IR sensor not working and heating very fast

IR sensor is getting too much hot in 1 second and I am connected it properly what can I do

Contrary to your statement, I suspect you've got it reversed; but, tell us more. What voltage are you applying, to what pins, what sensor is it, etc. etc.

1 Like

-6,GND,5v,IR sensor

minus 6V?
schematic, please. pencil-on-paper-and-photo is fine.

1 Like

D6 is there

I agree. Also, you haven't posted a wiring diagram and you haven't even said what this IR sensor is - remote receiver, presence sensor, gesture sensor, etc.

I am not using IR sensor is - remote receiver, presence sensor, gesture sensor, etc,I am making smart door bell system

The sensor is wired backwards, and almost certainly destroyed.

1 Like

no ok

Hi, @SaiMahajan

Can you please post some images showing your project with the IR sensor connected?
So we can see your component layout.

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

If you're wondering how this all works, it's simple. I made a request for something I felt was essential to further the conversation. You have not responded. That's fine, I have other things to do. I see this is your second such thread, and your communication hasn't improved. Please read the forum guidelines:

Me? I'm still watching for your drawing.
Good luck!

and if you want code so it is here

int IR = 6; //IR sensor is connected to 6th pin
int Buzzer = 5; //Buzzzer is connected to 5th pin
int IrOut; //This variable is used to copy the IR sensor Output data
void setup()
{
Serial.begin(9600); //Initialization of serial monitor
pinMode(IR, INPUT);
pinMode(Buzzer, OUTPUT);
}

void loop()
{
IrOut=digitalRead(IR); //Coping the IR sensor data into "IrOut" variable
if(IrOut==LOW)
{
digitalWrite(Buzzer, HIGH);
Serial.println("Visitor at door");
}
else
{
digitalWrite(Buzzer, LOW);
}
}

Hi,
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Can you please post a link to spec/data of your IR detector?

Do you have a DMM? Digital MultiMeter

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

Thank you. A fritzing drawing is better than nothing, but as usual, no labels for the pins on the sensor, and no sensor ID. Doesn't leave us believing you've necessarily got it wired correctly. Without a data sheet, can't tell if you've got the right pins connected to VCC and GND, nor whether the Arduino 5V is the correct voltage for the sensor. So your sensor heating problem remains a mystery.

Note, your code references pins D5 and D6, but your diagram shows D5 and D7.

Your code is simple enough, and looks like it would work.

Also note, your code would look like this if posted per guidelines:

int IR = 6; //IR sensor is connected to 6th pin
int Buzzer = 5; //Buzzzer is connected to 5th pin
int IrOut; //This variable is used to copy the IR sensor Output data
void setup()
{
  Serial.begin(9600); //Initialization of serial monitor
  pinMode(IR, INPUT);
  pinMode(Buzzer, OUTPUT);
}

void loop()
{
  IrOut = digitalRead(IR); //Coping the IR sensor data into "IrOut" variable
  if (IrOut == LOW)
  {
    digitalWrite(Buzzer, HIGH);
    Serial.println("Visitor at door");
  }
  else
  {
    digitalWrite(Buzzer, LOW);
  }
}

on same circuit this code is done

I recommend the OP stop for now, and read the Arduino Cookbook cover to cover to get a basic idea of what is happening. I think he needs to learn what a schematic is as well.

not working what can I do now

The real only answer is to get another sensor.
AND,

Tom.. :grinning: :+1: :coffee: :australia:

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