KS0352 Keyestudio KEYBOT Programmable Robot 3-way Line Tracking Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
<br>[[File:Ks0352图片1.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0352图片1.png|500px|frameless|thumb]]<br>


<br>
== Overview ==
== Overview ==
This Keyestudio three-way tracking sensor needs to be used together with the EASY plug Control board V2.0. The module is connected to the SPI interface with only one wire, which is very convenient and simple. The module comes with two round holes, easy to fix it on other devices.
This Keyestudio three-way tracking sensor needs to be used together with the EASY plug Control board V2.0. The module is connected to the SPI interface with only one wire, which is very convenient and simple. The module comes with two round holes, easy to fix it on other devices.<br>
It is also an infrared sensor. The component used here is TCRT5000 infrared tube. The working principle is to use the different reflectivity of infrared light to color, converting the strength of the reflected signal into a current signal.  
It is also an infrared sensor. The component used here is TCRT5000 infrared tube. The working principle is to use the different reflectivity of infrared light to color, converting the strength of the reflected signal into a current signal. <br>
During the detection, black is active at HIGH level, and white is active at LOW. The detection height is 0-3 cm. We have integrated three groups of TCRT5000 infrared tubes on a single board, more convenient for wiring and control. By rotating the adjustable resistance part, you can adjust the sensitivity of the sensor.
During the detection, black is active at HIGH level, and white is active at LOW. The detection height is 0-3 cm. We have integrated three groups of TCRT5000 infrared tubes on a single board, more convenient for wiring and control. By rotating the adjustable resistance part, you can adjust the sensitivity of the sensor.<br>
<br>[[File:KS0352 KEYBOT 可编程教育机器人三路寻迹传感器 (7).jpg|500px|frameless|thumb]]<br>
<br>[[File:KS0352 KEYBOT 可编程教育机器人三路寻迹传感器 (7).jpg|600px|frameless|thumb]]<br>


<br>


== Parameters ==
== Parameters ==
Line 17: Line 19:
* Detection Height: 0-3cm
* Detection Height: 0-3cm
    
    
 
<br>
== Details Display ==
== Details Display ==
<br>[[File:Ks0352图片2.png|600px|frameless|thumb]]<br>
<br>[[File:Ks0352图片2.png|600px|frameless|thumb]]<br>
<br>[[File:KS0352 KEYBOT 可编程教育机器人三路寻迹传感器 (4).jpg|500px|frameless|thumb]]<br>
<br>[[File:KS0352 KEYBOT 可编程教育机器人三路寻迹传感器 (4).jpg|600px|frameless|thumb]]<br>
           


<br>
== Connect it Up ==
== Connect it Up ==
Below connect this 3-way tracking sensor and three LED modules to keyestudio Easy-plug control board V2.0, shown below. Let’s do a simple test.
Below connect this 3-way tracking sensor and three LED modules to keyestudio Easy-plug control board V2.0, shown below. Let’s do a simple test.<br>
 
<br>[[File:Ks0352图片3.png|600px|frameless|thumb]]<br>
<br>[[File:Ks0352图片3.png|600px|frameless|thumb]]<br>


<br>
== Example Code ==
== Example Code ==
Upload the code below to the board:
Upload the code below to the board:<br>
<pre>
<pre>
int S1 = 10; // define the S1 tracking sensor as pin D10
int S1 = 10; // define the S1 tracking sensor as pin D10
Line 75: Line 77:
</pre>
</pre>


 
<br>
== Example Result ==
== Example Result ==
After wiring and uploading the code, when use a black object to block the three groups of TCRT5000 infrared tube, three external LED modules do not light. If pick up a white object to cover three groups of TCRT5000 infrared tube, three external LEDs light up.   
After wiring and uploading the code, when use a black object to block the three groups of TCRT5000 infrared tube, three external LED modules do not light. If pick up a white object to cover three groups of TCRT5000 infrared tube, three external LEDs light up.   
<br>[[File:无字.jpg|500px|frameless|thumb]]<br>
<br>[[File:无字.jpg|700px|frameless|thumb]]<br>


<br>


