Ks0050 keyestudio Line Tracking Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==Introduction== This Line Tracking Sensor can detect white lines in black and black lines in white. The single line-tracking signal provides a stable output signal TTL for a...")
 
No edit summary
Line 18: Line 18:


==Sample Code ==
==Sample Code ==


<pre>
<pre>
Line 32: Line 31:
}</pre>
}</pre>


 
==Video ==
http://www.keyestudio.com/wp/2016/05/ks0050-keyestudio-line-tracking-sensor-module/


[[Category: Sensor]]
[[Category: Sensor]]

Revision as of 13:59, 29 September 2016

Introduction

This Line Tracking Sensor can detect white lines in black and black lines 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 line-tracking robot sensors.
thumb


Specification

  • Power Supply: +5V
  • Operating Current: <10mA
  • Operating Temperature Range: 0°C ~ + 50°C
  • Output Interface: 3-wire interface (1 - signal, 2 - power, 3 - power supply negative)
  • Output Level: TTL level
  • Size: 41.7*10.7mm
  • Weight: 3g

Connection Diagram


thumb

Sample Code

///Arduino Sample Code
void setup()
{
  Serial.begin(9600);
}
void loop()
{
  Serial.println(digitalRead(3)); // print the data from the sensor
  delay(500);
}

Video

http://www.keyestudio.com/wp/2016/05/ks0050-keyestudio-line-tracking-sensor-module/