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

<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>2012-04-13T07:45:39+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=7864</id>
<entry>
<author><name><![CDATA[indjpd00]]></name></author>
<updated>2012-04-13T07:45:39+01:00</updated>
<published>2012-04-13T07:45:39+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34146#p34146</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34146#p34146"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34146#p34146"><![CDATA[
Another one fighting with zigbee and CM510!! That's great!! Welcome!! (Bienvenu!!)<br /><br />I've been struggling with my code for a couple of weeks (with no response, unluckily) and yesterday night I think I found the problem: I think one of my Zig100 no longer works...<br /><br />The one I have connected to the CM510 works ok (it flashes when the other is off, and stays off when it isn't connected to the power supply), but I think the one I have on the Zig2Serial doesn't work, because whenever I plug it onto the computer, the light stays on. It doesn't matter if the other zig100 is on or off, it says it finds it! I tried to put it on the remote control, justo to find out if the problem was wiht the zig100 or the zig2serial, and it doesn't work as well.<br /><br />Does anybody know how to fix this problem, or should I order another one right now?  <img src="http://forum.robosavvy.com/images/smilies/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2892">indjpd00</a> — Fri Apr 13, 2012 7:45 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-04-09T17:35:34+01:00</updated>
<published>2012-04-09T17:35:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34111#p34111</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34111#p34111"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34111#p34111"><![CDATA[
I didn't find any problem reading sensor values. <br /><br />Could you post the code that reads the sensor ports?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Mon Apr 09, 2012 5:35 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-04-04T16:59:50+01:00</updated>
<published>2012-04-04T16:59:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34074#p34074</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34074#p34074"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34074#p34074"><![CDATA[
Thank's<br /><br />I didn't see vertical lines.<br /><br />Unfortunately, the value of gyro is always at around 250 <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /><br /><br />When I run my program I have frequently interuption of signal. Have you same problem or have you a solution for this ? Visisbly the program stop in methode SendArray or GetArray...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Wed Apr 04, 2012 4:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-04-01T23:29:44+01:00</updated>
<published>2012-04-01T23:29:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34054#p34054</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34054#p34054"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34054#p34054"><![CDATA[
Oh, yes, The mark is very subtle!<br /><br />You should count the little vertical lines under the port!<br /><br />Example Port 3 and Port 4:<br /><br /><img src="http://support.robotis.com/en/images/product/bioloid/premiumkit/usefullinfo/mcs_cm510_external_io.png" alt="Image" /><br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>&#91;.....&#93;  &#91;.....&#93;<br />  III     IIII<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Sun Apr 01, 2012 11:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-04-01T23:15:25+01:00</updated>
<published>2012-04-01T23:15:25+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34053#p34053</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34053#p34053"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34053#p34053"><![CDATA[
I know where I have connected my sensor on my CM510 but I don't know what is the number of the port.<br /><br /><img src="http://support.robotis.com/en/images/product/auxdevice/controller/cm-510.jpg" alt="Image" /><br /><br />I have my DMS sensor on the left, Gyro sensor axe X bottom left and Gyro sensor axe Y bottom right.<br /><br />I hope to explain the problem better now<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Sun Apr 01, 2012 11:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-04-01T16:45:35+01:00</updated>
<published>2012-04-01T16:45:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34050#p34050</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34050#p34050"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34050#p34050"><![CDATA[
Sorry, but I don't understand you. <br /><br />To get a value from a sensor connected to a port you should write:<br /><blockquote class="uncited"><div><br />...<br />// Now, get  value from sensor connected to port 1<br />int sensorValue=dynamixel.getSensorValue(&amp;serialPort, 1);<br />...<br /></div></blockquote><br /><br />You should know at which port you connected the sensor, of course <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=698">siempre.aprendiendo</a> — Sun Apr 01, 2012 4:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-03-30T11:40:50+01:00</updated>
<published>2012-03-30T11:40:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34037#p34037</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34037#p34037"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34037#p34037"><![CDATA[
Hello Thank's for your code. It's run and give me information of sensor but I have a problem. I have see that ports 1 to 6 have a value under 25000 therefore I think that the good value but when I don't move my robot some value change around 2 more or less and When I move my robot no value change more that 10. I want to read Gyro sensor but if no value change I dont know what is 2 numbers of port using by Gyro sensor. How know what is the port value of sensor ?<br /><br />I have 3 sensor value normally, 1 for Dms sensor, 1 for axe X of Gyro Sensor and 1 for axe Y of Gyro Sensor but visibly I have 6 values...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Fri Mar 30, 2012 11:40 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-03-29T14:11:06+01:00</updated>
<published>2012-03-29T14:11:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34026#p34026</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34026#p34026"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34026#p34026"><![CDATA[
You're welcome! You're its most active user <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br />Um, there's no port mode. This afternoon I will update the previous example with a call to read the port. Hope it will help you.<br /><br /><a href="http://www.softwaresouls.com/?p=92" class="postlink">Updated</a><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Thu Mar 29, 2012 2:11 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-03-29T13:57:04+01:00</updated>
<published>2012-03-29T13:57:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34025#p34025</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34025#p34025"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34025#p34025"><![CDATA[
I have succes install the firmware. The code for change values of AX-12 run again.<br /><br />But I don't read sensor values. If I have correctlly understand, I must change the mode in tossMode to PortMode. But I didn't know how change this...<br /><br />I have try this<br /><dl class="codebox"><dt>Code: </dt><dd><code>int MotorAx12::PortMode(Serial *serialPort)<br />{<br />    // Open Toss Mode<br />    byte _InitBuffer&#91;15&#93;;<br />    _InitBuffer&#91;0&#93; = 't';<br />    _InitBuffer&#91;1&#93; = '\n';<br />    _InitBuffer&#91;2&#93; = 1; //??? because TossMode this value is 0 <br /><br />    int _N = serialPort-&gt;SendArray(_InitBuffer, 2);<br />    Sleep(200);<br /><br />    serialPort-&gt;Clear();<br />    Sleep(5);<br /><br />    return _N;<br />}<br /></code></dd></dl><br /><br />And for read values of sensor, I have tryed this :<br /><dl class="codebox"><dt>Code: </dt><dd><code>int MotorAx12::GetSensorValue(Serial *serialPort, int port) <br />{<br />    int ret = 0;<br /><br />    int n = GetSensorValueCommand(port);<br />    serialPort-&gt;SendArray(buffer,n);<br />    Sleep(waitTime);<br /><br />    memset(bufferIn,0,BufferSize);<br />    n = serialPort-&gt;GetArray(bufferIn, 8);<br /><br />    short _Position = -1;<br />    if (n &gt; 7) _Position = FromHexHLConversion(bufferIn&#91;5&#93;, bufferIn&#91;6&#93;);<br /><br />    printf(&quot;\nid=&#91;i&#93; position=&#91;i&#93; length=&#91;i&#93;\n&quot;, port, _Position, n);<br />    if (_Position&lt;0&gt; 1023)<br />    {<br />        ret =- 2;<br />    }<br />    else{<br />        ret = _Position;<br />    }<br />    return ret;<br />}<br />int MotorAx12::GetSensorValueCommand( byte port)<br />{<br />    int pos = 0;<br />    buffer&#91;pos++&#93; = 0xff;   // header<br />    buffer&#91;pos++&#93; = 0xff;   // header<br />    buffer&#91;pos++&#93; = 200;   // CM510 ID=200<br />    buffer&#91;pos++&#93; = 0x04;   // length<br />    buffer&#91;pos++&#93; = 0x02;   // instruction 2 = read<br />    buffer&#91;pos++&#93; = 1;    // function = 1<br />    buffer&#91;pos++&#93; = port;    // port<br />    byte checksum = CheckSumatory(buffer, pos);<br />    buffer&#91;pos++&#93; = checksum;<br /> <br />    return pos;<br />}<br /><br /></code></dd></dl><br />This code don't function <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /><br /><br />Can you explain to me what is the value in buffer &quot;function&quot; because I didn't know ??<br /><br />Can you give me, the list of different port use in CM510 ?<br /><br />Thank's a lot for your help !<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Thu Mar 29, 2012 1:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-03-27T18:37:51+01:00</updated>
<published>2012-03-27T18:37:51+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34018#p34018</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34018#p34018"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34018#p34018"><![CDATA[
Yes.<br /><br />That firmware basically sends to the Dynamixel bus whatever it receives from the serial bus. And sends back to the serial bus any data it receives from the Dynamixel bus.<br /><br />It supports queries to the CM-510 ports (this is the reason I developed it), for example, a C# call:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>private static int getSensorValueCommand&#40;byte&#91;&#93; buffer, byte function, byte port&#41;<br />        &#123;<br />            int pos = 0;<br />            buffer&#91;pos++&#93; = 0xff;   // header<br />            buffer&#91;pos++&#93; = 0xff;   // header<br />            buffer&#91;pos++&#93; = idCM510;   // CM510 ID=200<br />            buffer&#91;pos++&#93; = 0x04;   // length<br />            buffer&#91;pos++&#93; = 0x02;   // instruction 2 = read<br />            buffer&#91;pos++&#93; = function;    // function = 1, read one port value<br />            buffer&#91;pos++&#93; = port;    // port<br />            byte checksum = Util.checkSumatory&#40;buffer, pos&#41;;<br />            buffer&#91;pos++&#93; = checksum;<br /> <br />            return pos;<br />        &#125;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Tue Mar 27, 2012 6:37 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-03-27T02:03:33+01:00</updated>
<published>2012-03-27T02:03:33+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34014#p34014</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34014#p34014"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34014#p34014"><![CDATA[
If I have correctly understood, if I want to read values of sensors in my robot, I must change the Firmware.<br /><br />I have 2 questions :<br />- With <a href="http://www.softwaresouls.com/?p=46" class="postlink">this firmware</a> can I use the same code of default firmware for the motor ?<br /><br />- Can I take again the default firmware when I change them ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Tue Mar 27, 2012 2:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Compadre]]></name></author>
<updated>2012-03-24T22:06:10+01:00</updated>
<published>2012-03-24T22:06:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34003#p34003</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34003#p34003"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34003#p34003"><![CDATA[
ok<br /><br />I now read more slowly and I understood that this sis only sendin commands to Dynamixel and Back to PC using zigbee instead of serail cable.<br /><br />The thing is that zigbee sends only one byte at each time. I will continue checking this interesting topic and making test<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2825">Compadre</a> — Sat Mar 24, 2012 10:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-03-24T17:59:50+01:00</updated>
<published>2012-03-24T17:59:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34000#p34000</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34000#p34000"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=34000#p34000"><![CDATA[
if I want to read Gyro Sensor for exemple, I need an other firmware ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Sat Mar 24, 2012 5:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-03-24T17:19:08+01:00</updated>
<published>2012-03-24T17:19:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=33999#p33999</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=33999#p33999"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=33999#p33999"><![CDATA[
You don't need to change the firmware to read the Dynamixel attributes. This other firmware is mainly to read the sensors connected to the CM-510 ports.<br /><br />Before moving the servo the program reads the AX-12 position. <br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>      int pos=dynamixel.getPosition&#40;&amp;serialPort, idAX12&#41;;<br /><br />      if &#40;pos&gt;250 &amp;&amp; pos &lt;1023&#41;<br />         dynamixel.setPosition&#40;&amp;serialPort, idAX12, pos-100&#41;;<br />      else<br />         printf &#40;&quot;\nPosition &#91;%i&#93; under 250 or over 1023&quot;, pos&#41;;<br /></code></dd></dl><br /><br />Look in Dynamixel.cpp for the source code.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Sat Mar 24, 2012 5:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[balo]]></name></author>
<updated>2012-03-24T15:56:51+01:00</updated>
<published>2012-03-24T15:56:51+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=33998#p33998</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=33998#p33998"/>
<title type="html"><![CDATA[Bioloid - Programming with CM510 USB2Dynamixel and Zigbee]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7864&amp;p=33998#p33998"><![CDATA[
Thank's. He move <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br /><br />If I want to read the information of motor, I must change de firmware to <a href="http://www.softwaresouls.com/?p=46" class="postlink">this</a> or with de default firmware that was possible ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3244">balo</a> — Sat Mar 24, 2012 3:56 pm</p><hr />
]]></content>
</entry>
</feed>