<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DevFor8.com &#187; Copters</title>
	<atom:link href="http://www.devfor8.com/category/copters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devfor8.com</link>
	<description>Development for Windows 8, Windows Phone 8 and HW stuff</description>
	<lastBuildDate>Sun, 08 Mar 2015 12:42:13 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.3</generator>
	<item>
		<title>Mav2Duplex</title>
		<link>http://www.devfor8.com/mav2duplex/</link>
		<comments>http://www.devfor8.com/mav2duplex/#comments</comments>
		<pubDate>Sun, 08 Mar 2015 09:00:22 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[APM]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Copters]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[HW]]></category>
		<category><![CDATA[MegaPirate NG]]></category>
		<category><![CDATA[PixHawk]]></category>

		<guid isPermaLink="false">http://www.devfor8.com/?p=48</guid>
		<description><![CDATA[I just published updated project on GitHub &#160; It is Arduino based converter for processing Mavlink telemetry data and send them in Duplex format (Ex but also old text one) into your receiver (and down to earth) &#160; Features : - sending data over Ex protocol - sending data as text to even old Jetiboxes (include [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I just published updated project on <a title="GitHub" href="https://github.com/DevFor8/Mav2Duplex/" target="_blank">GitHub</a></p>
<p>&nbsp;</p>
<p>It is Arduino based converter for processing Mavlink telemetry data and send them in Duplex format (Ex but also old text one) into your receiver (and down to earth)</p>
<p>&nbsp;</p>
<p>Features :</p>
<p>- sending data over Ex protocol</p>
<p>- sending data as text to even old Jetiboxes (include messages)</p>
<p>- Alarms</p>
<p>&nbsp;</p>
<p>Here is wiring, it is really simple : <a href="http://www.devfor8.com/wp-content/uploads/2014/05/Mav2DuplexWiring1.png"><img class="alignnone  wp-image-50" src="http://www.devfor8.com/wp-content/uploads/2014/05/Mav2DuplexWiring1-300x218.png" alt="Mav2DuplexWiring" width="470" height="341" /></a>   Code using one hardware serial for reading telemetry from Mavlink board (ArduCopter or MegaPirateNG) and output data into Jeti as software serial.   Here is video to show Alarms https://www.youtube.com/watch?v=bKOuzuYNKlU</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devfor8.com/mav2duplex/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Datalog with MegaPirateNG 3.0.1 R4</title>
		<link>http://www.devfor8.com/datalog_3/</link>
		<comments>http://www.devfor8.com/datalog_3/#comments</comments>
		<pubDate>Fri, 23 May 2014 20:54:10 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Copters]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[HW]]></category>
		<category><![CDATA[MegaPirate NG]]></category>

		<guid isPermaLink="false">http://www.devfor8.com/?p=55</guid>
		<description><![CDATA[As new MPNG 3.0.1 R4 have completely overhauled structure there is needed also do code changes in different way. Here is how to make it work. Sample uses pin 33 (Arduino notation) which is PortC , Pin 4 in ATMega notation. What you need to update : Lib\AP_HAL_MPNG\SPIDevice_SPI0.cpp #define SPI0_MISO_PIN MISO #define SPI0_MOSI_PIN MOSI #define [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>As new MPNG 3.0.1 R4 have completely overhauled structure there is needed also do code changes in different way. Here is how to make it work. Sample uses pin 33 (Arduino notation) which is PortC , Pin 4 in ATMega notation.</p>
<p>What you need to update :</p>
<p>Lib\AP_HAL_MPNG\SPIDevice_SPI0.cpp</p>
<p><em>#define SPI0_MISO_PIN MISO</em><br />
<em> #define SPI0_MOSI_PIN MOSI</em><br />
<em> #define SPI0_SCK_PIN SCK</em><br />
<em> #define SPI0_SS_PIN SS  //add this</em></p>
<p><em>AVRSemaphore AVRSPI0DeviceDriver::_semaphore;</em></p>
<p><em>static volatile bool spi0_transferflag = false;</em></p>
<p><em>void AVRSPI0DeviceDriver::init() {</em><br />
<em> hal.gpio-&gt;pinMode(SPI0_MISO_PIN, GPIO_INPUT);</em><br />
<em> hal.gpio-&gt;pinMode(SPI0_MOSI_PIN, GPIO_OUTPUT);</em><br />
<em> hal.gpio-&gt;pinMode(SPI0_SCK_PIN, GPIO_OUTPUT);</em><br />
<em> hal.gpio-&gt;pinMode(SPI0_SS_PIN, GPIO_OUTPUT); <em>//and add this</em></em></p>
<p><em>_cs_pin-&gt;mode(GPIO_OUTPUT);</em><br />
<em> _cs_pin-&gt;write(1);</em></p>
<p>Default SS pin have to be defined, set on output even if you are using different pin for slave CS. Reason is simple &#8211; if SS is not on output, SPI in AtMega resetting Master mode during operation and communication doesn&#8217;t work.</p>
<p>libraries\AP_HAL_MPNG\SPIDeviceManager_MPNG.cpp</p>
<p><em> /* dataflow cs is on arduino pin 53, PORTB0 */</em><br />
<em> AVRDigitalSource* df_cs = new AVRDigitalSource(_BV(4), PC);  //change this</em><br />
<em> /* dataflash: divide clock by 2 to 8Mhz, set SPI_MODE_3</em></p>
<p>Pin have to be changed. Use &#8220;PC&#8221;/&#8221;PB&#8221; convention instead of &#8220;PORTC&#8221;. Maybe there is not difference but PORTC doesn&#8217;t worked for me.</p>
<p>If anybody can confirm it to me, it will be great <img src="http://www.devfor8.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" />  After couple of tests I am little bit out and not sure if I covered everything.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devfor8.com/datalog_3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Datalog memory for AIO boards (or any Arduino board with ISP)</title>
		<link>http://www.devfor8.com/datalog/</link>
		<comments>http://www.devfor8.com/datalog/#comments</comments>
		<pubDate>Mon, 07 Oct 2013 14:28:35 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Copters]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[HW]]></category>
		<category><![CDATA[MegaPirate NG]]></category>

		<guid isPermaLink="false">http://www.devfor8.com/?p=14</guid>
		<description><![CDATA[Following board can be used for any board with working SPI on ISP connector but is primary targeted for copters. Biggest difference between Crius AIOP v.1 and v.2 is 16Mb dataflash on board. ArduCopter have same capability but Crius v.1 or Hobby King clone AIO clone don&#8217;t. Dataflash logs can be really useful during tuning [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Following board can be used for any board with working SPI on ISP connector but is primary targeted for copters.</p>
<p>Biggest difference between Crius AIOP v.1 and v.2 is 16Mb dataflash on board. ArduCopter have same capability but Crius v.1 or Hobby King clone AIO clone don&#8217;t.</p>
<p>Dataflash logs can be really useful during tuning of your copter so I decide to extend standard boards with this new capability.</p>
<p>Result is small PCB board with LE33 voltage regulator (and two capacitors) to provide 3.3V VCC voltage for memory and Atmel AT45DB161D memory with 2MB (or 16Mb) capacity. Memory is SPI so we can create board as attachment to ISP connector on AIO board.</p>
<p>There is also one more wire needed for CS &#8211; I used pin 33 (originally used for camera trigger from RC receiver, not used in most cases) which is connected by wire with board.</p>
<p>How it looks can be seen here :</p>
<div id="attachment_13" style="width: 310px" class="wp-caption alignnone"><a href="http://www.devfor8.com/wp-content/uploads/2013/10/WP_20131007_002-2-e1381154652990.jpg"><img class="size-medium wp-image-13" alt="Result attached to Multiwii Pro with Mega 2560 XCopter board" src="http://www.devfor8.com/wp-content/uploads/2013/10/WP_20131007_002-2-e1381154507529-300x204.jpg" width="300" height="204" /></a><p class="wp-caption-text">Result attached to Multiwii Pro with Mega 2560 XCopter board</p></div>
<p>It is my first SMD so sorry for quality. Fortunately, SOIC 8 and 1206 sized parts can be soldered at home with reasonable soldering stuff without major problem. Also DPS can be done by photo etching easily (see other blog post for detail).</p>
<p>So here is schematic, board and pdf for your DPS :</p>
<div id="attachment_10" style="width: 310px" class="wp-caption alignnone"><a href="http://www.devfor8.com/wp-content/uploads/2013/10/ISP_Memory_scheme.png"><img class="size-medium wp-image-10" alt="ISP Memory Schematic" src="http://www.devfor8.com/wp-content/uploads/2013/10/ISP_Memory_scheme-300x175.png" width="300" height="175" /></a><p class="wp-caption-text">ISP Memory Schematic</p></div>
<div id="attachment_11" style="width: 310px" class="wp-caption alignnone"><a href="http://www.devfor8.com/wp-content/uploads/2013/10/ISP_Memory.png"><img class="size-medium wp-image-11" alt="Board" src="http://www.devfor8.com/wp-content/uploads/2013/10/ISP_Memory-300x119.png" width="300" height="119" /></a><p class="wp-caption-text">Board</p></div>
<p><a href="http://www.devfor8.com/wp-content/uploads/2013/10/ISP_Memory.pdf">ISP Memory DSP</a></p>
<p>Also you need short update in your MegaPirate NG code (for arduino look for standard DataFlash library)</p>
<p>1. locate Dataflash folder in Libraries</p>
<p>2. change pins settings in DataFlash_CRIUS_AIOP2.cpp  code</p>
<blockquote><p>// arduino mega SPI pins<br />
#define DF_DATAOUT MOSI // MOSI<br />
#define DF_DATAIN MISO // MISO<br />
#define DF_SPICLOCK SCK // SCK<br />
#define DF_SLAVESELECT 33 // SS (PB0)<br />
#define DF_RESET 32 // RESET (PG0)</p></blockquote>
<p>where DF_SLAVESELECT is your chosen pin on board. DF_RESET should lead to unused pin although is not used for board.</p>
<p>3. set your config to Crius V2</p>
<blockquote><p>#define PIRATES_SENSOR_BOARD PIRATES_CRIUS_AIO_PRO_V2</p>
<p>&nbsp;</p></blockquote>
<p>Compile code, put your board on your copter and done.</p>
<p>Now you have dataflash logs capabilities and you can measure your vibrations or other stuff on copter.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devfor8.com/datalog/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
