<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=4&amp;t=769" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2006-11-17T10:03:32+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=769</id>
<entry>
<author><name><![CDATA[plingboot]]></name></author>
<updated>2006-11-17T10:03:32+01:00</updated>
<published>2006-11-17T10:03:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4754#p4754</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4754#p4754"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4754#p4754"><![CDATA[
At last, success.<br /><br />Changing the code to A=AD(2) fixed the problem and now, as objects get closer to the sensor, the head led blinks more quickly and as they move away it blinks more slowly.<br /><br />So... next question(s).<br /><br />1. Any hints on how i can grab a 'value' from the sensor and use it as a trigger for an action?<br /><br />2. any hints on where to position this code within the main template - so that it's functioning all the time?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=346">plingboot</a> — Fri Nov 17, 2006 10:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[plingboot]]></name></author>
<updated>2006-11-16T16:04:05+01:00</updated>
<published>2006-11-16T16:04:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4741#p4741</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4741#p4741"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4741#p4741"><![CDATA[
Thanks.<br />I didn't spot that subtle difference in the code on the pdf. My instructions came with a second sheet which used:<br /><br />A= SONAR(2)<br /><br />This evening i'll swap that for: A= AD(2)<br /><br />If that doesn't work i'll try putting a meter on it, though i could use some basic help on how to do this. (really showing my lack of skills now)<br /><br />I have a simple multimeter with a couple of probes. A quick "how to test the module" would be much appreciated.<br /><br />Thanks for the continued help.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=346">plingboot</a> — Thu Nov 16, 2006 4:04 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2006-11-16T15:12:41+01:00</updated>
<published>2006-11-16T15:12:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4740#p4740</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4740#p4740"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4740#p4740"><![CDATA[
As far as I can see from the photo on the web the output is wired to the Max AN pin which is the analog out. The Max should be in free run if the other pins are disconnected and give a 10mV per inch analog voltage out on the AN pin. Try mearuring this with a meter, then use an analog read this is correct. <br />A = AD(2)<br /><br />This is what is says here also<br /><!-- m --><a class="postlink" href="http://www.robonova.de/store/files/data/maxez1.pdf">http://www.robonova.de/store/files/data/maxez1.pdf</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Nov 16, 2006 3:12 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[plingboot]]></name></author>
<updated>2006-11-16T10:47:02+01:00</updated>
<published>2006-11-16T10:47:02+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4737#p4737</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4737#p4737"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4737#p4737"><![CDATA[
Thanks for the reply.<br /><br />The MaxSonar came as a kit from Hitec, the sensor was pre-wired and came with a predrilled chest plate too.<br /><br />The code snippet is based on one supplied in the instructions.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=346">plingboot</a> — Thu Nov 16, 2006 10:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2006-11-15T20:19:44+01:00</updated>
<published>2006-11-15T20:19:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4727#p4727</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4727#p4727"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4727#p4727"><![CDATA[
I think the sonar command is for the Devantech sonar only.<br /><br />For the Max I guess you will have to read the analog voltage from AD2 for the distance.<br /><br />This is good, much lower procesor load<br /><br />Is your Max from Sparkfun or from Hitec ? Is it already cabled using the analog out from the max module<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Wed Nov 15, 2006 8:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[plingboot]]></name></author>
<updated>2006-11-15T10:20:34+01:00</updated>
<published>2006-11-15T10:20:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4715#p4715</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4715#p4715"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4715#p4715"><![CDATA[
bump, as they say...<br /><br />Here's the code i've been using to test the sonar - which is plugged into AD port 2 (third one along from left).<br /><br />I clear the controller and then upload just this snippet.<br /><br />I figure that this should cause the led to blink more quickly as an object gets closer to the sensor and slower as it moves away. With the loop continuing until i stop it.<br /><br />What i actually get is just a constant led blink. A couple of times it seemed to work correctly for a couple of seconds, but then it defaulted back to a steady blink.<br /><br />Not sure whether the code is duff or the sensor. <br /><br />Not sure whether it's worth mentioning, but i also have both a gyro and tilt sensor connected at the same time. Though i wouldn't have thought this made any difference.<br /><br />Any help much appreciated.<br /><br />'================================<br /><br />dim a as integer<br /><br />10:<br /><br />a = sonar(2)<br />out 52,0<br />out 8,0<br />delay a<br /><br />a = sonar(2)<br />out 52,1<br />out 8,1<br />delay a<br /><br />goto 10<br /><br />'===================================<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=346">plingboot</a> — Wed Nov 15, 2006 10:20 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[plingboot]]></name></author>
<updated>2006-11-14T16:31:10+01:00</updated>
<published>2006-11-14T16:31:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4699#p4699</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4699#p4699"/>
<title type="html"><![CDATA[maxsonar]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=769&amp;p=4699#p4699"><![CDATA[
Has anyone got any test code they share with me for the chest mounted maxsonar module?<br /><br />I've fiddled around with the test code supplied and bits from varius forum posts, but a combination of my poor BASIC and faulty code means i haven't managed to find out whether the sensor actually works yet!<br /><br />thanks, ds<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=346">plingboot</a> — Tue Nov 14, 2006 4:31 pm</p><hr />
]]></content>
</entry>
</feed>