<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?action=history&amp;feed=atom&amp;title=Line_tracking_sensor</id>
	<title>Line tracking sensor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?action=history&amp;feed=atom&amp;title=Line_tracking_sensor"/>
	<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=Line_tracking_sensor&amp;action=history"/>
	<updated>2026-04-15T23:46:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=Line_tracking_sensor&amp;diff=134156&amp;oldid=prev</id>
		<title>Flux999: Created page with &quot;&#039;&#039;01.12.22&#039;&#039;  ==&#039;&#039;&#039;line tracking sensor&#039;&#039;&#039;== https://wiki.keyestudio.com/Ks0050_keyestudio_Line_Tracking_Sensor  Line tracking sensor is used for differentiating between black...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=Line_tracking_sensor&amp;diff=134156&amp;oldid=prev"/>
		<updated>2023-01-30T19:47:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;01.12.22&amp;#039;&amp;#039;  ==&amp;#039;&amp;#039;&amp;#039;line tracking sensor&amp;#039;&amp;#039;&amp;#039;== https://wiki.keyestudio.com/Ks0050_keyestudio_Line_Tracking_Sensor  Line tracking sensor is used for differentiating between black...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;01.12.22&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==&amp;#039;&amp;#039;&amp;#039;line tracking sensor&amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
https://wiki.keyestudio.com/Ks0050_keyestudio_Line_Tracking_Sensor&lt;br /&gt;
&lt;br /&gt;
Line tracking sensor is used for differentiating between black and white(either can be the backgorund/foreground) with the integrated infrared sensors(one emitting, one collecting). It is very dependent on the reflectiveness of the material/object therefore it is important to have a consistent and equal light source on the surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;connecting to arduino&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
After following the instructions in the producer website, I have managed to get the first digital outputs from the sensor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:sel_digital1.JPG&lt;br /&gt;
File:sel_digitalserial.png&lt;br /&gt;
File:sel_analog2.JPG&lt;br /&gt;
File:sel_analog3.JPG&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get different numbers from the sensor(other than hi/lo), I connected it to an analog input.  &lt;br /&gt;
&amp;lt;source style=&amp;quot;border:none; height:auto; overflow:scroll;&amp;quot; lang=&amp;quot;c&amp;quot; line start=&amp;quot;55&amp;quot; highlight=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Serial.println(analogRead(A0)); // print the data from the sensor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  delay(500);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:sel_analog1.JPG&lt;br /&gt;
File:Screen Shot 2022-11-30 at 22.15.41.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;moving data to processing&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Following this tutorial &amp;gt; https://www.arduino.cc/education/visualization-with-arduino-and-processing &lt;br /&gt;
I have first uploaded this code snippet to the arduino &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source style=&amp;quot;border:none; height:auto; overflow:scroll;&amp;quot; lang=&amp;quot;c&amp;quot; line start=&amp;quot;55&amp;quot; highlight=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
unsigned int ADCValue;&lt;br /&gt;
void setup(){&lt;br /&gt;
    Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
&lt;br /&gt;
 int val = analogRead(0);&lt;br /&gt;
   val = map(val, 0, 300, 0, 255);&lt;br /&gt;
    Serial.println(val);&lt;br /&gt;
delay(50);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly running different examples from the same tutorial on processing, resulted in different visualization of the black/white data retrieved from the sensor.&lt;br /&gt;
&lt;br /&gt;
[[File:sel_processing.mp4]]&lt;/div&gt;</summary>
		<author><name>Flux999</name></author>
	</entry>
</feed>