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

<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-10-11T02:30:04+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=4208</id>
<entry>
<author><name><![CDATA[dsaner]]></name></author>
<updated>2009-10-11T02:30:04+01:00</updated>
<published>2009-10-11T02:30:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22256#p22256</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22256#p22256"/>
<title type="html"><![CDATA[Got IT!!!!!]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22256#p22256"><![CDATA[
Okay - after much mucking around, I finally have it working. The one big gotcha is that the lines on the circuit board are numbered 1 - 24 and in code they need to be referenced 0 - 23, so when you are plugged into S3 you are actually at channel 2!....grrrrr<br /><br />At any rate, if you download the source code from the roboard site and open it in VS2005, then right click the solution and &quot;Add New Project&quot; and &quot;Win32 Console App&quot; then use the code below, it will flash an LED hooked up to S3 (channel 2). The circuit is simple just an led with a limiting resistor to ground.<br /><br />It could be that I am just stupid, but if others are challenged getting started with programming the roboard, I think a led flasher is a good place to start. Oh and you need install VC2005 SP1 Redistributable Package (<!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&amp;displaylang=en">http://www.microsoft.com/downloads/deta ... laylang=en</a><!-- m -->) under XP<br /><br />This code will flash an LED 1000 times.<br /><br />// LEDConsole.cpp : Defines the entry point for the console application.<br />//<br /><br />#include &quot;stdafx.h&quot;<br />#include &lt;stdio&gt; <br />#include &lt;conio&gt;<br />#include &quot;windows.h&quot;<br /><br />#include &quot;roboard_dll.h&quot; <br /><br />int _tmain(int argc, _TCHAR* argv[])<br />{<br />    int i = 0;<br />if (rcservo_Initialize(RCSERVO_USENOCHANNEL)) { <br />while(i &lt; 1000)<br />{<br />printf(&quot;set GPIO pin 2 (PWM channel 2) to high\n&quot;); <br />rcservo_Outp(2,1); <br /><br />Sleep(1000);<br /><br />printf(&quot;set GPIO pin 2 (PWM channel 2) to low\n&quot;); <br />rcservo_Outp(2,0); <br /><br />Sleep(1000);<br />}<br />rcservo_Close();<br />} <br />return 0;<br />}<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1720">dsaner</a> — Sun Oct 11, 2009 2:30 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dsaner]]></name></author>
<updated>2009-10-11T01:34:21+01:00</updated>
<published>2009-10-11T01:34:21+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22255#p22255</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22255#p22255"/>
<title type="html"><![CDATA[Some Progress...]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22255#p22255"><![CDATA[
So, Rather than using the binary release DLL I incoporated a new project into the source  provided and have this code (of course it does not work). I have tested the LED circuit and it does light up when the wire attached to the same point from the microcontroller. Is my roboard broken. It is really crazy that you do not provide a simple app so people can at least see if their board works. Providing a sample app for a humanoid robot as the only on is crazy. Come on....This expensive and you should have some simple samples people can run :<br /><br />// LEDConsole.cpp : Defines the entry point for the console application.<br />//<br /><br />#include &quot;stdafx.h&quot;<br />#include &lt;stdio&gt; <br />#include &lt;conio&gt; <br /><br />#include &quot;roboard_dll.h&quot; <br /><br />int _tmain(int argc, _TCHAR* argv[])<br />{<br />    if (rcservo_Initialize(RCSERVO_USENOCHANNEL)) { <br />printf(&quot;set GPIO pin 17 (PWM channel 17) to high\n&quot;); <br />rcservo_Outp(0,1); <br />getch(); <br /><br />printf(&quot;Close the above test\n&quot;); <br />rcservo_Close(); <br />    } <br />return 0;<br />}<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1720">dsaner</a> — Sun Oct 11, 2009 1:34 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dsaner]]></name></author>
<updated>2009-10-11T00:42:01+01:00</updated>
<published>2009-10-11T00:42:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22254#p22254</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22254#p22254"/>
<title type="html"><![CDATA[Simple LED flash tutorial]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4208&amp;p=22254#p22254"><![CDATA[
Could someone please post a simple tutorial on how to get an LED to flash. I am not a C++ developer, but do make a living programming C# and over the past sever hours of trying to get anywhere about all I get is :<br />Error1fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8c:\Documents and Settings\dsaner\My Documents\Visual Studio 2005\Projects\LEDTest\LEDTest\RoBoIO.dll1<br /><br />I have used many different microcontrollers and I have seen one that did not post a simple tutorial to flash an LED.<br /><br />The documentation is really bad and most of the posts are focused at installing OS on the board not on using the board. It would be greatly appreciated if someone could post a simple tutorial like this.<br /><br />Thanks,<br />-Don<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1720">dsaner</a> — Sun Oct 11, 2009 12:42 am</p><hr />
]]></content>
</entry>
</feed>