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

<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-07-24T03:39:53+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=3731</id>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2009-07-24T03:39:53+01:00</updated>
<published>2009-07-24T03:39:53+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20864#p20864</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20864#p20864"/>
<title type="html"><![CDATA[winxp sp1 + standard servo]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20864#p20864"><![CDATA[
<blockquote><div><cite>KLR233 wrote:</cite><br />do <br />{<br />rcservo_SendPWMPulses(RCSERVO_USECHANNEL0,PWM_peri od,PWM_duty,SpeedCount);<br />rcservo_SendPWMPulses(RCSERVO_USECHANNEL1,PWM_peri od,PWM_duty,SpeedCount);<br />rcservo_SendPWMPulses(RCSERVO_USECHANNEL2,PWM_peri od,PWM_duty,SpeedCount);<br />......<br /></div></blockquote><br /><br />Hi, KLR233,<br /><br />the &quot;RCSERVO_USECHANNEL0/1/2&quot; in the above rcservo_SendPWMPulses() and rcservo_IsPWMCompleted() calls should be changed to 0/1/2, and &quot;RBAPI(false)&quot; should be changed to &quot;false&quot;. Try it again? (Also please ensure that you use the newest version of RoBoIO library, i.e., v1.5.)<br /><br />I also have pm you a test code using PWM lib. Please see the pm message. <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br /><br />We are buying a Futaba S3003 servo for test, and will report the test result later.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Fri Jul 24, 2009 3:39 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[KLR233]]></name></author>
<updated>2009-07-23T08:23:14+01:00</updated>
<published>2009-07-23T08:23:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20847#p20847</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20847#p20847"/>
<title type="html"><![CDATA[winxp sp1 + standard servo]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20847#p20847"><![CDATA[
Thanks for your reply<br /><br />By the way those are cheap standard servo without feedback.<br />And i'm using the provided lib function within there is no way of choosing any pwm ports.<br /><br />here is the code<br /><br />DWORD CMFCBotBrain2Dlg::MainThread(void * pthis)<br />{<br /><br />unsignedlong PWM_period = 10000;<br />unsignedlong PWM_duty = 1500;<br />unsignedlong SpeedCount = 100;<br />CString LogString_ST;<br />char pWork_c[150];<br /><br />CMFCBotBrain2Dlg *pDial_O;<br />pDial_O = (CMFCBotBrain2Dlg *) pthis;<br />pDial_O-&gt;AddLog(&quot;Thread Start&quot;);<br />if (rcservo_Initialize(RCSERVO_USECHANNEL0 + RCSERVO_USECHANNEL1 + RCSERVO_USECHANNEL2) == RBAPI(false))<br />{<br />pDial_O-&gt;AddLog(&quot;RC SERVO INIT FAILED &quot;);<br />pDial_O-&gt;AddLog(roboio_GetErrMsg());<br />}<br />else<br />{<br />pDial_O-&gt;AddLog(&quot;RC SERVO INIT SUCCESSFULL&quot;);<br />}<br /><br />rcservo_EnterPWMMode(); <br />do <br />{<br />rcservo_SendPWMPulses(RCSERVO_USECHANNEL0,PWM_peri od,PWM_duty,SpeedCount);<br />rcservo_SendPWMPulses(RCSERVO_USECHANNEL1,PWM_peri od,PWM_duty,SpeedCount);<br />rcservo_SendPWMPulses(RCSERVO_USECHANNEL2,PWM_peri od,PWM_duty,SpeedCount);<br />do <br />{ <br />}<br />while(!rcservo_IsPWMCompleted(RCSERVO_USECHANNEL2));<br /><br /><br />if (PWM_duty != pDial_O-&gt; PWM_duty)<br />{<br />PWM_duty = pDial_O-&gt;PWM_duty;<br />sprintf(pWork_c,&quot;PWM DUTTY UPDATED %d&quot;,PWM_duty);<br />LogString_ST = pWork_c;<br />pDial_O-&gt;AddLog(LogString_ST);<br />}<br /><br />}<br />while(pDial_O-&gt;QuitThread_b == false);<br /><br />rcservo_Close();<br />pDial_O-&gt;AddLog(&quot;THREAD ENDED&quot;);<br />return (0);<br />}<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1572">KLR233</a> — Thu Jul 23, 2009 8:23 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PedroR]]></name></author>
<updated>2009-07-22T15:31:27+01:00</updated>
<published>2009-07-22T15:31:27+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20836#p20836</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20836#p20836"/>
<title type="html"><![CDATA[winxp sp1 + standard servo]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20836#p20836"><![CDATA[
hi<br /><br />we've had reports of people trying to get pwm working but needing some time to get the hang of it.<br /><br />Can you try with only 1 servo and using the roboard IO librar functions (position set and position) read instead of sending direct pwm pulses?<br /><br />I would with a position read command to make sure you are able to communicate with the servo (if that servo model has position feedback).<br /><br />Please let us know how it went.<br />Also make sure you are using the correct PWM port number....<br /><br />Regards<br />Pedro<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1061">PedroR</a> — Wed Jul 22, 2009 3:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[KLR233]]></name></author>
<updated>2009-07-21T23:22:10+01:00</updated>
<published>2009-07-21T23:22:10+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20822#p20822</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20822#p20822"/>
<title type="html"><![CDATA[winxp sp1 + standard servo]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3731&amp;p=20822#p20822"><![CDATA[
Hi everyone<br />I have just recieve my new toy, i strugled with the stuff during one entire week end to get it working! I'm running win xp sp1 with an usb wifi key on it and it's running fine!! Now it comes to coding. I'm trying to get three standard servo(futaba S3003) working but there is no way those little things moves!!<br /><br />The executable (MFC + roboard lib + winio/dll/vxd/sys) produced with visual studio 2005 sp1 executes itself on the roboard without any problem(window showed, log working, no crash).<br />I've changed the pwm switch to be pull down, change the bios to get port0 &amp; port1 to be gpio and each bits set as output with zero at start.<br /><br />After init and choosing channel 0,1,2 doing the init then send pwm pulse and wait for the end  (cycle 10000 µs duty 1500 µs) but those damn things just don't move. PLEASE HELP<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1572">KLR233</a> — Tue Jul 21, 2009 11:22 pm</p><hr />
]]></content>
</entry>
</feed>