<?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=5&amp;t=7088" />

<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>2011-03-23T19:44:31+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=7088</id>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2011-03-23T19:44:31+01:00</updated>
<published>2011-03-23T19:44:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30628#p30628</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30628#p30628"/>
<title type="html"><![CDATA[Re: Distance Sensor]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30628#p30628"><![CDATA[
<blockquote><div><cite>Bertha101 wrote:</cite><br />I have the distance sensor built into my Bioloid, I was wondering how to use it and how to incorporate it into task codes. <br />Thanks!<br /></div></blockquote><br /><br />I think this example could help you:<br /><br /><br /><!-- m --><a class="postlink" href="http://support.robotis.com/en/software/roboplus/roboplus_task/programming/parameter/auxdevice/roboplus_task_dms.htm">http://support.robotis.com/en/software/ ... sk_dms.htm</a><!-- m --><br /><br /><br />This example executes a block of code if the value of the DMS sensor connected to Port 3 is less than 500.<br /><br /><br /><img src="http://support.robotis.com/en/images/software/roboplus/roboplus_task/programming/parameter/auxdevice/dms_ex.png" alt="Image" /><br /><br /><br />You have a lot of programming information at Roboplus Tasks pages<br /><br /><!-- m --><a class="postlink" href="http://support.robotis.com/en/software/roboplus/roboplus_task_main.htm">http://support.robotis.com/en/software/ ... k_main.htm</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Wed Mar 23, 2011 7:44 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dewey]]></name></author>
<updated>2011-03-23T18:04:19+01:00</updated>
<published>2011-03-23T18:04:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30624#p30624</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30624#p30624"/>
<title type="html"><![CDATA[Distance Sensor]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30624#p30624"><![CDATA[
Just read the port you have connected the Sharp DMS to, convert to a range in cms if required.<br />If you put this code in a loop you can take different action in your program depending on range.<br />A very simple example to read the sensor and continuously display the range in cms is below:<br /><br /><!-- m --><a class="postlink" href="http://robosavvy.com/Builders/Dewey/DMSTest.pdf">http://robosavvy.com/Builders/Dewey/DMSTest.pdf</a><!-- m --><br /><br />Dewey<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=616">Dewey</a> — Wed Mar 23, 2011 6:04 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2011-03-23T18:03:07+01:00</updated>
<published>2011-03-23T18:03:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30623#p30623</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30623#p30623"/>
<title type="html"><![CDATA[Distance Sensor]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30623#p30623"><![CDATA[
Take a look at the demo task program at label AutoWalkMode.  The code goes something like this...<br /><br />  IF(PORT[5] &gt; 200)<br />  ...WalkCommand = 3<br />  ELSE<br />   ...WalkCommand = 1<br />  CALL WalkExecute<br /><br />WalkCommand 3 causes the robot to turn left.  Otherwise WalkCommand 1 causes the robot to walk forward.  A reading above 200 on I/O port 5 is the threshold for turning left. The DMS sensor is on port 5.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Wed Mar 23, 2011 6:03 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bertha101]]></name></author>
<updated>2011-03-23T16:53:00+01:00</updated>
<published>2011-03-23T16:53:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30622#p30622</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30622#p30622"/>
<title type="html"><![CDATA[Distance Sensor]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30622#p30622"><![CDATA[
How do i incorporate it into a taskcode?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2584">Bertha101</a> — Wed Mar 23, 2011 4:53 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Dewey]]></name></author>
<updated>2011-03-22T17:59:40+01:00</updated>
<published>2011-03-22T17:59:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30599#p30599</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30599#p30599"/>
<title type="html"><![CDATA[Distance Sensor]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30599#p30599"><![CDATA[
The Sharp IR Ranger is connected to an analogue input port on the CM510 the value returned, when the port is read in a robo plus program, is not linear to distance and is in the range 0-1023! <br /><br />A good approximation of the range in cms is 5524/Value returned. <br /><br />Its good for ranges out to 80ish cms, google for a full datasheet on it. <br /><br />Dewey<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=616">Dewey</a> — Tue Mar 22, 2011 5:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bertha101]]></name></author>
<updated>2011-03-22T16:36:24+01:00</updated>
<published>2011-03-22T16:36:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30596#p30596</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30596#p30596"/>
<title type="html"><![CDATA[Distance Sensor]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7088&amp;p=30596#p30596"><![CDATA[
I have the distance sensor built into my Bioloid, I was wondering how to use it and how to incorporate it into task codes. <br />Thanks!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2584">Bertha101</a> — Tue Mar 22, 2011 4:36 pm</p><hr />
]]></content>
</entry>
</feed>