Hi,
who did use this sensor
How we could tune it. I try to read input. But never goes to high
Thx
Max
Hi,
who did use this sensor
How we could tune it. I try to read input. But never goes to high
Thx
Max
did u tried this?
const int InfraredSensorPin = 4;//Connect the signal pin to the digital pin 4 >> yellow
const int LedDisp = 13;
void setup()
{
Serial.begin(57600);
Serial.println("Start!");
pinMode(InfraredSensorPin,INPUT);
pinMode(LedDisp,OUTPUT);
digitalWrite(LedDisp,LOW);
}
void loop()
{
if(digitalRead(InfraredSensorPin) == LOW) digitalWrite(LedDisp,HIGH);
else digitalWrite(LedDisp,LOW);
Serial.print("Infrared Switch Status:");
Serial.println(digitalRead(InfraredSensorPin),BIN);
delay(50);
}
Red - V+
Yellow - Signal
Green - GND
detection range is 3cm - 80cm
Yes I tried that but without LED