<?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"
	>

<channel>
	<title>zedomax.com &#187; Arduino</title>
	<atom:link href="http://zedomax.com/blog/category/arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://zedomax.com/blog</link>
	<description>Zedomax - The Best of DIY, Hacks, Gadgets, and Internet Marketing.</description>
	<pubDate>Sun, 06 Jul 2008 09:14:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>DIY HACK - HOWTO make some sounds with Arduino! Sound Part 3 - Playing a Melody</title>
		<link>http://zedomax.com/blog/2007/11/24/diy-hack-howto-make-some-sounds-with-arduino-sound-part-3-playing-a-melody/</link>
		<comments>http://zedomax.com/blog/2007/11/24/diy-hack-howto-make-some-sounds-with-arduino-sound-part-3-playing-a-melody/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 10:30:09 +0000</pubDate>
		<dc:creator>max</dc:creator>
		
		<category><![CDATA[Arduino]]></category>

		<category><![CDATA[Audio]]></category>

		<category><![CDATA[Circuits]]></category>

		<category><![CDATA[Cool]]></category>

		<category><![CDATA[DoItYourself!]]></category>

		<category><![CDATA[Hack]]></category>

		<category><![CDATA[Microcontroller]]></category>

		<category><![CDATA[Music]]></category>

		<category><![CDATA[big_bang]]></category>

		<category><![CDATA[bit_bang]]></category>

		<category><![CDATA[cool_audio]]></category>

		<category><![CDATA[cycles_per_second]]></category>

		<category><![CDATA[cycle_time]]></category>

		<category><![CDATA[frequency]]></category>

		<category><![CDATA[learn_to_play]]></category>

		<category><![CDATA[melody]]></category>

		<category><![CDATA[output_pin]]></category>

		<category><![CDATA[reciprocal]]></category>

		<category><![CDATA[thermostat]]></category>

		<category><![CDATA[toggle]]></category>

		<category><![CDATA[video_controller]]></category>

		<guid isPermaLink="false">http://zedomax.com/blog/2007/11/24/diy-hack-howto-make-some-sounds-with-arduino-sound-part-3-playing-a-melody/</guid>
		<description><![CDATA[ 

Check out the Part 3 of &#8220;HOWTO make sounds with Ardunio&#8221; and learn to play melody.
Bit-Banging Sound
To bit-bang sound we toggle an output pin at the desired frequency. To play a musical note, we need to use specific frequencies and play the sound for a specific amount of time.
Generating the desired frequency big-bang style means [...] ]]></description>
			<content:encoded><![CDATA[
<p style="text-align: center"><img src="http://zedomax.com/blog/wp-content/uploads/2007/11/arduinosoundpart3bb-3.jpg" alt="DIY HACK - HOWTO make some sounds with Arduino! Sound Part 3 - Playing a Melody" /></p>
<p>Check out the <a href="http://www.uchobby.com/index.php/2007/11/22/arduino-sound-part-3-playing-a-melody/">Part 3 of &#8220;HOWTO make sounds with Ardunio&#8221; and learn to play melody</a>.</p>
<blockquote><p>Bit-Banging Sound<br />
To bit-bang sound we toggle an output pin at the desired frequency. To play a musical note, we need to use specific frequencies and play the sound for a specific amount of time.</p>
<p>Generating the desired frequency big-bang style means figuring out what the period or cycle time of the desired frequency is. This is easy to calculate, it’s the reciprocal (1/F) of the frequency. As we found in part 2, 1KHz is 1000 cycles per second. So, one cycle takes 1 one-thousandth (1/1000) of a second or 0.001 seconds (1 millisecond). We need to toggle the pin at this rate so we want to keep it low for 1/2 the time then high for 1/2 the time. Therefore we want to set the I/O pin low for 500uS, then high for 500uS and do this over and over for as long as the duration requires.</p></blockquote>
<p><a href="http://zedomax.com/blog/2007/11/14/diy-hack-howto-make-some-sounds-with-arduino/">Part I and Part II</a></p>
<p><a href="http://www.uchobby.com/index.php/2007/11/22/arduino-sound-part-3-playing-a-melody/">via uchobby</a></p>
<p>Related Posts:</p>
<p style="text-align: center"><img src="http://zedomax.com/blog/wp-content/uploads/2007/10/arduinobeerthermostatfigure3-1.jpg" alt="DIY HACK - HOWTO make a Arduino Beer Thermostat3" /></p>
<p><a href="http://zedomax.com/blog/2007/10/08/diy-hack-howto-make-a-arduino-beer-thermostat/"> HOWTO make Beer Thermostat with Arduino</a></p>
<p style="text-align: center"><img src="http://zedomax.com/image/200611/audiovideocontroller.jpg" alt="http://zedomax.com/image/200611/audiovideocontroller.jpg" /></p>
<p><a href="http://zedomax.com/blog/2006/12/02/diy-hack-audio-and-video-controller-using-arduino/">Here’s a cool audio and video controller DIY using Arduino.</a></p>
<p><a href="http://zedomax.com/blog/2007/11/14/diy-hack-howto-make-some-sounds-with-arduino/"><br />
</a></p>

	<span style="display:none"><a href="http://zedomax.com/blog/category/arduino/" title="Arduino" rel="tag">Arduino</a>, <a href="http://zedomax.com/blog/tag/arduino/" title="Arduino" rel="tag">Arduino</a>, <a href="http://zedomax.com/blog/category/audio/" title="Audio" rel="tag">Audio</a>, <a href="http://zedomax.com/blog/tag/audio/" title="Audio" rel="tag">Audio</a>, <a href="http://zedomax.com/blog/tag/big_bang/" title="big_bang" rel="tag">big_bang</a>, <a href="http://zedomax.com/blog/tag/bit_bang/" title="bit_bang" rel="tag">bit_bang</a>, <a href="http://zedomax.com/blog/category/computer/circuits/" title="Circuits" rel="tag">Circuits</a>, <a href="http://zedomax.com/blog/tag/circuits/" title="Circuits" rel="tag">Circuits</a>, <a href="http://zedomax.com/blog/category/cool/" title="Cool" rel="tag">Cool</a>, <a href="http://zedomax.com/blog/tag/cool/" title="Cool" rel="tag">Cool</a>, <a href="http://zedomax.com/blog/tag/cool_audio/" title="cool_audio" rel="tag">cool_audio</a>, <a href="http://zedomax.com/blog/tag/cycles_per_second/" title="cycles_per_second" rel="tag">cycles_per_second</a>, <a href="http://zedomax.com/blog/tag/cycle_time/" title="cycle_time" rel="tag">cycle_time</a>, <a href="http://zedomax.com/blog/category/diy/" title="DoItYourself!" rel="tag">DoItYourself!</a>, <a href="http://zedomax.com/blog/tag/diy/" title="DoItYourself!" rel="tag">DoItYourself!</a>, <a href="http://zedomax.com/blog/tag/doityourself/" title="DoItYourself!" rel="tag">DoItYourself!</a>, <a href="http://zedomax.com/blog/tag/frequency/" title="frequency" rel="tag">frequency</a>, <a href="http://zedomax.com/blog/category/diy/hack/" title="Hack" rel="tag">Hack</a>, <a href="http://zedomax.com/blog/tag/hack/" title="Hack" rel="tag">Hack</a>, <a href="http://zedomax.com/blog/tag/learn_to_play/" title="learn_to_play" rel="tag">learn_to_play</a>, <a href="http://zedomax.com/blog/tag/melody/" title="melody" rel="tag">melody</a>, <a href="http://zedomax.com/blog/category/computer/microcontroller/" title="Microcontroller" rel="tag">Microcontroller</a>, <a href="http://zedomax.com/blog/tag/microcontroller/" title="Microcontroller" rel="tag">Microcontroller</a>, <a href="http://zedomax.com/blog/category/audio/music/" title="Music" rel="tag">Music</a>, <a href="http://zedomax.com/blog/tag/music/" title="Music" rel="tag">Music</a>, <a href="http://zedomax.com/blog/tag/output_pin/" title="output_pin" rel="tag">output_pin</a>, <a href="http://zedomax.com/blog/tag/reciprocal/" title="reciprocal" rel="tag">reciprocal</a>, <a href="http://zedomax.com/blog/tag/thermostat/" title="thermostat" rel="tag">thermostat</a>, <a href="http://zedomax.com/blog/tag/toggle/" title="toggle" rel="tag">toggle</a>, <a href="http://zedomax.com/blog/tag/video_controller/" title="video_controller" rel="tag">video_controller</a></span>
]]></content:encoded>
			<wfw:commentRss>http://zedomax.com/blog/2007/11/24/diy-hack-howto-make-some-sounds-with-arduino-sound-part-3-playing-a-melody/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
