Page 1 of 1

simulating a LED matrix

Posted: Mon Mar 07, 2011 8:33 pm
by cantronicx
Flowcode's display devices aka LED seem to be of a common to a fixed power source. It would be nice to have a display matrix or even a LED that can have both anode and cathode free to connect to either a fixed power source or the microcontroller.
Unless I am missing something, it does not seem possible to simulate a LED matrix.

Re: simulating a LED matrix

Posted: Tue Mar 08, 2011 2:15 am
by singhdeol
If i understand u correctly you should take a look into this link and thx for sharing
http://www.nerdkits.com/videos/multipanel_spi_ledarray/

Re: simulating a LED matrix

Posted: Tue Mar 08, 2011 8:21 am
by medelec35
cantronicx,
http://www.josepino.com/microcontroller ... ntrol_leds
Is a good place to look, if creating a LED matrix.
This has nothing to do with simulation and your question, but I though worthy of a mention.
With LEDs you can select active high and active low, then if connected to i/p will be off.
When I get a bit of time I will see if a matrix can be simulated with flowcode.
Will let you know for sure tonight


singhdeolink,
Link you posted for a SPI application is a great idea!
It does not just have to be slave chips with matrix LEDs, but slave chips controlling multiple LCD's, Etc.
I believe SPI control would make a great article. Thanks for sharing that link.

Re: simulating a LED matrix

Posted: Tue Mar 08, 2011 8:53 am
by Steve
Simulating an LED matrix in Flowcode is currently impossible. But it is a good idea and is something we will look at allowing in the future.

Re: simulating a LED matrix

Posted: Tue Mar 08, 2011 8:58 am
by medelec35
I was going post that in order to simulate a matrix, you will need to assign both anode and cathode of each to individual pins. At present they have VSS or VDD as a fixed reference therefore it can't be done....
But you beet me to it Steve :P

Re: simulating a LED matrix

Posted: Fri Mar 11, 2011 9:29 pm
by cantronicx
to be more specific on my project, I have made a simple circuit that uses an Atmel microcontroller. I think a pic will do this just fine also but not sure it can handle the current as a source without using some additional circuitry like transistors or some driver.
The circuit is as follows
matrix.gif
matrix.gif (19.98 KiB) Viewed 6897 times

Re: simulating a LED matrix

Posted: Tue Mar 15, 2011 4:44 pm
by DavidA
Going to move this topic as we are trying to use this forum purely for completed articles. Thanks.