4 Channel IR Tracking Module [S075]
https://www.youtube.com/watch?v=MOsxmBge2wU
*GitHub : https://github.com/rdiot/rdiot-s075.git
* Specs
Working voltage: DC 3.3V-5V
Working current: try to choose more than 1A power supply
Working temperature: - 10oC - +50oC
Mounting aperture: M3 screws
Detection range: 1mm to 60 CM adjustable, the closer the performance more stable, white reflects the farthest distance.
Size: in the control panel of 42mm * 38mm * 12mm (length * width * height)
Small forward 25mm * 12mm * 12mm (length * width * height)
Output interface: 6 wire interface (1234 to 4 signal output ends, + positive power, - for the negative power is ground)
The output signal: TTL level (can be directly connected to I/0 microcontroller, infrared light reflected back to the sensor induction, the red indicator light, output low level; no infrared light, the indicator light does not shine, the output high.)
* Contents
- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // LCD2004
int IN1 = 2;
int IN4 = 5;
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.print("start LCD2004");
pinMode(IN1,INPUT);
pinMode(IN4,INPUT);
delay(1000);
lcd.clear();
}
void loop()
{
lcd.setCursor(0,0);
lcd.print("S075:4CHIR Tracking");
String val1str = "";
String val4str = "";
int in1_val = digitalRead(IN1);
int in4_val = digitalRead(IN4);
if(in1_val == 0)
val1str = " detected";
else
val1str = " ";
if(in4_val == 0)
val4str = " detected";
else
val4str = " ";
lcd.setCursor(0,1);
lcd.print("IN1=" + (String)in1_val + val1str);
lcd.setCursor(0,2);
lcd.print("IN4=" + (String)in4_val + val4str);
}
'2) Sensor > IR' 카테고리의 다른 글
IR Wave sensor switch DC8-24V (HN-C009A) [S144] (0) | 2016.09.17 |
---|---|
IR Infrared Obstacle Avoidance Sensor (IR-08H) [S017] (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 |
Keyes Infrared Receiver Module (KY-022) [S014] (0) | 2016.09.17 |