<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://letsmakerobots.com" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>Content in &amp;ldquo;srf05&amp;rdquo;</title>
 <link>http://letsmakerobots.com/taxonomy/term/70</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en-DA</language>
<item>
 <title>So it turns out making a lifelike drumming robot isn&#039;t as easy as you&#039;d assume</title>
 <link>http://letsmakerobots.com/node/453</link>
 <description>&lt;p&gt;Well, I finished the construction, added the second drumstick up front, redid all of the circuitry on a PCB to eliminate the breadboard and clean things up, soldered up ribbon connectors instead of having loose wires everywhere, and glued down everything that was still hanging loose. So it&#039;s done, mechanically. Now I&#039;ve turned attention to the coding.&lt;/p&gt;&lt;p&gt;The coding I had done for playing drums worked pretty well for music that I hardcoded by hand, but as I started thinking ahead to how I wanted him to be able to &#039;write&#039; his own drum beats, I realized that I&#039;d need something a little more programmatical and less music-oriented. So I took a page from real drum machines, and I redid my drumming routines to get rid of the explicit calls to play notes of varying lengths. Now, instead, I just divide a measure into 8 beats, and my drum patterns are 4 measures long, so that&#039;s 32 beats per pattern. I have 4 &amp;quot;instruments&amp;quot; (bass drum, two drumsticks, and a click from the speaker), so a pattern can be represented by an array of four 32-bit long integers. When I want to play the pattern, I just loop over each bit, and play the drum if it&#039;s a 1, or don&#039;t play the drum if it&#039;s a 0. I had to do some fun bitwise math to look at individual bits from each integer, but it works, and now I just need to come up with four integers and I&#039;ve got a new pattern.&lt;/p&gt;&lt;p&gt;I came up with some quick and dirty code to let him come up with his own patterns -- each time I measure left/center/right distance with the sonar, I stick each of those measurements into bass drum, snare, and hi-hat. It shows promise -- they actually sound pretty musical. This whole &#039;coming up with his own patterns&#039; thing will need some tweaking, to guide the patterns closer to musical and away from &#039;random banging&#039;, but it seems doable.&lt;/p&gt;&lt;p&gt;The part that I continue to have trouble with is the *&amp;amp;$king navigation. At first I thought I had found the problem when I realized that, since I had mounted my two drumsticks so far forward, my SRF05 was actually detecting those sticks most of the time when it looked left and right, so it was literally like he was wearing blinders. I cut the hot glue and re-glued the two motors angled farther back, so now that&#039;s not a problem anymore, but I still have trouble getting realistic numbers out of that sensor. Lots of times it will be like 8 inches away from a wall and pointing straight at it, and the sensor reports that the distances are something like (60 // 8 // 45) or (13 // 8 // 146) or things like that. The direction that is facing the wall head-on tends to work well, but the views to the sides seem to be completely unreliable. I added some debugging code to have it beep out the three distances through the speaker like the tracking devices in the movie Alien, with the pitch getting higher as the detected distance gets closer. That works really well for letting you know immediately how far away it thinks things are, at least relative to each other. And that has shown me that most of the time, it&#039;s getting totally incorrect numbers, which is why he can never manage to find anything to play drums on.&lt;/p&gt;&lt;p&gt;I know these sonar sensors have trouble when they&#039;re hitting a wall at an angle and things like that, so I&#039;d expect little flaws every once in a while which wouldn&#039;t bother me, but this is pretty much just useless. I thought it might be my code for converting the pulses into measurements in inches, so I looked at the raw pulse numbers, but the problems are apparent there too, so I don&#039;t think it&#039;s a problem with my code. I almost feel like replacing the SRF05 with a Sharp IR sensor -- I get the impression that those are more accurate, though with a shorter range. But actually, the main reason I&#039;m hesitant to do that is (embarassingly) an aesthetic one -- I think he looks a lot cuter with those big round SRF05 &amp;quot;eyes&amp;quot; rather than the tiny beady black eyes of a Sharp sensor :) Maybe I&#039;ll try using the PING sensor from my Harry The Discbot robot and see if there&#039;s any improvement -- maybe I just got a bad SRF05 or something. Frits, did you run into any problems like this with your sensor?&lt;/p&gt;&lt;p&gt;Dan &lt;/p&gt;</description>
 <comments>http://letsmakerobots.com/node/453#comments</comments>
 <category domain="http://letsmakerobots.com/taxonomy/term/346">drumming</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/70">srf05</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://letsmakerobots.com/crss/node/453</wfw:commentRss>
 <pubDate>Thu, 17 Apr 2008 08:16:47 +0200</pubDate>
 <dc:creator>TheCowGod</dc:creator>
 <guid isPermaLink="false">453 at http://letsmakerobots.com</guid>
