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

<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>2014-01-15T16:00:16+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=4505</id>
<entry>
<author><name><![CDATA[Vittorio]]></name></author>
<updated>2014-01-15T16:00:16+01:00</updated>
<published>2014-01-15T16:00:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=43039#p43039</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=43039#p43039"/>
<title type="html"><![CDATA[Re: another noob arduino/dynamixel question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=43039#p43039"><![CDATA[
Hi<br /> i also tried this code but using an MX64 with ttl connection<br /> i just changed the address to broadcast 0xfe<br />since i was not reading but only sending commands i just used the pin tx(1) of the arduino connecting it to the pin data (3) of the motor.<br />the red led blinks when i connect the motor but i don't get any response to the commands i send.<br /><br />may it require a different data format?<br /><br /><br />i have found this manual, <br /><!-- m --><a class="postlink" href="http://support.robotis.com/en/product/dynamixel/mx_series/mx-64.htm">http://support.robotis.com/en/product/d ... /mx-64.htm</a><!-- m --><br /><br />but strangely i have not been able from it to understand how a complete command is formatted, do you have any hint? or a simple example to understand if my code is wrong or my motor is broken?<br /><br />thanks in advance for any hint<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=7703">Vittorio</a> — Wed Jan 15, 2014 4:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Al_f]]></name></author>
<updated>2009-11-24T20:24:22+01:00</updated>
<published>2009-11-24T20:24:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22997#p22997</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22997#p22997"/>
<title type="html"><![CDATA[another noob arduino/dynamixel question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22997#p22997"><![CDATA[
thanks i-bot, you noticed it as I was writing the follow-up post. Funnily enough I originally had it as 4 but convinced myself it should be 3 at 2 in the morning when actually i had the + and - signal wires the wrong way round! Working when tired is not a great idea!<br /><br />Wireless matlab to compliant actuator with a backup controller on the  remote microprocessor board suddenly is a possibility.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1790">Al_f</a> — Tue Nov 24, 2009 8:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Al_f]]></name></author>
<updated>2009-11-24T17:46:41+01:00</updated>
<published>2009-11-24T17:46:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22994#p22994</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22994#p22994"/>
<title type="html"><![CDATA[another noob arduino/dynamixel question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22994#p22994"><![CDATA[
I've got it working now  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" />  thanks to someone that spotted that I had the length as 0x03 not 0x04 as it should have been, also didn't reset the pin to low. That code will now work if you make those changes.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1790">Al_f</a> — Tue Nov 24, 2009 5:46 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2009-11-24T17:38:10+01:00</updated>
<published>2009-11-24T17:38:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22993#p22993</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22993#p22993"/>
<title type="html"><![CDATA[another noob arduino/dynamixel question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22993#p22993"><![CDATA[
I think the length should be 4 not 3. It should be the number of parameters + 2, memory address counts as one parameter.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Tue Nov 24, 2009 5:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Al_f]]></name></author>
<updated>2009-11-24T15:40:58+01:00</updated>
<published>2009-11-24T15:40:58+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22990#p22990</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22990#p22990"/>
<title type="html"><![CDATA[another noob arduino/dynamixel question]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4505&amp;p=22990#p22990"><![CDATA[
hi all, <br />I built an arduino based robot that communicated via an xbee radio to matlab on my pc, the servos were simple pwm based ones.<br /><br />Recently i decided to go for the dynamixel servos (rx-64) for the strength, compliance and feedback. This is where my problems began! I've asked this question on the arduino forum but i think not many of them use these servos.<br /><br />So the rx-64 uses RS485 for comms, fine, I bought a couple of Max485's and tested the packet creation with an Arduino- Arduino network, the messages come through fine. <br /><br />Power up the servo and run the simplest program- turning the LED on and off...nothing. <br /><br />The program seems super simple and as far as I can tell I have sone what the manual said, i'm now stuck! I have looked at the other posts on the forum, but nothing has helped.<br /><br />Could anyone point me in the right direction, baud I'm using is 57600 on arduino and rx-64 (i believe it is default speed)<br /><br />Here's the led test code. Any assitance would be massively appreciated.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>//___________________________________________________________<br />//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />// Arduino to dynamixel via rs485<br />//___________________________________________________________<br />//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br /><br />// Define/preallocate parameters<br />int i = 0;<br />byte startAddress;<br />byte servoID = 0xFE; // 0xFE is broadcast to all servos<br />byte ledOn = 0x01;<br />byte ledOff = 0x00;<br /><br />//___________________________________________________________<br />//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />// Run setup Function<br />void setup&#40;&#41; &#123;<br />Serial.begin&#40;57600&#41;;<br />&#125;<br /><br />//___________________________________________________________<br />//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />// Run main Function<br />void loop&#40;&#41; &#123;<br />//Transmission section<br /><br />if &#40;i%2 ==0&#41;&#123; <br />activateServos&#40;servoID, ledOn&#41;;<br />delay&#40;200&#41;;<br />&#125;else&#123;<br />activateServos&#40;servoID, ledOff&#41;;<br />delay&#40;200&#41;;<br />&#125;<br /><br />i++;<br />if &#40;i&gt;1000&#41;&#123;<br />  i=1;<br />  &#125;<br />&#125;<br /><br />//___________________________________________________________________<br />//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />//Function Definitions<br />//___________________________________________________________________<br />//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br /><br /><br />void activateServos &#40;byte servoID, byte newValue&#41;&#123;<br />  unsigned int checksum_ACK;<br />  byte notchecksum;<br />  //startAddress = 0X18;     // Enabling torque for first time<br />  startAddress = 0X19;     // Turning on led<br />   <br />  checksum_ACK =  servoID + 0x03 + 0x03 + startAddress + newValue;<br />  notchecksum = ~checksum_ACK;<br />  <br />  digitalWrite&#40;2,HIGH&#41;;     // Notify max485 transciever to accept tx <br />  delay&#40;5&#41;;                 // Allow this to take effect<br />  <br />  Serial.print&#40;0xFF,BYTE&#41;;  // 1.These 2 bytes are 'start message'<br />  Serial.print&#40;0xFF,BYTE&#41;;  // 2.These 2 bytes are 'start message'<br />  Serial.print&#40;servoID,BYTE&#41;;  // 3.ID is target servo or 0xfe which is broadcast mode<br />  Serial.print&#40;0x03,BYTE&#41;;  // 4.Length of string<br />  Serial.print&#40;0x03,BYTE&#41;;  // 5.Ping read write or syncwrite 0x01,2,3,83<br />  Serial.print&#40;startAddress,BYTE&#41;;  // 6.Start address for data to be written <br />  Serial.print&#40;newValue,BYTE&#41;;  //  7.Turning on signal<br />  Serial.print&#40;notchecksum,BYTE&#41;; //8. the notchecksum<br /><br />  <br />  delay&#40;200&#41;; // allow last byte to go through<br />  digitalWrite&#40;2,LOW&#41;;  // Notify max485 transciever to recieve <br />&#125;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1790">Al_f</a> — Tue Nov 24, 2009 3:40 pm</p><hr />
]]></content>
</entry>
</feed>