<?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>Alex Baker</title>
	<atom:link href="http://alexbakeronline.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://alexbakeronline.com</link>
	<description>Interaction Designer</description>
	<lastBuildDate>Fri, 16 Mar 2012 13:51:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Arduino Mini Pro and μUSB-MB5</title>
		<link>http://alexbakeronline.com/?p=87</link>
		<comments>http://alexbakeronline.com/?p=87#comments</comments>
		<pubDate>Tue, 27 Sep 2011 20:36:07 +0000</pubDate>
		<dc:creator>Baker</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[watch]]></category>
		<category><![CDATA[μUSB-MB5]]></category>

		<guid isPermaLink="false">http://alexbakeronline.com/?p=87</guid>
		<description><![CDATA[Today I&#8217;ve been experimenting with the Arduino Mini Pro and μUSB-MB5, two modules that I ordered from www.coolcomponents.com. I recommend Cool Components to anyone in the UK looking to buy modules like this &#8211; they sell a lot of Sparkfun and 4D systems components and you can bet it&#8217;ll come from cool components a lot [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-92" title="Arduino mini Pro and μUSB-MB5 (microUSB-MB5)" src="http://alexbakeronline.com/wp-content/uploads/2011/09/IMG_3659.jpg" alt="Arduino mini Pro and μUSB-MB5 (microUSB-MB5)" width="950" height="425" /></p>
<p>Today I&#8217;ve been experimenting with the Arduino Mini Pro and μUSB-MB5, two modules that I ordered from <a href="http://www.coolcomponents.co.uk">www.coolcomponents.com</a>. I recommend Cool Components to anyone in the UK looking to buy modules like this &#8211; they sell a lot of Sparkfun and 4D systems components and you can bet it&#8217;ll come from cool components a lot quicker than it&#8217;ll ship from the States or Australia.</p>
<p>These are not the easiest modules to hook up so I&#8217;ve written this post with some pointers for anyone who has taken this route and got stuck. If it helps you please comment below.<br />
The Arduino mini pro is a stripped down version of it&#8217;s bigger brother the Arduino Uno (or Duemilanove for older boards). To the best of my knowledge the arduino mini pro is available in 5 volts and 3.3 volts, I&#8217;m using the 3.3 volt board so it is necessary to use a voltage converter to power it from a 5 volt USB supply. Also, it doesn&#8217;t have an FTDI chip (the bit that converts serial messages from the USB port on your computer).</p>
<p>Sparkfun do sell a module called <em>SparkFun FTDI Basic Breakout Board</em> that might be simpler http://www.sparkfun.com/products/9716. It is time consuming wiring up the µUSB-MB5 but I use it because it has standard header pins so it fits nicely in a breadboard.</p>
<h2>What is the 4D system&#8217;s µUSB-MB5?</h2>
<p>I&#8217;ve used these several times over the past few years and cannot fault them. They work very well for breadboarded projects and it is extremely handy here because it has a 3.3v voltage converter on board as well as the FTDI chip to convert messages from the computer to program the arduino. The drivers for this have been downloaded from:</p>
<p>http://www.4dsystems.com.au/prod.php?id=18</p>
<p>It was quite simple to install the driver on a mac; download the dmg, unpack and install (there was a system restart afterwards) the module then showed up in the list of serial devices as: /dev/tty.SLAB_USBtoUART and /dev/cu.SLAB_USBtoUART.</p>
<p>I realise it is not always that simple. I&#8217;ve had problems at work before on windows computers, especially back in the days when the arduino would only work on PC COM ports 1-5.</p>
<p>Nightmare, anyway I have recently moved from PC to the mac (tty and cu) and so those days are hopefully behind me.</p>
<h3>Test the µUSB-MB5 before hooking it up to the arduino&#8230;</h3>
<p>I like to check the MB5 is working before mashing the arduino into it so I connected the Tx to the Rx with a piece of wire to check. I could then open up the Arduino software, write a message and have the signal route out of the Tx pin, back into the Rx pin and display back in the arduino terminal window. I was lucky this time &#8211; the serial worked first time and it worked with both tty and cu. (being new to the mac I&#8217;m not sure what the difference is yet between tty and cu but for now I&#8217;m using tty)</p>
<h2>Wiring in the Arduino</h2>
<p>Now I know the mac and software is alright, I can wire the Tx from the µUSB-MB5 to the Rx of the arduino and the Rx of the µUSB-MB5 to the Tx of the arduino. The connection looks fine on the board however I kept getting the error:<br />
<strong>avrdude: stk500_recv(): programmer is not responding</strong></p>
<p><em>Short term solution</em>: Press the reset button 2 seconds after clicking upload: (this is a solution I found after searching in the forum.)<br />
Click upload, count &#8220;one, two&#8221;, a short press of the reset button and it works. Hardly neat but at least I know nothing is faulty.</p>
<p><em>Long term solution</em>: I need to get the DTR reset working so that the Arduino IDE resets the device at the correct time. I eventually found that connecting the Reset pin of the µUSB-MB5 to the Reset pin of the arduino worked (most&#8230;of the time).</p>
<h2>Technical details</h2>
<p>Here is a summary of the Arduino Mini Pro copied for personal reference from the arduino website:</p>
<table border="0">
<tbody>
<tr>
<td align="left">Microcontroller</td>
<td align="left">ATmega168</td>
</tr>
<tr>
<td align="left">Operating Voltage</td>
<td>3.3V or 5V (depending on model)</td>
</tr>
<tr>
<td align="left">Input Voltage</td>
<td>3.35 -12 V (3.3V model) or 5 &#8211; 12 V (5V model)</td>
</tr>
<tr>
<td align="left">Digital I/O Pins</td>
<td align="left">14 (of which 6 provide PWM output)</td>
</tr>
<tr>
<td align="left">Analog Input Pins</td>
<td align="left">6</td>
</tr>
<tr>
<td align="left">DC Current per I/O Pin</td>
<td align="left">40 mA</td>
</tr>
<tr>
<td align="left">Flash Memory</td>
<td align="left">16 KB (of which 2 KB used by bootloader)</td>
</tr>
<tr>
<td align="left">SRAM</td>
<td align="left">1 KB</td>
</tr>
<tr>
<td align="left">EEPROM</td>
<td align="left">512 bytes</td>
</tr>
<tr>
<td align="left">Clock Speed</td>
<td>8 MHz (3.3V model) or 16 MHz (5V model)</td>
</tr>
</tbody>
</table>
<h2>So what&#8217;s next?</h2>
<p>For tomorrow I want to see how much power is being drawn so I&#8217;m going to create a sketch that blinks the LED 10 times then powers down. Using this blog for the code reference:</p>
<p>http://donalmorrissey.blogspot.com/2010/04/putting-arduino-diecimila-to-sleep-part.html</p>
<p>This method was used for sleep. It features complete power down</p>
<p><code>void enterSleep() {<br />
set_sleep_mode(SLEEP_MODE_PWR_DOWN);<br />
sleep_enable();<br />
sleep_mode();<br />
/** The program will continue from here. **/<br />
/* First thing to do is disable sleep. */<br />
sleep_disable();<br />
}<br />
</code></p>
<p>And it works, Yeah! I will test the current drawn so that I can predict battery life etc and continue wiring up the I2C lines to connect sensors.</p>
<p>I&#8217;ve found it&#8217;s using:</p>
<p>4.87 mA green LED off<br />
8.62 mA green LED on<br />
0.44 mA power down</p>
<p>If I use a 110mAh battery such as this http://www.sparkfun.com/products/731</p>
<p>110mAh / 0.44 = 250 hours</p>
<p>250/24 = 10.4 days on sleep or a few days of use.</p>
<p>There are ways to make this use a lot less power of course &#8211; there seems to be different levels of sleep on the ATMEGA chip, and if I can turn off the dim red power LED on the board this will help a lot. For now, it&#8217;s nice to have the arduino hooked up to the µUSB-MB5</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbakeronline.com/?feed=rss2&#038;p=87</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I Create Experiences</title>
		<link>http://alexbakeronline.com/?p=49</link>
		<comments>http://alexbakeronline.com/?p=49#comments</comments>
		<pubDate>Sun, 25 Sep 2011 17:55:04 +0000</pubDate>
		<dc:creator>Baker</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Interaction Design]]></category>

		<guid isPermaLink="false">http://alexbakeronline.com/?p=49</guid>
		<description><![CDATA[Hi there. My name is Alex Baker (Baker) and I&#8217;m an interaction designer based in the UK. I create experiences, make life easier and more enjoyable for people by designing products that people love to use. In my work I use a wide range of software and hardware; open frameworks, processing, Arduino, Adobe creative suite [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://alexbakeronline.com/?attachment_id=50" rel="attachment wp-att-50"><img class="alignnone size-full wp-image-50" title="IMG_2849" src="http://alexbakeronline.com/wp-content/uploads/2011/09/IMG_2849.jpg" alt="" width="950" height="425" /></a></p>
<p>Hi there. My name is Alex Baker (<strong>Baker)</strong> and I&#8217;m an interaction designer based in the UK. I create experiences, make life easier and more enjoyable for people by designing products that people love to use.</p>
<p>In my work I use a wide range of software and hardware; open frameworks, processing, Arduino, Adobe creative suite (Photoshop, Illustrator, After effects etc), Lightroom, 3Ds max and many more.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexbakeronline.com/?feed=rss2&#038;p=49</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 images from Portugal</title>
		<link>http://alexbakeronline.com/?p=19</link>
		<comments>http://alexbakeronline.com/?p=19#comments</comments>
		<pubDate>Sun, 25 Sep 2011 17:07:28 +0000</pubDate>
		<dc:creator>Baker</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://alexbakeronline.com/?p=19</guid>
		<description><![CDATA[I recently went on a surf trip to Portugal. Here are some of the images :)]]></description>
			<content:encoded><![CDATA[<p>I recently went on a surf trip to Portugal. Here are some of my favourite images from the trip (excuse the unoriginal naming):</p>
<p><img class="alignnone size-full wp-image-31" title="IMG_3318" src="http://alexbakeronline.com/wp-content/uploads/2011/09/IMG_3318.jpg" alt="" width="950" height="425" /><br />
Fishing on the beach</p>
<hr />
<p><img class="alignnone size-full wp-image-30" title="IMG_3412.jpg" src="http://alexbakeronline.com/wp-content/uploads/2011/09/IMG_3412.jpg" alt="" width="950" height="425" /><br />
The fortress</p>
<hr />
<p><img class="alignnone size-full wp-image-40" title="IMG_3425" src="http://alexbakeronline.com/wp-content/uploads/2011/09/IMG_3425.jpg" alt="" width="950" height="425" /><br />
Flowers at sunset</p>
<hr />
<p><img class="alignnone size-full wp-image-83" title="Boat" src="http://alexbakeronline.com/wp-content/uploads/2011/09/IMG_3188.jpg" alt="" width="950" height="425" /><br />
Fishing boats</p>
<hr />
<p><img class="alignnone size-large wp-image-84" title="Flower" src="http://alexbakeronline.com/wp-content/uploads/2011/09/Sequence-01-4-950x633.jpg" alt="" width="950" height="633" /><br />
More flowers <img src='http://alexbakeronline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://alexbakeronline.com/?feed=rss2&#038;p=19</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

