<?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=17&amp;t=5963" />

<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>2010-03-19T12:10:41+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=5963</id>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-03-19T12:10:41+01:00</updated>
<published>2010-03-19T12:10:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25973#p25973</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25973#p25973"/>
<title type="html"><![CDATA[Roboard HiTec Motors]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25973#p25973"><![CDATA[
<blockquote><div><cite>jlmunix wrote:</cite><br />Thanks, im trying to do that with the Roboard and Hitec 645MG, but i can´t enable the PWM of the RoboIO nothing in the output of my oscilloscope is shown.<br /><br />This is the code im using:<br />......<br /></div></blockquote><br /><br />Hi,<br /><br />RCSERVO_USECHANNEL0~23 are only used in multi-channel functions, such as rcservo_Initialize() and rcservo_ReadPositions(), to indicate multiple channels. So don't use them in single-channel functions, such as rcservo_SetServo() and rcservo_SendPWMPulses().<br /><br />In calling a single-channel function, just use an integer to indicate the channel. So you should write<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>rcservo_SendPWMPulses&#40;0, PWM_period, PWM_duty, count&#41;; <br />while &#40;!rcservo_IsPWMCompleted&#40;0&#41;&#41;<br />&#123;<br /></code></dd></dl><br /><br />instead of rcservo_SendPWMPulses(RCSERVO_USECHANNEL0, ......<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Fri Mar 19, 2010 12:10 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PaulL]]></name></author>
<updated>2010-03-19T01:40:46+01:00</updated>
<published>2010-03-19T01:40:46+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25968#p25968</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25968#p25968"/>
<title type="html"><![CDATA[Roboard HiTec Motors]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25968#p25968"><![CDATA[
Try calling &quot;EnableMultiPWM&quot; for all servo channels (FFFFFFFF), let me know if that works or not, I can dig deeper if that doesn't work. <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=741">PaulL</a> — Fri Mar 19, 2010 1:40 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jlmunix]]></name></author>
<updated>2010-03-18T23:46:38+01:00</updated>
<published>2010-03-18T23:46:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25965#p25965</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25965#p25965"/>
<title type="html"><![CDATA[Roboard HiTec Motors]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25965#p25965"><![CDATA[
<blockquote><div><cite>RN1AsOf091407 wrote:</cite><br />I believe the HSR's are the only servos that can give feedback for position, but if others can, I'm sure someone here will know.<br /><br />It's ABSOLUTELY possible to connect JUST ABOUT ANY SERVO to this board!!! There are some tweaks you can do in the RoboIO source code to optimize the output PWM signal as needed. Also, you can use the servo profile that I believe is called something like &quot;STANDARD_SERVO&quot; or some such, that should work for just about any, but like I said, you can add a custom PWM setup pretty easily in the source code (RCSERVO.CPP). There's a SWITCH block that can be added to for your custom servo settings, search for KONDO or HITEC in that file, and you'll find it. You'll also see that some of the setups are recursive, meaning the code there calls itself to set things, then modifies those settings to alter a few other settings.<br /></div></blockquote><br /><br />Thanks, im trying to do that with the Roboard and Hitec 645MG, but i can´t enable the PWM of the RoboIO nothing in the output of my oscilloscope is shown.<br /><br />This is the code im using:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &quot;roboard.h&quot;<br /><br />int main&#40;void&#41;<br />&#123;<br /><br />   if&#40;rcservo_Initialize&#40;RCSERVO_USECHANNEL0&#41;&#41;<br />     printf&#40;&quot;Initialized Ok!\n&quot;&#41;;<br />   else<br />     &#123;<br />        printf&#40;&quot;Initialization failed!\n&quot;&#41;;<br />        return -1;<br />  &#125;<br />  /* if&#40;rcservo_SetServo&#40;RCSERVO_USECHANNEL0,RCSERVO_SERVO_DEFAULT_NOFB&#41;&#41;<br />     &#123;<br />        printf&#40;&quot;Initialize for hitec servo Ok!\n&quot;&#41;;<br />     &#125;<br />   else<br />     &#123;<br />        printf&#40;&quot;initialization Failed!\n&quot;&#41;;<br />        return 0;<br />     &#125;*/<br />   rcservo_EnterPWMMode&#40;&#41;;<br />   unsigned long PWM_period = 10000L; //10000us<br />   unsigned long PWM_duty   = 1500L; //1500us<br />   unsigned long count      = 10000L;<br /><br />   rcservo_SendPWMPulses&#40;RCSERVO_USECHANNEL0, PWM_period, PWM_duty, count&#41;;<br />   while &#40;!rcservo_IsPWMCompleted&#40;RCSERVO_USECHANNEL0&#41;&#41;<br />     &#123;<br />           //<br />           //can do something here when sending PWM pulses<br />           //<br />     &#125;<br /></code></dd></dl><br /><br />i don´t know what is wrong! I take this code from the RoBoard...trainging .pdf<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2021">jlmunix</a> — Thu Mar 18, 2010 11:46 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PaulL]]></name></author>
<updated>2010-03-17T20:54:32+01:00</updated>
<published>2010-03-17T20:54:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25951#p25951</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25951#p25951"/>
<title type="html"><![CDATA[Roboard HiTec Motors]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25951#p25951"><![CDATA[
I believe the HSR's are the only servos that can give feedback for position, but if others can, I'm sure someone here will know.<br /><br />It's ABSOLUTELY possible to connect JUST ABOUT ANY SERVO to this board!!! There are some tweaks you can do in the RoboIO source code to optimize the output PWM signal as needed. Also, you can use the servo profile that I believe is called something like &quot;STANDARD_SERVO&quot; or some such, that should work for just about any, but like I said, you can add a custom PWM setup pretty easily in the source code (RCSERVO.CPP). There's a SWITCH block that can be added to for your custom servo settings, search for KONDO or HITEC in that file, and you'll find it. You'll also see that some of the setups are recursive, meaning the code there calls itself to set things, then modifies those settings to alter a few other settings.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=741">PaulL</a> — Wed Mar 17, 2010 8:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jlmunix]]></name></author>
<updated>2010-03-17T18:45:04+01:00</updated>
<published>2010-03-17T18:45:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25950#p25950</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25950#p25950"/>
<title type="html"><![CDATA[Roboard HiTec Motors]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5963&amp;p=25950#p25950"><![CDATA[
Its possible to connect another model of hitec servo motors to the Roboard? <br />I want to connect a HS-645MG servos to my roboard. The current RoBoIo can control this type of servos? Anyone has a simple program or a fully feature program?<br /><br />Its impossible to retrieve the current position in HS-645MG servo?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2021">jlmunix</a> — Wed Mar 17, 2010 6:45 pm</p><hr />
]]></content>
</entry>
</feed>