== Resources ==
== Resources ==
*[https://drive.google.com/open?id=1JaU_uQ_cxj9BsvlSe7yByD3qGoQDJeel  Download the PDF]


[https://drive.google.com/open?id=1JaU_uQ_cxj9BsvlSe7yByD3qGoQDJeel  PDF File ]
*[https://drive.google.com/open?id=19GY0N29QvsKzz9ogx6s1pH3AWzuaSpSI    Download the Code]


<br>
== Get One Now ==
== Get One Now ==
*[https://www.keyestudio.com/keyestudio-keybot-easy-plug-programmable-robot-3-way-line-tracking-sensor-for-arduino-robot-p0389-p0389.html  Official website ]
*[https://www.aliexpress.com/store/product/Keyestudio-KEYBOT-Easy-Plug-Programmable-Robot-3-way-Line-Tracking-Sensor-For-Arduino-Robot/1452162_32906922199.html?spm=2114.12010615.8148356.1.43a9218fK94dvi    Shop on aliexpress ]


http://www.keyestudio.com/ks0352.html
[[Category:Sensor ]]

Revision as of 16:44, 16 May 2019


Keyestudio KEYBOT Programmable Robot 3-way Line Tracking Sensor


thumb


Overview

This Keyestudio three-way tracking sensor needs to be used together with the EASY plug Control board V2.0. The module is connected to the SPI interface with only one wire, which is very convenient and simple. The module comes with two round holes, easy to fix it on other devices.
It is also an infrared sensor. The component used here is TCRT5000 infrared tube. The working principle is to use the different reflectivity of infrared light to color, converting the strength of the reflected signal into a current signal.
During the detection, black is active at HIGH level, and white is active at LOW. The detection height is 0-3 cm. We have integrated three groups of TCRT5000 infrared tubes on a single board, more convenient for wiring and control. By rotating the adjustable resistance part, you can adjust the sensitivity of the sensor.

thumb


Parameters

  • Operating Voltage: 3.3-5V(DC)
  • Output Signal: Digital Signal
  • Detection Height: 0-3cm


Details Display


thumb

thumb


Connect it Up

Below connect this 3-way tracking sensor and three LED modules to keyestudio Easy-plug control board V2.0, shown below. Let’s do a simple test.

thumb


Example Code

Upload the code below to the board:

int S1 = 10; // define the S1 tracking sensor as pin D10
int S2 = 11; //define the S2 tracking sensor as pin D11
int S3 = 12; // define the S3 tracking sensor as pin D12
int led1 =7; //define led1 as pin D7
int led2 =8; // define led2 as pin D8
int led3 =9; // define led3 as pin D9
void setup() 
{
pinMode(S1, INPUT); // define tracking sensor S1 as INPUT mode
pinMode(S2, INPUT); // define tracking sensor S2 as INPUT mode 
pinMode(S3, INPUT); // define tracking sensor S3 as INPUT mode 
pinMode(led1,OUTPUT);//define led1 as OUTPUT mode
pinMode(led2,OUTPUT);//define led2 as OUTPUT mode
pinMode(led3,OUTPUT);//define led3 as OUTPUT mode
}
void loop() 
{
  if( digitalRead(S1)==LOW)  // read the state of sensor S1, if detects a white paper, it is at LOW.
  {
digitalWrite(led1, HIGH);  // led1 lights
  }
   else // or else
   {
   digitalWrite(led1, LOW); // led1 off
   }
  if( digitalRead(S2)==LOW)  //  read the state of sensor S2, if detects a white paper, it is at LOW.
   {
digitalWrite(led2, HIGH);  // led2 lights
   }
   else //  or else
   {
    digitalWrite(led2, LOW); // led2 off 
   }
  if( digitalRead(S3)==LOW)  //  read the state of sensor S3, if detects a white paper, it is at LOW.
   {
digitalWrite(led3, HIGH);  // led3 lights
   }
   else // or else
   {
    digitalWrite(led3, LOW); // led3 off
   }
}


Example Result

After wiring and uploading the code, when use a black object to block the three groups of TCRT5000 infrared tube, three external LED modules do not light. If pick up a white object to cover three groups of TCRT5000 infrared tube, three external LEDs light up.
thumb


Resources


Get One Now