IR Infrared Obstacle Avoidance Sensor (IR-08H) [S017]
https://www.youtube.com/watch?v=21SB3fJBSLg
*GitHub : https://github.com/rdiot/rdiot-s017.git
* Specs
Working voltage: DC 3.3V-5V
Working current: ≥ 20mA
Operating temperature: -10 ℃ - +50 ℃
detection distance :2-40cm
IO Interface: 4-wire interfaces (- / + / S / EN)
Output signal: TTL level (low level there is an obstacle, no obstacle high)
Adjustment: adjust multi-turn resistance
Effective angle: 35 °
Size: 28mm × 23mm
Weight Size: 9g
* 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' 카테고리의 다른 글
IR Infrared Obstacle Avoidance Sensor 2-180cm (DIY) [S246] (0) | 2016.12.12 |
---|---|
IR Wave sensor switch DC8-24V (HN-C009A) [S144] (0) | 2016.09.17 |
4 Channel IR Tracking Module [S075] (0) | 2016.09.17 |
Tracking Sensor Module Obstacle Avoidance (KY-033) [S026] (0) | 2016.09.17 |
Sharp Infrared Receiver (GP1UX311QS) [S016] (0) | 2016.09.17 |