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

<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>2007-06-05T22:00:06+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=1382</id>
<entry>
<author><name><![CDATA[viper1]]></name></author>
<updated>2007-06-05T22:00:06+01:00</updated>
<published>2007-06-05T22:00:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9360#p9360</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9360#p9360"/>
<title type="html"><![CDATA[Head Turning Question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9360#p9360"><![CDATA[
I'm having problems with RN1 walking after I changed the code to make his head servo turn. It seems to affect his walking as if he hesitates slightly whenever his head turns. is there anyway I can correct this, why would that affect his walking? I have the head servo plugged into S16.<br />Here's the code I'm using:<br /><br />forward_walk:<br /><br />SPEED 5<br />MOVE24  85,  71, 152,  91, 112,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,   122,    , 112,  76, 145,  93,  92,  60,<br /><br /><br />SPEED 14 <br />'left up<br />MOVE24  90, 107, 105, 105, 114,  60,  90,  40,  80,    ,    ,    , 100,  40,  80,    ,    72,    , 114,  76, 145,  93,  90,  60,<br /><br />FWD_CONT:<br />'---------------------------------------<br />'left down<br />MOVE24  90,  56, 143, 122, 114,  60,  80,  40,  80,    ,    ,    , 105,  40,  80,    ,    ,    , 113,  80, 145,  90,  90,  60,<br />MOVE24  90,  46, 163, 112, 114,  60,  80,  40,  80,    ,    ,    , 105,  40,  80,    ,    53,    , 112,  80, 145,  90,  90,  60,<br /><br />SPEED 10<br />'left center<br />MOVE24 100,  66, 141, 113, 100, 100,  90,  40,  80,    ,    ,    , 100,  40,  80,    ,    ,    , 100,  83, 156,  80, 100, 100,<br />MOVE24 113,  78, 142, 105,  90,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,    163,    ,  90, 102, 136,  85, 114,  60,<br /><br />SPEED 14<br />'right up<br />MOVE24 113,  76, 145,  93,  90,  60, 100,  40,  80,    ,    ,    ,  90,  40,  80,    ,    ,    ,  90, 107, 105, 105, 114,  60,<br /><br /><br />'right down<br />MOVE24 113,  80, 145,  90,  90,  60, 105,  40,  80,    ,    ,    ,  80,  40,  80,    ,    ,    ,  90,  56, 143, 122, 114,  60,<br />MOVE24 112,  80, 145,  90,  90,  60, 105,  40,  80,    ,    ,    ,  80,  40,  80,    ,    ,    ,  90,  46, 163, 112, 114,  60,<br /><br />SPEED 10<br />'right center<br />MOVE24 100,  83, 156,  80, 100, 100, 100,  40,  80,    ,    ,    ,  90,  40,  80,    ,    ,    , 100,  66, 141, 113, 100, 100,<br />MOVE24  90, 102, 136,  85, 114,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,    152,    , 113,  78, 142, 105,  90,  60,<br /><br />SPEED 14<br />'left up<br />MOVE24  90, 107, 105, 105, 114,  60,  90,  40,  80,    ,    ,    , 100,  40,  80,    ,    89,    , 113,  76, 145,  93,  90,  60,<br />   <br /><br />'---------------------------------------<br />PRINT FORMAT (RC1,DEC)<br /><br />RC1 = RCIN(3)<br />IF RC1&gt;PMAX THEN GOTO FWD_CONT<br /><br />SPEED 5<br />MOVE24  85,  71, 152,  91, 112,  60, 100,  40,  80,    ,    ,    , 100,  40,  80,    ,    122,    , 112,  76, 145,  93,  92,  60,<br /><br />RETURN<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=614">viper1</a> — Tue Jun 05, 2007 10:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Humanoido]]></name></author>
<updated>2007-05-19T11:28:19+01:00</updated>
<published>2007-05-19T11:28:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9142#p9142</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9142#p9142"/>
<title type="html"><![CDATA[Head Turning Question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9142#p9142"><![CDATA[
Congratulations on the head mod and looking forward to seeing the pics. You probably won't have catch and play function with the futaba servo so that's why specific software is needed to move it. Good news - RoboBASIC has a random number generator. You can vary the randomness of the head motions. A flowchart to do what you want is something like this.<br /><br />Generate random number<br />Set number range of random number<br />Divide ranges into sets<br />   If number is within set 1 then move head left<br />   If number is within set 2 then move head right<br />   If number is within set 3 then move head home<br />   If number is within set 4 then subroutine A<br />subroutine A:<br />       move head 1/4 range left<br />       pause 2 seconds<br />       move head 1/2 right<br />       pause 4 seconds<br />       move head home<br />return<br />End<br /><br />For getting the basic move code, check this thread:<br /><!-- m --><a class="postlink" href="http://robosavvy.com/forum/viewtopic.php?t=166&amp;postdays=0&amp;postorder=asc&amp;highlight=lcd&amp;start=0">http://robosavvy.com/forum/viewtopic.ph ... cd&amp;start=0</a><!-- m --><br /><br /><span style="font-weight: bold">According to Pev</span><br /><blockquote class="uncited"><div><br />Basically added a servo (Hitec HS300) in place of Robonova's head and attached the sonar to it. The servo is attached to port 9 and accessed using the servo command, format SERVO 9, {degree} where {degree} is a value from 10 to 190.<br /></div></blockquote><br />hope this helps,<br /><br />humanoido<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=416">Humanoido</a> — Sat May 19, 2007 11:28 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[viper1]]></name></author>
<updated>2007-05-17T12:43:47+01:00</updated>
<published>2007-05-17T12:43:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9107#p9107</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9107#p9107"/>
<title type="html"><![CDATA[Head Turning Question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1382&amp;p=9107#p9107"><![CDATA[
Ok, thanks to RoboSavvy and all you guys that have helped me with all my questions, I am pretty much finished with my RN1, Now I have to come up with a name.<br /><br />I was able to cram a very small Futaba Servo inside his head with a little, well actually alot of scraping and melting away plastic, but it looks like it was supposed to be. I'll post some pictures soon<br /><br />My question is now that His head is able to move, Is there a way to set up a program within the template to make his hed randomly move? Nothing erratic just some smoth movements left and rite but not the exact movement every time. Just to add a little more life and personalitl to him.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=614">viper1</a> — Thu May 17, 2007 12:43 pm</p><hr />
]]></content>
</entry>
</feed>