<?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; IR</title>
	<atom:link href="http://www.playarduino.fr/tag/ir/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>Contrôler sans fil votre Mac avec une Arduino</title>
		<link>http://www.playarduino.fr/2009/11/controler-sans-fil-votre-mac-avec-une-arduino.html</link>
		<comments>http://www.playarduino.fr/2009/11/controler-sans-fil-votre-mac-avec-une-arduino.html#comments</comments>
		<pubDate>Wed, 04 Nov 2009 10:30:26 +0000</pubDate>
		<dc:creator>Michael Hurni</dc:creator>
				<category><![CDATA[Projets]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[IR]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[Wireless]]></category>

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

La folie du sans fil semble s&#8217;emparer de l&#8217;Arduino ces derniers temps. Chez Instructables.com aujourd&#8217;hui, DIY Apple Remote Shield for the Arduino, un projet très intéressant pour tous les bricoleurs Mac Addict. Il s&#8217;agit en effet de reproduire les signaux infra-rouges envoyés par l&#8217;Apple Remote.
Le projet se présente sous forme d&#8217;un shield maison, 5 boutons, [...]]]></description>
			<content:encoded><![CDATA[<div class="col-left"><img class="aligncenter" title="arduino-apple-remote-shield" src="http://hackadaycom.files.wordpress.com/2009/11/arduino-apple-remote-shield.jpg?w=470&amp;h=353" alt="" width="448" height="348" /></div>
<div class="col-right">
<p>La folie du sans fil semble s&#8217;emparer de l&#8217;Arduino ces derniers temps. Chez Instructables.com aujourd&#8217;hui, <a href="http://www.instructables.com/id/DIY-Apple-Remote-Shield-for-the-Arduino/">DIY Apple Remote Shield for the Arduino</a>, un projet très intéressant pour tous les bricoleurs Mac Addict. Il s&#8217;agit en effet de <strong>reproduire les signaux infra-rouges envoyés par l&#8217;Apple Remote</strong>.</p>
<p>Le projet se présente sous forme d&#8217;un shield maison, 5 boutons, 2 LEDs infra-rouges. <strong>L&#8217;ensemble doit coûter peut-être 1 euro</strong> (en dehors de l&#8217;Arduino), le tout pourrait même simplement se récupérer d&#8217;une vielle télécommande qui traîne dans un carton au grenier.</p>
</div>
<p>La <a href="http://www.instructables.com/files/orig/FF4/1SA7/G0SD7A1L/FF41SA7G0SD7A1L.zip">librairie utilisée</a> (ZIP) (<a href="http://www.playarduino.fr/wp-content/uploads/2009/11/AppleRemoteLib.zip">mirroir</a>) est assez bien conçue. Orientée objet, <strong>elle est capable de gérer plusieurs télécommandes</strong>. Voici un exemple d&#8217;utilisation en mode single-remote :</p>
<pre>#include  <span style="color: #777755;">// lib Apple Remote</span>

AppleRemoteSender rmt = AppleRemoteSender(13); <span style="color: #777755;">// LED-IR pin 13</span>

<span style="color: #CC6600;">void</span> <span style="color: #993300;"><strong>setup</strong></span>()
{
    <span style="color: #996600;">attachInterrupt</span>(0, rmt.play, <span style="color: #CC0000;">RISING</span>); <span style="color: #777755;">// boutton sur pin 0</span>
}</pre>
<p>Avec ce code, relativement simple, à chaque impulsion sur la pin 0 de la platine Arduino, le signal play/pause est envoyé au mac, et iTunes par exemple joue / s&#8217;arrête de jouer (<a href="http://arduino.cc/en/Reference/AttachInterrupt">Documentation sur la fonction attachInterrupt</a>).</p>
<p>Avec des logiciels freeware comme <a href="http://www.iospirit.com/products/remotebuddy/">Remote Buddy</a> il vous devient <strong>possible de faire faire quasiment n&#8217;importe quoi à votre Mac</strong> avec la complicité de votre Arduino. Tâchez de vous en inspirer pour <a href="http://www.playarduino.fr/tag/concours">les concours du moment</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.playarduino.fr/2009/11/controler-sans-fil-votre-mac-avec-une-arduino.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
