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

<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-11-25T16:54:31+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=4372</id>
<entry>
<author><name><![CDATA[arekku]]></name></author>
<updated>2009-11-25T16:54:31+01:00</updated>
<published>2009-11-25T16:54:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4372&amp;p=23008#p23008</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4372&amp;p=23008#p23008"/>
<title type="html"><![CDATA[AX-12 Servos Not Responding]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4372&amp;p=23008#p23008"><![CDATA[
I'd say electronics error.<br /><br />I would thus recommend:<br />Post complete schematics<br /><br />When turning on power for a servo, does the LED correctly lit up and then unlit? If it does not well I reckon you can figure out that for yourself. If it does you might have some success in replacing the driver chip (74HC126D) but I'd advise you to wait and try other solutions first.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1693">arekku</a> — Wed Nov 25, 2009 4:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[netphaze]]></name></author>
<updated>2009-11-12T16:43:23+01:00</updated>
<published>2009-11-12T16:43:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4372&amp;p=22740#p22740</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4372&amp;p=22740#p22740"/>
<title type="html"><![CDATA[AX-12 Servos Not Responding]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4372&amp;p=22740#p22740"><![CDATA[
I currently have 4 AX-12 servos connected to a Sanguino MCU through the full-duplex to half-duplex circuit that is described in the AX-12 manual. Sanguino uses the Arduino environment. I have 4 FSRs connected to the controller, each one controlling its own servo.<br /><br />I had all four servos working perfectly in response to input from the FSRs, and then I turned the power supply off, did some other work, and came back. When I turned it back on, one of the servos was not responding. I hadn't changed anything with the circuit or code. I disconnected all the others and tried to set its position. Nothing. I tried a reset. Nothing. Can't communicate with it. This happened again later with another servo. Not sure what's going on here.<br /><br />I'm using the Bioloid library from Arbotix: <br /><a href="http://code.google.com/p/arbotix/wiki/BioloidController" class="postlink">http://code.google.com/p/arbotix/wiki/BioloidController</a><br /><br />Here is my code:<br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;ax12&gt;<br />#include &lt;BioloidController&gt;<br /><br />//Two variables to check if the servo serial line is receiving or transmiting<br />boolean Transmit = true; //True Tx is active, False Rx is active<br /><br />int Direction = 0; // Digital pin for direction port<br /><br />int FSR_Pin&#91;5&#93; = &#123;0, 1, 2, 3&#125;;  // analog pins FSRs connect to<br />int FSR_Output&#91;5&#93;;      // the analog reading from the FSR resistor divider<br />int FSROutputSum = 0;<br /><br />int ForceMin = 600;  // minimum FSR reading to actuate motor<br />int MaxPos&#91;5&#93; = &#123;700, 400, 700, 700&#125;;  // max position for each servo<br />int MinPos&#91;5&#93; = &#123;650, 350, 650, 650&#125;;  // min position for each servo<br /><br />int ServoID&#91;5&#93; = &#123;1, 2, 3, 4&#125;;  // IDs of servos<br />int ServoPos&#91;5&#93; = &#123;650, 350, 650, 650&#125;;  // current position of servos<br /><br />void setup&#40;&#41;<br />&#123;<br />  digitalWrite&#40;Direction, HIGH&#41;;<br />  pinMode&#40;Direction,OUTPUT&#41;; //Set direction port as an output<br /> <br />  for&#40;int i=0;i&lt;=3;i++&#41;&#123;<br />    SetSpeed&#40;ServoID&#91;i&#93;, 100&#41;;  // set all servos to speed of 100<br />  &#125;<br /><br />&#125;<br /><br />void loop&#40;&#41;&#123;<br /> <br />  while&#40;Transmit&#41;&#123;<br />   <br />    FSROutputSum = 0;<br />   <br />  for&#40;int i=0;i&lt;3&gt; ForceMin&#41;&#123;  // if an FSR is being pressed<br />    <br />     FSROutputSum = 0;<br />    <br />   for&#40;int i=0;i&lt;3&gt; ForceMin&#41;&#123;     // actuate appropriate motor<br />        if&#40;ServoPos&#91;i&#93; == MaxPos&#91;i&#93;&#41;&#123;<br />          ServoPos&#91;i&#93; = MinPos&#91;i&#93;;<br />        &#125;<br />        else&#123;<br />          ServoPos&#91;i&#93; = MaxPos&#91;i&#93;;<br />        &#125;<br />        SetPosition&#40;ServoID&#91;i&#93;, ServoPos&#91;i&#93;&#41;;<br />        delay&#40;250&#41;;<br />      &#125;<br />      FSR_Output&#91;i&#93; = analogRead&#40;FSR_Pin&#91;i&#93;&#41;;  // read FSRs again<br />      FSROutputSum += FSR_Output&#91;i&#93;;<br />    &#125;<br />   &#125;<br />   <br />  &#125;<br /> <br />&#125;</code></dd></dl>[/url]<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1768">netphaze</a> — Thu Nov 12, 2009 4:43 pm</p><hr />
]]></content>
</entry>
</feed>