<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hacking a toy car @ fizzPOP Howduino</title>
	<atom:link href="http://www.arvydas.co.uk/2009/11/hacking-a-toy-car-fizzpop-howduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arvydas.co.uk/2009/11/hacking-a-toy-car-fizzpop-howduino/</link>
	<description>Software development and electronics</description>
	<lastBuildDate>Sat, 29 Oct 2011 21:31:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Digbeth is Good &#187; Happy Howduino hackers</title>
		<link>http://www.arvydas.co.uk/2009/11/hacking-a-toy-car-fizzpop-howduino/comment-page-1/#comment-6</link>
		<dc:creator>Digbeth is Good &#187; Happy Howduino hackers</dc:creator>
		<pubDate>Tue, 24 Nov 2009 23:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=6#comment-6</guid>
		<description>[...] get the low-down from someone who seriously paid attention in class, read Arvydas&#8217; account of hacking a toy car, which he successfully did to make it do [...]</description>
		<content:encoded><![CDATA[<p>[...] get the low-down from someone who seriously paid attention in class, read Arvydas&#8217; account of hacking a toy car, which he successfully did to make it do [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvydas</title>
		<link>http://www.arvydas.co.uk/2009/11/hacking-a-toy-car-fizzpop-howduino/comment-page-1/#comment-5</link>
		<dc:creator>Arvydas</dc:creator>
		<pubDate>Tue, 24 Nov 2009 21:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=6#comment-5</guid>
		<description>Larry, try using pre tag for your code. I&#039;ll fix your comment once you post correct code :)

Hehe mapping is one of my tasks too!

Edit: you can try using &quot;[ cpp ]&quot; and &quot;[/ cpp ]&quot; without quotes and spaces. Should format the code pretty :). I&#039;ll definatelly have this somewhere below the comment box.</description>
		<content:encoded><![CDATA[<p>Larry, try using pre tag for your code. I&#8217;ll fix your comment once you post correct code :)</p>
<p>Hehe mapping is one of my tasks too!</p>
<p>Edit: you can try using &#8220;[ cpp ]&#8221; and &#8220;[/ cpp ]&#8221; without quotes and spaces. Should format the code pretty :). I&#8217;ll definatelly have this somewhere below the comment box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://www.arvydas.co.uk/2009/11/hacking-a-toy-car-fizzpop-howduino/comment-page-1/#comment-3</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=6#comment-3</guid>
		<description>Heh cool, glad you found a use for my code.

Though my averaging is out - it averages over 10 iterations of the void loop, instead a better wy of doing it is as follows:

[cpp]
    for (index = 0; index&lt;=numReadings;index++) {
      digitalWrite(initPin, LOW); 
      delayMicroseconds(50);
      digitalWrite(initPin, HIGH);
      delayMicroseconds(50);
      digitalWrite(initPin, LOW);
      pulseTime = pulseIn(echoPin, HIGH);
      distance = pulseTime/58;
      total = total + distance;
      delay(10);
    }
    average = total/numReadings;  
    if (index &gt;= numReadings)  {           
      index = 0;           
      total = 0;     
    }
[/cpp]

Basically it uses the same variables at the top of the script but actually calculates an average takign 10 readings at a time before deciding.

I&#039;ve rigged up the SRF05 to a pair of servos, what I&#039;d like to work on is mapping, so thebot maps its area and decides based on what its seen - then save and reuse the map (I&#039;m a long way off!)</description>
		<content:encoded><![CDATA[<p>Heh cool, glad you found a use for my code.</p>
<p>Though my averaging is out &#8211; it averages over 10 iterations of the void loop, instead a better wy of doing it is as follows:</p>
<pre class="brush: cpp;">
    for (index = 0; index&lt;=numReadings;index++) {
      digitalWrite(initPin, LOW);
      delayMicroseconds(50);
      digitalWrite(initPin, HIGH);
      delayMicroseconds(50);
      digitalWrite(initPin, LOW);
      pulseTime = pulseIn(echoPin, HIGH);
      distance = pulseTime/58;
      total = total + distance;
      delay(10);
    }
    average = total/numReadings;
    if (index &gt;= numReadings)  {
      index = 0;
      total = 0;
    }
</pre>
<p>Basically it uses the same variables at the top of the script but actually calculates an average takign 10 readings at a time before deciding.</p>
<p>I&#8217;ve rigged up the SRF05 to a pair of servos, what I&#8217;d like to work on is mapping, so thebot maps its area and decides based on what its seen &#8211; then save and reuse the map (I&#8217;m a long way off!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Hacking a toy car @ fizzPOP Howduino &#124; arvydas.co.uk -- Topsy.com</title>
		<link>http://www.arvydas.co.uk/2009/11/hacking-a-toy-car-fizzpop-howduino/comment-page-1/#comment-2</link>
		<dc:creator>Tweets that mention Hacking a toy car @ fizzPOP Howduino &#124; arvydas.co.uk -- Topsy.com</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=6#comment-2</guid>
		<description>[...] This post was mentioned on Twitter by nikki pugh, Arvydas Juskevicius. Arvydas Juskevicius said: Hacking a toy car @ #fizzPOP #Howduino http://bit.ly/91uT5G [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by nikki pugh, Arvydas Juskevicius. Arvydas Juskevicius said: Hacking a toy car @ #fizzPOP #Howduino <a href="http://bit.ly/91uT5G" rel="nofollow" class="liexternal">http://bit.ly/91uT5G</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

