Ks0119 keyestudio EASY plug Line Tracking Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:
* Dimensions: 57mm*16mm*18mm
* Dimensions: 57mm*16mm*18mm
* Weight: 4.8g
* Weight: 4.8g
<br>
<br>
==Connect It Up ==
==Connect It Up ==
Connect the EASY Plug line tracking sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
Connect the EASY Plug Line Tracking sensor and LED module to control board using RJ11 cables. Then connect the control board to your PC with a USB cable.
<br>[[File:ks0119.jpg|500px|frameless|thumb]]<br>
<br>[[File:循迹灯.png|600px|frameless|thumb]]<br>
 
<br>
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.
<pre>
#define Sensor 5
#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);
}
</pre>


<br>
<br>
==What You Should See==
==What You Should See==
Done uploading the code to board, open the serial monitor and set the baud rate to 9600, then you can see the data from the sensor.
<br>[[File:ks0397 3-1.png|600px|frameless|thumb]]<br>
<br>[[File:ks0119 Result.gif|700px|frameless|thumb]]<br>
<br>
<br>
Done uploading the code to board, open the serial monitor and set the baud rate to 9600, then you can see the data is printed on the monitor, and will control LED on.
<br>[[File:ks0397 3-2.png|600px|frameless|thumb]]<br>
<br>[[File:ks0397 3-3.png|600px|frameless|thumb]]<br>


<br>
==Resources ==
==Resources ==
'''Download the PDF:'''<br>
'''Download the Arduino Datasheet:'''<br>
https://drive.google.com/open?id=1_5tDsf1KbADdRdkTcWfUrLYqgneSj97p
https://drive.google.com/open?id=1_5tDsf1KbADdRdkTcWfUrLYqgneSj97p
'''Download the Mixly Code and Datasheet:'''<br>
https://drive.google.com/open?id=1VLaMIwUTnWwufEunBdFd8UHKed3E9Vse


<br>
<br>
==Buy from ==
==Buy from ==
*'''Official Website:''' http://www.keyestudio.com/ks0119.html
*[https://www.keyestudio.com/new-keyestudio-rj11-easy-plug-line-tracking-sensor-module-for-arduino-starter-steam-p0085-p0085.html   '''Official Website''' ]


*[https://www.aliexpress.com/store/product/New-Keyestudio-EASY-plug-Line-Tracking-Sensor-Module-for-Arduino-Starter/1452162_32641898662.html?spm=2114.12010612.8148356.2.579b66e63fI6km  Shop on aliexpress ]
*[https://www.aliexpress.com/store/product/New-Keyestudio-EASY-plug-Line-Tracking-Sensor-Module-for-Arduino-Starter/1452162_32641898662.html?spm=2114.12010612.8148356.2.579b66e63fI6km  Shop on aliexpress ]


[[category:EASY Plug]]
[[category:EASY Plug]]

Revision as of 10:20, 7 May 2019

Keyestudio EASY plug Line Tracking Sensor

Introduction

The Line Tracking Sensor can tell white from in black or black from white accurately.
The single line-tracking signal provides a stable output signal TTL for a more accurate and more stable line.
The working principle is simple, using infrared light's different reflectivity for different color, and converting the strength of the reflected signal into current signal.
Note: this sensor needs to be used together with EASY plug control board.


Specification

  • Connector: Easy plug
  • Power supply: 5V
  • Operating current: <10mA
  • Operating temperature: 0℃~ 50℃
  • Output Level: TTL (Black for LOW output, White for HIGH output)
  • High quality connector


Technical Details

  • Dimensions: 57mm*16mm*18mm
  • Weight: 4.8g


Connect It Up

Connect the EASY Plug Line Tracking sensor and LED module to control board using RJ11 cables. Then connect the control board to your PC with a USB cable.
thumb


What You Should See


thumb

Done uploading the code to board, open the serial monitor and set the baud rate to 9600, then you can see the data is printed on the monitor, and will control LED on.
thumb

thumb



Resources

Download the Arduino Datasheet:
https://drive.google.com/open?id=1_5tDsf1KbADdRdkTcWfUrLYqgneSj97p

Download the Mixly Code and Datasheet:
https://drive.google.com/open?id=1VLaMIwUTnWwufEunBdFd8UHKed3E9Vse



Buy from