<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL12223_%E2%80%93_Tracker_Sensor%2Fen</id>
	<title>WSAL12223 – Tracker Sensor/en - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jw-tech.eu/index.php?action=history&amp;feed=atom&amp;title=WSAL12223_%E2%80%93_Tracker_Sensor%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL12223_%E2%80%93_Tracker_Sensor/en&amp;action=history"/>
	<updated>2026-10-23T21:38:23Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in JW Tech Wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.jw-tech.eu/index.php?title=WSAL12223_%E2%80%93_Tracker_Sensor/en&amp;diff=1522&amp;oldid=prev</id>
		<title>JWTechPublisher: Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex</title>
		<link rel="alternate" type="text/html" href="https://wiki.jw-tech.eu/index.php?title=WSAL12223_%E2%80%93_Tracker_Sensor/en&amp;diff=1522&amp;oldid=prev"/>
		<updated>2026-09-05T22:31:38Z</updated>

		<summary type="html">&lt;p&gt;Freigegebene technische Dokumentation veröffentlicht; Text-only und noindex&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOINDEX__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Documentation notice:&amp;#039;&amp;#039;&amp;#039; This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
Technical overview of the Waveshare Tracker Sensor (WSAL12223) for infrared line tracking: specifications, operating principle covering normalization, weighted average and PID control, plus example wiring to STM32 and Arduino boards.&lt;br /&gt;
&lt;br /&gt;
== Related products at JW Tech ==&lt;br /&gt;
* [https://shop.jw-tech.eu/p/WSAL12223 WSAL12223 – Tracker Sensor, Infrared Line Tracking]&lt;br /&gt;
&lt;br /&gt;
== Technical overview ==&lt;br /&gt;
* Operating voltage 3.3 V to 5 V; size 78 mm × 18 mm; probe spacing 16 mm; mounting hole diameter 3 mm; sensing distance about 1 cm to 5 cm.&lt;br /&gt;
* Five analog outputs produce values that depend on distance and reflectance: lighter (white) surfaces give higher values, dark lines lower values.&lt;br /&gt;
* Normalization converts raw readings into 0–1000 via y = (x − Min) × 1000 / (Max − Min), where 1000 means far from the black line and 0 means directly above it.&lt;br /&gt;
* Min and Max are determined by repeated sampling; during calibration the vehicle should run along the black line and swing side to side.&lt;br /&gt;
* Weighted average computes line position in 0–4000: y = (0·v0 + 1000·v1 + 2000·v2 + 3000·v3 + 4000·v4) / (v0+v1+v2+v3+v4).&lt;br /&gt;
* 2000 corresponds to module center; 0 is leftmost, 4000 rightmost.&lt;br /&gt;
* For precise detection the black line width should be ≤ 16 mm, and the module should be mounted so two adjacent sensors can detect a centered line.&lt;br /&gt;
* PID control keeps position at 2000: proportional = position − 2000; derivative = proportional − last_proportional; integral += proportional; power_error = Kp·proportional + Ki·integral + Kd·derivative.&lt;br /&gt;
* The AlphaBot example uses PD instead of full PID (no integral term); Kp, Ki, Kd are individually adjustable.&lt;br /&gt;
* Wiring to XNUCLEO-F103RB: IR1–IR5 to A0–A4, GND to GND, VCC to 3.3 V. Wiring to Arduino UNO PLUS: IR1–IR5 to A0–A4, GND to GND, VCC to 5 V.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Commands and examples – verify before use:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
y = (x - Min) * 1000 / (Max - Min)&lt;br /&gt;
y = (0 * value0 + 1000 * value1 + 2000 * value2 + 3000 * value3 + 4000 * value4) / (value0 + value1 + value2 + value3 + value4)&lt;br /&gt;
proportional = position - 2000;&lt;br /&gt;
derivative = proportional - last_proportional;&lt;br /&gt;
integral += proportional;&lt;br /&gt;
last_proportional = proportional;&lt;br /&gt;
power_error = proportional * Kp + integral * Ki + derivative * Kd;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes and version constraints ==&lt;br /&gt;
* The source contains template placeholders such as &amp;amp;#123;&amp;amp;#123;&amp;amp;#123;name2&amp;amp;#125;&amp;amp;#125;&amp;amp;#125; and &amp;amp;#123;&amp;amp;#123;&amp;amp;#123;userDefinedInfo&amp;amp;#125;&amp;amp;#125;&amp;amp;#125;, indicating incomplete templates or rendering errors; these should be verified before publication.&lt;br /&gt;
* Calibration requires the vehicle to move along the line during sampling; static tests may yield less accurate Min/Max values.&lt;br /&gt;
* The demo code uses PD rather than full PID control; whether an integral term is needed depends on the desired dynamics and must be tuned per application.&lt;br /&gt;
* Exact pin assignments may vary with board revisions; the listed connections apply specifically to the XNUCLEO-F103RB and UNO PLUS boards mentioned.&lt;br /&gt;
&lt;br /&gt;
== Source and revision record ==&lt;br /&gt;
* [https://www.waveshare.com/wiki/Tracker_Sensor Tracker Sensor - Waveshare Wiki]&lt;br /&gt;
* Source revision: 75845&lt;br /&gt;
* Captured: 2026-08-30T03:19:10+00:00&lt;br /&gt;
* SHA-256: &amp;lt;code&amp;gt;c5fb05d52204778f30a86d1c26d437ab6a2593b2b5cddfce65f2d5f902de774d&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>JWTechPublisher</name></author>
	</entry>
</feed>