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

<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-08-20T22:22:31+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=1645</id>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2007-08-20T22:22:31+01:00</updated>
<published>2007-08-20T22:22:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10535#p10535</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10535#p10535"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10535#p10535"><![CDATA[
I tried everything but nothing seems to work and to make matters worse I ended up out of battery power so I will resume work tomorrow morning.  I will let you know my progress by tomorrow.  Thanks for your help.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Mon Aug 20, 2007 10:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2007-08-20T22:21:07+01:00</updated>
<published>2007-08-20T22:21:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10534#p10534</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10534#p10534"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10534#p10534"><![CDATA[
Setitng the bit for GETMOTORSET wil force a servo read position. This will leave the port in the output state.<br /><br />I agree, either, do not read the servo position, or send an IN to the port after to make the direction back in again.<br /><br />Putting code before the GOTO Auto is sort of bad too. GOTO Auto jumps to the fixed location 0x2728. The FILL fills with NOPS, so your GOTO always lands in the NOPS before AUTO.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Mon Aug 20, 2007 10:21 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NovaOne]]></name></author>
<updated>2007-08-20T21:28:26+01:00</updated>
<published>2007-08-20T21:28:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10533#p10533</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10533#p10533"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10533#p10533"><![CDATA[
Sorry its me again, try putting zeros in the locations that coincide with outputs 15 and 16 in the GETMOTORSET G24 command.<br /><br />Chris<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=663">NovaOne</a> — Mon Aug 20, 2007 9:28 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NovaOne]]></name></author>
<updated>2007-08-20T21:20:50+01:00</updated>
<published>2007-08-20T21:20:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10532#p10532</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10532#p10532"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10532#p10532"><![CDATA[
The only big difference I can see between my code and yours is that I don't include the Zero commands, since I used the Zero Set routine to write to the EEPROM, I do not see the point in rewriting it every time I run a program.<br /><br />Chris<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=663">NovaOne</a> — Mon Aug 20, 2007 9:20 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NovaOne]]></name></author>
<updated>2007-08-20T21:12:49+01:00</updated>
<published>2007-08-20T21:12:49+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10531#p10531</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10531#p10531"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10531#p10531"><![CDATA[
Sorry I've just check my template again.... I did not remove <span style="font-weight: bold">all</span> (only some) of the MOVE G6C references to servo ports 15 and 16...and ones that remain don't appear interfere.<br /><br />Chris<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=663">NovaOne</a> — Mon Aug 20, 2007 9:12 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NovaOne]]></name></author>
<updated>2007-08-20T20:43:37+01:00</updated>
<published>2007-08-20T20:43:37+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10529#p10529</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10529#p10529"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10529#p10529"><![CDATA[
It also confuses me...<br /><br />I think some other commands my still be able to change the state of those ports...?<br /><br />Before I realized my Motoroff commands did not work, I did remove ALL reference to these ports in some <span style="font-weight: bold">standard</span> RN template moves.<br /><br />I did this by deleting the offending servo position number in the MOVE commands, just leaving a space with commas each side, (just in case it was these some how interfering?)<br /><br />eg MOVE G6C,100, 30, 80,  ,  ,  ,<br /><br />The only reason I can think that there were servo position numbers in these move commands was lazy programming on the part of Hitec. <br /><br />Good luck<br /><br />Chris<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=663">NovaOne</a> — Mon Aug 20, 2007 8:43 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2007-08-20T20:25:58+01:00</updated>
<published>2007-08-20T20:25:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10528#p10528</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10528#p10528"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10528#p10528"><![CDATA[
I tried this but it didn't work either!!!!! (The SP03 continues to reset all the time, BUT if I remove all the MOTOR commands everything is ok) Could it be something from the ZERO or some other command.  Thanks<br /><br /><blockquote class="uncited"><div><br />' zero position<br />ZERO G6A, 99, 102,  97, 101, 102<br />ZERO G6B,100, 103,  99, 117<br />ZERO G6C, 99, 100,  98, , , 92<br />ZERO G6D,100, 104, 103, 101, 104, 115<br /><br />GOTO AUTO<br />FILL 255,10000<br /><br />PTP SETON <br />PTP ALLON<br /><br />'== motor diretion setting ======================<br />DIR G6A,1,0,0,1,0,0<br />DIR G6B,1,1,1,0,1,1<br />DIR G6C,0,0,0,0,0,0<br />DIR G6D,0,1,1,0,1,0<br /><br />GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0<br /><br />DELAY 5000<br /><br />SPEED 5<br /><br /> DIM mtr AS BYTE<br />  <br /> MOTOR 0<br /> MOTOR 1<br /> MOTOR 2<br /> MOTOR 3<br /> MOTOR 4<br /> MOTOR 5<br /> MOTOR 6<br /> MOTOR 7<br /> MOTOR 8<br /> MOTOR 9<br /> MOTOR 10<br /> MOTOR 11<br /> MOTOR 12<br /> MOTOR 13<br /> MOTOR 14<br /> MOTOR 17<br /> MOTOR 18<br /> MOTOR 19<br /> MOTOR 20<br /> MOTOR 21<br /> MOTOR 22<br /> MOTOR 23<br /><br /> GOSUB STANDARD_POSE<br /></div></blockquote><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Mon Aug 20, 2007 8:25 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2007-08-20T19:53:10+01:00</updated>
<published>2007-08-20T19:53:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10526#p10526</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10526#p10526"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10526#p10526"><![CDATA[
There is something strange here.<br /><br />JavaRN, could you try the same code, but without the MOTOROFF instructions ?<br /><br />The compiler seems to turn MOTOROFF to MOTOR  !<br /><br />Motors are off by default<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Mon Aug 20, 2007 7:53 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NovaOne]]></name></author>
<updated>2007-08-20T19:48:35+01:00</updated>
<published>2007-08-20T19:48:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10525#p10525</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10525#p10525"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10525#p10525"><![CDATA[
Yes, I think there is a bug in RoboBASIC.<br />Unless any one else can enlighten us?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=663">NovaOne</a> — Mon Aug 20, 2007 7:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2007-08-20T19:43:40+01:00</updated>
<published>2007-08-20T19:43:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10524#p10524</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10524#p10524"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10524#p10524"><![CDATA[
Therefore there is a bug in Roboasic because the two loops I use should have the same effect as writing a list of motor commands!  Thanks again Chris<br /><br /><br />Charles<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Mon Aug 20, 2007 7:43 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NovaOne]]></name></author>
<updated>2007-08-20T18:31:19+01:00</updated>
<published>2007-08-20T18:31:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10519#p10519</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10519#p10519"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10519#p10519"><![CDATA[
Yes I had the same problem when I first integrated by compass code in to RN template. This is how i solved it:<br /><blockquote class="uncited"><div><br />.........<br />I tried to issue a MOTOROFF 15 and MOTOROFF 16 commands to free up the ports to use for I2c,However the MOTOROFF [servo number] command did not seem work after a MOTOR G24, so I turned on the required servos with the MOTOR [servo number] command, in place of MOTOR G24:<br />....<br />SPEED 5<br />MOTOR 0<br />MOTOR 1<br />MOTOR 2<br />MOTOR 3<br />MOTOR 4<br />MOTOR 6<br />MOTOR 7<br />MOTOR 8<br />'MOTOR 9 'Left hand<br />'MOTOR 11 'Head<br />MOTOR 12<br />MOTOR 13<br />MOTOR 14<br />'MOTOR 17 'Right hand<br />MOTOR 18<br />MOTOR 19<br />MOTOR 20<br />MOTOR 21<br />MOTOR 22<br />.....<br /></div></blockquote><br /><br />This quote is from:<a href="http://robosavvy.com/forum/viewtopic.php?t=1567" class="postlink">http://robosavvy.com/forum/viewtopic.php?t=1567</a><br /><br /><br />Chris<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=663">NovaOne</a> — Mon Aug 20, 2007 6:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2007-08-20T15:25:26+01:00</updated>
<published>2007-08-20T15:25:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10516#p10516</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10516#p10516"/>
<title type="html"><![CDATA[Turning Motors Off]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=1645&amp;p=10516#p10516"><![CDATA[
I am using ports 15 and 16 to communicate with my SP03 using the I2C bus.  Everything works well until I add code that switch motors on.  The SP03 continuously keeps resetting itself.  I tried to switch from the code motors 15 and 16 off using the following code:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>' zero position<br />ZERO G6A, 99, 102,  97, 101, 102<br />ZERO G6B,100, 103,  99, 117<br />ZERO G6C, 99, 100,  98, , , 92<br />ZERO G6D,100, 104, 103, 101, 104, 115<br /><br />GOTO AUTO<br />FILL 255,10000<br /><br />PTP SETON             <br />PTP ALLON<br /><br />'== motor diretion setting ======================<br />DIR G6A,1,0,0,1,0,0      <br />DIR G6B,1,1,1,0,1,1      <br />DIR G6C,0,0,0,0,0,0      <br />DIR G6D,0,1,1,0,1,0   <br /><br />GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1,0<br /><br /><br />DELAY 5000<br /><br />SPEED 5<br /><br /> DIM mtr AS BYTE<br /> <br /> 'switch motors 0 to 14 on<br /> FOR mtr = 0 TO 14<br />    MOTOR mtr<br /> NEXT mtr<br /> <br /> 'switch motors 17 to 23 on<br /> FOR mtr = 17 TO 23<br />   MOTOR mtr<br /> NEXT mtr<br /><br />' switch 15 and 16 off<br /> MOTOROFF 15<br /> MOTOROFF 16<br /><br /></code></dd></dl><br /><br />But the SP03 still reboots itself.  What am I doing wrong?<br /><br />Note: I assume that ports 15 and 16 correspond to motors 15 and 16.  Am I right.  Any help is more than welcome.<br /><br />Charles<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Mon Aug 20, 2007 3:25 pm</p><hr />
]]></content>
</entry>
</feed>