<?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>Invalid Function &#187; Projects</title>
	<atom:link href="http://invalidfunction.com/index.php/tag/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://invalidfunction.com</link>
	<description>Overengineering the Complicated</description>
	<lastBuildDate>Sun, 21 Aug 2011 05:06:37 +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>Arduino Controlled Music Lights!</title>
		<link>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/</link>
		<comments>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 23:19:13 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[computer engineering]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[sound analysis]]></category>

		<guid isPermaLink="false">http://invalidfunction.com/?p=45</guid>
		<description><![CDATA[About 3 months ago, I had the most random idea &#8212; I wanted a real time music visualizer. However, I just didn&#8217;t have the time to do the research necessary for this project because of homework. Well, now that I am on spring break, I decided to make a reality. And it worked! The first [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-48" title="Uh oh, what have I been up to?" src="http://invalidfunction.com/wp-content/uploads/2009/03/n1509930064_30027700_82931.jpg" alt="Uh oh, what have I been up to?" width="218" height="290" />About 3 months ago, I had the most random idea &#8212; I wanted a real time music visualizer. However, I just didn&#8217;t have the time to do the research necessary for this project because of homework. Well, now that I am on spring break, I decided to make a reality. And it worked! The first time too!</p>
<p>There are two sides of this project, the hardware and the software. The hardware part was the easy part. Mike had an <a href="http://www.arduino.cc/">Arduino</a> board laying around and I went to radioshack to buy a relay, a 9 volt battery, a diode, and a transistor. Thats basically all that is needed for the hardware side. I used the schematic found on <a href="http://www.glacialwanderer.com/hobbyrobotics/?p=9">http://www.glacialwanderer.com/hobbyrobotics/?p=9</a> to make sure I&#8217;m doing everything right. Putting this together only took about 2 hours.</p>
<p>The software side was a little bit more tricky. I tried two differently languages: <a href="http://www.mathworks.com/">MATLAB</a> and<a href="http://msdn.microsoft.com/en-us/vcsharp/aa336809.aspx"> C#.</a> Both turned out to be quite a big failure. Then I stumbled upon <a href="http://www.processing.org">Processing</a>, which is basically an extension onto Java that made it easy for visual artists to create programs. Processing included a library called <a href="http://code.compartmental.net/tools/minim/">Minim</a>, which had lots of built in features for audio analysis. I used the beat detection algorithm from Minim and then used that to send a signal to the Arduino board over USB to turn on or off the lights.</p>
<p>Basically thats all! Later I plan to find a better relay, something that lasts longer [<a href="http://en.wikipedia.org/wiki/Solid_state_relay">solid state relay</a>?], and then put it in a box so it is safer and looks better.</p>
<p>For now, enjoy the video!</p>
<p style="text-align: center;"><object width="480" height="295" data="http://www.youtube.com/v/c8ALew8pHxY&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/c8ALew8pHxY&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://invalidfunction.com/index.php/2009/03/arduino-controlled-music-lights/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

