<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>correlation between sensor value and distance to object</title>
		<link>http://aseba.wikidot.com/forum/t-3822185/correlation-between-sensor-value-and-distance-to-object</link>
		<description>Posts in the discussion thread &quot;correlation between sensor value and distance to object&quot; - correlation between sensor value and distance to object</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 06 Sep 2026 05:30:31 +0000</lastBuildDate>
		
					<item>
				<guid>http://aseba.wikidot.com/forum/t-3822185#post-3605298</guid>
				<title>Re: correlation between sensor value and distance to object</title>
				<link>http://aseba.wikidot.com/forum/t-3822185/correlation-between-sensor-value-and-distance-to-object#post-3605298</link>
				<description></description>
				<pubDate>Sun, 01 Oct 2017 11:12:27 +0000</pubDate>
				<wikidot:authorName>basilstotz</wikidot:authorName>				<wikidot:authorUserId>2675918</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,</p> <p>if found an empirical correlation between distance and horizontal prox value. It is a fit to a quadratic polynom function, written in integer arithmetic.</p> <div class="code"> <pre><code> p=prox.horizontal[number] if p&gt;1200 then distance=(p/331)*(p/330)-((5*p)/61)+204+80 else distance=-1 end</code></pre></div> <p>The 80 at the end reflects the fact, that the corr var measured between sensor and object. But the distance here is measured from the centre of the hole (in Thymio) and the object.</p> <p>And be careful the values depend on the used sensor (and maybe other things).</p> <p>Here is my original data (for white,brown and black (paper) objects)</p> <div class="code"> <pre><code>#dist #white #brown #black 0 4450 4420 3210 10 4430 4430 3200 20 4410 4290 2460 30 4120 3550 1360 40 3450 3010 50 3010 2630 60 2680 2370 70 2460 2180 80 2280 1930 90 2100 1740 100 1930 1520 110 1790 1270 120 1520 130 1330 140 1000</code></pre></div> <p>Basil</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-3822185#post-3603911</guid>
				<title>correlation between sensor value and distance to object</title>
				<link>http://aseba.wikidot.com/forum/t-3822185/correlation-between-sensor-value-and-distance-to-object#post-3603911</link>
				<description></description>
				<pubDate>Fri, 29 Sep 2017 09:45:22 +0000</pubDate>
				<wikidot:authorName>Discovery_42</wikidot:authorName>				<wikidot:authorUserId>3368324</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello everybody!</p> <p>Does someone knows the correlation between sensor values and the actual distance to an object?</p> <p>For example, when Thymio measures the prox.horizontal or prox.ground.delta value of 300 or 1000 to an object, what is the distance to this object?</p> <p>Does a formular exist to calculate the measured value to a distance?</p> <p>Best<br /> Discovery_42</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>