<?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>Evolving NG UAVP &#187; Electronics</title>
	<atom:link href="http://uavp.agner.ch/category/electronics/feed/" rel="self" type="application/rss+xml" />
	<link>http://uavp.agner.ch</link>
	<description>falstaff&#039;s blog about building and developing multicopters</description>
	<lastBuildDate>Wed, 06 Oct 2010 21:49:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>My second NG is airborne</title>
		<link>http://uavp.agner.ch/2010/08/my-second-ng-is-airborne/</link>
		<comments>http://uavp.agner.ch/2010/08/my-second-ng-is-airborne/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 00:19:21 +0000</pubDate>
		<dc:creator>stefan</dc:creator>
				<category><![CDATA[Centerplate]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Flights]]></category>
		<category><![CDATA[Frame]]></category>

		<guid isPermaLink="false">http://uavp.agner.ch/?p=225</guid>
		<description><![CDATA[The last days I worked a lot on my second NG UAVP quadrocopter. I had many of the parts ready since weeks. But I decided to do some things different than planned. But in between, all things were done and it was time to get my new aircraft airborne. And it flew! Unfortunately I had [...]]]></description>
			<content:encoded><![CDATA[<p>The last days I worked a lot on my second <a href="http://ng.uavp.ch">NG UAVP</a> quadrocopter. I had many of the parts ready since weeks. But I decided to do some things different than planned. But in between, all things were done and it was time to get my new aircraft airborne. And it flew! Unfortunately I had some interferences, but look yourself!</p>
<div class="wp-caption alignnone" style="width: 570px"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="315" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13791346&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="560" height="315" src="http://vimeo.com/moogaloop.swf?clip_id=13791346&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<p class="wp-caption-text">Maiden flight of my second NG UAVP quadrocopter</p></div>
<p>The second quadrocopter is a lot easier to build. The whole world of quadrocopter and radio controlled model making in general was very new to me. I made wrong decisions or just didn&#8217;t know how I want to have it in the end&#8230; Here is a small lists of improvements I made on my second quadrocopter. It might help other beginners to do it better in first place <img src='http://uavp.agner.ch/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <span id="more-225"></span></p>
<h2>Battery connectors</h2>
<div id="attachment_232" class="wp-caption alignleft" style="width: 310px"><a href="http://uavp.agner.ch/wp-content/uploads/2010/08/xt60-plugs.jpg"><img class="size-medium wp-image-232" title="XT60 plugs" src="http://uavp.agner.ch/wp-content/uploads/2010/08/xt60-plugs-300x251.jpg" alt="XT60 plugs" width="300" height="251" /></a><p class="wp-caption-text">XT60 plugs</p></div>
<p>On my first copter I bought the same connectors for the quadrocopter which the batteries had: 4mm Bullet connectors. But connecting them was dreadfully: My connectors were a little bit to big, so I had to deform the plastic of the connectors a little bit. The plastic on the front was battered. Connecting them was very tough, in the end I didn&#8217;t connected them fully, it simply wasn&#8217;t possible anymore. So it was time to switch. I decided to use the XT60 connectors from <a href="http://www.hobbyking.com/">Hobbyking</a> (an alternative to the popular <a href="http://www.wsdeans.com/products/plugs/index.html">Deans</a> connector system). They are cheap and you can also buy batteries with this connectors. The connection holds strong but you can connect and disconnect them without problem. No more half connected plugs in the air. </p>
<h2>Power distribution</h2>
<p><div id="attachment_230" class="wp-caption alignright" style="width: 310px"><a href="http://uavp.agner.ch/wp-content/uploads/2010/08/power-distribution.jpg"><img class="size-medium wp-image-230" title="Power distribution" src="http://uavp.agner.ch/wp-content/uploads/2010/08/power-distribution-300x166.jpg" alt="Power distribution" width="300" height="166" /></a><p class="wp-caption-text">Power distribution</p></div><br />
Using a board to distribute the power is definitely more comfortable, especially if want to connect something new or disconnect something. I used a two-sided 70µm copper bare board. Don&#8217;t forget to remove the coat before soldering if it has one. You also should have a soldering iron with enough power doing this. My 40W soldering iron was definitely a bit too feeble. Another good tip is to use silicon cable whenever possible. Its easier to solder them because the cable coating doesn&#8217;t melt.<br />
<div id="attachment_233" class="wp-caption alignleft" style="width: 205px"><a href="http://uavp.agner.ch/wp-content/uploads/2010/08/claws.jpg"><img class="size-medium wp-image-233" title="New landers: Claws" src="http://uavp.agner.ch/wp-content/uploads/2010/08/claws-195x300.jpg" alt="New landers: Claws" width="195" height="300" /></a><p class="wp-caption-text">New landers: Claws</p></div><br />
<h2>Landers and centerplate</h2>
<p>Having good landers from start is also very convenient. Starting from grass is no problem, calibrating the acceleration sensor is easier too. I already <a href="http://uavp.agner.ch/2010/06/centerplates/">wrote</a> about my new centerplates. They look good and are very strong.</p>
<h2>LED&#8217;s</h2>
<p>Its easier to distinguish the front of the quadrocopter with colored LED&#8217;s. I planned to add LED&#8217;s to my first copter already, but because the power distribution was inflexible I desisted installing them. On my second copter I bought 3mm plugs to connect them, and also added a cable to the power distribution system.</p>
]]></content:encoded>
			<wfw:commentRss>http://uavp.agner.ch/2010/08/my-second-ng-is-airborne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bus Pirate</title>
		<link>http://uavp.agner.ch/2010/05/bus-pirate/</link>
		<comments>http://uavp.agner.ch/2010/05/bus-pirate/#comments</comments>
		<pubDate>Sun, 23 May 2010 00:34:24 +0000</pubDate>
		<dc:creator>stefan</dc:creator>
				<category><![CDATA[AVR]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[JTAG]]></category>

		<guid isPermaLink="false">http://uavp.agner.ch/?p=172</guid>
		<description><![CDATA[As I wrote yesterday I bougth the Bus Pirate from Seeedstudio and a nice case. Another team member found this nice tool. It can be used to prototype and test electronic deviecs with buses such as UART, SPI or I2C. As I saw the ability to work as an AVR programmer and even a JTAG [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_173" class="wp-caption alignright" style="width: 310px"><a href="http://uavp.agner.ch/wp-content/uploads/2010/05/bus-pirate-small.jpg"><img class="size-medium wp-image-173" title="Bus Pirate" src="http://uavp.agner.ch/wp-content/uploads/2010/05/bus-pirate-small-300x203.jpg" alt="Bus Pirate" width="300" height="203" /></a><p class="wp-caption-text">Bus Pirate</p></div>
<p>As I wrote yesterday I bougth the <a href="http://dangerousprototypes.com/bus-pirate-manual/">Bus Pirate</a> from <a href="http://www.seeedstudio.com/depot/bus-pirate-v3-assembled-p-609.html">Seeedstudio</a> and a <a href="https://www.synthetos.com/">nice case</a>. Another team member found this nice tool. It can be used to prototype and test electronic deviecs with buses such as UART, SPI or I2C.  As I saw the ability to work as an AVR programmer and even a JTAG adapter I was persuaded of it as well. It looks like a perfect devleoper device for the NG UAVP.<br />
With delivery I paid about 55$ for both parts. The case from US arrived way faster then the Pirate itself from China, but finally both made their way to Switzerland! I needed to alter the case with a nail file a little bit to make sure the USB connector has enought space. Built into its case it looks very nice!<br />
The firmware on the delivered device was not that up to date:</p>
<pre>HiZ&gt;I
Bus Pirate v3 (Seeed Studio)

http://dangerousprototypes.com

Firmware v2.4-Seeed
DEVID:0x0447 REVID:0x3043 (B5)
</pre>
<p><span id="more-172"></span><br />
First I had to upgrade to <a href="http://dangerousprototypes.com/2010/01/18/how-to-bus-pirate-bootloader-v4-upgrade/">V4 Bootloader</a>. I connected the PGD and PGC pins of the ICSP header to trigger the bootloader. Then I changed bitrateindex to 8 (for 115200):</p>
<pre>vi P24qp.ini
</pre>
<pre>bitrateindex=8
</pre>
<p>Afterwards I could do the firmwareupgrade (just ignore the verification errors in the output, its a bug in v2 bootloader):</p>
<pre>$ unzip v2tov41-bootloader-update-va3.zip
$ cd upgrader
$ sudo python P24qp.py --serial=/dev/ttyUSB1 -v --auto=BPv3-v2blupdaterVa3-v4.1.hex
....
Writing 256 bytes to address 0x0000AB80
Reading 256 bytes from address 0x0000AB80
Write operation complete.
Verified Okay.
Verification complete, switching to user mode
</pre>
<p>Now I removed the jumper and restartet the Bus Pirate. Pressing enter produced this output:</p>
<pre>Upgrade cancelled.

Universal DS30 Loader installer v0.3 (C)hris 2010

Released under Creative Commons null license.
Found bootloader v unknown (probably v2)
Will install bootloader v4.1

Type 'Yes' to program the new bootloader.
Disconnect power if unsure (no harm done).
</pre>
<p>&#8220;Yes&#8221; started the upgrading</p>
<pre>Erasing 0xA400... done
Erasing 0xA800... done
Writing row 0 1 2 3 4 5 6 7 done
Erasing 0x0000... done
Writing row 0... done

Success!
Upload new firmware with the ds30 Loader app to complete the upgrade.
</pre>
<p>When the update is complete, the MODE LED will blink and the upgrader will prompt you to upload a v4+ firmware. I connected the PGD and PGC pins of the ICSP header to trigger the bootloader once again and restarted the Bus Pirate. I then uploaded the <a href="http://dangerousprototypes.com/2010/03/05/bus-pirate-firmware-v4-2-released/">v4.2 firmware</a> directly (you can&#8217;t install the v4.2 bootloader since its only a version for programm with PIC directly):</p>
<pre>$ unzip BusPirate.firmware.v4.2.zip
$ sudo ./pirate-loader_lnx --dev=/dev/ttyUSB1 --hex=BPv3\&amp;v2go/BPv3-Firmware-v4.2.hex
</pre>
<p>Removed the jumper again and the Bus Pirate has a shiny new software version on it:</p>
<pre>HiZ&gt;I
Bus Pirate v3
Firmware v4.2 Bootloader v4.1
DEVID:0x0447 REVID:0x3043 (B5)

http://dangerousprototypes.com
</pre>
<h2>AVR programmer (STK500v2)</h2>
<p>One of the features I needed most was the AVR programmer. For that purpose you have to flash a special firmware:</p>
<pre>$ sudo ./pirate-loader_lnx --dev=/dev/ttyUSB1 --hex=BPv3\&#038;v2go/BPv3-STK500v2-v0b.hex
</pre>
<p>Afterwards you can use it like an STK500v2:</p>
<pre>$ avrdude -p m328p -c stk500v2 -P /dev/ttyUSB1 -v -V -U flash:w:sb-ctrl.hex
</pre>
<p>Just a small performance comparission showed positive results. I wrote an Intel hex with 30178 bytes to an Atmel ATMEGA328P. These are the flash times:</p>
<table border="0">
<tbody>
<tr>
<td width="100px">Bus Pirate</td>
<td>STK500v2</td>
</tr>
<tr>
<td>10.75s</td>
<td>42.55s</td>
</tr>
</tbody>
</table>
<p>Note: These are both out of the box configuration, with correct STK500v2 configuration you can probably gain more performance&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://uavp.agner.ch/2010/05/bus-pirate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

