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

<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>2009-10-26T12:00:26+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=4257</id>
<entry>
<author><name><![CDATA[Crenwick]]></name></author>
<updated>2009-10-26T12:00:26+01:00</updated>
<published>2009-10-26T12:00:26+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22475#p22475</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22475#p22475"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22475#p22475"><![CDATA[
Hi i-Bot,<br /><br />Thanks for the info  <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" /> <br /><br />I will play with another led on another port.<br /><br />Regards<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1715">Crenwick</a> — Mon Oct 26, 2009 12:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2009-10-22T17:06:49+01:00</updated>
<published>2009-10-22T17:06:49+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22434#p22434</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22434#p22434"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22434#p22434"><![CDATA[
Just checked firmware again. <br />Toggle works only on ports up to decimal 39. Ports are in attached:<br /><!-- m --><a class="postlink" href="http://robosavvy.com/Builders/i-Bot/C3024%20ports.pdf">http://robosavvy.com/Builders/i-Bot/C3024%20ports.pdf</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Oct 22, 2009 5:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2009-10-22T16:36:36+01:00</updated>
<published>2009-10-22T16:36:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22433#p22433</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22433#p22433"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22433#p22433"><![CDATA[
Yes, you are right Toggle does not work on port 52.<br /><br />I tried this code:<br /><dl class="codebox"><dt>Code: </dt><dd><code>'================================================<br />' Simple Template <br />'<br />' RR : internal parameter variable / ROBOREMOCON / Action command<br /><br />DIM RR AS BYTE<br />DIM A AS BYTE<br />DIM i AS INTEGER<br /><br /><br />'================================================<br />MAIN:<br /><br /><br />A = REMOCON&#40;1&#41;  <br /><br />ON A GOTO MAIN,K1,K2,K3,K4<br />GOTO MAIN<br />'-------------------------------------------------<br /><br />'================================================<br />k1:<br />   GOSUB led_on<br />   GOTO MAIN<br />k2:<br />   GOSUB led_off<br />   GOTO MAIN<br />k3:<br />   GOSUB led_toggle<br />   GOTO MAIN<br />k4:<br />   GOSUB led_Flash<br />   GOTO MAIN<br />   <br />led_on: <br />OUT 52,0 <br />RETURN <br /><br />led_off: <br />OUT 52,1 <br />RETURN <br /><br />led_toggle: <br />TOGGLE 29 <br />RETURN <br /><br />led_flash:<br />FOR i = 0 TO 2 <br />OUT 52,1 <br />DELAY 200 <br />OUT 52,0 <br />DELAY 200 <br />NEXT i <br />RETURN </code></dd></dl><br /><br />I compiled OK to this byte code:<br /><dl class="codebox"><dt>Code: </dt><dd><code><br /><br />0x40  byte  RR                                 <br />0x41  byte  A                                  <br />0x42  int    I                                  <br /><br /><br />0x10 @0x41 =  REMOCON 1<br />0x16 ON @0x41 &#91;0x10&#93; &#91;0x27&#93; &#91;0x2D&#93; &#91;0x33&#93; &#91;0x39&#93;<br />0x24 GOTO &#91; 0x10&#93;<br />0x27 GOSUB &#91; 0x3F&#93;<br />0x2A GOTO &#91; 0x10&#93;<br />0x2D GOSUB &#91; 0x44&#93;<br />0x30 GOTO &#91; 0x10&#93;<br />0x33 GOSUB &#91; 0x49&#93;<br />0x36 GOTO &#91; 0x10&#93;<br />0x39 GOSUB &#91; 0x4D&#93;<br />0x3C GOTO &#91; 0x10&#93;<br />0x3F OUT 52, 0<br />0x43 RET<br />0x44 OUT 52, 1<br />0x48 RET<br />0x49 TOGGLE 52<br />0x4C RET<br />0x4D FOR @0x42 = 0<br />0x51 TO @0x42 = 2, &#91;0x6D&#93;<br />0x58 OUT 52, 1<br />0x5C DELAY 200<br />0x5F WAIT<br />0x60 OUT 52, 0<br />0x64 DELAY 200<br />0x67 WAIT<br />0x68 NEXT @0x42, &#91;0x51&#93;<br />0x6D RET<br />0x6E GOTO &#91; 0x6E&#93;<br /></code></dd></dl><br /><br />and ran OK except for the toggle.<br /><br />I looked in the C3024 firmware and toggle on port 52 is not supported in the firmware !<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Oct 22, 2009 4:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Crenwick]]></name></author>
<updated>2009-10-22T14:54:43+01:00</updated>
<published>2009-10-22T14:54:43+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22423#p22423</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22423#p22423"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22423#p22423"><![CDATA[
My gosub robot_voltage routine plays a music &quot;cdecde&quot;. Yes I have a resistor bridge on AD6.<br /><br />I tried this<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>k5:<br />for i = 0 to 2<br />out 52,1<br />delay 200<br />out 52,0<br />delay 200<br />next i<br />return<br /></code></dd></dl><br /><br />and the led flashes  <img src="http://forum.robosavvy.com/images/smilies/icon_eek.gif" alt=":shock:" title="Shocked" /> <br /><br />But  with<br /><br /> <dl class="codebox"><dt>Code: </dt><dd><code>k5:<br />toggle 52<br />return</code></dd></dl><br /><br />no way  <img src="http://forum.robosavvy.com/images/smilies/icon_question.gif" alt=":?:" title="Question" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1715">Crenwick</a> — Thu Oct 22, 2009 2:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2009-10-22T11:34:34+01:00</updated>
<published>2009-10-22T11:34:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22400#p22400</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22400#p22400"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22400#p22400"><![CDATA[
You might comment out the GOSUB robot_voltage in case it over rides you control. Is you LED flashing ? Do you have resistors on voltage detect pins ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Oct 22, 2009 11:34 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Crenwick]]></name></author>
<updated>2009-10-22T07:43:50+01:00</updated>
<published>2009-10-22T07:43:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22398#p22398</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22398#p22398"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22398#p22398"><![CDATA[
Yes, I use the advanced overal template.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>GOTO AUTO<br />   FILL 255,10000<br />   <br />   DIM RR AS BYTE<br />   DIM A AS BYTE<br />   DIM A16 AS BYTE<br />   DIM A26 AS BYTE<br />   DIM I AS BYTE<br />   <br />   CONST ID = 0    ' 1:0, 2:32, 3:64, 4:96<br />   <br />   '== Action command check &#40;50 - 82&#41;<br />   IF RR &gt; 50 AND RR &lt; 83 THEN GOTO action_proc <br />   <br />   RR = 0<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,1,1,1      <br />   DIR G6C,0,0,0,0,0,0      <br />   DIR G6D,0,1,1,0,1,0      <br />   <br />   <br />   '== motor start position read ===================<br />   TEMPO 220<br />   MUSIC &quot;CDEC&quot;<br />   GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0<br />   '== motor power on  =============================<br />   SPEED 5<br />   MOTOR G24   <br />   GOSUB pose_standard<br />   '================================================<br />   MAIN:<br />   GOSUB robot_voltage<br />   'GOSUB robot_tilt<br />   <br />   '-----------------------------<br />   IF RR = 0 THEN GOTO MAIN1<br />   <br />   ON RR GOTO MAIN,K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,k15,k16,k17,k18,k19,k20,k21,k22,k23,k24,k25,k26,k27,k28,k29,k30,k31,k32<br />   GOTO main_exit<br />   '-----------------------------<br />   MAIN1:<br />   A = REMOCON&#40;1&#41;  <br />   A = A - ID   <br />   ON A GOTO MAIN,K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,k15,k16,k17,k18,k19,k20,k21,k22,k23,k24,k25,k26,k27,k28,k29,k30,k31,k32<br />   GOTO MAIN<br />   '-------------------------------------------------<br />   action_proc:<br />   A = RR - 50<br />   ON A GOTO MAIN,K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,k15,k16,k17,k18,k19,k20,k21,k22,k23,k24,k25,k26,k27,k28,k29,k30,k31,k32<br />   RETURN<br />   '-----------------------------<br />   main_exit:<br />   IF RR &gt; 50 THEN RETURN<br />   RR = 0<br />    GOTO MAIN</code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1715">Crenwick</a> — Thu Oct 22, 2009 7:43 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2009-10-22T00:48:11+01:00</updated>
<published>2009-10-22T00:48:11+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22397#p22397</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22397#p22397"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22397#p22397"><![CDATA[
Did you use the template ? and modify this part:<br /><dl class="codebox"><dt>Code: </dt><dd><code>MAIN1:<br />A = REMOCON&#40;1&#41;  <br />A = A - ID   <br />ON A GOTO MAIN,K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,K15,K16,K17,K18,K19,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,K30,K31,K32<br />GOTO MAIN</code></dd></dl><br />with your routines ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Oct 22, 2009 12:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Crenwick]]></name></author>
<updated>2009-10-21T15:54:56+01:00</updated>
<published>2009-10-21T15:54:56+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22393#p22393</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22393#p22393"/>
<title type="html"><![CDATA[Playing with the blue led !]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4257&amp;p=22393#p22393"><![CDATA[
I tried to play with the blue led and wrote a little basic and assigned these to some of the remocon (K1,K2,K3)<br /><br />led_on:<br />out 52,0<br />return<br /><br />led_off:<br />out 52,1<br />return<br /><br />led_toggle:<br />toggle 52<br />return<br /><br />Well, it didn't work  <img src="http://forum.robosavvy.com/images/smilies/icon_question.gif" alt=":?:" title="Question" /> <br />Some idee what I did wrong ?<br /><br />Bernard<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1715">Crenwick</a> — Wed Oct 21, 2009 3:54 pm</p><hr />
]]></content>
</entry>
</feed>