<?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>EquinoxeFR &#187; rgb</title>
	<atom:link href="http://www.equinoxefr.org/post/tag/rgb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.equinoxefr.org</link>
	<description>[Make &#38; Share]</description>
	<lastBuildDate>Sat, 10 Jul 2010 14:33:52 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>&#171;&#160;The Unnecessary Bubble&#160;&#187;</title>
		<link>http://www.equinoxefr.org/post/2008/08/18/the-unnecessary-bubble/</link>
		<comments>http://www.equinoxefr.org/post/2008/08/18/the-unnecessary-bubble/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 21:18:40 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Electronique]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[rgb]]></category>
		<category><![CDATA[sharp gp2d120]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=263</guid>
		<description><![CDATA[Me revoilà aujourd&#8217;hui avec une création totalement inutile, d&#8217;où ce titre &#171;&#160;The Unnecessary Bubble&#160;&#187;. Le matériel nécessaire: Une carte arduino, 3 résistances 150 ohms, 1 led RGB, 1 capteur de proximité SHARP G2D120 ou équivalent, une balle de ping-pong. La led RGB est branchée sur la masse (GND), et sur les ports 9, 10, 11 <a href='http://www.equinoxefr.org/post/2008/08/18/the-unnecessary-bubble/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Me revoilà aujourd&#8217;hui avec une création totalement inutile, d&#8217;où ce titre &laquo;&nbsp;The Unnecessary Bubble&nbsp;&raquo;.</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/equinoxefr/2775896890/"><img src="http://farm4.static.flickr.com/3085/2775896890_ee4a9fdb0e.jpg" border="0" alt="The Unnecessary Bubble" width="397" height="500" /></a></p>
<p>Le matériel nécessaire: Une carte arduino, 3 résistances 150 ohms, 1 led RGB, 1 capteur de proximité SHARP G2D120 ou équivalent, une balle de ping-pong.</p>
<p>La led RGB est branchée sur la masse (GND), et sur les ports 9, 10, 11 de l&#8217;arduino au travers des résistances de 150 ohms. La balle de ping-pong percée d&#8217;un trou de 5mm sert de diffuseur à la led.</p>
<p>Le capteur SHARP est branché sur l&#8217;entrée analogique 0, VCC (5v) et la masse (GND).</p>
<p>Sur le principe l&#8217;arduino change de couleur toutes les 100 ms ( ce qui permet de faire varier les tons de couleurs assez rapidement). Si vous approchez un objet ou votre main de la boite, le capteur évalue la distance, plus celle-ci et faible et plus le cycle des couleurs est rapide. Si vous vous éloignez, le cycle de couleur reprend sa vitesse normale.</p>
<p><a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/15900030@N05/sets/72157606812689232/"><div class="flickr-photos"><a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/equinoxefr/2775905544/" rel="album-72157606812689232" id="photo-2775905544" title="The Unnecessary Bubble - RGB led driven by an Arduino. IR proximity sensor is used to increase speed of color cycling. More on www.equinoxefr.org"><img src="http://farm4.static.flickr.com/3001/2775905544_33026ff365_s.jpg" width="75" height="75" alt="The Unnecessary Bubble" /></a> <a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/equinoxefr/2775896890/" rel="album-72157606812689232" id="photo-2775896890" title="The Unnecessary Bubble - RGB led driven by an Arduino. IR proximity sensor is used to increase speed of color cycling. More on www.equinoxefr.org"><img src="http://farm4.static.flickr.com/3085/2775896890_ee4a9fdb0e_s.jpg" width="75" height="75" alt="The Unnecessary Bubble" /></a> <a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/equinoxefr/2775900788/" rel="album-72157606812689232" id="photo-2775900788" title="The Unnecessary Bubble - RGB led driven by an Arduino. IR proximity sensor is used to increase speed of color cycling. More on www.equinoxefr.org"><img src="http://farm4.static.flickr.com/3205/2775900788_9a13077457_s.jpg" width="75" height="75" alt="The Unnecessary Bubble" /></a> <a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/equinoxefr/2775039751/" rel="album-72157606812689232" id="photo-2775039751" title="The Unnecessary Bubble"><img src="http://farm4.static.flickr.com/3289/2775039751_488d35c88b_s.jpg" width="75" height="75" alt="The Unnecessary Bubble" /></a> <a class="tt-flickr tt-flickr-Square" href="http://www.flickr.com/photos/equinoxefr/2775908354/" rel="album-72157606812689232" id="photo-2775908354" title="The Unnecessary Bubble - RGB led driven by an Arduino. IR proximity sensor is used to increase speed of color cycling. More on www.equinoxefr.org"><img src="http://farm4.static.flickr.com/3167/2775908354_bcee4cae75_s.jpg" width="75" height="75" alt="The Unnecessary Bubble" /></a> </div><br />
</a></p>
<p><a href="http://www.youtube.com/watch?v=HkiBnyzf6eY"><img src="http://img.youtube.com/vi/HkiBnyzf6eY/default.jpg" width="130" height="97" border=0></a></p>
<p>Voilà le code source:</p>
<p>[code]</p>
<p>#define PIN_RED           10<br />
#define PIN_GREEN        9<br />
#define PIN_BLUE          11<br />
#define PIN_SHARP       0<br />
#define WAIT              100</p>
<p>int waiting = WAIT;</p>
<p>void color(int r, int g, int b)<br />
{<br />
analogWrite(PIN_RED,   r);<br />
analogWrite(PIN_GREEN, g);<br />
analogWrite(PIN_BLUE,  b);<br />
}</p>
<p>void setup()<br />
{</p>
<p>pinMode(PIN_RED,   OUTPUT);<br />
pinMode(PIN_GREEN, OUTPUT);<br />
pinMode(PIN_BLUE,  OUTPUT);<br />
pinMode(PIN_SHARP,INPUT);<br />
}</p>
<p>void loop()<br />
{</p>
<p>for (int i = 0; i &lt; 256; i++){<br />
color(255, i, 0);<br />
set_delay();<br />
delay(waiting);<br />
}</p>
<p>for (int i = 0; i &lt; 256; i++){<br />
color(255 - i, 255, 0);<br />
set_delay();<br />
delay(waiting);<br />
}</p>
<p>for (int i = 0; i &lt; 256; i++){<br />
color(0, 255, i);<br />
set_delay();<br />
delay(waiting);<br />
}</p>
<p>for (int i = 0; i &lt; 256; i++){<br />
color(0, 255 - i, 255);<br />
set_delay();<br />
delay(waiting);<br />
}</p>
<p>for (int i = 0; i &lt; 256; i++){<br />
color(i, 0, 255);<br />
set_delay();<br />
delay(waiting);<br />
}</p>
<p>for (int i = 0; i &lt; 256; i++){<br />
color(255, 0, 255 - i);<br />
set_delay();<br />
delay(waiting);<br />
}<br />
}</p>
<p>void set_delay()<br />
{<br />
int analogValue1 = analogRead(PIN_SHARP);<br />
if (  analogValue1 &lt; 100 )<br />
{<br />
waiting = WAIT;<br />
}<br />
else<br />
{<br />
waiting = WAIT / (analogValue1 / 10);<br />
}</p>
<p>}<br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2008/08/18/the-unnecessary-bubble/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Eagle et XGL</title>
		<link>http://www.equinoxefr.org/post/2007/11/04/eagle-et-xgl/</link>
		<comments>http://www.equinoxefr.org/post/2007/11/04/eagle-et-xgl/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 09:28:00 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[beryl]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[eagle]]></category>
		<category><![CDATA[Electronique]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[rgb]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/wordpress/?p=34</guid>
		<description><![CDATA[<p>Si comme moi, vous avez des soucis avec l'affichage du logiciel Eagle quand vous utilisez Compiz / Beryl sous ubuntu...</p> <p>Le problème:</p> <p><a href="/public/Captures/eagle1.png"><img src="/public/Captures/.eagle1_m.jpg" alt="eagle1.png" /></a></p>]]></description>
			<content:encoded><![CDATA[<p>Si comme moi, vous avez des soucis avec l&#8217;affichage du logiciel Eagle quand vous utilisez Compiz / Beryl sous ubuntu&#8230;</p>
<p>Le problème:</p>
<p><a href="/public/Captures/eagle1.png" rel="lightbox[34]"><img src="/public/Captures/.eagle1_m.jpg" alt="eagle1.png" /></a></p>
<p><span id="more-34"></span></p>
<p>Voici la solution:</p>
<p>Dans un terminal, faites un <code> export XLIB_SKIP_ARGB_VISUALS=1 &amp;&amp; eagle</code></p>
<p>C&#8217;est tout de suite mieux:</p>
<p><a href="/public/Captures/eagle.png" rel="lightbox[34]"><img src="/public/Captures/.eagle_m.jpg" alt="eagle.png" /></a></p>
<p>Sinon vous pouvez abandonner eagle ( qui n&#8217;est pas libre ) au profit de l&#8217;excellent <a href="http://fr.wikipedia.org/wiki/Kicad" hreflang="fr">Kicad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2007/11/04/eagle-et-xgl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
