<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Third Year Systems Project 8: Servos</title><link>/members-area/personalblogs/b/blog/posts/third-year-systems-project-8-servos</link><description>This Weeks Deliverable is to drive the servos connected to the FPGA from the PC, In normal operation, this would be done with the Mbed in the middle. ALthough for getting it up and running I have modified our Maintenance Software to output Hex Values</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Third Year Systems Project 8: Servos</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/third-year-systems-project-8-servos</link><pubDate>Tue, 07 Nov 2017 08:59:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:5dd5489d-a4d9-4e43-9054-779f8243dee5</guid><dc:creator>michaelkellett</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;So far so good,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You could enhance this (a lot) by designing the FPGA logic to accept readable strings, and reject non conforming ones. It&amp;#39;s much easier to decode hex than decimal so for something quick I would make the commands:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;S n hh crlf&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;where S is the command to set the servo, n is the servo number (in hex), hh is the servo setting(in hex). You can use spaces(1 or more) as separators and the crlf acts as the command terminator. You can use the same logic to decode the numbers for the servo id and the setting. You can have timeouts so the FPGA will recover from malformed characters or commands.&lt;/p&gt;&lt;p&gt;It&amp;#39;s a good idea to have replies from the FPGA as well, then you would know what it thought it had received to make it do something.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MK&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=3808&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>