IR sensor problem

Hello there, i have an IR sensor that read IR signal, i used simple code to read if is there an IR signal

int irPin=6;
 
void setup()
{
 pinMode(irPin,INPUT);
 Serial.begin(9600);
}
 
void loop()
{
 
  if(pulseIn(irPin,LOW))
  {
     //button pressed 
     delay(100);
     Serial.println("IR detection");
  }
  
}

and i used a libary caled <IRremote.h>

those code worked fine only with remote control.

and the problem that i can't detect other IR signal from "infrared data pc" or "PIDION BIP1300 MOBILE POINT-OF-SALE" is there a code that read al form of IR signal thanks :slight_smile:
Could you help me pelase

Thanks :slight_smile:

is there a code that read al form of IR signal

No. You have to have some idea what the frequency of the IR emitter is, so you have an IR receiver of the same frequency, and you have to have some idea what the modulation frequency that the sender uses, so the receiver can demodulate the signal at the same frequency.

hI, verry nice answer the problem that is i use this product and they didn't tell the frequency http://www.irxon.com/english/products/ir650_e.htm
how fo i know the frequency

they didn't tell the frequency

They sure do.

  • Meets IrDA 1.1 Physical Specifications

If that doesn't mean anything to you, this is not the project for you.

hi, thanks but where is the frequency ?? and can i receive the signal from this product wit arduino??

hi again i find this http://www.vishay.com/docs/82513/physical.pdf but i didn't understand.
Please could you tell me if can i receive the signal from this componet on arduino
if yes could you tell me how to program arduino
:slight_smile: