<?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>PlayArduino.fr &#187; musique</title>
	<atom:link href="http://www.playarduino.fr/tag/musique/feed" rel="self" type="application/rss+xml" />
	<link>http://www.playarduino.fr</link>
	<description>L&#039;actualité Arduino en Français</description>
	<lastBuildDate>Thu, 25 Feb 2010 15:30:19 +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>Utiliser un buzzeur avec l&#8217;Arduino</title>
		<link>http://www.playarduino.fr/2009/10/utilisation-buzzer-arduino-son-syntetiser.html</link>
		<comments>http://www.playarduino.fr/2009/10/utilisation-buzzer-arduino-son-syntetiser.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 20:04:28 +0000</pubDate>
		<dc:creator>Michael Hurni</dc:creator>
				<category><![CDATA[Actualité]]></category>
		<category><![CDATA[Projets]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[buzzer]]></category>
		<category><![CDATA[musique]]></category>

		<guid isPermaLink="false">http://www.playarduino.fr/?p=133</guid>
		<description><![CDATA[




Un tutoriel fort intéressant chez Instructables.com, qui nous explique comment buzzer. Ce tutoriel est d&#8217;autant plus intéressant, dans la mesure où il ne se borne pas à émettre une succession de fréquences sur une durée plus ou moins longue, mais bien de simuler une sorte de vibrato rendant là chose moins &#8220;sonnerie de téléphone monophonique&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<div class="col-left">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" 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/t2n0T5jdNA4&amp;hl=fr&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://www.youtube.com/v/t2n0T5jdNA4&amp;hl=fr&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<div class="col-right">
<p>
Un tutoriel fort intéressant chez <a href="http://www.instructables.com/id/Play-the-French-Can-Can-Using-an-Arduino-and-Buzze/">Instructables.com</a>, qui nous explique comment buzzer. Ce tutoriel est d&#8217;autant plus intéressant, dans la mesure où il ne se borne pas à émettre une succession de fréquences sur une durée plus ou moins longue, mais bien de <strong>simuler une sorte de vibrato</strong> rendant là chose moins &#8220;sonnerie de téléphone monophonique&#8221;, et plus agréable. Enfin, à vous de juger.</p>
<p>On saluera l&#8217;originalité du montage vidéo. <strong>D&#8217;un point de vue technique rien d&#8217;exceptionnel pourtant</strong>, le matériel requis reste simple, l&#8217;Arduino toujours au coeur de l&#8217;exploit, un buzzeur et du code. L&#8217;ensemble des <a href="http://www.instructables.com/id/SU6M34XG0KQFGIG/">libraries utilisées</a> sont open-source</p>
</div>
<pre style="clear:both"><span style="color: #CC6600;">void</span> buzz(<span style="color: #996600;">int</span> targetPin, <span style="color: #996600;">long</span> frequency, <span style="color: #996600;">long</span> length) {
  <span style="color: #996600;">long</span> delayValue = 1000000/frequency/2;
  <span style="color: #996600;">long</span> numCycles = frequency * length/ 1000;
  <span style="color: #CC6600;">for</span> (<span style="color: #996600;">long</span> i=0; i &lt; numCycles; i++)
  {
    <span style="color: #996600;">digitalWrite</span>(targetPin,<span style="color: #CC0000;">HIGH</span>);
    <span style="color: #996600;">delayMicroseconds</span>(delayValue);
    <span style="color: #996600;">digitalWrite</span>(targetPin,<span style="color: #CC0000;">LOW</span>);
    <span style="color: #996600;">delayMicroseconds</span>(delayValue);
  }
}

<span style="color: #777755;">// utilisation</span>
buzz(4, 2500, 1000); <span style="color: #777755;">// buzz sur pin 4 à 2500Hz</span></pre>
<p>Voici l&#8217;une des fonctions les plus intéressantes selon moi, qui a inspiré le projet, (infos détaillées sur le <a href="http://www.faludi.com/2007/04/23/buzzer-arduino-example-code/">blog de Rob Faludi</a>) <strong>à essayer telle quelle</strong> si un buzzeur vous tombait par hasard sous la main.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.playarduino.fr/2009/10/utilisation-buzzer-arduino-son-syntetiser.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
