Wigan, UK
Offline
God Member
Karma: 18
Posts: 807
|
 |
« on: July 06, 2010, 07:27:39 am » |
Afternoon, What would be the best / easiest way to control an array of 1,280 (or a large number. More than a few anyway) LEDs so I can tell each LED to be off, on, 33% or 66%?
Would it be PMW control or having three circuits, each with a different voltage, or is there a way to vary resistance? I don't really know, that's why I'm asking.
I have an Idea, but I don't know how to go about it.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 272
Posts: 25439
Solder is electric glue
|
 |
« Reply #1 on: July 06, 2010, 08:03:45 am » |
Anything involving that number of LEDs is not going to be easy or cheap. Especially as you want to control them individually and proportionately. You say an array but do you want a matrix and refresh / multiplex it or do you want control over each LED.
Probably the best bet is by changing the voltage applied to the LED by use of a 2 bit D/A made from resistors. It is not clear if you want 33% power or 33% brightness but this is not the same thing. If it is control of brightness you want then you will need maybe more than 2 bits per LED.
If you look at your cost per LED I can't see it being less than $0.50 which makes it an expensive project.
|
|
|
|
|
Logged
|
|
|
|
|
Wigan, UK
Offline
God Member
Karma: 18
Posts: 807
|
 |
« Reply #2 on: July 06, 2010, 09:03:35 am » |
To explain myself, I have one of those sparkfun UART cameras.
It's minimum picture quality is 2 bit greyscale (so four states). I'd like to grab a picutre and have it displayed on LEDs. 1,280 LEDs is 40x32 which is half the lowest pixel depth that camera will do. I could go lower, especially as proof-of-concept.
So, by voltage I do mean brightness.
edit: I've realise I could use 8x8 LED matricese, 5x4 would be the same resolution as my 1,280 LEDs. Would that be easier?
|
|
|
|
« Last Edit: July 06, 2010, 09:05:15 am by cowjam »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 272
Posts: 25439
Solder is electric glue
|
 |
« Reply #3 on: July 06, 2010, 12:51:44 pm » |
Would that be easier? Yes but I doubt it would work. This is because I think you would have to multiplex them and there would not be enough time to do the multiplexing and read in the image. It is also more difficult to control the individual brightness of each LED when you are refreshing a matrix.
|
|
|
|
|
Logged
|
|
|
|
|
Wigan, UK
Offline
God Member
Karma: 18
Posts: 807
|
 |
« Reply #4 on: July 07, 2010, 03:26:09 am » |
Thanks Mike.
I might try reduce it to on/off, and a much smaller display (I've got four 8x32 LED matrx displays so I can try a monochrome 32x32 display).
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 272
Posts: 25439
Solder is electric glue
|
 |
« Reply #5 on: July 07, 2010, 04:54:02 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Wigan, UK
Offline
God Member
Karma: 18
Posts: 807
|
 |
« Reply #6 on: July 07, 2010, 09:40:05 am » |
Yeah, that's pretty much what I want to do.
I hope to get better contrast so it'll show a face.
edit: but not live. I'm quite happy to do snapshot, process, display, wait for trigger and repeat.
|
|
|
|
« Last Edit: July 07, 2010, 10:09:38 am by cowjam »
|
Logged
|
|
|
|
|
|