Ks0119 keyestudio EASY plug Line Tracking Sensor
Revision as of 10:25, 24 September 2016 by Keyestudio (talk | contribs) (Created page with "==EASY plug Line Tracking Sensor== <br>500px|frameless|thumb<br> ==Introduction== This Line Tracking Sensor can detect white line in black and black lin...")
EASY plug Line Tracking Sensor
Introduction
This Line Tracking Sensor can detect white line in black and black line in white. The single line-tracking signal provides a stable output signal TTL for a more accurate and more stable line. Multi-channel option can be easily achieved by installing required number of line-tracking sensors.
The working principle is simple, using infrared light's different reflectivity of different color, and converting the strength of the reflected signal into current signal.
Note: this module needs to be used together with EASY plug control board.
Specification
- Interface: Easy plug
- Power supply: +5V
- Operating current: <10mA
- Operating temperature range: 0°C ~ + 50°C
- Output Level: TTL level
- Size: 56.8*16mm
- Weight: 5g
Connection Diagram
Sample Code
#define Sensor 3 #define ledpin 13 void setup() { pinMode(Sensor,INPUT); pinMode(ledpin,OUTPUT); Serial.begin(9600); } void loop() { int val =digitalRead(Sensor); digitalWrite(ledpin,val); Serial.println(val); // print the data from the sensor delay(200); }