Ks0050 keyestudio Line Tracking Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
==Introduction==
==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.
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. <br>
<br>[[File:501.png|500px|frameless|thumb]]<br>
Multi-channel option can be easily achieved by installing required line-tracking robot sensors.
 
<br>[[File:KS0349 9-1.png|500px|frameless|thumb]]<br>


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


<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:Ks0050-1.png|700px|frameless|thumb]]<br>


<br>[[File:502.png|500px|frameless|thumb]]<br>
<br>
 
==Sample Code ==
==Sample Code ==


Line 29: Line 31:
  Serial.println(digitalRead(3)); // print the data from the sensor
  Serial.println(digitalRead(3)); // print the data from the sensor
  delay(500);
  delay(500);
}</pre>
}
</pre>
 
<br>
== 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.
<br>
<br>[[File:KS0349 9-2.png|600px|frameless|thumb]]<br>
 
 
<br>


==Resources ==
==Resources ==


'''Video'''
* '''Video'''<br>
http://video.keyestudio.com/ks0050/


http://www.keyestudio.com/wp/2016/05/ks0050-keyestudio-line-tracking-sensor-module/
* '''PDF and Code'''<br>
https://fs.keyestudio.com/KS0050


'''Datasheet'''


http://www.keyestudio.com/files/index/download/id/1463713707/
<br>


==Buy from ==
==Buy from ==
'''Official Website'''


http://www.keyestudio.com/keyestudio-line-tracking-sensor-for-arduino.html
*[https://www.keyestudio.com/free-shipping-keyestudio-line-tracking-sensor-module-white-black-line-detector-for-arduino-uno-r3-mega-2560-r3-p0152.html   '''Official Website''']
 
*[https://www.aliexpress.com/store/product/Free-shipping-KEYES-Tracing-sensor-module-for-arduino/1452162_2051347178.html?spm=2114.12010612.8148356.21.52862462ZM2AO8  '''Aliexpress store''']




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

Latest revision as of 14:11, 7 January 2021


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://fs.keyestudio.com/KS0050



Buy from