Pages: [1]   Go Down
Author Topic: How to understand an LED Matrix  (Read 1812 times)
0 Members and 1 Guest are viewing this topic.
Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have just put up a page about how you can understand an LED matrix and the two ways of going about driving them.

Comments / improvements please from experienced users.

Beginners:- anything you find hard to understand?

http://www.thebox.myzen.co.uk/Workshop/LED_Matrix.html
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Good article, will be definitely useful.
Do you have a datasheet for ULM2008 (I couldn't find this one anywhere)? Is it compatible with the more common ULN2803?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot, I did in indeed mean the ULN2803, I have now corrected it.
Logged

CO, USA
Offline Offline
God Member
*****
Karma: 5
Posts: 711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Mike. Very timely, as I'm just now looking at driving a 4-digit 7-segment display (haven't purchased one yet, still looking at options). I've been leaning towards the Maxim 7219, but I will look at those other options.

I do see some layout issues. Likely a result of using iWeb to generate the HTML. I've noticed that software which attempts to do WYSIWYG word-processing type HTML tends to over-specify the markup, and also make incorrect assumptions. An example is this:

I captured only the center of my browser display, because the rest isn't necessary for showing the vertical gap.

So I looked at the source code, and I see that the HTML is using absolute pixel positioning on the DIV elements. And this is typical of what I see from code generators. The problem is that it assumes that font rendering and monitor resolution will be the same on any platform where the page is viewed. I would be happy to help out with simplifying the layout (it would still look the same) if you're interested.

A couple editorial comments:

I would add a comma in With each, data is supplied to one side of the matrix and a walking bit applied to the adjacent side.

I think I would break this into two sentences. These tutorials (one on the official Arduino site) are very bad and will eventually destroy your Arduino. Although you might think it works for some time eventually the Arduino will fail.

Thanks for your time in writing this (and your other tutorials).
Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, in that big gap is an animation of a multiplexer. What browser are you using? Have you got the quick time extensions?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27120
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The animation worked fine for me with IE9.

I think a comparison picture of Common Anode vs Common Cathode would be helpful too, maybe help keep folks from buying 7219/7221s and the wrong display type, then having to obtain additional parts to make it work.


* Common_Anode_vs_Cathode.jpg (70.7 KB, 960x720 - viewed 20 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks but I am not sure I understand the concept of a common anode or common cathode matrix. This is because all the cathodes in one direction are connected together and all the anodes in the other direction. So all you need to do is to rotate the display by 90 degrees.
For non square matrices then you can get a column cathode and column anode.
Yes I will consider adding something on pre built matrices and matrix driver chips.

Thanks for the report on the animation it took hours to get it up on the FTP site, it worked out that there is a media folder generated that I was failing to transfer. 
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27120
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the common anode vs common cathode comes into play more when you use RGB matrices.
In that case, an 8x8 RGB looks electrically like an 8x24 - if you have one and bought drivers for the other you're kinda screwed.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ha yes quite right. RGB LEDs are probably worth a page to themselves. I is amazing how people still want to connect them in series.   smiley
Logged

CO, USA
Offline Offline
God Member
*****
Karma: 5
Posts: 711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the common anode vs common cathode comes into play more when you use RGB matrices.
In that case, an 8x8 RGB looks electrically like an 8x24 - if you have one and bought drivers for the other you're kinda screwed.

If you buy 7 [8] segment displays, they come pre-wired one way or 'tother.
http://www.sparkfun.com/products/9932
http://www.sparkfun.com/products/9482

For non square matrices then you can get a column cathode and column anode.
Same thing, I believe, just different terminology. And, unless I'm being dyslexic, assumes the column is common.


* 4-digit-7-segment.jpg (52.81 KB, 947x308 - viewed 9 times.)
« Last Edit: August 24, 2011, 06:02:14 pm by justjed » Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

CO, USA
Offline Offline
God Member
*****
Karma: 5
Posts: 711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, in that big gap is an animation of a multiplexer. What browser are you using? Have you got the quick time extensions?

Oh, well, I normally browse with lots of stuff disabled, because I've had too many cases of auto-start media interrupting what it is I'm listening to while I'm browsing. I didn't see the object reference when I looked at the page source, because I didn't know to look for it, and iWeb is not constructing the page with inline images, etc, occurring in the markup in the spot where the the text flow is.

So, my other suggestion is to include a link to the media along with the embed. smiley-red
Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If you buy 7 [8] segment displays, they come pre-wired one way or 'tother.
Very true but the page is about a matrix not a segment (however many) display.

Quote
Same thing, I believe, just different terminology.
Not quite, if you have say a 6 by 7 matrix it defiantly has a "way round", so if it has 6 in the x direction those 6 can be common anode or cathode depending on if you have column cathode and column anode.
With a square matrix you can simply rotate it by 90 degrees.

Quote
my other suggestion is to include a link to the media along with the embed
Good idea I'll do that tonight thanks.
Logged

Texas
Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
Lost in SPI FADE land
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the site and info Grumpy, I have made it my homepage on my browser so I can read EVERYTHING you have there.
TONS of great info!
Logged

CO, USA
Offline Offline
God Member
*****
Karma: 5
Posts: 711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If you buy 7 [8] segment displays, they come pre-wired one way or 'tother.
Very true but the page is about a matrix not a segment (however many) display.

Quote
Same thing, I believe, just different terminology.
Not quite, if you have say a 6 by 7 matrix it defiantly has a "way round", so if it has 6 in the x direction those 6 can be common anode or cathode depending on if you have column cathode and column anode.
With a square matrix you can simply rotate it by 90 degrees.

Quote
my other suggestion is to include a link to the media along with the embed
Good idea I'll do that tonight thanks.

You're welcome. Too bad it doesn't loop when viewed in YouTube.

I think I understand the distinction you're making. (Work was particularly taxing this week, but I think I've mostly recovered.) So, using your drawing with a column of resistors, and a ULN2803, I would say the each row is wired common anode. But, the terminology of column anode [cathode] is referring to the array as a whole.
Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34234
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Too bad it doesn't loop when viewed in YouTube.
I think I will put more cycles on the You Tube video. Interestingly Vimeo wouldn't load it as it said it was too small to be a movie.

Yes the term column anode / cathode only applies for a rectangular matrix, for a square one a rotation of 90 degrees changes it.
Logged

Pages: [1]   Go Up
Jump to: