<?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; audio</title>
	<atom:link href="http://brettinman.com/tag/audio/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>DIY Audio on a &#8220;Student&#8217;s&#8221; Budget</title>
		<link>http://brettinman.com/2009/08/19/diy-audio-on-a-students-budget/</link>
		<comments>http://brettinman.com/2009/08/19/diy-audio-on-a-students-budget/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 02:50:57 +0000</pubDate>
		<dc:creator>brettinman</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[diy]]></category>

		<guid isPermaLink="false">http://brettinman.com/?p=190</guid>
		<description><![CDATA[Today, a whole new topic in DIY electronics &#8211; audio. Audiophiles (or just anyone looking to get good sound quality) can spend hundreds or thousands of dollar on systems whose parts may only cost a tiny fraction of the retail cost. So the DIY community has stepped up to the plate, with many extremely knowledgeable [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both;">Today, a whole new topic in DIY electronics &#8211; audio. Audiophiles (or just anyone looking to get good sound quality) can spend hundreds or thousands of dollar on systems whose parts may only cost a tiny fraction of the retail cost. So the DIY community has stepped up to the plate, with many extremely knowledgeable engineers and hobbyists collaborating on original circuit designs that rival or better many commercial &#8220;audiophile&#8221; products.</p>
<p style="clear: both;"><a class="image-link" href="http://brettinman.com/blog/wp-content/uploads/2009/08/ssmhblog1-full1.jpg"><img class="linked-to-original" style="text-align: center; display: block; margin: 0 auto 10px;" src="http://brettinman.com/blog/wp-content/uploads/2009/08/ssmhblog1-thumb13.jpg" alt="" width="600" height="450" /></a>Recently, I had the great fortune to get in on a group buy of sorts, for a modified version of the Starving Student Millet Hybrid amplifier. The SSMH started life as a simple but ingenious hybrid (tube and solid state) design by <a href="http://www.pmillett.com/">Pete Millett</a>, in which he used the heating element of the tubes to put a load on the MOSFETs of the amplifier, cutting complexity and cost. Originally, it was a very basic amplifier with a budget-minded soul, built into whatever enclosure was handy with point to point (P2P) wiring. You can see the original build at his site <a href="http://www.pmillett.com/starving.htm">here</a>, and the forum thread following it&#8217;s history <a href="http://www.head-fi.org/forums/f6/millett-starving-student-hybrid-amp-319231/">here</a>.</p>
<p style="clear: both;">DIY forum user <a href="http://www.ecp.cc/diy-audio.html">Dsavitsk</a> then improved on the design with some slight modifications to the circuit. He also developed an equally ingenious way to mount the amp in an enclosure &#8211; a PCB would be developed and attached to the sliding top of a standard Hammond enclosure, allowing the tubes to be mounted to the &#8220;underside&#8221; of the PCB and stick out through the case. This would eliminate the P2P wiring that caused many problems in DIY builds of the amp &#8211; problems with grounding and bad connections had plagued countless hobbyists.</p>
<p style="clear: both;">Collaborating with Tom Blanchard of <a href="http://www.beezar.com/oscommerce2/catalog/index.php">Beezar Audio</a>, the two developed PCBs and set the project in motion. Tom took on the arduous task of organizing the procurement of the increasingly rare 19J6 vacuum tubes, the custom-machined Hammond cases, and all the other various parts needed to develop kits of the SMMH.</p>
<p style="clear: both;">I was lucky enough to get in on this undertaking and purchase a kit, and after a couple months (during which the cases were machined), I recently took delivery of the kit and quickly put it together.</p>
<p><span id="more-190"></span></p>
<p style="clear: both;"><a class="image-link" href="http://brettinman.com/blog/wp-content/uploads/2009/08/ssmhblog2-full.jpg"><img class="linked-to-original" style="text-align: center; display: block; margin: 0 auto 10px;" src="http://brettinman.com/blog/wp-content/uploads/2009/08/ssmhblog2-thumb1.jpg" alt="" width="600" height="450" /></a>The ease of construction of this amp is a great testament to the amount of work that Tom, Dsavitsk, and originally Pete put into this design. I had the amp completed from start to finish in less than 5 hours, with no serious problems. With me and DIY projects, that&#8217;s unheard of. Tom made it extremely smooth with his excellent <a href="http://www.head-fi.org/forums/f6/starving-student-millett-hybrid-pcb-step-step-build-guide-437075/index2.html">instructions</a>. I flipped the power switch, watched the glow of the tube heaters and LEDs come to life, and plugged in my headphones and source. I wouldn&#8217;t call myself an Audiophile, but the sound of this amplifier far outranks anything I&#8217;ve listened to, and blows my own basic DIY amps out of the water. Plus, it looks amazing on my desk. Glass tubes? How quaint!</p>
<p style="clear: both;">For those looking for a great audio project with that old-school tube feel, <span style="text-decoration: line-through;">there are still PCBs and tubes available, with a chance that more custom cases will become available.</span> [EDIT] As of February 2010, the supply of 19J6 tubes has been nearly exhausted and no more PCBs or kits based on this tube will be produced unless a stash is found in the corner of a warehouse somewhere. The possibility of doing this build point-to-point still exists if you want to buy the tubes in small quantities at high prices, and there are modifications that can be made to use this design with more common tubes &#8211; see the SSMH website or the Head-Fi thread for details.</p>
<p style="clear: both;">Even if this amp seems like too much of an undertaking, I highly recommend dabbling in DIY audio &#8211; a great place to start is the classic CMoy headphone amp in a mint tin. Tangent has some of the most complete instructions <a href="http://tangentsoft.net/audio/cmoy-tutorial/">here</a>.</p>
<p style="clear: both;"><em>Un-Disclaimer: I&#8217;m in no way involved with Beezar audio or anyone else mentioned in the post; this was just an awesome project that came together through the power of the DIY community.</em></p>
<p><br class="final-break" style="clear: both;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://brettinman.com/2009/08/19/diy-audio-on-a-students-budget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Driving Speakers with Arduino</title>
		<link>http://brettinman.com/2009/05/30/driving-speakers-with-arduino/</link>
		<comments>http://brettinman.com/2009/05/30/driving-speakers-with-arduino/#comments</comments>
		<pubDate>Sat, 30 May 2009 09:30:36 +0000</pubDate>
		<dc:creator>brettinman</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[boarduino]]></category>
		<category><![CDATA[buzzer]]></category>

		<guid isPermaLink="false">http://brettinman.com/?p=56</guid>
		<description><![CDATA[In my quest to try out everything the Arduino can possibly do, I decided to hook up a buzzer and try messing around with generating some tones. Since my little 8ohm buzzer seemed to have gone missing, I substituted one of Sparkfun&#8217;s audio jack breakout boards and a cheap pair of earbuds I had lying [...]]]></description>
			<content:encoded><![CDATA[<p>In my quest to try out everything the Arduino can possibly do, I decided to hook up a buzzer and try messing around with generating some tones. Since my little 8ohm buzzer seemed to have gone missing, I substituted one of Sparkfun&#8217;s audio jack <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8827">breakout boards</a> and a cheap pair of earbuds I had lying around. DO NOT use a quality set of earbuds or headphones, or any set that you wouldn&#8217;t want damaged &#8211; we&#8217;ll see why in a minute. Just connect ground to ground and either the left or right channel (or both) to one of the digital pins &#8211; I used 13 so the LED would light up with the rhythm of the music. I eventually found a couple more buzzers and hooked them in.</p>
<p><div id="attachment_60" class="wp-caption aligncenter" style="width: 610px"><img src="http://brettinman.com/blog/wp-content/uploads/2009/05/buzzer.jpg" alt="Arduinos with Buzzers" title="buzzer" width="600" height="450" class="size-full wp-image-60" /><p class="wp-caption-text">Arduinos with Buzzers</p></div><br />
My new Boarduino USB from <a href="http://www.adafruit.com/">Adafruit</a> is on the left in a breadboard and the Duemilanove is on the right.</p>
<p>The most basic way to create audio using the Arduino is essentially bit-banging one of the digital pins &#8211; write high and low at the frequency you wish to generate. The downside is that this creates a nearly square wave, which sound very harsh and unnatural. Also, the &#8220;high&#8221; is 5V, which is a very high amplitude to be supplying to headphones. Constant use at this amplitude (volume) will probably damage the drivers in earbuds &#8211; use the cheap earbuds that came with your MP3 player. Using a standard 8ohm buzzer is of course the preferred method if you have one lying around. I found a buzz function online to control this &#8211; pass it the pin to buzz on, the frequency, and the length, and it does the work for you. </p>
<p><code>void buzz(int targetPin, long frequency, long length) {<br />
  long delayValue = 1000000/frequency/2; // calculate the delay value between transitions<br />
  //// 1 second's worth of microseconds, divided by the frequency, then split in half since<br />
  //// there are two phases to each cycle<br />
  long numCycles = frequency * length/ 1000; // calculate the number of cycles for proper timing<br />
  //// multiply frequency, which is really cycles per second, by the number of seconds to<br />
  //// get the total number of cycles to produce<br />
 for (long i=0; i < numCycles; i++){ // for the calculated length of time...<br />
    digitalWrite(targetPin,HIGH); // write the buzzer pin high to push out the diaphram<br />
    delayMicroseconds(delayValue); // wait for the calculated delay value<br />
    digitalWrite(targetPin,LOW); // write the buzzer pin low to pull back the diaphram<br />
    delayMicroseconds(delayValue); // wait againf or the calculated delay value<br />
  }<br />
}<br />
</code></p>
<p>The downside is that this uses the delay function. That means your controller can't do anything else while waiting for the end of the delay. You would also have to use a delay function between the notes to create spaces. This is sufficient for a small buzzer project, but if you're looking to do more complex things (especially signals other than square wave),  try consulting the Arduino <a href="http://www.arduino.cc/playground/Main/InterfacingWithHardware#Audio">Playground</a>.</p>
<p>I was able to find a script for the Mario Bros theme online, and covert it into a series of buzz and delay calls. Not all the notes are correct and some of the spacing is off, but it's good enough to get the idea. The entire Arduino script is available <a href="http://www.brettinman.com/elec/buzzer.pde">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://brettinman.com/2009/05/30/driving-speakers-with-arduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
