<?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>Brett&#039;s Build Log &#187; usb</title>
	<atom:link href="http://brettinman.com/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettinman.com</link>
	<description>Hardware tinkering with the occasional bit of software</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:24:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using the Bus Pirate v2go on Mac</title>
		<link>http://brettinman.com/2009/07/24/using-the-bus-pirate-v2go-on-mac/</link>
		<comments>http://brettinman.com/2009/07/24/using-the-bus-pirate-v2go-on-mac/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 22:38:05 +0000</pubDate>
		<dc:creator>brettinman</dc:creator>
				<category><![CDATA[Bus Pirate]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[communications]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://brettinman.com/?p=156</guid>
		<description><![CDATA[My Bus Pirate v2go just arrived this morning and I was eager to try it out. There is some documentation on Hack-a-Day on how to use the bus pirate with HyperTerminal. However, all of my electronics stuff is on the other side of the room from my Windows desktop. I use my MacBook for programming [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://www.buspirate.com">Bus Pirate v2go</a> just arrived this morning and I was eager to try it out. There is some documentation on Hack-a-Day on how to use the bus pirate with HyperTerminal. However, all of my electronics stuff is on the other side of the room from my Windows desktop. I use my MacBook for programming the Arduino and my other AVR projects, so I wanted to use it for the Bus Pirate as well. What to do?</p>
<p><del datetime="2009-08-12T19:22:23+00:00">My first google searches ended in disappointment &#8211; using the built in <a href="http://www.macosxhints.com/article.php?story=20061109133825654">Terminal program with Screen</a> was unsuccessful (probably because it doesn&#8217;t seem like you can set the baudrate).</del><em> Update: it turns out that you can set the baudrate with screen using an argument like so &#8211;  &#8220;screen /dev/ttyWHATEVER 115200&#8243;. Thanks goes to the David in the comments below.</em> After a little searching, it looked like the few serial terminal applications for Mac were old and outdated, but I did manage to find <a href="http://homepage.mac.com/dalverson/zterm/">ZTerm</a>. It&#8217;s simple and basic &#8211; perfect for use with the bus pirate.</p>
<p>Don&#8217;t forget that you need to have already installed the <a href="http://www.ftdichip.com/Drivers/VCP.htm">FTDI driver</a> so that your computer will see the device over USB. Start Zterm and choose the correct port in the popup window (if it isn&#8217;t already chosen automatically). Then you need to change the connection settings to talk to the Bus Pirate properly. Go to Settings-&gt;Connection and set it like this:<br />
<a href="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-1.png"><img class="aligncenter size-full wp-image-157" title="ZTerm settings for Bus Pirate" src="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-1.png" alt="ZTerm settings for Bus Pirate" width="489" height="344" /></a><br />
Data Rate: 115200<br />
Data Bits: 8<br />
Parity: None<br />
Stop bits: 1</p>
<p>The rest you can leave at the default. <strong>[UPDATE] On newer firmware versions you&#8217;ll need to deselect Xon/Xoff</strong> as per Ian in the comments below.</p>
<p>Hit ok and go back to the terminal window to start talking<span id="more-156"></span></p>
<p>Hit enter to start communicating. Entering ? will bring up the list of commands like so:<br />
<a href="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-2.png"><img class="aligncenter size-medium wp-image-160" title="Bus Pirate menu" src="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-2.png" alt="Bus Pirate menu" width="600" height="538" /></a><br />
To test some functionality of the bus pirate, we&#8217;re going to measure the voltage on the ADC pin. We&#8217;ll do this by putting the Bus Pirate into just about any mode besides HiZ &#8211; we&#8217;ll choose 1-Wire since it&#8217;s simple to set up.</p>
<p>Enter &#8220;m&#8221; to bring up the mode menu, choose 1-Wire by entering &#8220;2&#8243;. Hook up some voltage to the ADC pin (see the bottom of the Bus Pirate for it&#8217;s pinout). Then enter &#8220;d&#8221; to read the value on the pin. I connected the pin to the 5V input from the USB line, so it reads 5.1V. You can see that full process in the terminal below.<br />
<a href="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-3.png"><img class="aligncenter size-full wp-image-164" title="Bus Pirate ADC Reading" src="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-3.png" alt="Bus Pirate ADC Reading" width="345" height="305" /></a></p>
<p>That&#8217;s it for the basics! See the <a href="http://www.buspirate.com">Bus Pirate</a> site for more examples of how to use this nice piece of hardware.</p>
]]></content:encoded>
			<wfw:commentRss>http://brettinman.com/2009/07/24/using-the-bus-pirate-v2go-on-mac/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>USB Power Shield</title>
		<link>http://brettinman.com/2009/06/10/usb-power-shield/</link>
		<comments>http://brettinman.com/2009/06/10/usb-power-shield/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 04:33:05 +0000</pubDate>
		<dc:creator>brettinman</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[USB Power Shield]]></category>
		<category><![CDATA[Woot-Off Lights Project]]></category>
		<category><![CDATA[board]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[pcb]]></category>
		<category><![CDATA[schematic]]></category>
		<category><![CDATA[transistors]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[usbpowershield]]></category>
		<category><![CDATA[wootofflights]]></category>

		<guid isPermaLink="false">http://brettinman.com/?p=82</guid>
		<description><![CDATA[I really wanted there to be a complete solution for the Woot-Off lights project that could be almost plug and play for the end user, so today I drew up a schematic and a board for a USB Power Shield for the Arduino. It pops onto the Arduino like any other shield, and by controlling [...]]]></description>
			<content:encoded><![CDATA[<p>I really wanted there to be a complete solution for the Woot-Off lights project that could be almost plug and play for the end user, so today I drew up a schematic and a board for a USB Power Shield for the Arduino. It pops onto the Arduino like any other shield, and by controlling pins 9-12, you can control power to four devices. </p>
<p>There are two USB ports for anything that takes USB power (5V) &#8211; of course, these ports are for power only (no data). You can use these to control the Woot-Off lights without cutting and soldering the cord, and something else (USB Fan? Light? <a href="http://www.thinkgeek.com/interests/giftsunder10/9c89/">Humping Dog</a>?). There are also four pads toward the middle so you can solder in anything else that takes 5V power.</p>
<div id="attachment_91" class="wp-caption aligncenter" style="width: 610px"><a href="http://brettinman.com/blog/wp-content/uploads/2009/06/board.jpg"><img src="http://brettinman.com/blog/wp-content/uploads/2009/06/board.jpg" alt="USB Power Shield board" title="USB Power Shield board" width="600" height="439" class="size-full wp-image-91" /></a><p class="wp-caption-text">USB Power Shield board</p></div>
<p>Schematic <a href="http://brettinman.com/blog/wp-content/uploads/2009/06/boardschematic.jpg">here</a>.</p>
<p>Since the Arduino can only supply maybe 300mA while on USB power and 600mA from its small 5V regulator (using DC in), I&#8217;ve included the stuff necessary to add a 7805 regulator and related components to allow up to 1A (if you use a heatsink). You can always leave these pads empty if you don&#8217;t plan on using that much power. The Woot-Off Lights will need at least the 5V regulator on the Arduino. There are also LEDs to show if the regulator and board itself are powered &#8211; these can be omitted as well.</p>
<p>The board uses four 2N3906 to control power of up to 200mA at 5V to four devices. By writing the corresponding pin LOW on the Arduino, you turn on the transistor and allow current to flow from 5V to the device (and then, hopefully, out to GND). Very Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://brettinman.com/2009/06/10/usb-power-shield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
