<?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>XMOS startKIT: Building an XMOS and Raspberry Pi Robot XMP-1</title><link>/products/raspberry-pi/raspberrypi_projects/b/blog/posts/xmos-startkit-building-an-xmos-and-raspberry-pi-robot-xmp-1</link><description>(Note: Click here to see XMP-2! ) IntroductionThe XMOS startKIT from Farnell ( or Newark ) is a very low cost (&amp;#163;12 including VAT) processor platform that works well with the Raspberry Pi. Together is possible to construct robotics applications with..</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: XMOS startKIT: Building an XMOS and Raspberry Pi Robot XMP-1</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/xmos-startkit-building-an-xmos-and-raspberry-pi-robot-xmp-1</link><pubDate>Sun, 26 Apr 2015 13:59:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:002ccd5b-6419-4ded-9ce9-3ccd3f47d07d</guid><dc:creator>igorlopez</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Nicely written documentation.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I had some questions (but google and reading your oscilloscope project gave answers to the first ones)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1) Why do you use ribbon cable instead of flying leads for the communication lines?&lt;/p&gt;&lt;p&gt;With flying leads you could have connected to 1 bit ports instead of modifying the SPI lib. (You fixed that in the OSC project)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2) Why did you choose SPI over I2C? (My guess is you needed high speed for data transfer)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;3) Powering of the Startkit.&lt;/p&gt;&lt;p&gt;Is it possible to power the Startkit without going through the USB connector?&lt;/p&gt;&lt;p&gt;I was thinking about having the Startkit up and running and only connect the USB for debug and reflash SW.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;B.R&lt;/p&gt;&lt;p&gt;/Igor&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17750&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: XMOS startKIT: Building an XMOS and Raspberry Pi Robot XMP-1</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/xmos-startkit-building-an-xmos-and-raspberry-pi-robot-xmp-1</link><pubDate>Wed, 25 Feb 2015 07:58:26 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:002ccd5b-6419-4ded-9ce9-3ccd3f47d07d</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hello Shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am new to the XMOS and admittedly fairly new to the Raspberry Pi so I am quite enthused about your tutorials. I am currently attempting to get the servos working on the Raspberry Pi with the &amp;quot;./xmos_servo 1500 1500&amp;quot; command but I keep getting an error &amp;quot;Error performing SPI exchange: Invalid argument&amp;quot;&lt;/p&gt;&lt;p&gt;On the xmos side everything appears to be okay. I am running and the console reports :&lt;/p&gt;&lt;p&gt;&lt;strong&gt;slave_init..&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;...done&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;high event&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;high event&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;high event&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;high event&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m pretty sure that the wiring is correct to. I&amp;#39;ve found a loopback test for the Raspberry Pi to make sure it is setup for SPI and that all works okay. Is there anything that jumps out and says &amp;quot;you&amp;#39;ve not done that&amp;quot;?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Many thanks.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17750&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: XMOS startKIT: Building an XMOS and Raspberry Pi Robot XMP-1</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/xmos-startkit-building-an-xmos-and-raspberry-pi-robot-xmp-1</link><pubDate>Wed, 04 Feb 2015 20:46:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:002ccd5b-6419-4ded-9ce9-3ccd3f47d07d</guid><dc:creator>fixstuff</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;@shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great article!&amp;nbsp; I had a question though - and it relates to mere mortals that aren&amp;#39;t yet very familiar with the Xmos programming environment.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You utilized a TLV protocol to communicate with the RPi.&amp;nbsp; You had mentioned hard coding as being inflexible, but there is a good reason for this (at least in my case).&amp;nbsp; When debugging the connection between the Pi and the StartKit, it would be helpful to use perhaps hard coded input and output registers, say 2 of each, to get things up and running, and then perhaps switch over to the TLV protocol method.&amp;nbsp; As it stands, I am unable to get the Pi communicating to the Startkit, and I don&amp;#39;t know if its a configuration issue with the SPI ports, or just a dumb mistake in the code.&amp;nbsp; I used the code straight off the GIT repository, as well as the sample XMOS.c code (compiled and ran SUDO), but I was unable to get it communicating, and I got stuck trying to figure out whether it was hardware or software.&amp;nbsp; Could you perhaps post a quick code snipet showing just the to and from pi connection, without the servo or anything to confuse matters.&amp;nbsp; Just a dirt simple XMOS program and dirt simple Pi program would be super helpful, then I could switch over to the others, and at least be able to eliminate one or the other.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17750&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: XMOS startKIT: Building an XMOS and Raspberry Pi Robot XMP-1</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/xmos-startkit-building-an-xmos-and-raspberry-pi-robot-xmp-1</link><pubDate>Mon, 26 May 2014 16:35:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:002ccd5b-6419-4ded-9ce9-3ccd3f47d07d</guid><dc:creator>Former Member</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Very interesting project,&lt;/p&gt;&lt;p&gt; I would like to introduce to you &lt;a class="jive-link-external-small" href="http://robotops.com/" rel="nofollow ugc noopener" target="_blank" title="http://robotops.com/"&gt;RobotOps - DevOps For Robots and the Internet Of Things&lt;/a&gt;, There I have seen one Rule that catches my attention.&lt;/p&gt;&lt;p&gt; &amp;quot;Writing entirely different code to incorporate similar devices is inefficient, and makes it hard to add new developers to projects, or even for existing developers to understand their own work.&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am not sure on the code that was written, but I would suggest taking a look at existing robotic frameworks (cylon.js some based over Node.js like) that could help the re-usability and like this we could all collaborate in the same direction :-)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Kudos on the Hardware integraton :-)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17750&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: XMOS startKIT: Building an XMOS and Raspberry Pi Robot XMP-1</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/xmos-startkit-building-an-xmos-and-raspberry-pi-robot-xmp-1</link><pubDate>Thu, 22 May 2014 21:46:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:002ccd5b-6419-4ded-9ce9-3ccd3f47d07d</guid><dc:creator>Problemchild</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Excellent article Shabaz lots of information, maybe a bit of overload for those not familiar with the XMOS device in particular.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I see you customised the stock SPI Slave there, can you also have an SPI master riding on that thread (on different I/O of course) or have they written it to consume the entire thread resources&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17750&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>