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

<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-04-05T18:38:04+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=7087</id>
<entry>
<author><name><![CDATA[garycmartin]]></name></author>
<updated>2011-04-05T18:38:04+01:00</updated>
<published>2011-04-05T18:38:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30778#p30778</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30778#p30778"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30778#p30778"><![CDATA[
Hi Mohit,<br /><br /><blockquote><div><cite>MOHIT JINDAL wrote:</cite><br />Hi PedroR,<br />I also want to control all Ax12+ with Usb2Dynamixel but Robotis give code for only 3 Dynamixels. Can you help me with a code to control 25 Ax12A from Usb2Dynamixel ? <img src="http://forum.robosavvy.com/images/smilies/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /> <br />Any idea to control 30 Ax12A from Roboplus motion<br /></div></blockquote><br /><br />FWIW, Roboplus Motion is documented to control up to 26 servos (ID 0 to 25). Roboplus Task seems to indicate the same, only allowing ID's from 0 to 25 (if you type a larger integer it changes it to 0). Note that there does seem to be a bug in Task for ID values of 24 or 25, if you try to use them it always enters ID 23 into the script. Luckily I only have 20 servos to control just now <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";-)" title="Wink" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1905">garycmartin</a> — Tue Apr 05, 2011 6:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroR]]></name></author>
<updated>2011-04-05T15:38:36+01:00</updated>
<published>2011-04-05T15:38:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30765#p30765</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30765#p30765"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30765#p30765"><![CDATA[
Hi Mohit<br /><br />I am not familiar with the sample code from Robotis. However it should not be hard to extend it from 3 servos to more servos.<br /><br />As long as you understand how the Dynamixel protocol works it should be fine to add more servos.<br /><br />Regards<br />Pedro.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1061">PedroR</a> — Tue Apr 05, 2011 3:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MOHIT JINDAL]]></name></author>
<updated>2011-04-05T02:22:48+01:00</updated>
<published>2011-04-05T02:22:48+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30758#p30758</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30758#p30758"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30758#p30758"><![CDATA[
Hi PedroR,<br />I also want to control all Ax12+ with Usb2Dynamixel but Robotis give code for only 3 Dynamixels. Can you help me with a code to control 25 Ax12A from Usb2Dynamixel ? <img src="http://forum.robosavvy.com/images/smilies/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /> <br />Any idea to control 30 Ax12A from Roboplus motion or Usb2Dynamixel  <img src="http://forum.robosavvy.com/images/smilies/icon_question.gif" alt=":?:" title="Question" /> <br />Please Help<br />Thanks  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2428">MOHIT JINDAL</a> — Tue Apr 05, 2011 2:22 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[animaniac]]></name></author>
<updated>2011-04-03T23:29:06+01:00</updated>
<published>2011-04-03T23:29:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30750#p30750</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30750#p30750"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30750#p30750"><![CDATA[
actually, I tried to use winAVR because the urbi tutorial to use the robot terminal for loading the URBI firmware in the CM5 doesnt work for me: when I type LOAD it just tells me bad command.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2296">animaniac</a> — Sun Apr 03, 2011 11:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[billyzelsnack]]></name></author>
<updated>2011-04-03T23:24:42+01:00</updated>
<published>2011-04-03T23:24:42+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30749#p30749</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30749#p30749"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30749#p30749"><![CDATA[
Probably AVRDUDE, but you'll need to know a bunch of commandline arguments. I would bet the URBI project has some sort of makefile/script to do this.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=459">billyzelsnack</a> — Sun Apr 03, 2011 11:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[animaniac]]></name></author>
<updated>2011-04-03T19:43:24+01:00</updated>
<published>2011-04-03T19:43:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30748#p30748</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30748#p30748"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30748#p30748"><![CDATA[
I tried to download winAVR to flash the CM5 with the urbi firmware  and HOLY CRAP THERE'S LIKE A 100 .EXE IN HERE!!! do you know how I can use winAVR to load the firmware?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2296">animaniac</a> — Sun Apr 03, 2011 7:43 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2011-03-23T18:48:30+01:00</updated>
<published>2011-03-23T18:48:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30627#p30627</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30627#p30627"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30627#p30627"><![CDATA[
animaniac wrote:<blockquote class="uncited"><div><br />if you forget about the servo connectors, can a cheap USB to serial adapter replace the expensive bioloid one?<br /></div></blockquote><br />If all you are interested in is an RS232 connection then an off-the-shelf USB to serial adapter can be used with the Robotis serial cable.  Be aware though that some USB adapters work better than others due to timing considerations.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Wed Mar 23, 2011 6:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroR]]></name></author>
<updated>2011-03-23T19:42:21+01:00</updated>
<published>2011-03-23T18:22:50+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30625#p30625</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30625#p30625"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30625#p30625"><![CDATA[
Hi Animaniac<br /><br />I already posted above the links to the official SDKs available for programming the Bioloid in C.<br /><br />You are now mentioning a different thing which is connecting to the Servo bus directly from the computer.<br /><br />To clarify you can program the Bioloid in the following manners:<br /><br />1) Using the Graphical Robotis Software (Roboplus or Mtion Editor/Behaviour Control program)<br /><br />2) Programming a new firmware for the controller. This is done in C and compiled with WinAVR. Once compiled, you install the firmware on the Robot micro controller (CM 5 or CM510).<br />The links and information in my post from March 22nd are the ones to do this which was what I understood you wanted to do.<br /><br />3) As a third option, you can bypass the Robot's micro controller and use a USB2Dynamixel to connect your PC directly to the servo bus. <br />In this scenario, the PC can control all the devices (servos, AX-S1) in the Dynamixel bus and effectivelly control all the Robot.<br />You should google for &quot;Dynamixel SDK&quot; for samples on how to do this.<br />In this scenario you can program in any language but the code will always run on YOUR PC and your PC will need to be connected to the servo bus at all times.<br /><br />There are Pros and Cons to each approach. Google and our forum have lots of information and projects of people who tried it in the three different manners.<br /><br /><br />As for your question about a cheap USB to to Serial adapter:<br />The Bioloid uses a one wire (half duplex) mechanism to communicate. This means both RX and TX are on the same wire.<br /><br />The Robotis adapter, although expensive, is very good at managing the traffic that goes TO and FROM that single line and avoid colisions.<br /><br />I believe you could in theory use a cheap USB to Serial converter but you need to do some hacking yourself.<br />What I've seen being done (assuming you don't kill the USB2Serial) is Short RX and TX on the cheap USB2Serial adapter and connect it to the DATA line on the Bioloid connector.<br />The problem with this is that because RX and TX are shorted everything that you send from the PC on TX will come back to the PC on the RX line. So you need to run an algorithm on the PC to eliminate the duplicate communication and filter out only the servo responses.<br /><br />If you really want to do it, I recommend your search our forum as certainly somebody did this already.<br /><br />Using the &quot;expensive&quot; Robotis USB2Dynamixel solves all these problems. It's expensive but it just works efficiently and without any complications.<br /><br />Pedro.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1061">PedroR</a> — Wed Mar 23, 2011 6:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[animaniac]]></name></author>
<updated>2011-03-23T00:24:14+01:00</updated>
<published>2011-03-23T00:24:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30610#p30610</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30610#p30610"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30610#p30610"><![CDATA[
I checked the URBI homepage thinking it would be an easy start to make custom program for the bioloid, but their bioloid page is a complete mess... do you know a good tutorial to program a bioloid with C++ or URBI? also, if you forget about the servo connectors, can a cheap USB to serial adapter replace the expensive bioloid one?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2296">animaniac</a> — Wed Mar 23, 2011 12:24 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroR]]></name></author>
<updated>2011-03-22T18:58:04+01:00</updated>
<published>2011-03-22T18:58:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30604#p30604</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30604#p30604"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30604#p30604"><![CDATA[
Hi Animaniac<br /><br />The CM-5 is not compatible with an Accelerometer or any sensor other than the AX-S1 out of the Box. The CM-5 has no connectors for external sensors (either Analog or Digital).<br /><br />There is a work around which is to design a board that connects to the Dynamixel bus (emulating a servo) and in turn you can connect the sensors to that board. (The AX-S1 sensor module itself is a board that connects to the bus and &quot;pretends&quot; to be a servo, respecting the servo protocol.)<br /><br />There are some designs of those boards out there but none is supported officially by Robotis. One such example is this one <!-- m --><a class="postlink" href="http://www.bioloid.info/tiki/tiki-index.php?page=General+IO+Board">http://www.bioloid.info/tiki/tiki-index ... l+IO+Board</a><!-- m --> but I don't know about its availability.<br /><br />By contrast the new CM-510 exposes 6 external connector/ports for Sensors/GPIO. <br />Each port supplies +5V, GND, Analog IN and a GPIO pin that you can set High or Low (typical example is connect this to power an LED).<br /><br />The Bioloid PREMIUM for example includes an Analog Gyro that connects to 2 of these ports to supply analog readings of the X and Y axis.<br /><br />Since these are generic ports you can connect any analog Sensor that works on the 0-5V range such as Gyros, Accelerometers, etc.<br /><br />As for SPI and I2C none are supported on these controllers as far as I know (CM-5 or CM-510).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1061">PedroR</a> — Tue Mar 22, 2011 6:58 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[animaniac]]></name></author>
<updated>2011-03-22T18:49:03+01:00</updated>
<published>2011-03-22T18:49:03+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30602#p30602</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30602#p30602"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30602#p30602"><![CDATA[
the CM-5 is still compatible with an accelerometer right? is it the &quot;bus&quot; plug? also, do you have a favorite program for creating and running programs? I am a beginner, so I'don't mind driving my robot from the computer. I'll learn the basics before going for a new controller.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2296">animaniac</a> — Tue Mar 22, 2011 6:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroR]]></name></author>
<updated>2011-03-22T18:08:24+01:00</updated>
<published>2011-03-22T18:08:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30600#p30600</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30600#p30600"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30600#p30600"><![CDATA[
Hi<br /><br />I don't know which version of Bioloid you have but from the post I'm assuming you have the Comprehensive Kit.<br /><br />You can download the old CM-5 C SDK for the CM-5 controller (used in the Comprehensive and Beginner kits) here <!-- m --><a class="postlink" href="http://forums.trossenrobotics.com/datacenter/robotis-34/old-cm-5-embedded-c-sdk-167/">http://forums.trossenrobotics.com/datac ... c-sdk-167/</a><!-- m --><br /><br />For the CM-510 (the controller of the PREMIUM Kit) you can go to <!-- m --><a class="postlink" href="http://support.robotis.com">http://support.robotis.com</a><!-- m --> and browse the website as they have the C SDK  available there.<br /><br />If you have the Comprehensive and would like to Upgrade to the new CM-510 Controller + LiPo please see here <!-- m --><a class="postlink" href="http://robosavvy.com/store/product_info.php/products_id/1244">http://robosavvy.com/store/product_info ... ts_id/1244</a><!-- m --> (it's currently showing availability &quot;Yellow&quot; but they're expected to be back in stock by the beginning of April).<br />The CM-510 includes significant improvements such as the ATMEGA 2561, 6 external A/D ports (which in turn enable support for Gyro, Accelerometer, etc).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1061">PedroR</a> — Tue Mar 22, 2011 6:08 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[billyzelsnack]]></name></author>
<updated>2011-03-22T03:02:31+01:00</updated>
<published>2011-03-22T03:02:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30592#p30592</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30592#p30592"/>
<title type="html"><![CDATA[Re: programming a bioloid in C++, controlling it with a game]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30592#p30592"><![CDATA[
<blockquote><div><cite>animaniac wrote:</cite><br />one more thing, why are bioloid servos so cheap, when they are far superior to classic ones (torque, feedback, continuous rotation...)?<br /></div></blockquote><br /><br />The only thing that makes sense to me is they took the retail price of the Bioloid kit and divided by 20. 18 servos + 1 AX-S1 + 1 more servo because the original kit came with 19 servos.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=459">billyzelsnack</a> — Tue Mar 22, 2011 3:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[animaniac]]></name></author>
<updated>2011-03-22T00:18:16+01:00</updated>
<published>2011-03-22T00:18:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30589#p30589</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30589#p30589"/>
<title type="html"><![CDATA[programming a bioloid in C++, controlling it with a gamepad]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7087&amp;p=30589#p30589"><![CDATA[
hi, I just bought a bioloid and I'm quite impressed by the package, but one thing I expected to find is a tutorial about how to program it as a generic robot using C++. do you have a software to advise me, and internet resources (tutorials, examples)? do you know if there is a way to convert bioloid programs (.bpg) to C++ programs?<br /><br />another question, I own a PS2 dualshock gamepad, I use it on my computer with a USB adapter, any chance I can use it to control the bioloid in real time through the serial cable?<br /><br />one more thing, why are bioloid servos so cheap, when they are far superior to classic ones (torque, feedback, continuous rotation...)?<br /><br />thanks everyone<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2296">animaniac</a> — Tue Mar 22, 2011 12:18 am</p><hr />
]]></content>
</entry>
</feed>