Sharp Infrared Receiver (GP1UX311QS) [S016]
https://www.youtube.com/watch?v=21SB3fJBSLg
* Specs
Product GP1UX311QS
Make Sharp
Type None
Lead Time Request Quote for Lead Time
Quantity in Stock Request Quote for Quantity in Stock
* Contents
- Connect
GND ----- GND
VCC ----- 5V
S ----- 2
EN ----- X
- Key Code
int T = 2; // INPUT PIN
void setup()
{
Serial.begin(115200);
Serial.println("Arduino Examples - IR Sensor");
Serial.println(" http://docs.whiteat.com/?p=1142");
pinMode(T, INPUT);
}
void loop()
{
if (LOW == digitalRead(T))
{
Serial.println("IR Detected"); // Detected
}
else
{
Serial.print(".");
}
delay(100);
}
'2) Sensor > IR' 카테고리의 다른 글
4 Channel IR Tracking Module [S075] (0) | 2016.09.17 |
---|---|
Tracking Sensor Module Obstacle Avoidance (KY-033) [S026] (0) | 2016.09.17 |
Keyes Infrared Receiver Module (KY-022) [S014] (0) | 2016.09.17 |
Infrared Receiver VS1838 (VS1838B) [S013] (0) | 2016.09.17 |
4 Head Infrared Transmitter Module [S180] (0) | 2016.09.17 |