<?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>Fenestration and Debauchery</title>
	<atom:link href="http://blog.wingedvictorydesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wingedvictorydesign.com</link>
	<description>Hold my beer while I try something.</description>
	<lastBuildDate>Sun, 14 Mar 2010 04:17:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Copper Plating onto Zinc</title>
		<link>http://blog.wingedvictorydesign.com/2010/03/13/copper-plating-onto-zinc/</link>
		<comments>http://blog.wingedvictorydesign.com/2010/03/13/copper-plating-onto-zinc/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 04:16:38 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Etc.]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=1000</guid>
		<description><![CDATA[You win some, You lose some. This is actually a post about a failure to achieve what I was trying to do, but it&#8217;s an interesting failure.  I was making some zinc etchings (see my earlier post about that) and I thought it would be great if I could then plate the exposed parts of [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1003" class="wp-caption aligncenter" style="width: 676px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Ingredients.jpg" rel="lightbox[1000]"><img class="size-large wp-image-1003" title="Ingredients" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Ingredients-666x500.jpg" alt="" width="666" height="500" /></a><p class="wp-caption-text">My Friday nights are 23% more awesome by molarity than yours.</p></div>
<p><span class="majuscule">You win some, You lose some.</span> This is actually a post about a failure to achieve what I was trying to do, but it&#8217;s an <em>interesting</em> failure.  I was making some zinc etchings (see my earlier post about that) and I thought it would be great if I could then plate the exposed parts of the etching not covered by the resist with copper, which, when the resist was removed, would give me a two-tone metallic effect.</p>
<p>I had been putting a pad of steel wool into the bath to remove the copper from it prior to pouring it down the drain, for environmental reasons.  The copper would plate out onto it just fine, but it didn&#8217;t have any adhesion— if you weren&#8217;t careful taking the steel wool out, the copper would fall right off it.  So it seemed that I was close to my goal, if I could just get the copper to adhere to the plates.</p>
<p><span class="majuscule">Some hours of internet research later,</span> I had a partial success.  Commercial copper plating processes use a complex process with very precise parameters of solution strength, electricity, and temperature, as well as proprietary processes such as strike baths and commercial brighteners.  There are internet forums devoted to the finer points of this, and I really should have paid more attention in high school chemistry because I can&#8217;t follow most of it.  But the underlying process is pretty simple.</p>
<p>Dissolve some copper into an acid bath, connect your anode (+) to a copper donor part, and your work piece to the cathode (-).  The positively charged copper will attach itself to the negatively charged work piece.  The acid is there to help the copper dissolve in the solution, I think.</p>
<p>For my copper anode, I used about a foot of stranded copper wire, with the insulation jacket removed, of course.  I used vinegar (acetic acid) for my acid solution, and also added about 3 tablespoons of copper sulfate crystals.  I think this is what made the plating work so quickly despite using a weak acid, as otherwise you would have to wait for copper atoms to be pulled off the copper part, transported across the medium, and deposited onto the work piece.  For a constant supply of voltage, I used a car battery charger.  The 12-14V it supplies is too much voltage, so I used several light bulbs of various denominations to make a voltage divider, with the voltage across the bath between 1 and 2 volts.</p>
<p>The acid will be consumed in the process, so you&#8217;ll have to keep adding more to keep the PH down.  Also, if you are seeing bubbles or black soot forming on the workpiece, you&#8217;re trying to plate too fast&#8211; you should reduce the voltage, make the mixture less conductive, or increase the amount of copper dissolved in the bath.  An apparently common maxim of plating is that you can&#8217;t plate material faster than you put it into the solution.  Also, without brighteners you&#8217;ll need to immediately clearcoat the copper plate after polishing it if you want it to stay shiny.</p>
<div id="attachment_1004" class="wp-caption aligncenter" style="width: 676px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Quarters.jpg" rel="lightbox[1000]"><img class="size-large wp-image-1004 " title="Quarters" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Quarters-666x500.jpg" alt="" width="666" height="500" /></a><p class="wp-caption-text">Plating onto (steel) quarters.</p></div>
<p>The process works pretty well for plating copper or zinc onto steel, but I was completely unsuccessful at plating copper onto zinc.  The acid just attacked the zinc and I got a lot of bubbling and soot deposits, but no copper.  In the picture below, you can see the bubbles of hydrogen gas coming off the zinc plate.</p>
<div id="attachment_1002" class="wp-caption aligncenter" style="width: 676px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/zinc.jpg" rel="lightbox[1000]"><img class="size-large wp-image-1002" title="zinc" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/zinc-666x500.jpg" alt="" width="666" height="500" /></a><p class="wp-caption-text">Fail!</p></div>
<p><span class="majuscule">More research</span>:  So I spent a lot of time reading about this, mostly from patents because it turns out copper plating onto zinc is sort of a Thing.  Commercial processes involve a cyanide bath, which is not something I can attempt at home due to the fact that it would kill me.</p>
<p>The other mode of attack I&#8217;ve been thinking about would be to plate the zinc in an alkaline bath with some other metal, one that would allow me to then plate the copper using the acid bath process.  From what I&#8217;ve been reading sodium carbonate might work for an alkaline bath, but I&#8217;m not sure what metal I would plate with or whether that would really work.  Also, we&#8217;re getting pretty well outside my grasp of chemistry here.</p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2010/03/13/copper-plating-onto-zinc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A New Workbench</title>
		<link>http://blog.wingedvictorydesign.com/2010/02/21/a-new-workbench/</link>
		<comments>http://blog.wingedvictorydesign.com/2010/02/21/a-new-workbench/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 22:19:50 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Etc.]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=961</guid>
		<description><![CDATA[Story Time. So, in Los Angeles I lived in this comically tiny studio apartment.  There, I did all my projects on this 3&#8242; x 3&#8242; table, which was also pre-landfill staging for junk mail and whatever else I was holding when I walked through my apartment door.  Here is it in action:
Over time this table, [...]]]></description>
			<content:encoded><![CDATA[<p><span class="majuscule">Story Time.</span> So, in Los Angeles I lived in this comically tiny studio apartment.  There, I did all my projects on this 3&#8242; x 3&#8242; table, which was also pre-landfill staging for junk mail and whatever else I was holding when I walked through my apartment door.  Here is it in action:</p>
<div id="attachment_968" class="wp-caption aligncenter" style="width: 635px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/11/Table01.jpg" rel="lightbox[961]"><img class="size-large wp-image-968" title="Table01" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/11/Table01-625x500.jpg" alt="" width="625" height="500" /></a><p class="wp-caption-text">15% of surface area unusable due to feline possession.</p></div>
<p>Over time this table, which was never exactly heirloom quality to begin with, became so covered with assorted solder/glue/paint, burn marks (thermal and chemical), and power tool &#8216;oops&#8217; Events, as to be only an article of furniture by virtue of its horizontality.</p>
<p style="text-align: center;"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/11/Table02.jpg" rel="lightbox[961]"><img class="aligncenter size-full wp-image-964" title="Table02" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/11/Table02.jpg" alt="Table02" width="1000" height="750" /></a></p>
<p><span class="majuscule">When I moved into my  spacious Portland apartment</span>, I decided that I wanted a proper workbench, with room for cat storage <em>and</em> a soldering iron.  Specifically, I wanted to be able to work with a 4&#8242; wide sheet of material, and something sturdy enough that it wouldn&#8217;t jump around when I used power tools, with storage for all the little necessaries like sharpies&#8230;</p>
<p style="text-align: center;"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/11/Completed-Bench.png" rel="lightbox[961]"><img class="aligncenter size-full wp-image-970" title="Completed-Bench" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/11/Completed-Bench.png" alt="Completed-Bench" width="1000" height="750" /></a>The tracks running perpendicular to the vise allow me to lock down any size material up to the length of the bench (6&#8242;).  It also has a compartment in the center to hold sandpaper, etc.   Here&#8217;s an exploded view (top and bottom) showing how it all goes together— the top is detachable to allow it to fit through a standard door.*</p>
<p><span class="majuscule">The Feet:</span> I ordered the foot hardware from McMasterCarr, part #<a href="http://www.mcmaster.com/nav/enter.asp?partnum=62805K42&amp;pagenum=1348" target="_blank">62805K42</a>.  Then I took some 1/8&#8243; thick steel plate, drilled a hole in it and tapped threads to screw the foot in.  I put a nut with an integral washer on it so that the weight of the bench would be distributed across the plate rather than resting on that 1/8&#8243; worth of thread.  Here&#8217;s a picture to help make this clear:</p>
<div id="attachment_972" class="wp-caption aligncenter" style="width: 676px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/01/Leg.jpg" rel="lightbox[961]"><img class="size-large wp-image-972 " title="Leg" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/01/Leg-666x500.jpg" alt="" width="666" height="500" /></a><p class="wp-caption-text">Detail from the bottom of the foot hardware.  This was taken while only the primer coat was on, before I did the red topcoat.  Which looks fucking hot, IMO.</p></div>
<p>This has proven to be very sturdy.  The bench itself weighs about 150lbs I would guess, and I&#8217;ve stood/sat on it several times to work on something.</p>
<p><span class="majuscule">The Vise</span>:  I used maple because I really like maple, and Rockler had an offal block of it that they let go for cheap.  It was subsequently pointed out to me that woodworking blocks are typically made out of a soft wood, to avoid marking up the work piece.  So take that under advisement, I guess.  The guides are just 1&#8243; diameter pipe with flanges that I painted gloss black.  It looks really nice with the stainless steel screws.  The crank was made from a <a href="http://www.rockler.com/product.cfm?page=1108&amp;filter=veneer%20clamp" target="_blank">veneer clamp I got at Rockler</a>.  The set screw that comes on the end part of the crank is some really odd thread size, and if you over-tighten the vise it will break the set screw.  If I was doing it again, I would drill out the hole, tap it with a more standard sized thread, and replace the set screw with grade 8 hardware.  But it hasn&#8217;t been such a problem that I would consider taking the whole thing apart to get at it.</p>
<p style="text-align: left;"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/01/Vise-wood.jpg" rel="lightbox[961]"><img class="size-large wp-image-974 aligncenter" title="Vise-wood" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/01/Vise-wood-666x500.jpg" alt="" width="666" height="500" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/01/Vise-progress.jpg" rel="lightbox[961]"><img class="size-large wp-image-975 aligncenter" title="Vise-progress" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/01/Vise-progress-666x500.jpg" alt="" width="666" height="500" /></a><span class="majuscule">Remark the First: </span> It&#8217;s really goddamn heavy, y&#8217;all&#8211;mostly due to the layer of MDF on top.  This is good because it doesn&#8217;t jump around when you use power tools on it, but if you may consider using 1/2&#8243; MDF on top and one-by framing material if that&#8217;s a concern for you.</p>
<p><span class="majuscule">Remark the Second:</span> Having the vise in the middle of the front like it is has proven to be less than ideal.  I find that when I lock something down to work on it I would rather have it near the corner for ergonomic reasons.  You may consider moving the vise to one side or the other.</p>
<p><span class="majuscule">Remark the Third (*):</span> It will fit through a standard 32&#8243; door by detaching the top, standing the frame vertical, taking off the feet, and passing it through the door that way.  It will pass through a 30&#8243; door if you have enough space to rotate the first legs through, then the second (and probably take the door off the hinges).  In my new San Francisco apartment, I have 29.5&#8243; doors at the end of a narrow hallway, and I wasn&#8217;t able to get the frame through the door.</p>
<p>I modified the frame so that it is 30&#8243; wide instead of 38&#8243; to get it through the apartment door, which also had the advantage of moving the vise to one corner where it will be more useful, I think.</p>
<p>Plan downloads are available in <a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/100220-Workbench.zip">Autocad DWG</a> and <a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/100221-Workbench.pdf">Adobe PDF</a> format.</p>
<p style="text-align: center;"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Vise-exploded-Rev0-Vise-Iso-1.jpg" rel="lightbox[961]"><img class="size-large wp-image-981 aligncenter" title="Vise-exploded-Rev0-Vise-Iso-(1)" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Vise-exploded-Rev0-Vise-Iso-1-680x414.jpg" alt="" width="680" height="414" /></a></p>
<div>
<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Workbench-Rev8-Framing-1.jpg" rel="lightbox[961]"><img class="galleryfloat" title="Workbench-Rev8-Framing-(1)" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Workbench-Rev8-Framing-1-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Workbench-Rev8-Tabletop-1.jpg" rel="lightbox[961]"><img class="galleryfloat" title="Workbench-Rev8-Tabletop-(1)" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Workbench-Rev8-Tabletop-1-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Workbench-Rev8-Vise-Detail.jpg" rel="lightbox[961]"><img class="galleryfloat" title="Workbench-Rev8-Vise-Detail" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2010/02/Workbench-Rev8-Vise-Detail-150x150.jpg" alt="" width="150" height="150" /></a></p>
</div>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2010/02/21/a-new-workbench/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Treatment by LEED® of the Environmental Impact of HVAC Refrigerants, Fuck Yeah!</title>
		<link>http://blog.wingedvictorydesign.com/2009/07/12/the-treatment-by-leed%c2%ae-of-the-environmental-impact-of-hvac-refrigerants-fuck-yeah/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/07/12/the-treatment-by-leed%c2%ae-of-the-environmental-impact-of-hvac-refrigerants-fuck-yeah/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 04:31:22 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Etc.]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=883</guid>
		<description><![CDATA[
Today is 12 July.  There are 21 days left to study. I&#8217;ve decided to go up for my LEED GA accreditation exam on my own dime, to try an make myself a more competitive candidate if and when there are jobs again, anywhere, ever.  If you&#8217;re not familiar with it, LEED is a sustainable building [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/07/Whiteboard.jpg" rel="lightbox[883]"><img class="aligncenter size-large wp-image-885" title="Whiteboard" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/07/Whiteboard-666x500.jpg" alt="Whiteboard" width="666" height="500" /></a></p>
<p><span class="majuscule">Today is 12 July.  There are 21 days left to study.</span> I&#8217;ve decided to go up for my LEED GA accreditation exam on my own dime, to try an make myself a more competitive candidate if and when there are jobs again, anywhere, ever.  If you&#8217;re not familiar with it, LEED is a sustainable building program developed by the US Green Building Council.  I think it&#8217;s pretty great, because it addresses two problems I have with sustainable development as practiced today:</p>
<ul>
<li><span class="majuscule">Greenwashing.</span> Often, a company that wants to build some green cred will do something ostentatious like installing photovoltaics on their building.  It makes for great press releases, but for what they spent on solar cells (they&#8217;re insanely expensive, if you didn&#8217;t know), the company could have improved the insulation and windows, added daylighting controls, upgraded the outdated and inefficient HVAC system, retrofitted the plumbing fixtures with low-flow valves, instituted incentives for carpooling, and on and on and on.  The cumulative environmental effect of these small changes, many of which have short-term economic payback, far outweigh the big-dollar measures we associate with Green.  LEED requires a whole-building, life-cycle cost approach.</li>
<li><span class="majuscule">In the Future, there will be Robots.</span> Media coverage of sustainable efforts tends to focus on Blue Sky research.  Cold Fusion.  Electrical power generation from sentient dirigibles.  Cars made out of sewage.  Fine and funding-deserving research all, I&#8217;m sure, but it leads to the impression that sustainability is something we will do in the Future, with Future Technology.  The thing is, LEED certified buildings have, on average, 13% lower maintenance costs, use 26% less energy, have 27% higher levels of occupant satisfaction, and emit 33% less CO<sub>2</sub>, right now, today.  While LEED rewards innovation, the majority of credits must come from existing, proven, cost effective technologies.</li>
</ul>
<p>Anyway, I&#8217;ve been studying for about a week now, and have three more weeks to go.  The study materials cover a lot of subjects that are well outside my comfort zone: construction materials, plumbing, HVAC, sustainable purchasing.  As I alluded to in the post title, some of these subjects are more interesting to me than others.  But in the end I think it&#8217;s going to make me a much better lighting designer, in giving me some awareness of the trade-offs other disciplines deal with, and how my choices affect them.  If you&#8217;re interested, here are the primary exam materials and the secondary materials that seemed particularly interesting or relevant:</p>
<ul>
<li>LEED for Operations &amp; Maintenance Reference Guide-Introduction (U.S. Green Building Council, 2008)</li>
<li>LEED for Operations &amp; Maintenance Reference Guide-Glossary (U.S. Green Building Council, 2008)</li>
<li>LEED for Homes Rating System (U.S. Green Building Council, 2008)</li>
<li>Cost of Green Revisited, by Davis Langdon (2007) </li>
<li>Sustainable Building Technical Manual: Part II, by Anthony Bernheim and William Reed (1996)</li>
<li>The Treatment by LEED® of the Environmental Impact of HVAC Refrigerants (LEED Technical and Scientific Advisory Committee, 2004)</li>
<li>Guidance on Innovation &amp; Design (ID) Credits (US Green Building Council, 2004)</li>
<li>Guidelines for CIR Customers (US Green Building Council, 2007)</li>
<li>Green Building &amp; LEED Core Concepts Guide, 1st Edition (US Green Building Council, 2009)</li>
<li>AIA Integrated Project Delivery: A Guide (www.aia.org)</li>
<li>LEED for Operations &amp; Maintenance Reference Guide-Introduction (U.S. Green Building Council, 2008)</li>
<li>LEED for Operations &amp; Maintenance Reference Guide-Glossary (U.S. Green Building Council, 2008)</li>
<li>LEED for Homes Rating System (U.S. Green Building Council, 2008)</li>
<li>Cost of Green Revisited, by Davis Langdon (2007)</li>
<li>Sustainable Building Technical Manual: Part II, by Anthony Bernheim and William Reed (1996)</li>
<li>The Treatment by LEED® of the Environmental Impact of HVAC Refrigerants (LEED Technical and Scientific Advisory Committee, 2004)</li>
<li>Guidance on Innovation &amp; Design (ID) Credits (US Green Building Council, 2004)</li>
<li>Guidelines for CIR Customers (US Green Building Council, 2007)</li>
<li>Energy Performance of LEED® for New Construction Buildings: Final Report, by Cathy Turner and Mark Frankel (2008)</li>
<li>Guide to Purchasing Green Power (Environmental Protection Agency, 2004)</li>
</ul>
<div id="attachment_884" class="wp-caption aligncenter" style="width: 676px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/07/Binder.jpg" rel="lightbox[883]"><img class="size-large wp-image-884 " title="Binder" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/07/Binder-666x500.jpg" alt="Book of Sorrows, 3rd Ed." width="666" height="500" /></a><p class="wp-caption-text">Book of Sorrows, 4th Ed.</p></div>
<p>My exam is on the 3rd, wish me luck!</p>
<p><span class="majuscule">Update:</span> I passed!  I&#8217;m now a LEED Green Associate.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/07/12/the-treatment-by-leed%c2%ae-of-the-environmental-impact-of-hvac-refrigerants-fuck-yeah/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rev13 of the Arduino DMX Reception Software Released</title>
		<link>http://blog.wingedvictorydesign.com/2009/07/10/rev13-of-the-arduino-dmx-reception-software-released/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/07/10/rev13-of-the-arduino-dmx-reception-software-released/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 17:33:59 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Lighting]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=867</guid>
		<description><![CDATA[New in this version:

Tested and working with IDE version 0016.
The number of channels to receive is now easily user-configurable.
Replaced static variables with #define statements for RAM optimization (+48 bytes, woot!).

You can grab it here or mosey on over to the original post for the instructions.
]]></description>
			<content:encoded><![CDATA[<p class="majuscule">New in this version:</p>
<ul>
<li>Tested and working with IDE version 0016.</li>
<li>The number of channels to receive is now easily user-configurable.</li>
<li>Replaced static variables with <span class="inlinecode">#define</span> statements for RAM optimization (+48 bytes, woot!).</li>
</ul>
<p>You can grab it <a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/03/receiver_rev13.zip">here</a> or mosey on over to the <a href="http://blog.wingedvictorydesign.com/2009/03/20/receive-dmx-512-with-an-arduino/">original post</a> for the instructions.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/07/10/rev13-of-the-arduino-dmx-reception-software-released/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>What am I to do with this?</title>
		<link>http://blog.wingedvictorydesign.com/2009/06/25/what-am-i-to-do-with-this/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/06/25/what-am-i-to-do-with-this/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 03:05:45 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Etc.]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=849</guid>
		<description><![CDATA[I bought this gamma ray counter for $15 from Surplus Gizmos, intending to use it as an enclosure for another project.  Any ideas?  It appears to be from the late sixties, and has a tube inside to amplify the signal from the particle chamber.
Thing is, it still works.  As near as I can tell anyway, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/gamma1.jpg" rel="lightbox[849]"><img class="aligncenter size-large wp-image-853" title="gamma1" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/gamma1-666x500.jpg" alt="gamma1" width="666" height="500" /></a>I bought this gamma ray counter for $15 from Surplus Gizmos, intending to use it as an enclosure for another project.  Any ideas?  It appears to be from the late sixties, and has a tube inside to amplify the signal from the particle chamber.</p>
<p>Thing is, it still works.  As near as I can tell anyway, not having a source of gamma rays to test it against.  And the quality of design and construction is so nice, now I feel bad about Frankensteining it.  In the coming zombie apocalypse, I&#8217;m sure it&#8217;ll come in useful.</p>
<div id="attachment_854" class="wp-caption aligncenter" style="width: 385px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/gamma2.jpg" rel="lightbox[849]"><img class="size-large wp-image-854" title="gamma2" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/gamma2-375x500.jpg" alt="gamma2" width="375" height="500" /></a><p class="wp-caption-text">brainsss....</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/06/25/what-am-i-to-do-with-this/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Arduino Theremin/Synth Final Walkthrough</title>
		<link>http://blog.wingedvictorydesign.com/2009/06/20/arduino-thereminsynth-final-walkthrough/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/06/20/arduino-thereminsynth-final-walkthrough/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 04:29:13 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=752</guid>
		<description><![CDATA[
It&#8217;s Done! I gave it to my sister last weekend and she really liked it.  If you&#8217;re just tuning in now, I have posts about the hardware development, waveform crafting, an early demonstration, and the software algorithm.  The final version has the following features:

Four octaves of continuous pitch variation by moving your hand nearer or [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/P1000478DNG.jpg" rel="lightbox[752]"><!--pagetitle:Part I: Demonstration--><img class="aligncenter size-full wp-image-754" title="P1000478DNG" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/P1000478DNG.jpg" alt="P1000478DNG" width="1000" height="750" /></a></p>
<p><span class="majuscule">It&#8217;s Done!</span> I gave it to my sister last weekend and she really liked it.  If you&#8217;re just tuning in now, I have posts about the <a href="http://blog.wingedvictorydesign.com/2009/06/04/arduino-thereminsynth-update-ii/" target="_blank">hardware development</a>, <a href="http://blog.wingedvictorydesign.com/2009/05/26/arduino-thereminsynthesizer-update/">waveform crafting</a>, an <a href="http://blog.wingedvictorydesign.com/2009/05/20/arduino-audio-output-from-a-capacitive-input/">early demonstration</a>, and the <a href="http://blog.wingedvictorydesign.com/2009/05/29/generate-real-time-audio-on-the-arduino-using-pulse-code-modulation/">software algorithm</a>.  The final version has the following features:</p>
<ul>
<li>Four octaves of continuous pitch variation by moving your hand nearer or farther from an ultrasound sensor</li>
<li>Digital volume control</li>
<li>Continuous waveform variation&#8211;can generate a pure sine tone like a classic theremin, or one with overtones, which sounds like an 80&#8217;s synth organ.</li>
<li>Spectral glide&#8211;similar to a Wah pedal or the instrument used in Peter Frampton&#8217;s &#8216;Do You Feel Like I Do&#8217;</li>
<li>Decay/Sustain&#8211;envelope shaping to play notes</li>
<li>Distortion&#8211;sounds like the guitar effect.</li>
</ul>
<p class="majuscule">Listen to the Tone of the Future:</p>
<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/Theremin-Synth-Rev1.mp3">Download audio file (Theremin-Synth-Rev1.mp3)</a></p>
<ol>
<li>0:00-0:00 Pure tone, no effects</li>
<li>0:45 Waveform selection&#8211; no overtones</li>
<li>1:05 Decay effects</li>
<li>1:37 Wah</li>
<li>2:45 Distortion</li>
</ol>
<p>And here is a video with me demonstrating the operation (and also explaining several key features completely incorrectly):</p>
<p>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" 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://www.youtube.com/v/WZS85tdsmSQ&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/WZS85tdsmSQ&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</p>
<p><br class="spacer_" /></p>
<p><a href="http://blog.wingedvictorydesign.com/?p=752&amp;page=2"><em><strong>Keep reading for a walkthrough of the hardware and software&#8230;</strong></em></a></p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/06/20/arduino-thereminsynth-final-walkthrough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/Theremin-Synth-Rev1.mp3" length="3447443" type="audio/mpeg" />
		</item>
		<item>
		<title>Arduino Theremin/Synth Update II</title>
		<link>http://blog.wingedvictorydesign.com/2009/06/04/arduino-thereminsynth-update-ii/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/06/04/arduino-thereminsynth-update-ii/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 03:13:23 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=715</guid>
		<description><![CDATA[The Hardware, Oh the Hardware. I&#8217;ve been making some great progress on shaping the generated tone and getting some more musicality &#8212; I&#8217;ve programmed a decay function and that&#8217;s made a huge difference, depending on the input values I&#8217;ve got a pretty good harp simulacrum, and also something that sounds like an early 1980&#8217;s analog [...]]]></description>
			<content:encoded><![CDATA[<p><span class="majuscule">The Hardware, Oh the Hardware.</span> I&#8217;ve been making some great progress on shaping the generated tone and getting some more musicality &#8212; I&#8217;ve programmed a decay function and that&#8217;s made a huge difference, depending on the input values I&#8217;ve got a pretty good harp simulacrum, and also something that sounds like an early 1980&#8217;s analog synth piano, which I &lt;3.  I&#8217;ll try to get a demo up of where I&#8217;m at with tonality.  Mainly, I&#8217;ve been trying to figure out the analog inputs to control the tone sensing, as well as volume, attack, decay, echo, etc.  This is really two separate problems.  For the frequency control, I want to detect distance from 2&#8243;-3&#8242; with good precision, stability, and ideally linearity.  For the volume and effects control, I want a 0-5V analog input over about 1-1.5&#8243; of travel, that can be operated with a single finger.  Here&#8217;s what I&#8217;ve looked at:</p>
<ul>
<li><span class="majuscule">Capacitance Sensing,</span> which is what&#8217;s shown in the demo video from my last post.  One digital output pin on the Arduino charges up a foil plate, and then discharges it.  Another high-impedance input pin detects how long it takes for the plate voltage to cross the threshold from HIGH to LOW, or vice versa.  As you move your hand towards the plate, it increases the capacitance of the system, increasing the charge/discharge time.  My original plan was to use this method, but it wasn&#8217;t stable or accurate, and also since my enclosure is a metal box, the capacitance between the enclosure and the plate was much larger than that introduced by my hand, so I scrapped it.</li>
<li><span class="majuscule">Heterodyne Sensing</span>, like a traditional Theremin.  In this getup, you have two RC oscillator circuits.  The capacitor part of one oscillator is connected to an antenna, and as you bring your hand nearer it increases the capacitance of the system, which reduces the oscillation frequency minutely.  Then, you use a NAND gate to heterodyne, or subtract out the matching frequencies of the two oscillators, leaving the mismatch.  From what I&#8217;ve gathered, there&#8217;s a lot of art involved in building a good Theremin sensor circuit, and in any case it&#8217;s not linear.  I played around with this some, but I couldn&#8217;t really get it to do what I wanted it to.</li>
<li><span class="majuscule">Light Detection with a Phototransistor.</span> An infrared LED bounces light off your hand, which is detected by a phototransistor of matched spectrum sensitivity.  I tried this, but I couldn&#8217;t get much more than a binary sense input a few inches away from the sensor.  Sharp makes a line of infrared rangefinders (the GP2D12, e.g.) that use a linear ccd sensor to do angle detection rather than amplitude sensing, which can apparently detect objects accurately up to 6&#8242; away.  Plus, they&#8217;re cheap and they output a simple 0-3V output.  However, I couldn&#8217;t source one locally.</li>
<li><span class="majuscule">Ultrasound.</span> After trying and failing with the above, I ponied up $35 for a Parallax Ping.  They output distance as pulse length.  Not cheap, but I can&#8217;t argue with the results&#8211; It&#8217;s accurate, stable, and even linear.  I&#8217;m using it for the frequency control, as it can go out to 3&#8242; without breaking a sweat.</li>
<li><span class="majuscule">Light Detection with a CDS Photoresistor.</span> This is what I&#8217;m using for the volume and effects sensors, detailed below.</li>
</ul>
<p><span class="majuscule">Goddamn Photoresistors: </span>CDS photoresistors are cheap and easily available, but getting them to go through their resistance range smoothly is a real challenge.  Early on, I discovered that if I moved a green LED closer or farther away from the sensor, it gave a much smoother response than if I tried to modulate the ambient light.  So in my first attempt at creating a control, I used the humble toggle bolt.  I mounted it up with the led on top and the photoresistor on the bottom, like so:</p>
<div style="width: 100%;"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/toggle-bolt.jpg" rel="lightbox[715]"><img class="galleryfloat" title="toggle-bolt" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/toggle-bolt-150x150.jpg" alt="toggle-bolt" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/lever1.jpg" rel="lightbox[715]"><img class="galleryfloat" title="lever1" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/lever1-150x150.jpg" alt="lever1" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/lever2.jpg" rel="lightbox[715]"><img class="galleryfloat" title="lever2" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/lever2-150x150.jpg" alt="lever2" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/lever3.jpg" rel="lightbox[715]"><img class="galleryfloat" title="lever3" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/lever3-150x150.jpg" alt="lever3" width="150" height="150" /></a></div>
<p>This worked okay in near or complete darkness, but not so much during the day&#8211;even ambient skylight is larger than the LED output by a few orders of magnitude.  Which is a pity, because it would have looked cool, with all four levers mounted on the box and the wires coming out of them it had sort of a steampunk prosthetic hand look.  It&#8217;s possible that I could have improved it by mounting the photocell on the lever and the LED below, but it had other problems as well&#8211; the levers needed some kind of extension on them to keep your fingers from slipping off them, and the whole assembly was kind of fussy.</p>
<p>Next, I tried the hollow expansion bolts, with the LED and photocell mounted inside, like so:</p>
<div style="width: 100%;"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button.jpg" rel="lightbox[715]"><img class="galleryfloat" title="push-button" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-150x150.jpg" alt="push-button" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-2.jpg" rel="lightbox[715]"><img class="galleryfloat" title="push-button-2" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-2-150x150.jpg" alt="push-button-2" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-3.jpg" rel="lightbox[715]"><img class="galleryfloat" title="push-button-3" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-3-150x150.jpg" alt="push-button-3" width="150" height="150" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-4.jpg" rel="lightbox[715]"><img class="galleryfloat" title="push-button-4" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/push-button-4-150x150.jpg" alt="push-button-4" width="150" height="150" /></a></div>
<p>This works smoothly over a dynamic range of about 700 with the default analogRead() function.  I&#8217;m thinking that I can put a tab on top of them to make them look like organ stops, which would be hot.  I&#8217;m going to try manually configuring the Arduino ADC for 8-bit mode to try and squeeze a little more speed out of them&#8211; five sensors x 100μS + processing time with the default analogRead() function may make the loop too slow, and an 8-bit data format would be more convenient for processing anyway.  The mechanism is going to be good for set-and-hold controls, but for the volume control I wanted something a little more dynamic, so prototype #3:</p>
<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/dome-sensor-1.jpg" rel="lightbox[715]"><img class="aligncenter size-full wp-image-744" title="dome-sensor-1" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/dome-sensor-1.jpg" alt="dome-sensor-1" width="1000" height="750" /></a><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/dome-sensor-2.jpg" rel="lightbox[715]"><img class="aligncenter size-full wp-image-745" title="dome-sensor-2" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/06/dome-sensor-2.jpg" alt="dome-sensor-2" width="1000" height="750" /></a></p>
<p>The ping pong ball does a excellent job of diffusing the ambient light so that the response is smooth.</p>
<p>I&#8217;ve made a number of unneccesary holes in the enclosure, and also scratched it up some.  I&#8217;m not happy about that, and the lesson here is when you do a project that&#8217;s this complex, do a prototype.  But I&#8217;m kind of enjoying working fast and sloppy, too.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/06/04/arduino-thereminsynth-update-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate Real-time Audio on the Arduino using Pulse Code Modulation</title>
		<link>http://blog.wingedvictorydesign.com/2009/05/29/generate-real-time-audio-on-the-arduino-using-pulse-code-modulation/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/05/29/generate-real-time-audio-on-the-arduino-using-pulse-code-modulation/#comments</comments>
		<pubDate>Sat, 30 May 2009 03:17:42 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=666</guid>
		<description><![CDATA[
So. There are a bewildering variety of options for generating sound via the Arduino, but I&#8217;m trying to make a real-time synthesizer, with the following features:

Arbitrary waveform shape, including the ability to add harmonics for a more musical sound
Generate any frequency dependent on sensor input
Efficient processor usage to allow for effects such as reverb, echo, [...]]]></description>
			<content:encoded><![CDATA[<p><!--pagetitle:Part I: Features--></p>
<div id="attachment_922" class="wp-caption aligncenter" style="width: 676px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/waveform-oscilloscope1.jpg" rel="lightbox[666]"><img class="size-large wp-image-922" title="waveform-oscilloscope" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/waveform-oscilloscope1-666x500.jpg" alt="TEK-434 1973-2009 RIP :(" width="666" height="500" /></a><p class="wp-caption-text">TEK-434 1973-2009 RIP :(</p></div>
<p><span class="majuscule">So.</span> There are a bewildering variety of <a href="http://www.arduino.cc/playground/Code/PCMAudio">options</a> for generating sound via the Arduino, but I&#8217;m trying to make a real-time synthesizer, with the following features:</p>
<ul>
<li>Arbitrary waveform shape, including the ability to add harmonics for a more musical sound</li>
<li>Generate any frequency dependent on sensor input</li>
<li>Efficient processor usage to allow for effects such as reverb, echo, envelope shaping, etc.</li>
<li>A minimum of external hardware</li>
</ul>
<p>Audio output for the Arduino is pretty well-tilled soil, but surprisingly most of the previously published options are geared towards canned sound playback, or tone generation without a focus on musicality.  I&#8217;ve implemented an algorithm called Pulse Code Modulation, and I think it has a lot of potential.  Keep reading for an explanation of how it works and why it&#8217;s awesome.</p>
<p><a href="http://blog.wingedvictorydesign.com/2009/05/29/generate-real-time-audio-on-the-arduino-using-pulse-code-modulation/2/"><em>Continue to page 2&#8230;</em></a></p>
<p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/05/29/generate-real-time-audio-on-the-arduino-using-pulse-code-modulation/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Arduino Theremin/Synthesizer Update</title>
		<link>http://blog.wingedvictorydesign.com/2009/05/26/arduino-thereminsynthesizer-update/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/05/26/arduino-thereminsynthesizer-update/#comments</comments>
		<pubDate>Wed, 27 May 2009 02:09:05 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=636</guid>
		<description><![CDATA[An Update: I&#8217;ve made considerable progress in improving the quality of the audio output.  In the prior post, I was generating a square wave with the pulse frequency determined by an input from a capacitive sensor.  It sounded, to put it succinctly, awful.  Since I was generating it through the main loop() code, it was [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_638" class="wp-caption aligncenter" style="width: 660px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/whiteboard-concept-1.jpg" rel="lightbox[636]"><img class="size-full wp-image-638" title="concept" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/whiteboard-concept-1.jpg" alt="Banana bread and chips were vital to the DAC processing" width="1000" height="750" /></a><p class="wp-caption-text">Banana bread and chips were vital to the DAC processing</p></div>
<p><span class="majuscule">An Update:</span> I&#8217;ve made considerable progress in improving the quality of the audio output.  In the prior post, I was generating a square wave with the pulse frequency determined by an input from a capacitive sensor.  It sounded, to put it succinctly, awful.  Since I was generating it through the main loop() code, it was also susceptible to processor load problems, i.e. when an analogRead() was done, it would stop the waveform generation and start it again for ~100mS.  I&#8217;m now using interrupt-driven Pulse Code Modulation to generate an arbitrary waveform, and it sounds surprisingly decent, actually.</p>
<p style="text-align: left;"><span class="majuscule">It&#8217;s Like This, Y&#8217;all:</span> Since with this setup I can generate an arbitrary waveform, I first spent some time investigating what makes a tone sound musical, or not.  I started by taking a recorded piano key and doing a frequency spectrum analysis of it in Audacity.  Here&#8217;s what that looks like:</p>
<div id="attachment_645" class="wp-caption aligncenter" style="width: 660px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/piano-waveform.jpg" rel="lightbox[636]"><img class="size-full wp-image-645" title="piano-waveform" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/piano-waveform.jpg" alt="piano-waveform" width="1000" height="625" /></a><p class="wp-caption-text">The waveform of a middle C (261.626Hz) piano key</p></div>
<p>And the accompanying spectrum analysis:</p>
<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/piano-spectrum.jpg" rel="lightbox[636]"><img class="aligncenter size-full wp-image-647" title="piano-spectrum" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/piano-spectrum.jpg" alt="piano-spectrum" width="1000" height="601" /></a></p>
<p>You can see that the strongest tone is at the fundamental frequency of middle C, 261Hz.  But there are also spikes at the harmonics of that frequency, e.g. 523Hz, 784Hz, 1046Hz.  Interestingly enough, the strongest harmonics are those corresponding to powers of 2, i.e. <em>f</em> * 2<sup>n</sup>.  I&#8217;ve read that even-numbered harmonics are more pleasant-sounding than odd-numbered harmonics, and this would seem to support that idea.  Also, as you add in the odd-numbered harmonics, the waveform approaches a triangle wave, which is definitely less pleasant to listen to than a sine wave.</p>
<p><span class="majuscule">Thus Informed</span>, I started working to create a waveform of my own.  I set up a frequency and a bunch of multiples of it in Audacity, and played around with increasing or decreasing the amplitude of specific overtones, until I had a sound I was happy with, like so:</p>
<div id="attachment_648" class="wp-caption aligncenter" style="width: 660px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/middle-c-tone.jpg" rel="lightbox[636]"><img class="size-full wp-image-648" title="middle-c-tone" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/middle-c-tone.jpg" alt="middle-c-tone" width="1000" height="601" /></a><p class="wp-caption-text">On the left, you can see that I&#39;ve varied the amplitude of the various overtones</p></div>
<p>From this I discovered that the undertone (1/2 * <em>f</em>) and other partials make a huge difference in the quality of the tone.  I wanted to post this file up so other people can play around with it, but apparently with the associated sample files it&#8217;s around 50Mb, so you&#8217;ll have to recreate it yourself.  I highly recommend it, it&#8217;s interesting.  For comparison, here is a recording of a piano, middle c tone:</p>
<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/grand-piano-fazioli-major-c-middle1.wav">grand-piano-fazioli-major-c-middle1</a></p>
<p>And here&#8217;s my generated tone:</p>
<p><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/middle-c-generated-rev1.wav">middle-c-generated-rev1</a></p>
<p>The generated version sounds different because there&#8217;s no envelope shaping on it&#8211; it&#8217;s just a constant amplitude.  However, I if you listen to both a few times the tone is somewhat similar.</p>
<p>Next, I started working at digitizing a single waveform.  I couldn&#8217;t figure out an easy way to do this directly from my generated tone, so instead I built the values in Excel:</p>
<p><br class="spacer_" /></p>
<div id="attachment_654" class="wp-caption aligncenter" style="width: 660px"><a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/excel-wave.jpg" rel="lightbox[636]"><img class="size-full wp-image-654" title="excel-wave" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/excel-wave.jpg" alt="handcrafted!" width="1000" height="601" /></a><p class="wp-caption-text">handcrafted!</p></div>
<p>I then copied the summed values (column N) into a 48 element char array in my Arduino sketch.  If you want this spreadsheet, <a href="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/frequency-chart-rev1.xls">here ya go</a>.  Finally, here&#8217;s another Unintended Comedy Amateur Hour video of me playing around with the generated sound in the Arduino:</p>
<p style="text-align: center;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" 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://www.youtube.com/v/9B815TkZ_HA&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/9B815TkZ_HA&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</p>
<p>I&#8217;m going to talk a little more about the specific programming techniques I used to make the Arduino do this in a separate post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/05/26/arduino-thereminsynthesizer-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/grand-piano-fazioli-major-c-middle1.wav" length="705644" type="audio/x-wav" />
<enclosure url="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/middle-c-generated-rev1.wav" length="883814" type="audio/x-wav" />
		</item>
		<item>
		<title>Arduino audio output from a capacitive input</title>
		<link>http://blog.wingedvictorydesign.com/2009/05/20/arduino-audio-output-from-a-capacitive-input/</link>
		<comments>http://blog.wingedvictorydesign.com/2009/05/20/arduino-audio-output-from-a-capacitive-input/#comments</comments>
		<pubDate>Thu, 21 May 2009 04:50:43 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://blog.wingedvictorydesign.com/?p=619</guid>
		<description><![CDATA[
Lookee Lookee What I Did Today: So my sister is currently pursuing a PHD in music (theory) at the University of Chicago, and for her birthday, I thought I&#8217;d make her a sort-of theremin instrument.  Her birthday was three months ago, but whatever, right?  Today, I started playing around with how that would work using [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-large wp-image-630" title="2009-05-20-210118" src="http://blog.wingedvictorydesign.com/wp-content/uploads/2009/05/2009-05-20-210118-1024x768.jpg" alt="2009-05-20-210118" width="1024" height="768" /></p>
<p><span class="majuscule">Lookee Lookee What I Did Today:</span> So my sister is currently pursuing a PHD in music (theory) at the University of Chicago, and for her birthday, I thought I&#8217;d make her a sort-of theremin instrument.  Her birthday was three months ago, but whatever, right?  Today, I started playing around with how that would work using an Arduino.  In lieu of 1,000 words, here&#8217;s a YouTube video showing the setup (and also saying um a lot.  Web 3.0!):</p>
<p style="text-align: center">
<object width="425" height="344" data="http://www.youtube.com/v/AkEv6UiLHeY&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/AkEv6UiLHeY&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object>
</p>
<p>And demonstrating the operation:</p>
<p style="text-align: center;">
<object width="425" height="344" data="http://www.youtube.com/v/9qA1T5O9TmQ&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/9qA1T5O9TmQ&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object>
</p>
<p>Right now I&#8217;m investigating capacitance for the input, but I may go for the authentic heterodyne sensing, if I can get it done in time (I&#8217;m visiting her in three weeks).</p>
<p>I based the sensor code off Paul Badger&#8217;s example <a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259">here</a>.  He documents it pretty well, and this is just a starting point anyway, so I&#8217;m not going to put up a schematic or example code right now.</p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wingedvictorydesign.com/2009/05/20/arduino-audio-output-from-a-capacitive-input/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
