<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.leloop.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cw</id>
		<title>Le L∞p's Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.leloop.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cw"/>
		<link rel="alternate" type="text/html" href="http://wiki.leloop.org/index.php/Special:Contributions/Cw"/>
		<updated>2026-05-30T03:51:31Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.leloop.org/index.php?title=LedFloor&amp;diff=108</id>
		<title>LedFloor</title>
		<link rel="alternate" type="text/html" href="http://wiki.leloop.org/index.php?title=LedFloor&amp;diff=108"/>
				<updated>2011-02-04T17:18:37Z</updated>
		
		<summary type="html">&lt;p&gt;Cw: /* issues/open questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Led Floor =&lt;br /&gt;
&lt;br /&gt;
How to turn the 11 windows of the hacklab into a big led display ?&lt;br /&gt;
&lt;br /&gt;
* what have we got to do it ?&lt;br /&gt;
** Windows that are H189xW95.5 centimeters&lt;br /&gt;
** 1000 red leds&lt;br /&gt;
** loads of RJ45 and old IDE/SCSI/floppy buses&lt;br /&gt;
&lt;br /&gt;
* what we need ?&lt;br /&gt;
** a system to control each diode (or group of diodes) independantly&lt;br /&gt;
** that is not too expensive&lt;br /&gt;
&lt;br /&gt;
Question: do we need on/off for each led, or more advanced modes (eg PWM for various intensities).&lt;br /&gt;
* on/off:&lt;br /&gt;
** is simpler as regard to schematics&lt;br /&gt;
** is simpler as regard to driving code (led bits per image, obviously)&lt;br /&gt;
** isn't as cool&lt;br /&gt;
** can still, to some extend, allow some variable intensities&lt;br /&gt;
PWM &amp;quot;natural&amp;quot; ability is prefered, but choice will be made depending on total cost of solution.&lt;br /&gt;
&lt;br /&gt;
== Solution #1 ==&lt;br /&gt;
&lt;br /&gt;
use a TLC5940NT that can control about 16 LED each&lt;br /&gt;
&lt;br /&gt;
* datasheet: http://datasheet.octopart.com/TLC5940NT-Texas-Instruments-datasheet-153017.pdf&lt;br /&gt;
* schematic: http://webhome.csc.uvic.ca/~mcheng/samples/led_wheel/images/hack_schematic.jpg is it me or this schematic sucks big time ??? There are examples in the datasheet, way more reliable IMO --cq&lt;br /&gt;
* O(price) = $180 for the 64*TLC5940NT, so we'll need also several protoboard to be cut to bind them on. &lt;br /&gt;
&lt;br /&gt;
Naturally leads to a PWM version&lt;br /&gt;
&lt;br /&gt;
== Solution #2 ==&lt;br /&gt;
&lt;br /&gt;
use the snootlab's i2c led driver solution that can control 16 LED each&lt;br /&gt;
&lt;br /&gt;
* 64*i2c led driver = 9.95*64 = 636.80&lt;br /&gt;
* 1*i2c shield = 17.95&lt;br /&gt;
* 1 ardunio = 20&lt;br /&gt;
* O(price) = 674.75 euros&lt;br /&gt;
&lt;br /&gt;
== Solution #3 ==&lt;br /&gt;
&lt;br /&gt;
* use shift registers... ?&lt;br /&gt;
&lt;br /&gt;
== Solution #4 ==&lt;br /&gt;
&lt;br /&gt;
use two Peggy 2 board :&lt;br /&gt;
&lt;br /&gt;
* 2* http://evilmadscience.com/tinykitlist/157&lt;br /&gt;
* O(price) = 95*2 = $180  --or far less as you won't need the giant PCB.  They have a &amp;quot;parts kit&amp;quot; that includes the 328 and the IC's for $15.  you'd still need LED's and transistors and other support components. --cw&lt;br /&gt;
&lt;br /&gt;
looking at the peggyLE schematics, they are not using several of the outputs, it looks like a 32x30 grid is possible with the IC's included, and by adding another IC in place of the buttons 32x45 is possible.  --cw&lt;br /&gt;
=&amp;gt; they use two 4 to 16 demux for highside driving. They therefore *have* to keep one output not connected, to allow an &amp;quot;off&amp;quot; state for each of these chips. One solution would be to use two such chips, plus two generic I/O, leading to a (quite ugly) 10 to 32 demux functionality. -- cq  =&amp;gt; that's only for the 74HC154's, the STP16DP05's can use all 16, so expanding that way there can 48x30 which gives 1440 LED's  --cw&lt;br /&gt;
&lt;br /&gt;
== Solution #5 ==&lt;br /&gt;
&lt;br /&gt;
* Check with Electrolab, where another similar project is ongoing :-)&lt;br /&gt;
=&amp;gt; actually, the (current) project there is about a 8x8x8 led cube (and some pov, too). Which are a bit different. But hey, somehow these are still led based project, so why not.&lt;br /&gt;
&lt;br /&gt;
== Solution #6 ==&lt;br /&gt;
So, the goal is to achieve a 1024 led screen, with, if possible, PWM on each led, for a total price &amp;lt;150€ (connectors, leds not included) ?&lt;br /&gt;
&lt;br /&gt;
My proposal would be to mix #1 (eg use TLC5940 chips, for their ability to PWM their outputs) and #4 (actually, only reuse the 4 to 16 demuxes (74HC154) idea, with two additionnal GPIO from the uC to achieve a 5 to 32 demux). That is :&lt;br /&gt;
* two TLC5940&lt;br /&gt;
** drive each row in PWM mode&lt;br /&gt;
** can be daisy chained, and they take 8 I/O (or possibly less than that)&lt;br /&gt;
** cost about 3€ each at www.mouser.fr&lt;br /&gt;
* two 74HC154&lt;br /&gt;
** drive each column (one after each other)&lt;br /&gt;
** cost less than 1€ each&lt;br /&gt;
* some power stage:&lt;br /&gt;
** worst case is all 32 rows ON with 100mA each. So each column power driver should be able to sustain a 3.2 A continuous current.&lt;br /&gt;
** the evilmadscientist schematic proposes 1.5A pnp transistors ;)&lt;br /&gt;
** it'd be a better idea to get some (any) tougher pnp transistors (maybe few € total)&lt;br /&gt;
* This requires about 18 I/O for control&lt;br /&gt;
** it is out of reach of an Arduino (true only when all the features of the TLC5940 are used. There are solutions to use an Arduino anyway. Note that I consider UNO and similar boards, not mega ones - which are too expensive)&lt;br /&gt;
** it is quite doable with a Teensy (http://www.pjrc.com/teensy/ about $30, similar in functionalities to an arduino otherwise)&lt;br /&gt;
* some power input is required&lt;br /&gt;
** I suggest a computer PSU (reuse a standard connector to get 5v on the circuit)&lt;br /&gt;
* some connectors are required&lt;br /&gt;
** I suggest using standard RJ45 connectors (which stand 1.5A if I remember well. Meh...)&lt;br /&gt;
* some passives are required. As usual.&lt;br /&gt;
&lt;br /&gt;
Total cost: O{100€ ?). Sounds good to me :)&lt;br /&gt;
&lt;br /&gt;
==== issues/open questions ====&lt;br /&gt;
* will the TLC be well adapted to drive each column only 1/16th of the time ? That is, still work well when asked to somehow refresh data at (total refresh rate)*(number of columns)&lt;br /&gt;
** according to datasheet, the max required clock speed is 4096*(refresh frequency). Even with a *16 factor, it isn't out of reach of a simple uC&lt;br /&gt;
** will the leds give enough light when pulsed at max 1/16th of the time at 100mA ?&lt;br /&gt;
*** my guess would be: yes&lt;br /&gt;
* how to make the board ?&lt;br /&gt;
** it can be done on a standard protoboard (quite small, I would even say)&lt;br /&gt;
*** Check if standard PC power connectors fit on these. If not, use a wire + standard connector.&lt;br /&gt;
*** Check if there are thru hole RJ45 connectors available. Looks like there are some (quite cheap, O{10€} for a 8 port version) but pins won't fit on a protoboard.&lt;br /&gt;
*** Solid core cat5 wire will fit in a breadboard, so some keystone jacks and short lengths of cat5 can be connected&lt;br /&gt;
* if one want to really use 12 bit resolution for each of the 1024 leds, using a 8bit uC with 8k of RAM is... probably not the best choice&lt;br /&gt;
** I guess it'd be okay to downgrade the resolution to few bits per led, eg never drive LSBs for each led and use only 4bits resolution.&lt;br /&gt;
&lt;br /&gt;
=&amp;gt; I cannot see any big flaw in this solution. Does anyone have a better view here ? --cq&lt;br /&gt;
* &amp;quot;it is really an issue to be unable to buffer data&amp;quot;&lt;br /&gt;
** wouldnt some usb to serial chips have some additionnal RAM ?&lt;br /&gt;
* &amp;quot;it wouldnt hurt to have some more processing power onboard&amp;quot;&lt;br /&gt;
* &amp;quot;you're such a p... to use monochrom leds&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Solution #7 ==&lt;br /&gt;
Similar to #6, but instead of TL+demux, use a uC which has 64 I/O that can be dedicated to the led matrix.&lt;br /&gt;
* I cannot think of any chip that would be as cheap and as &amp;quot;simple&amp;quot;&lt;br /&gt;
* software layers would be easier&lt;br /&gt;
* additionnal power/interfaces would be required to drive the rows&lt;br /&gt;
One possible solution:&lt;br /&gt;
* use this : http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4114 + an ugly extension board (on a protoboard) with 64 pnp. Someone at Electrolab can provide that board&lt;br /&gt;
* then, in a second design iteration, design a full custom board with this chip + transistors, connectors, ...&lt;br /&gt;
&lt;br /&gt;
== Solution #8 ==&lt;br /&gt;
* 42 ?&lt;/div&gt;</summary>
		<author><name>Cw</name></author>	</entry>

	<entry>
		<id>http://wiki.leloop.org/index.php?title=LedFloor&amp;diff=107</id>
		<title>LedFloor</title>
		<link rel="alternate" type="text/html" href="http://wiki.leloop.org/index.php?title=LedFloor&amp;diff=107"/>
				<updated>2011-02-04T17:12:47Z</updated>
		
		<summary type="html">&lt;p&gt;Cw: /* Solution #4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Led Floor =&lt;br /&gt;
&lt;br /&gt;
How to turn the 11 windows of the hacklab into a big led display ?&lt;br /&gt;
&lt;br /&gt;
* what have we got to do it ?&lt;br /&gt;
** Windows that are H189xW95.5 centimeters&lt;br /&gt;
** 1000 red leds&lt;br /&gt;
** loads of RJ45 and old IDE/SCSI/floppy buses&lt;br /&gt;
&lt;br /&gt;
* what we need ?&lt;br /&gt;
** a system to control each diode (or group of diodes) independantly&lt;br /&gt;
** that is not too expensive&lt;br /&gt;
&lt;br /&gt;
Question: do we need on/off for each led, or more advanced modes (eg PWM for various intensities).&lt;br /&gt;
* on/off:&lt;br /&gt;
** is simpler as regard to schematics&lt;br /&gt;
** is simpler as regard to driving code (led bits per image, obviously)&lt;br /&gt;
** isn't as cool&lt;br /&gt;
** can still, to some extend, allow some variable intensities&lt;br /&gt;
PWM &amp;quot;natural&amp;quot; ability is prefered, but choice will be made depending on total cost of solution.&lt;br /&gt;
&lt;br /&gt;
== Solution #1 ==&lt;br /&gt;
&lt;br /&gt;
use a TLC5940NT that can control about 16 LED each&lt;br /&gt;
&lt;br /&gt;
* datasheet: http://datasheet.octopart.com/TLC5940NT-Texas-Instruments-datasheet-153017.pdf&lt;br /&gt;
* schematic: http://webhome.csc.uvic.ca/~mcheng/samples/led_wheel/images/hack_schematic.jpg is it me or this schematic sucks big time ??? There are examples in the datasheet, way more reliable IMO --cq&lt;br /&gt;
* O(price) = $180 for the 64*TLC5940NT, so we'll need also several protoboard to be cut to bind them on. &lt;br /&gt;
&lt;br /&gt;
Naturally leads to a PWM version&lt;br /&gt;
&lt;br /&gt;
== Solution #2 ==&lt;br /&gt;
&lt;br /&gt;
use the snootlab's i2c led driver solution that can control 16 LED each&lt;br /&gt;
&lt;br /&gt;
* 64*i2c led driver = 9.95*64 = 636.80&lt;br /&gt;
* 1*i2c shield = 17.95&lt;br /&gt;
* 1 ardunio = 20&lt;br /&gt;
* O(price) = 674.75 euros&lt;br /&gt;
&lt;br /&gt;
== Solution #3 ==&lt;br /&gt;
&lt;br /&gt;
* use shift registers... ?&lt;br /&gt;
&lt;br /&gt;
== Solution #4 ==&lt;br /&gt;
&lt;br /&gt;
use two Peggy 2 board :&lt;br /&gt;
&lt;br /&gt;
* 2* http://evilmadscience.com/tinykitlist/157&lt;br /&gt;
* O(price) = 95*2 = $180  --or far less as you won't need the giant PCB.  They have a &amp;quot;parts kit&amp;quot; that includes the 328 and the IC's for $15.  you'd still need LED's and transistors and other support components. --cw&lt;br /&gt;
&lt;br /&gt;
looking at the peggyLE schematics, they are not using several of the outputs, it looks like a 32x30 grid is possible with the IC's included, and by adding another IC in place of the buttons 32x45 is possible.  --cw&lt;br /&gt;
=&amp;gt; they use two 4 to 16 demux for highside driving. They therefore *have* to keep one output not connected, to allow an &amp;quot;off&amp;quot; state for each of these chips. One solution would be to use two such chips, plus two generic I/O, leading to a (quite ugly) 10 to 32 demux functionality. -- cq  =&amp;gt; that's only for the 74HC154's, the STP16DP05's can use all 16, so expanding that way there can 48x30 which gives 1440 LED's  --cw&lt;br /&gt;
&lt;br /&gt;
== Solution #5 ==&lt;br /&gt;
&lt;br /&gt;
* Check with Electrolab, where another similar project is ongoing :-)&lt;br /&gt;
=&amp;gt; actually, the (current) project there is about a 8x8x8 led cube (and some pov, too). Which are a bit different. But hey, somehow these are still led based project, so why not.&lt;br /&gt;
&lt;br /&gt;
== Solution #6 ==&lt;br /&gt;
So, the goal is to achieve a 1024 led screen, with, if possible, PWM on each led, for a total price &amp;lt;150€ (connectors, leds not included) ?&lt;br /&gt;
&lt;br /&gt;
My proposal would be to mix #1 (eg use TLC5940 chips, for their ability to PWM their outputs) and #4 (actually, only reuse the 4 to 16 demuxes (74HC154) idea, with two additionnal GPIO from the uC to achieve a 5 to 32 demux). That is :&lt;br /&gt;
* two TLC5940&lt;br /&gt;
** drive each row in PWM mode&lt;br /&gt;
** can be daisy chained, and they take 8 I/O (or possibly less than that)&lt;br /&gt;
** cost about 3€ each at www.mouser.fr&lt;br /&gt;
* two 74HC154&lt;br /&gt;
** drive each column (one after each other)&lt;br /&gt;
** cost less than 1€ each&lt;br /&gt;
* some power stage:&lt;br /&gt;
** worst case is all 32 rows ON with 100mA each. So each column power driver should be able to sustain a 3.2 A continuous current.&lt;br /&gt;
** the evilmadscientist schematic proposes 1.5A pnp transistors ;)&lt;br /&gt;
** it'd be a better idea to get some (any) tougher pnp transistors (maybe few € total)&lt;br /&gt;
* This requires about 18 I/O for control&lt;br /&gt;
** it is out of reach of an Arduino (true only when all the features of the TLC5940 are used. There are solutions to use an Arduino anyway. Note that I consider UNO and similar boards, not mega ones - which are too expensive)&lt;br /&gt;
** it is quite doable with a Teensy (http://www.pjrc.com/teensy/ about $30, similar in functionalities to an arduino otherwise)&lt;br /&gt;
* some power input is required&lt;br /&gt;
** I suggest a computer PSU (reuse a standard connector to get 5v on the circuit)&lt;br /&gt;
* some connectors are required&lt;br /&gt;
** I suggest using standard RJ45 connectors (which stand 1.5A if I remember well. Meh...)&lt;br /&gt;
* some passives are required. As usual.&lt;br /&gt;
&lt;br /&gt;
Total cost: O{100€ ?). Sounds good to me :)&lt;br /&gt;
&lt;br /&gt;
==== issues/open questions ====&lt;br /&gt;
* will the TLC be well adapted to drive each column only 1/16th of the time ? That is, still work well when asked to somehow refresh data at (total refresh rate)*(number of columns)&lt;br /&gt;
** according to datasheet, the max required clock speed is 4096*(refresh frequency). Even with a *16 factor, it isn't out of reach of a simple uC&lt;br /&gt;
** will the leds give enough light when pulsed at max 1/16th of the time at 100mA ?&lt;br /&gt;
*** my guess would be: yes&lt;br /&gt;
* how to make the board ?&lt;br /&gt;
** it can be done on a standard protoboard (quite small, I would even say)&lt;br /&gt;
*** Check if standard PC power connectors fit on these. If not, use a wire + standard connector.&lt;br /&gt;
*** Check if there are thru hole RJ45 connectors available. Looks like there are some (quite cheap, O{10€} for a 8 port version) but pins won't fit on a protoboard.&lt;br /&gt;
* if one want to really use 12 bit resolution for each of the 1024 leds, using a 8bit uC with 8k of RAM is... probably not the best choice&lt;br /&gt;
** I guess it'd be okay to downgrade the resolution to few bits per led, eg never drive LSBs for each led and use only 4bits resolution.&lt;br /&gt;
&lt;br /&gt;
=&amp;gt; I cannot see any big flaw in this solution. Does anyone have a better view here ? --cq&lt;br /&gt;
* &amp;quot;it is really an issue to be unable to buffer data&amp;quot;&lt;br /&gt;
** wouldnt some usb to serial chips have some additionnal RAM ?&lt;br /&gt;
* &amp;quot;it wouldnt hurt to have some more processing power onboard&amp;quot;&lt;br /&gt;
* &amp;quot;you're such a p... to use monochrom leds&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Solution #7 ==&lt;br /&gt;
Similar to #6, but instead of TL+demux, use a uC which has 64 I/O that can be dedicated to the led matrix.&lt;br /&gt;
* I cannot think of any chip that would be as cheap and as &amp;quot;simple&amp;quot;&lt;br /&gt;
* software layers would be easier&lt;br /&gt;
* additionnal power/interfaces would be required to drive the rows&lt;br /&gt;
One possible solution:&lt;br /&gt;
* use this : http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4114 + an ugly extension board (on a protoboard) with 64 pnp. Someone at Electrolab can provide that board&lt;br /&gt;
* then, in a second design iteration, design a full custom board with this chip + transistors, connectors, ...&lt;br /&gt;
&lt;br /&gt;
== Solution #8 ==&lt;br /&gt;
* 42 ?&lt;/div&gt;</summary>
		<author><name>Cw</name></author>	</entry>

	</feed>