<?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=1099" />

<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-11-15T19:01:54+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=1099</id>
<entry>
<author><name><![CDATA[serithseraki]]></name></author>
<updated>2011-11-15T19:01:54+01:00</updated>
<published>2011-11-15T19:01:54+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=32844#p32844</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=32844#p32844"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=32844#p32844"><![CDATA[
Sorry to bring back a long lost post but I just got two of these and seeing as my programing skills are at a novice level I am having difficulty understanding the code provided with the instruction sheet. Anyway here is what I do not understand.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>Gp2d12_val = 6787 / Gp2d12_val</code></dd></dl><br />Why is the value equal to 6787 being divided by the value?<br /><dl class="codebox"><dt>Code: </dt><dd><code>IF Gp2d12_val &gt; 100 THEN Gp2d12_val = 0 ‘limit</code></dd></dl><br />Wait,what?<br /><br />I want to calculate precise values but I am currently way to tired to figure this out, any assistance is much appreciated.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1735">serithseraki</a> — Tue Nov 15, 2011 7:01 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-03-01T04:04:37+01:00</updated>
<published>2007-03-01T04:04:37+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7683#p7683</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7683#p7683"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7683#p7683"><![CDATA[
Here's my Robonova reacting to an object placed in various locations around him, with the more efficient arm moves to take front and back sensor readings. He scans every few seconds. I messed up which side to attack when he turns to react to a threat from behind, but you get the idea. I added a couple of his built in sound effects at the end, too:<br /><br /><div class='bbmedia' data-url='http://www.youtube.com/watch?v=pejm3cMYpNw' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'js/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Thu Mar 01, 2007 4:04 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-03-01T01:18:17+01:00</updated>
<published>2007-03-01T01:18:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7679#p7679</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7679#p7679"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7679#p7679"><![CDATA[
Sure, engineer, what do you want me to share? I'll post a video if it all looks good, and if anyone wants to see the code - which I hate the look of compared to stuff in a 'real' language, but hey, I guess it is RoboBASIC, we have to work with the tools we are given - I can do that, too.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Thu Mar 01, 2007 1:18 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[engineer]]></name></author>
<updated>2007-02-28T15:39:34+01:00</updated>
<published>2007-02-28T15:39:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7656#p7656</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7656#p7656"/>
<title type="html"><![CDATA[tried this]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7656#p7656"><![CDATA[
WOW beermatt!! just do a backflip into it, that should discourage whatever it is ,especialy a cpt. crunch box, seriously, what a job, keep it up. And share some of the stuff so the rest of us can try to keep up.way to go <img src="http://forum.robosavvy.com/images/smilies/icon_cool.gif" alt="8)" title="Cool" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=267">engineer</a> — Wed Feb 28, 2007 3:39 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-02-28T04:55:58+01:00</updated>
<published>2007-02-28T04:55:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7635#p7635</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7635#p7635"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7635#p7635"><![CDATA[
No idea, lampcov - some on here might have a sense of what works with KHR and Manoi, but you might be better posting on those forums and cross referencing here for advice?<br /><br />Sooo, I've programmed my 'bot to have 3 toggleable sensor modes (off, left and right only, or flap-arms-around-and-take-6-readings), and I've done the same for reaction modes (defensive, passive, aggressive), all controllable from the remote. In defensive mode, he'll move away from something 'in range'. In passive, he'll speak out loud the distance (really, a debug mode for me), and in agressive, he'll attack if something is 'in range'. I've got the 'in range' adjustable up and down in centimeters via the remote, but 12cm seems to work well as the no-go zone.<br /><br />I've got attack moves for front left, front right, left, and right, but not if anything is detected on his rear left or rear right. Anyone got any suggestions for an attack move for something detected behind? Hard to reach around with his arms, and turning around is too slow by far, so if anyone has any ideas, that'd be great!<br /><br />I've now got over 70 commands programmed into the remote, now, too; have to keep a spreadsheet of them to remember them all!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Wed Feb 28, 2007 4:55 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[lampcov]]></name></author>
<updated>2007-02-26T15:33:55+01:00</updated>
<published>2007-02-26T15:33:55+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7560#p7560</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7560#p7560"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7560#p7560"><![CDATA[
Hey guys- Very cool stuff...I was wondering if anyone knew what the possibilties would be for integrating this type of sensor on to a RCB-3 for the KHR and Manoi bots.... <br /><br />I'm still way too green to have any idea what the work would take or if it's even a possibility.<br /><br />Marc<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=428">lampcov</a> — Mon Feb 26, 2007 3:33 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[subpilot]]></name></author>
<updated>2007-02-26T06:11:55+01:00</updated>
<published>2007-02-26T06:11:55+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7556#p7556</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7556#p7556"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7556#p7556"><![CDATA[
That is extremely cool. Not far from being able to have autonomous battles.  <img src="http://forum.robosavvy.com/images/smilies/icon_razz.gif" alt=":P" title="Razz" /> <br />I also messed with sonar and it was hit or miss but I think if think if you integrate both the sonar and IR returns you can get very accurate, unambiguous ranges.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=86">subpilot</a> — Mon Feb 26, 2007 6:11 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-02-26T04:46:26+01:00</updated>
<published>2007-02-26T04:46:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7554#p7554</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7554#p7554"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7554#p7554"><![CDATA[
Thanks! (and great work on Bing 3, BTW - following your progress with much interest!)<br /><br />Actually, I just realized the moves in the video are inefficient, doing front left, then front right, then rear left, then rear right. For each one, I added a 250ms pause to let the arm rest in place before reading the sensor. I originally did it an arm at a time to avoid clashing arms, but now I have changed it to read front left / rear right simultaneously, and then rear left / front right simultaneously. Much smoother, and a much faster way (half the time) to get a positional location on the enemy from 6 key spots with 2 sensors <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Mon Feb 26, 2007 4:46 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[DerekZahn]]></name></author>
<updated>2007-02-26T04:03:39+01:00</updated>
<published>2007-02-26T04:03:39+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7553#p7553</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7553#p7553"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7553#p7553"><![CDATA[
Ha, that is excellent!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=11">DerekZahn</a> — Mon Feb 26, 2007 4:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-02-26T04:00:17+01:00</updated>
<published>2007-02-26T04:00:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7552#p7552</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7552#p7552"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7552#p7552"><![CDATA[
Yeah, the sharp sensor is a lot better than the sonar (I played around with the sonar for a while), and it is also more accurate at measuring the distance of an object. <br /><br />Check out the video below - my Robonova moves his arms around and takes 6 sensor readings on his left, right, front left, front right, rear left and rear right, and then verbally reports (via the Quadravox chip hack) the location where it detected the closest object, if it found any at all within range. Audios a bit low, I'm afraid, so you might need to increase your volume:  <br /><br /><div class='bbmedia' data-url='http://www.youtube.com/watch?v=H4cW32wNBEk' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'js/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Mon Feb 26, 2007 4:00 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pev]]></name></author>
<updated>2007-02-25T23:20:07+01:00</updated>
<published>2007-02-25T23:20:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7540#p7540</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7540#p7540"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7540#p7540"><![CDATA[
Nice One lol<br /><br />After I tried this <a href="http://robosavvy.com/forum/viewtopic.php?t=166&amp;highlight=spare" class="postlink">http://robosavvy.com/forum/viewtopic.php?t=166&amp;highlight=spare</a> I went down the Sharp sensor route and have to confess it was a lot more successful than the sonar<br /><br />Pev<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=88">Pev</a> — Sun Feb 25, 2007 11:20 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-02-25T23:09:44+01:00</updated>
<published>2007-02-25T23:09:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7539#p7539</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7539#p7539"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7539#p7539"><![CDATA[
I'm now working on a set of arm moves that allows my RN to take a set of readings all around - left, right, front-left, front-right, back-left and back-right - and then determine which reading detected the closest object......<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Sun Feb 25, 2007 11:09 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Orac]]></name></author>
<updated>2007-02-25T22:54:24+01:00</updated>
<published>2007-02-25T22:54:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7538#p7538</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7538#p7538"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7538#p7538"><![CDATA[
Fantastic, I'll have to play around with a pair of them myself <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=532">Orac</a> — Sun Feb 25, 2007 10:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[beermat]]></name></author>
<updated>2007-02-26T00:55:41+01:00</updated>
<published>2007-02-25T22:11:03+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7536#p7536</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7536#p7536"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7536#p7536"><![CDATA[
Been playing around with the Sharp GP2D12 myself. I attached one to each arm, and programmed my RN to turn his head to look at anything 12-25cm away, on either side. Anything closer than 12cm, it attacks. If something is detected on both sides, RN will turn his head toward / attack the closest of the two objects. Here's the video. No Capn Crunch cardboard boxes were harmed in the making of this video:<br /><br /><div class='bbmedia' data-url='http://www.youtube.com/watch?v=uKc0lKJhf9c' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'js/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=244">beermat</a> — Sun Feb 25, 2007 10:11 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Pev]]></name></author>
<updated>2007-02-16T08:55:27+01:00</updated>
<published>2007-02-16T08:55:27+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7256#p7256</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7256#p7256"/>
<title type="html"><![CDATA[Has anyone used a Sharp  distance Sensor (GP2D12)?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1099&amp;p=7256#p7256"><![CDATA[
If you just wanty it to loop continually you could just add a goto at the end like this :<br /><br />Read_gp2d12:<br />     MUSIC "FEDC"<br />     Gp2d12_val = AD (6)                  <br />     IF Gp2d12_val &lt; 4 THEN Gp2d12_val = 4    'min<br />            Gp2d12_val = Gp2d12_val - 3<br />            Gp2d12_val = 6787 / Gp2d12_val<br />            IF Gp2d12_val &gt; 100 THEN Gp2d12_val = 0   'limit<br />            IF Gp2d12_val &gt;= 0 AND Gp2d12_val  &lt;= 24 THEN GOTO  forward_punch<br />            IF Gp2d12_val &gt;= 25 AND Gp2d12_val &lt;= 49  THEN GOTO   ma_test1<br />            IF Gp2d12_val &gt;= 50 AND Gp2d12_val &lt;= 74 THEN GOTO  bow_pose<br />            IF Gp2d12_val &gt;= 75 AND Gp2d12_val &lt;= 99 THEN GOTO Dance_one<br /><br />Goto Read_gp2d12<br />RETURN<br /><br />That would mean that once you entered the routine you'd never leave it....<br /><br />Pev<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=88">Pev</a> — Fri Feb 16, 2007 8:55 am</p><hr />
]]></content>
</entry>
</feed>