<?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>Lionel&#039;s Tetalab &#38; Co WIP</title>
	<atom:link href="http://tetalab.org/lionel/feed/" rel="self" type="application/rss+xml" />
	<link>http://tetalab.org/lionel</link>
	<description>Just another Tetalab weblog</description>
	<lastBuildDate>Thu, 10 Jun 2010 19:26:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Led pong&#8230; des nouvelles&#8230;</title>
		<link>http://tetalab.org/lionel/2010/04/12/led-pong-des-nouvelles/</link>
		<comments>http://tetalab.org/lionel/2010/04/12/led-pong-des-nouvelles/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 12:11:01 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Le "mur" de leds...]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[max7313]]></category>
		<category><![CDATA[mur]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[pong]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=150</guid>
		<description><![CDATA[It&#8217;s a long time now since we&#8217;ve started this project !!!
alors c&#8217;est parti&#8230; un bout de temps en arrière déjà (janvier&#8230;), y&#8217;a eu collage des diffuseurs&#8230; (oui, bon, les balles de ping pong quoi !)
  
Puis gravure (c&#8217;est sale !), soudure (c&#8217;est chaud !), cablage (c&#8217;est pété là non ?), programmation (on met des [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a long time now since we&#8217;ve started this project !!!</p>
<p>alors c&#8217;est parti&#8230; un bout de temps en arrière déjà (janvier&#8230;), y&#8217;a eu collage des diffuseurs&#8230; (oui, bon, les balles de ping pong quoi !)</p>
<p><a href="http://tetalab.org/lionel/files/2010/04/DSC06349.jpg"><img class="alignnone size-medium wp-image-161" title="DSC06349" src="http://tetalab.org/lionel/files/2010/04/DSC06349-225x300.jpg" alt="" width="225" height="300" /></a> <a href="http://tetalab.org/lionel/files/2010/04/DSC06350.jpg"><img class="alignnone size-medium wp-image-162" title="DSC06350" src="http://tetalab.org/lionel/files/2010/04/DSC06350-300x225.jpg" alt="" width="300" height="225" /></a> <a href="http://tetalab.org/lionel/files/2010/04/DSC06351.jpg"><img class="alignnone size-medium wp-image-163" title="DSC06351" src="http://tetalab.org/lionel/files/2010/04/DSC06351-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p>Puis gravure (c&#8217;est sale !), soudure (c&#8217;est chaud !), cablage (c&#8217;est pété là non ?), programmation (on met des bytes ?!), prise de quiche (GRRRR !)&#8230; pour arriver a la conclusion que les pcbs maisons étaient trop instables pour un système fiable.</p>
<p>Donc, réflexion et dessin d&#8217;un pcb à l&#8217;épreuve des bombes</p>
<p><a href="http://tetalab.org/lionel/files/2010/04/ledpongdrvpcb.png"><img class="size-full wp-image-151 alignnone" title="Led Pong DRV Board" src="http://tetalab.org/lionel/files/2010/04/ledpongdrvpcb.png" alt="" width="337" height="206" /></a> <a href="http://tetalab.org/lionel/files/2010/04/ledpongdrvsch.png"><img class="size-full wp-image-152 alignnone" title="led pong drv board schematics" src="http://tetalab.org/lionel/files/2010/04/ledpongdrvsch.png" alt="" width="530" height="336" /></a></p>
<p>et, du rêve 3D&#8230;</p>
<p><a href="http://tetalab.org/lionel/files/2010/04/led_drv_1.3b.png"><img class="size-full wp-image-153 alignnone" title="Led pong drv board 3D render" src="http://tetalab.org/lionel/files/2010/04/led_drv_1.3b.png" alt="" width="480" height="360" /></a></p>
<p>nous avons commandé à PCBCART la réalisation des pcbs&#8230;</p>
<p>Et, par un beau matin d&#8217;avril <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8230;</p>
<p><img class="size-medium wp-image-154 alignnone" title="Lot de pcb..." src="http://tetalab.org/lionel/files/2010/04/DSC06104-300x201.jpg" alt="" width="300" height="201" /> <a href="http://tetalab.org/lionel/files/2010/04/DSC06101.jpg"><img class="size-medium wp-image-155 alignnone" title="Du beau travail..." src="http://tetalab.org/lionel/files/2010/04/DSC06101-300x201.jpg" alt="" width="300" height="201" /></a></p>
<p>Hooooou le beau  travail !!! on ne résiste pas et zou, ajout du 7313&#8230; Hmmmm sounds good, et hop hop on continue&#8230;</p>
<p><a href="http://tetalab.org/lionel/files/2010/04/DSC06102.jpg"><img class="alignnone size-medium wp-image-156" title="7313 SMD added" src="http://tetalab.org/lionel/files/2010/04/DSC06102-300x201.jpg" alt="" width="300" height="201" /></a> <a href="http://tetalab.org/lionel/files/2010/04/DSC06103.jpg"><img class="alignnone size-medium wp-image-157" title="Fully assembled" src="http://tetalab.org/lionel/files/2010/04/DSC06103-300x201.jpg" alt="" width="300" height="201" /></a></p>
<p>On ne s&#8217;arrête pas en si bon chemin !!! C&#8217;est de toute beauté !!</p>
<p><a href="http://tetalab.org/lionel/files/2010/04/DSC06097.jpg"><img class="alignnone size-medium wp-image-158" title="DSC06097" src="http://tetalab.org/lionel/files/2010/04/DSC06097-300x201.jpg" alt="" width="300" height="201" /></a> <a href="http://tetalab.org/lionel/files/2010/04/DSC06099.jpg"><img class="alignnone size-medium wp-image-159" title="DSC06099" src="http://tetalab.org/lionel/files/2010/04/DSC06099-300x201.jpg" alt="" width="300" height="201" /></a></p>
<p>AAAaaaaaAAaaaaahhahaha !!! Vivement qu&#8217;on mette ça en place !!</p>
<p>Stay tuned !</p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2010/04/12/led-pong-des-nouvelles/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Pimp my cocktail</title>
		<link>http://tetalab.org/lionel/2010/03/01/pimp-my-cocktail/</link>
		<comments>http://tetalab.org/lionel/2010/03/01/pimp-my-cocktail/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:11:16 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arcade]]></category>
		<category><![CDATA[mame]]></category>
		<category><![CDATA[retrogaming]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=141</guid>
		<description><![CDATA[Yaaaahlah, work in progress sur de l&#8217;arcade stuff related&#8230;
Alors, membre d&#8217;un forum de retrogaming arcade addict, j&#8217;ai récupéré ça, suite a une offre de don  

J&#8217;ai donc mis en oeuvre sa restoration, avec tout d&#8217;abord un changement d&#8217;écran (mise en place d&#8217;un écran d&#8217;Amiga, ils sont compatibles 15kHz, très important pour un rendu 1980&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Yaaaahlah, work in progress sur de l&#8217;arcade stuff related&#8230;</p>
<p>Alors, membre d&#8217;un forum de retrogaming arcade addict, j&#8217;ai récupéré ça, suite a une offre de don <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone" title="CrocMan cocktail" src="http://media.tetalab.org/users/alex/borne_1.jpg" alt="" width="640" height="480" /></p>
<p>J&#8217;ai donc mis en oeuvre sa restoration, avec tout d&#8217;abord un changement d&#8217;écran (mise en place d&#8217;un écran d&#8217;Amiga, ils sont compatibles 15kHz, très important pour un rendu 1980&#8217;s arcade acurate)</p>
<p><img class="alignnone" title="Amiga 1083S" src="http://img504.imageshack.us/img504/8625/dsc05974i.jpg" alt="" width="640" height="428" /></p>
<p><img class="alignnone" title="1083S" src="http://img97.imageshack.us/img97/5145/dsc05977y.jpg" alt="" width="640" height="428" /></p>
<p>remise en état alimentation&#8230;</p>
<p><img class="alignnone" title="Power board" src="http://img249.imageshack.us/img249/1952/dsc05970f.jpg" alt="" width="640" height="428" /></p>
<p>Installation à l&#8217;intérieur, branchage et test</p>
<p><img class="alignnone" title="écran &amp; pcb inside" src="http://img691.imageshack.us/img691/6333/dsc05982.jpg" alt="" width="640" height="428" /></p>
<p>Yesssss <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>et maintenant pimp my cab, on installe un PC dedans</p>
<p><img class="alignnone" title="Intel inside" src="http://img1.uplood.fr/mamu/idwi_dsc06377.jpg" alt="" width="640" height="480" /></p>
<p>on fait de joli control panels&#8230; plaque et stickers</p>
<p><img class="alignnone" title="stick layout test" src="http://media.tetalab.org/users/alex/manette_1.jpg" alt="" width="640" height="480" /></p>
<p><img class="alignnone" title="Stick overlay, just printed" src="http://media.tetalab.org/users/alex/manette_2.jpg" alt="" width="800" height="600" /></p>
<p>Overlay placé sur les plaques de métal, découpe en cours</p>
<p><img class="alignnone" title="Overlay placed" src="http://media.tetalab.org/users/alex/manette_3.jpg" alt="" width="800" height="600" /></p>
<p>Assemblage boutons et joysticks&#8230;</p>
<p><img class="alignnone" title="Stick assembly done" src="http://media.tetalab.org/users/alex/manette_4.jpg" alt="" width="800" height="600" /></p>
<p>Hmmm sounds good</p>
<p><a href="http://www.gamoover.net/Forums/index.php?topic=20262.msg290419#msg290419" target="_blank">Plus de détails sur le forum en question</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2010/03/01/pimp-my-cocktail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino infrared distance sensor basic test</title>
		<link>http://tetalab.org/lionel/2010/01/18/arduino-infrared-distance-sensor-basic-test/</link>
		<comments>http://tetalab.org/lionel/2010/01/18/arduino-infrared-distance-sensor-basic-test/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 11:52:40 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[distance sensor]]></category>
		<category><![CDATA[infrared]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[SD 5410]]></category>
		<category><![CDATA[SE 5455]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=96</guid>
		<description><![CDATA[Hi folks,
Today, a very simple test to check the honeywell infrared emiter and receiver SE 5455-3 and SD 5410-2 capability as distance sensor.
I use the schematic from QTR-1A polulu reflectance sensor just changing the 150 ohm resistor with a 47 Ohm to match witch the SE 5455-3 specifications
Honeywell infrared led voltage is 1,7 V and [...]]]></description>
			<content:encoded><![CDATA[<p>Hi folks,</p>
<p>Today, a very simple test to check the honeywell infrared emiter and receiver <a href="http://www.datasheetarchive.com/pdf-datasheets/Datasheets-5/DSA-92637.pdf" target="_blank">SE 5455-3</a> and <a href="http://www.datasheetarchive.com/pdf-datasheets/Datasheets-305/74380.pdf" target="_blank">SD 5410-2</a> capability as distance sensor.</p>
<p>I use the schematic from <a href="http://www.pololu.com/catalog/product/958" target="_blank">QTR-1A polulu reflectance sensor</a> just changing the 150 ohm resistor with a 47 Ohm to match witch the SE 5455-3 specifications</p>
<p>Honeywell infrared led voltage is 1,7 V and current is 100 mA (!) so current limitation resistor should be :</p>
<p>( 5 &#8211; 1,7 ) / 0,100 = 33 Ohms instead of 150 Ohms, I put 47 ohms &#8217;cause i had this value directly avalaible <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div id="attachment_97" class="wp-caption aligncenter" style="width: 240px"><a href="http://tetalab.org/lionel/files/2010/01/qtr1a-schem.png"><img class="size-full wp-image-97" title="QTR1-A schematic" src="http://tetalab.org/lionel/files/2010/01/qtr1a-schem.png" alt="QTR1-A schematic" width="230" height="300" /></a><p class="wp-caption-text">QTR1-A schematic</p></div>
<p>The breadboard wiring diagram is :</p>
<p style="text-align: center"><a href="http://tetalab.org/lionel/files/2010/01/Distance-sensor_bb.png"></a><a href="http://tetalab.org/lionel/files/2010/01/Distance-sensor_bb.png"><img class="aligncenter size-full wp-image-98" title="Distance sensor wiring diagram" src="http://tetalab.org/lionel/files/2010/01/Distance-sensor_bb.png" alt="Distance sensor wiring diagram" width="736" height="450" /></a></p>
<p style="text-align: left">It&#8217;s cleaner than reality&#8230;</p>
<p style="text-align: left"><a href="http://tetalab.org/lionel/files/2010/01/DSC06342.jpg"><img class="aligncenter size-large wp-image-110" title="DSC06342" src="http://tetalab.org/lionel/files/2010/01/DSC06342-1024x768.jpg" alt="" width="1024" height="768" /></a></p>
<p style="text-align: left">A red led (inside the paper tube) is used as PWM output visualisation on digital output 9, I used a led symbol as emiter and a transistor as receiver, by the way, it&#8217;s pretty much correct&#8230;</p>
<p style="text-align: left">The arduino code is coming from AnalogInOutSerial Arduino example and the sensor (used instead of the potentiometer) range adjusted to match with sensor output.</p>
<p style="text-align: left">
<pre><span style="color: #7e7e7e">/*</span>
<span style="color: #7e7e7e">  Analog input, analog output, serial output</span>
<span style="color: #7e7e7e"> </span>
<span style="color: #7e7e7e"> Reads an analog input pin, maps the result to a range from 0 to 255</span>
<span style="color: #7e7e7e"> and uses the result to set the pulsewidth modulation (PWM) of an output pin.</span>
<span style="color: #7e7e7e"> Also prints the results to the serial monitor.</span>
<span style="color: #7e7e7e"> </span>
<span style="color: #7e7e7e"> The circuit:</span>
<span style="color: #7e7e7e"> * potentiometer connected to analog pin 0.</span>
<span style="color: #7e7e7e">   Center pin of the potentiometer goes to the analog pin.</span>
<span style="color: #7e7e7e">   side pins of the potentiometer go to +5V and ground</span>
<span style="color: #7e7e7e"> * LED connected from digital pin 9 to ground</span>
<span style="color: #7e7e7e"> </span>
<span style="color: #7e7e7e"> created 29 Dec. 2008</span>
<span style="color: #7e7e7e"> by Tom Igoe</span>
<span style="color: #7e7e7e"> </span>
<span style="color: #7e7e7e"> */</span>

<span style="color: #7e7e7e">// These constants won't change.  They're used to give names</span>
<span style="color: #7e7e7e">// to the pins used:</span>
const <span style="color: #cc6600">int</span> analogInPin = 0;  <span style="color: #7e7e7e">// Analog input pin that the potentiometer is attached to</span>
const <span style="color: #cc6600">int</span> analogOutPin = 9; <span style="color: #7e7e7e">// Analog output pin that the LED is attached to</span>

<span style="color: #cc6600">int</span> sensorValue = 0;        <span style="color: #7e7e7e">// value read from the pot</span>
<span style="color: #cc6600">int</span> outputValue = 0;        <span style="color: #7e7e7e">// value output to the PWM (analog out)</span>

<span style="color: #cc6600">void</span> <span style="color: #cc6600"><strong>setup</strong></span>() {
  <span style="color: #7e7e7e">// initialize serial communications at 9600 bps:</span>
  <span style="color: #cc6600">Serial</span>.<span style="color: #cc6600">begin</span>(9600);
}

<span style="color: #cc6600">void</span> <span style="color: #cc6600"><strong>loop</strong></span>() {
  <span style="color: #7e7e7e">// read the analog in value:</span>
  sensorValue = <span style="color: #cc6600">analogRead</span>(analogInPin);
  <span style="color: #7e7e7e">// map it to the range of the analog out:</span>
  outputValue = <span style="color: #cc6600">map</span>(sensorValue, 150, 900, 0, 255);
  <span style="color: #7e7e7e">// change the analog out value:</span>
  <span style="color: #cc6600">analogWrite</span>(analogOutPin, outputValue);           

  <span style="color: #7e7e7e">// print the results to the serial monitor:</span>
  <span style="color: #cc6600">Serial</span>.<span style="color: #cc6600">print</span>(<span style="color: #006699">"sensor = "</span> );
  <span style="color: #cc6600">Serial</span>.<span style="color: #cc6600">print</span>(sensorValue);
  <span style="color: #cc6600">Serial</span>.<span style="color: #cc6600">print</span>(<span style="color: #006699">"\t output = "</span>);
  <span style="color: #cc6600">Serial</span>.<span style="color: #cc6600">println</span>(outputValue);   

  <span style="color: #7e7e7e">// wait 10 milliseconds before the next loop</span>
  <span style="color: #7e7e7e">// for the analog-to-digital converter to settle</span>
  <span style="color: #7e7e7e">// after the last reading:</span>
  <span style="color: #cc6600">delay</span>(10);
}</pre>
<p style="text-align: left">And not really explicit but for your eyes only :</p>
<p style="text-align: left"><a href="http://vimeo.com/8813034">Arduino infrared distance sensor test</a></p>
<p style="text-align: left">And the corresponding terminal snapshot</p>
<p style="text-align: left">
<div id="attachment_106" class="wp-caption aligncenter" style="width: 564px"><a href="http://tetalab.org/lionel/files/2010/01/snapterminal.png"><img class="size-full wp-image-106" title="snapterminal" src="http://tetalab.org/lionel/files/2010/01/snapterminal.png" alt="Terminal Snapshot" width="554" height="330" /></a><p class="wp-caption-text">Terminal Snapshot</p></div>
<p>As this, the honeywell emiter and receiver seem to be ok to measure distance between  2 and 10 cm from their built in lenses.</p>
<p>This range could be certainly extended using optical system like external lenses. In case I give a try on this, I&#8217;ll keep you in touch <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2010/01/18/arduino-infrared-distance-sensor-basic-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le mur de led&#8230; On avance !!</title>
		<link>http://tetalab.org/lionel/2009/11/24/le-mur-de-led-on-avance/</link>
		<comments>http://tetalab.org/lionel/2009/11/24/le-mur-de-led-on-avance/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 12:05:10 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Le "mur" de leds...]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[mur]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=76</guid>
		<description><![CDATA[Chauds que nous étions en ce froid samedi dans les locaux de Myrys, nous avons décidé de tester en vrai l&#8217;écriture sur les MAX7313 !
Les belles photos de ce message on été réalisées par Jérôme, qui fait du très bon travail, on peut le voir ici d&#8217;ailleurs
Comme de nos jours, rien de bon ne se [...]]]></description>
			<content:encoded><![CDATA[<p>Chauds que nous étions en ce froid samedi dans les locaux de Myrys, nous avons décidé de tester en vrai l&#8217;écriture sur les MAX7313 !</p>
<p>Les belles photos de ce message on été réalisées par Jérôme, qui fait du très bon travail, on peut le voir <a href="http://www.behance.net/ijazz" target="_blank">ici</a> d&#8217;ailleurs</p>
<div id="attachment_77" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-77" src="http://tetalab.org/lionel/files/2009/11/IMG_6183.jpg" alt="IMG_6183" width="1134" height="756" /><p class="wp-caption-text">D&#39;abord on branche les trucs...</p></div>
<p>Comme de nos jours, rien de bon ne se fait sans quelque peu de code, le dev team se met au boulot, avec un seul pied&#8230; (ce qui n&#8217;est pas très important pour programmer, je le concède, mais ce n&#8217;est pas pratique pour tout le reste, faut être honnête)</p>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-78 " src="http://tetalab.org/lionel/files/2009/11/IMG_6172.jpg" alt="IMG_6172" width="1134" height="756" /><p class="wp-caption-text">Ensuite il faut quelques lignes de code</p></div>
<div id="attachment_79" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-79 " src="http://tetalab.org/lionel/files/2009/11/IMG_6176.jpg" alt="Le but étant d'allumer ça..." width="1134" height="756" /><p class="wp-caption-text">Le but étant d&#39;allumer ça...</p></div>
<p>Bon, alors là, ça s&#8217;allume pas&#8230; et ça nous plonge dans des abîmes de circonspection.</p>
<p style="text-align: left">
<div id="attachment_80" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-80 " src="http://tetalab.org/lionel/files/2009/11/IMG_6193.jpg" alt="Baaaah ça marche pô..." width="1134" height="756" /><p class="wp-caption-text">Baaaah ça marche pô...</p></div>
<p style="text-align: left">Il est donc très important de trouver la source du pb&#8230; est-ce le pcb ?</p>
<p style="text-align: left">
<div id="attachment_81" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-81 " src="http://tetalab.org/lionel/files/2009/11/IMG_6190.jpg" alt="Rhaaa mais quand même, je crois que c'est bon ça !!" width="1134" height="756" /><p class="wp-caption-text">Rhaaa mais quand même, je crois que c&#39;est bon ça !!</p></div>
<p>Peut être que le timide halo rouge de la souris pourrait inspirer notre montage ???</p>
<p style="text-align: left">
<div id="attachment_82" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-82 " src="http://tetalab.org/lionel/files/2009/11/IMG_6174.jpg" alt="Garantie sans tuning bas de caisse" width="1134" height="756" /><p class="wp-caption-text">Garantie sans tuning bas de caisse</p></div>
<p style="text-align: left">On cherche, on cherche, on bouge le code et &#8230;.</p>
<div id="attachment_83" class="wp-caption aligncenter" style="width: 955px"><img class="size-full wp-image-83" src="http://tetalab.org/lionel/files/2009/11/IMG_6194.jpg" alt="IMG_6194" width="945" height="1417" /><p class="wp-caption-text">Alleluia !!!! Fiat lux..</p></div>
<p style="text-align: left">Yesssssss ! ça s&#8217;allume, avec un petit effet K2000 extrêmement réussi qui nous rassure sur les capacités à driver les leds en PWM&#8230; cool</p>
<p style="text-align: left">
<div id="attachment_85" class="wp-caption aligncenter" style="width: 1144px"><img class="size-full wp-image-85 " src="http://tetalab.org/lionel/files/2009/11/IMG_6195.jpg" alt="Ben du coup on est contents... et on s'en lasse pas... si un peu quand même, il fait froid" width="1134" height="756" /><p class="wp-caption-text">Ben du coup on est contents... et on s&#39;en lasse pas... enfin si un peu quand même, il fait froid</p></div>
<p style="text-align: left">Bon, ben voilà, y&#8217;a plus qu&#8217;a graver plein de petits pcb, cabler encore plein de leds et mettre au point ce sketch arduino&#8230;</p>
<p style="text-align: left">Ca fait plaisir, merci a tous les soudeurs, programmeurs, réflechisseurs, photographes et autres soutiens !</p>
<p style="text-align: left">Keep tuned</p>
<p style="text-align: left">
<p style="text-align: left">Encore merci à <a href="http://www.behance.net/ijazz" target="_blank">Jérôme</a> pour cette série de clichés.</p>
<p style="text-align: left">Update du 19/01/10 : On peut maintenant trouver un aperçu du travail de Jérome Lautre sur son site <a href="http://www.fotographie.fr" target="_blank">www.fotographie.fr</a></p>
<p style="text-align: center">
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/11/24/le-mur-de-led-on-avance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pixel Wall &#8211; du proto a la réalisation&#8230; WIP</title>
		<link>http://tetalab.org/lionel/2009/11/03/67/</link>
		<comments>http://tetalab.org/lionel/2009/11/03/67/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:11:42 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Le "mur" de leds...]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[max7313]]></category>
		<category><![CDATA[mur]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=67</guid>
		<description><![CDATA[


Echaudés par le résultat du proof of concept (illustration ci dessus), nous avons lancé la réalisation du &#8220;mur&#8221; de leds&#8230;  Alors par une belle journée estivale (été indien quoi&#8230;), nous avons lancé la réalisation en vrai !
Quelques photos supplémentaires par là&#8230;  http://img145.imageshack.us/gal.php?g=dsc06169h.jpg Et voilà, la suite au prochain épisode&#8230; (dès qu&#8217;Al.x récupère son [...]]]></description>
			<content:encoded><![CDATA[<dl>
<dt><img class=" alignnone" src="http://img145.imageshack.us/img145/8549/dsc06169h.jpg" alt="Pixel pong wall - Proof of concept" width="384" height="288" /></dt>
</dl>
<p>Echaudés par le résultat du proof of concept (illustration ci dessus), nous avons lancé la réalisation du &#8220;mur&#8221; de leds&#8230;  Alors par une belle journée estivale (été indien quoi&#8230;), nous avons lancé la réalisation en vrai !</p>
<div class="wp-caption alignnone" style="width: 394px"><img class="   " src="http://img503.imageshack.us/img503/9661/dsc06215p.jpg" alt="Plein de trous..." width="384" height="288" /><p class="wp-caption-text">(15.10.09) - Plein de trous...</p></div>
<div class="wp-caption alignnone" style="width: 394px"><img class=" " src="http://img503.imageshack.us/img503/8861/dsc05961.jpg" alt="(27.10.09) - Un peu de peinture..." width="384" height="257" /><p class="wp-caption-text">(27.10.09) - Un peu de peinture...</p></div>
<div class="wp-caption alignnone" style="width: 394px"><img class=" " src="http://img22.imageshack.us/img22/7541/dsc05962a.jpg" alt="(27.10.09) - Quelques chanfreins..." width="384" height="257" /><p class="wp-caption-text">(27.10.09) - Quelques chanfreins...</p></div>
<div class="wp-caption alignnone" style="width: 394px"><img class=" " src="http://img35.imageshack.us/img35/5936/dsc05964u.jpg" alt="(27.10.09) - Encore des chanfreins, on change douvrier..." width="384" height="257" /><p class="wp-caption-text">(27.10.09) - Encore des chanfreins, on change d&#39;ouvrier...</p></div>
<div class="wp-caption alignnone" style="width: 394px"><img class=" " src="http://img29.imageshack.us/img29/7449/dsc05965c.jpg" alt="(27.10.09) - On met en place quelques leds et on soude !!!" width="384" height="257" /><p class="wp-caption-text">(27.10.09) - On met en place quelques leds</p></div>
<div class="wp-caption alignnone" style="width: 394px"><img class=" " src="http://img35.imageshack.us/img35/4540/dsc05967nd.jpg" alt="(27.10.09) - On fait 3 lignes et on fait les cakes..." width="384" height="257" /><p class="wp-caption-text">(27.10.09) - On fait 9 colonnes (sur 27) et on fait les cakes...</p></div>
<div class="wp-caption alignnone" style="width: 394px"><img class=" " src="http://img410.imageshack.us/img410/7941/dsc05969f.jpg" alt="(27.10.09) - On fait encore les cakes, parce que cest bien relou de souder 144 leds..." width="384" height="257" /><p class="wp-caption-text">(27.10.09) - On fait encore les cakes, parce que c&#39;est bien relou de souder 144 leds...</p></div>
<p>Quelques photos supplémentaires par là&#8230;  <a href="http://img145.imageshack.us/gal.php?g=dsc06169h.jpg" target="_blank">http://img145.imageshack.us/gal.php?g=dsc06169h.jpg</a> Et voilà, la suite au prochain épisode&#8230; (dès qu&#8217;Al.x récupère son perronet)</p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/11/03/67/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le &#8220;mur&#8221; de leds&#8230; on the way</title>
		<link>http://tetalab.org/lionel/2009/10/02/le-mur-de-leds-on-the-way/</link>
		<comments>http://tetalab.org/lionel/2009/10/02/le-mur-de-leds-on-the-way/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 11:41:54 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Le "mur" de leds...]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[mur]]></category>
		<category><![CDATA[proto]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=53</guid>
		<description><![CDATA[Prototypage en cours pour validation du concept de montage&#8230; c&#8217;est un tout petit mur, 3 pixels sur 4 possible, ben oui j&#8217;ai que trois balles.
Plaque de mdf,
perçage à 5 (ce serait mieux à 4,9 pour que les leds soient maintenues directement mais j&#8217;ai pas le foret&#8230;)
gros chanfrein à 45°
3 points de colle,
une balle de ping [...]]]></description>
			<content:encoded><![CDATA[<p>Prototypage en cours pour validation du concept de montage&#8230; c&#8217;est un tout petit mur, 3 pixels sur 4 possible, ben oui j&#8217;ai que trois balles.</p>
<p>Plaque de mdf,</p>
<p>perçage à 5 (ce serait mieux à 4,9 pour que les leds soient maintenues directement mais j&#8217;ai pas le foret&#8230;)</p>
<p>gros chanfrein à 45°</p>
<p>3 points de colle,</p>
<p>une balle de ping pong,</p>
<p>et hop maintien de tout ça au serre joint&#8230;</p>
<p><img class="size-medium wp-image-55 alignnone" src="http://tetalab.org/lionel/files/2009/10/DSC06162-225x300.jpg" alt="DSC06162" width="225" height="300" /></p>
<p>Suite au prochain épisode&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/10/02/le-mur-de-leds-on-the-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eagle 3D&#8230; Ca poutre des mamans ours</title>
		<link>http://tetalab.org/lionel/2009/10/01/eagle-3d-ca-poutre-des-mamans-ours/</link>
		<comments>http://tetalab.org/lionel/2009/10/01/eagle-3d-ca-poutre-des-mamans-ours/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 21:34:54 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arcade]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[encoder]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[POV]]></category>
		<category><![CDATA[PS/2]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=49</guid>
		<description><![CDATA[Boooouh je me régale là !!
juste pour le plaisir FYEO

Bon après c&#8217;est fini, je vous bassine plus avec eagle3d  
]]></description>
			<content:encoded><![CDATA[<p>Boooouh je me régale là !!</p>
<p>juste pour le plaisir FYEO</p>
<p><img class="size-full wp-image-50 alignnone" src="http://tetalab.org/lionel/files/2009/10/KBD_enc_dil.PNG" alt="PS/2 Keyboard Encoder" width="512" height="384" /></p>
<p>Bon après c&#8217;est fini, je vous bassine plus avec eagle3d <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/10/01/eagle-3d-ca-poutre-des-mamans-ours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le &#8220;mur&#8221; de leds&#8230; suite</title>
		<link>http://tetalab.org/lionel/2009/10/01/le-mur-de-leds-suite/</link>
		<comments>http://tetalab.org/lionel/2009/10/01/le-mur-de-leds-suite/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 14:16:55 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Le "mur" de leds...]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[max7313]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[PWM]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=45</guid>
		<description><![CDATA[Allez zou,
pour faire plaisir a Gilles, une petite vue 3d de la carte a base de max7313, en attendant la vraie&#8230;


Ca pète hein ?
Bon je mets ça parce que j&#8217;essaie Eagle3D et que ça m&#8217;amuse bien là, j&#8217;ai pas bien tout saisi pour avoir les écritures, mais ça va venir  
Et bientôt, les sources [...]]]></description>
			<content:encoded><![CDATA[<p>Allez zou,</p>
<p>pour faire plaisir a Gilles, une petite vue 3d de la carte a base de max7313, en attendant la vraie&#8230;</p>
<p><img class="size-full wp-image-46 alignnone" src="http://tetalab.org/lionel/files/2009/10/led_drv.PNG" alt="Coté composants" width="512" height="384" /></p>
<p><img class="size-full wp-image-47 alignnone" src="http://tetalab.org/lionel/files/2009/10/led_drv_b.PNG" alt="Coté cuivre" width="512" height="384" /></p>
<p>Ca pète hein ?</p>
<p>Bon je mets ça parce que j&#8217;essaie Eagle3D et que ça m&#8217;amuse bien là, j&#8217;ai pas bien tout saisi pour avoir les écritures, mais ça va venir <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Et bientôt, les sources parce que tout de suite c&#8217;est pas possible, le schéma est saisi comme un cochon, donc je nettoie et je publie.</p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/10/01/le-mur-de-leds-suite/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Le &#8220;mur&#8221; de leds&#8230; Work in progress</title>
		<link>http://tetalab.org/lionel/2009/09/30/le-mur-de-leds-work-in-progress/</link>
		<comments>http://tetalab.org/lionel/2009/09/30/le-mur-de-leds-work-in-progress/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 16:29:24 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Le "mur" de leds...]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[max7313]]></category>
		<category><![CDATA[mur]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[proto]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=38</guid>
		<description><![CDATA[Aujourd&#8217;hui, petite avancée sur le hardware du mur de leds.
Le projet : un module de 144 leds drivées en PWM a l&#8217;aide de MAX7313AEG+ (en I2C, avec un arduino en tête).
Le routage est fini, chaque pcb drive 16 led et doit être adressé en hardware (en mettant AD0, AD1 et AD2 aux potentiels GND, V+, [...]]]></description>
			<content:encoded><![CDATA[<p>Aujourd&#8217;hui, petite avancée sur le hardware du mur de leds.</p>
<p>Le projet : un module de 144 leds drivées en PWM a l&#8217;aide de <a href="http://datasheets.maxim-ic.com/en/ds/MAX7313.pdf" target="_blank">MAX7313AEG+</a> (en I2C, avec un arduino en tête).</p>
<p>Le routage est fini, chaque pcb drive 16 led et doit être adressé en hardware (en mettant AD0, AD1 et AD2 aux potentiels GND, V+, SDA ou SCL, voir datasheet du 7313 Table 1.) à l&#8217;aide de 3 straps (dans la matrice au bas du circuit). Les résistances de charges peuvent être des réseaux SIL ou des résistances standard (150R) câblées verticalement</p>
<p>Le circuit mesure 50&#215;26mm et est cascadable (entrée et sortie I2C)</p>
<div id="attachment_40" class="wp-caption alignnone" style="width: 329px"><img class="size-full wp-image-40 " src="http://tetalab.org/lionel/files/2009/09/led_drv1.png" alt="Routage Driver 16 Leds" width="319" height="189" /><p class="wp-caption-text">Routage Driver 16 Leds</p></div>
<p>On attends les composants de chez Maxim IC et c&#8217;est parti pour de la séance gravure/soudure&#8230; Yeeeeah.</p>
<p>Niveau matériel, on s&#8217;imagine éclairer les leds et utiliser des balles de ping pong en diffuseur. Alex a demandé a un club de pongistes de nous récupérer leur balles pétées.</p>
<p>Je viens d&#8217;aller chercher le première fournée&#8230; bon, elles sont vraiment pétées et en plus y&#8217;en a 95% de couleur orange <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="size-medium wp-image-43 alignnone" src="http://tetalab.org/lionel/files/2009/09/DSC06161-300x225.jpg" alt="Le lot de balles..." width="300" height="225" /></p>
<p>Bon, on verra si on maintien cette source d&#8217;appro&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/09/30/le-mur-de-leds-work-in-progress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compteur RPM à affichage LCD (la revanche)</title>
		<link>http://tetalab.org/lionel/2009/09/23/compteur-rpm-a-affichage-lcd-la-revanche/</link>
		<comments>http://tetalab.org/lionel/2009/09/23/compteur-rpm-a-affichage-lcd-la-revanche/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 08:17:22 +0000</pubDate>
		<dc:creator>lionel</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[RPM Meter]]></category>
		<category><![CDATA[compte tour]]></category>
		<category><![CDATA[hall effect sensor]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[tachometer]]></category>

		<guid isPermaLink="false">http://tetalab.org/lionel/?p=27</guid>
		<description><![CDATA[Fabrice, mon ami d&#8217;en face, a suggéré une épuration du code a base de ruse de renard.
C&#8217;est plus clean, y&#8217;a plus de calcul de modulo dans le loop, c&#8217;est mieux. Je mets a jour. J&#8217;ai commenté le code, ça devrait se lire.
A noter qu&#8217;on pourrait cabler le LCD différement pour libèrer la sortie digitale 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Fabrice, mon ami d&#8217;en face, a suggéré une épuration du code a base de ruse de renard.</p>
<p>C&#8217;est plus clean, y&#8217;a plus de calcul de modulo dans le loop, c&#8217;est mieux. Je mets a jour. J&#8217;ai commenté le code, ça devrait se lire.</p>
<p>A noter qu&#8217;on pourrait cabler le LCD différement pour libèrer la sortie digitale 1 et ainsi écrire la valeur en même temps sur le port série. J&#8217;ai essayé, ça marche&#8230;</p>
<pre>
<span style="color: #7E7E7E">/*</span>
<span style="color: #7E7E7E">&nbsp;*&nbsp;Effet&nbsp;hall&nbsp;Tachometer&nbsp;LCD&nbsp;display</span>
<span style="color: #7E7E7E">&nbsp;*</span>
<span style="color: #7E7E7E">&nbsp;*&nbsp;Uses&nbsp;hall&nbsp;effect&nbsp;sensor&nbsp;to&nbsp;implement&nbsp;a&nbsp;tachometer.</span>
<span style="color: #7E7E7E">&nbsp;*&nbsp;A&nbsp;status&nbsp;LED&nbsp;is&nbsp;connected&nbsp;to&nbsp;pin&nbsp;8.</span>
<span style="color: #7E7E7E">&nbsp;*&nbsp;Pin&nbsp;2&nbsp;(interrupt&nbsp;0)&nbsp;is&nbsp;connected&nbsp;across&nbsp;the&nbsp;hall&nbsp;effect&nbsp;sensor.</span>
<span style="color: #7E7E7E">&nbsp;*&nbsp;</span>
<span style="color: #7E7E7E">&nbsp;*/</span>

<span style="color: #7E7E7E">//&nbsp;include&nbsp;the&nbsp;library&nbsp;code:</span>
#include&nbsp;&lt;<span style="color: #CC6600">LiquidCrystal</span>.h&gt;

<span style="color: #7E7E7E">//&nbsp;initialize&nbsp;the&nbsp;lcd&nbsp;library&nbsp;with&nbsp;the&nbsp;numbers&nbsp;of&nbsp;the&nbsp;interface&nbsp;pins</span>
<span style="color: #CC6600">LiquidCrystal</span> lcd(12, 11, 5, 4, 3, 1);

<span style="color: #CC6600">int</span> statusPin = 8;             <span style="color: #7E7E7E">// Status LED connected to digital pin 8</span>

volatile&nbsp;<span style="color: #CC6600">byte</span> rpmcount;
volatile&nbsp;<span style="color: #CC6600">int</span> <span style="color: #CC6600">status</span>;
<span style="color: #CC6600">unsigned</span> <span style="color: #CC6600">int</span> rpm;
<span style="color: #CC6600">unsigned</span> <span style="color: #CC6600">long</span> timeold;

&nbsp;<span style="color: #CC6600">void</span> <span style="color: #CC6600"><b>setup</b></span>()
&nbsp;{
<span style="color: #7E7E7E">//&nbsp;&nbsp;&nbsp;Serial.begin(9600);</span>
&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">attachInterrupt</span>(0, rpm_fun, <span style="color: #006699">RISING</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//Use statusPin to flash along with interrupts</span>
&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">pinMode</span>(statusPin, <span style="color: #006699">OUTPUT</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">// set up the LCD's number of rows and columns: </span>
&nbsp;&nbsp;lcd.<span style="color: #CC6600">begin</span>(16, 2);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">// Shift display 1 character to the left </span>
&nbsp;&nbsp;lcd.<span style="color: #CC6600">scrollDisplayLeft</span>();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">// initial values</span>
&nbsp;&nbsp;&nbsp;rpmcount&nbsp;=&nbsp;0;
&nbsp;&nbsp;&nbsp;rpm&nbsp;=&nbsp;0;

&nbsp;}
&nbsp;<span style="color: #CC6600">void</span> <span style="color: #CC6600"><b>loop</b></span>()
&nbsp;{
&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">if</span> (rpmcount &gt;= 20) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//Update RPM every 20 counts, increase this for better RPM resolution,</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//decrease for faster update</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//detach interrupt during calculation</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">detachInterrupt</span>(0);
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//Note that this would be 60*1000/(millis() - timeold)*rpmcount if the interrupt</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//happened once per revolution instead of twice. Other multiples could be used</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//for multi-bladed propellers or fans</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//To keep the rpm value 4 digits long, I add 10000 to the rpm value and hide </span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//the first digit using lcd.scrollDisplayLeft() in setup()</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//Nice trick from sack <img src='http://tetalab.org/lionel/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  thx !</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpm&nbsp;=&nbsp;10000&nbsp;+&nbsp;15*1000/(<span style="color: #CC6600">millis</span>() - timeold)*rpmcount;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timeold&nbsp;=&nbsp;<span style="color: #CC6600">millis</span>();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpmcount&nbsp;=&nbsp;0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//print rpm value on LCD</span>
<span style="color: #7E7E7E">//&nbsp;Serial.println((rpm-10000),DEC);</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lcd.<span style="color: #CC6600">setCursor</span>(0,1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lcd.<span style="color: #CC6600">print</span>(rpm);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lcd.<span style="color: #CC6600">setCursor</span>(6,1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lcd.<span style="color: #CC6600">print</span>(<span style="color: #006699">"RPM"</span>);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//detach interrupt during calculation</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">attachInterrupt</span>(0, rpm_fun, <span style="color: #006699">RISING</span>);
&nbsp;&nbsp;&nbsp;}
&nbsp;}
&nbsp;<span style="color: #CC6600">void</span> rpm_fun()
&nbsp;{
&nbsp;&nbsp;&nbsp;rpmcount++;
&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//Each rotation, this interrupt function is run twice</span>
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E">//Toggle status LED   </span>
&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">if</span> (<span style="color: #CC6600">status</span> == <span style="color: #006699">LOW</span>) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">status</span> = <span style="color: #006699">HIGH</span>;
&nbsp;&nbsp;&nbsp;}&nbsp;<span style="color: #CC6600">else</span> {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">status</span> = <span style="color: #006699">LOW</span>;
&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;<span style="color: #CC6600">digitalWrite</span>(statusPin, <span style="color: #CC6600">status</span>);
&nbsp;}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tetalab.org/lionel/2009/09/23/compteur-rpm-a-affichage-lcd-la-revanche/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>