Ks0050 keyestudio Line Tracking Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 48: Line 48:
http://video.keyestudio.com/ks0050/
http://video.keyestudio.com/ks0050/


* '''PDF'''<br>
* '''PDF and Code'''<br>
https://drive.google.com/open?id=1fOiZxpXqDUgJ828E37Lc-b80VNvGdIgi
https://drive.google.com/open?id=1PIjyVKHdIMTkoXav4M-bbQvCKwFWst1t




<br>
<br>
==Buy from ==
==Buy from ==



Revision as of 08:41, 19 April 2019


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-PIN (1 - signal ; 2 - power ; 3 - power supply negative)
  • Output Level: TTL level


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);
}


Example Result

Done uploading the code to board, open the serial monitor and set the baud rate as 9600, then you can see the data from the sensor. Shown below.

thumb



Resources

  • Video

http://video.keyestudio.com/ks0050/

  • PDF and Code

https://drive.google.com/open?id=1PIjyVKHdIMTkoXav4M-bbQvCKwFWst1t



Buy from