</item>
<item>
 <title>How to connect SRF05 to Picaxe 28 pin Projectboard</title>
 <link>http://letsmakerobots.com/node/66</link>
 <description>&lt;p&gt;If you are a newbee, you may only have learned that the Picaxe 28 pin Project Board has some inputs and outputs.. And you may have purchesed an SRF05 (that Picaxe refers to as SRF005), and you are trying to connect the darn thing.. without resoult?&lt;/p&gt;&lt;p&gt;Reason is likely to be that you are connecting the output from the  Picaxe to the SRF05 through the darlington on the board. &lt;/p&gt;&lt;p&gt;The SRF05 needs (like many other things) a Pulse-signal, not just a &amp;quot;power on / off&amp;quot;. The signal therefore must come directly from the Picaxe chip.&lt;/p&gt;&lt;p&gt;Luckely the board has little &amp;quot;hidden&amp;quot; holes for that kind of conections. (Blue wire, the signal in to the SRF05 directly from the chip). These holes, however, are not described, simply omitted in the manual for the board. So I wonder how a newbee should ever find out, personaly I burned a SRF05 or two in my frustrated attempts to get it right :)  &lt;/p&gt;&lt;p&gt;If you follow the illustration above, you should be able to make the below code work just fine. You will know that the SRF05 is getting a pulse-signal when the little red LED on it´s back is flashing red.&lt;/p&gt;&lt;p&gt;****&lt;br /&gt;&lt;br /&gt;symbol trig = 3 ‘ Define output pin for Trigger pulse&lt;br /&gt;symbol echo = 6 ‘ Define input pin for Echo pulse&lt;br /&gt;symbol range = w1 ‘ 16 bit word variable for range&lt;br /&gt;&lt;br /&gt;main:&lt;br /&gt;pulsout trig,2 ‘ produce 20uS trigger pulse (must be minimum of 10uS)&lt;br /&gt;pulsin echo,1,range ‘ measures the range in 10uS steps&lt;br /&gt;pause 10 ‘ recharge period after ranging completes&lt;br /&gt;‘ now convert range to cm (divide by 5.8) or inches (divide by 14.8)&lt;br /&gt;‘ as picaxe cannot use 5.8, multiply by 10 then divide by 58 instead&lt;br /&gt;let range = range * 10 / 58 ‘ multiply by 10 then divide by 58&lt;br /&gt;debug range ‘ display range via debug command&lt;br /&gt;goto main ‘ and around forever&lt;/p&gt;&lt;p&gt;****&lt;/p&gt;&lt;p&gt;&lt;b&gt;Notes:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I did not have a fresh SRF05, and so there are drilled extra holes and soldered pins on the one on the picture.&lt;/p&gt;&lt;p&gt;Be aware that if you also connect servo(s) to the same Picaxe chip, program execution may be bumpy with little iregular breaks when using things as the SFR05 that needs pulses. If it is important for you to have a steady program execution, or if a servo acts totally irrational, it sometimes helps to have a smal pause or turn off a servos pulse for a short time in the code:&lt;/p&gt;&lt;p&gt;&amp;quot;low 3&amp;quot; or &amp;quot;pause 10&amp;quot;. Aparently there is no system, it is just trial and error with your particular setup.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;p&gt;These pages might have your interest: &lt;a href=&quot;/node/316&quot;&gt;See what Robot Sees&lt;/a&gt;, &lt;a href=&quot;/node/75&quot;&gt;28 pin Project Board (AXE020), Picaxe for dummies&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr size=&quot;2&quot; width=&quot;100%&quot; /&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description>
 <comments>http://letsmakerobots.com/node/66#comments</comments>
 <category domain="http://letsmakerobots.com/taxonomy/term/116">28 pin Project Board</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/117">AXE020</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/97">picaxe</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/113">SRF005</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/70">srf05</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/118">ultra sonic range finder</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/75">SRF05</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://letsmakerobots.com/crss/node/66</wfw:commentRss>
 <pubDate>Wed, 13 Feb 2008 17:55:09 +0100</pubDate>
 <dc:creator>fritsl</dc:creator>
 <guid isPermaLink="false">66 at http://letsmakerobots.com</guid>
</item>
<item>
 <title>SRF05 Ultra Sonic Range finder</title>
 <link>http://letsmakerobots.com/node/65</link>
 <description>&lt;p&gt;IMHO the best way to have your robot measure distance to objects. Fast and accurate.&lt;/p&gt;&lt;p&gt;If you are using Picaxe, you may find this info useful: &lt;a href=&quot;http://letsmakerobots.com/node/66&quot;&gt;http://letsmakerobots.com/node/66&lt;/a&gt; &lt;/p&gt;</description>
 <comments>http://letsmakerobots.com/node/65#comments</comments>
 <category domain="http://letsmakerobots.com/taxonomy/term/115">distance</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/113">SRF005</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/70">srf05</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/114">ultra sonic</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/106">Input devices and sensors</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://letsmakerobots.com/crss/node/65</wfw:commentRss>
 <pubDate>Wed, 13 Feb 2008 16:12:32 +0100</pubDate>
 <dc:creator>fritsl</dc:creator>
 <guid isPermaLink="false">65 at http://letsmakerobots.com</guid>
</item>
<item>
 <title>My second robot</title>
 <link>http://letsmakerobots.com/node/34</link>
 <description>&lt;div class=&quot;field field-type-image field-field-primary-image&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Primary image&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;&lt;img src=&quot;http://letsmakerobots.com/files/field_primary_image/IMG_1872.JPG&quot; alt=&quot;IMG_1872.JPG&quot; title=&quot;&quot; width=&quot;2272&quot; height=&quot;1704&quot; /&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-text field-field-what-does-it-do&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;What does it do?&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;Drives really fast, but poor, as both rear wheels turn the same, and no weight on front&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;This time I wanted a faster robot. No turning head, just some parts from old toy, mocked up, and getting much too high voltage!&lt;/p&gt;&lt;p&gt;It went completely beserk, but frankly; It was quite a poor robot, haha. (But fun)&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;/files/userpics/u4/IMG_1876.jpg&quot; height=&quot;375&quot; width=&quot;500&quot; alt=&quot;IMG_1876.jpg&quot; /&gt;&lt;img src=&quot;/files/userpics/u4/IMG_1874_0.jpg&quot; height=&quot;375&quot; width=&quot;500&quot; alt=&quot;IMG_1874_0.jpg&quot; /&gt;&lt;/p&gt;
&lt;div class=&quot;field field-type-number-decimal field-field-cost-to-build&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Cost to build&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-video-cck field-field-em-video&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Embedded video&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
          &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-number-integer field-field-finished-project&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Finished project&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;Complete&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-number-integer field-field-locomotor-number&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Number&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;4&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-number-decimal field-field-time-to-build&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Time to build&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;5 hours&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-text field-field-locomotion-type&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Type&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;wheels&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-link field-field-url-more-info&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;URL to more information&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
          &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;field field-type-number-integer field-field-weight&quot;&gt;
  &lt;h3 class=&quot;field-label&quot;&gt;Weight&lt;/h3&gt;
  &lt;div class=&quot;field-items&quot;&gt;
      &lt;div class=&quot;field-item&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</description>
 <comments>http://letsmakerobots.com/node/34#comments</comments>
 <category domain="http://letsmakerobots.com/taxonomy/term/68">crap robot</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/69">fun</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/70">srf05</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/71">1 motor drive</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/73">2 V Racing pack for drive</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/74">3 DD-cells for brains</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/33">7</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/36">Basic</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/7">indoor</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/72">one motor steering</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/40">outdoor</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/22">Picaxe</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/56">Picaxe</category>
 <category domain="http://letsmakerobots.com/taxonomy/term/75">SRF05</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://letsmakerobots.com/crss/node/34</wfw:commentRss>
 <enclosure url="http://letsmakerobots.com/files/field_primary_image/IMG_1872.JPG" length="2001467" type="image/jpeg" />
 <pubDate>Thu, 07 Feb 2008 16:55:29 +0100</pubDate>
 <dc:creator>fritsl</dc:creator>
 <guid isPermaLink="false">34 at http://letsmakerobots.com</guid>
</item>
</channel>
</rss>
