Shop OBEX P1 Docs P2 Docs Learn Events
LED Matrix — Parallax Forums

LED Matrix

rapscaLLionrapscaLLion Posts: 75
edited 2010-02-19 15:39 in Propeller 1
Hey all,

I need to control around 500 individual LED pixels. They will be 20mA, White, On/Off only.
I have ideas, but it seems cumbersome. Anyone have any experience with a project like this?

Thanks!

Comments

  • RaymanRayman Posts: 14,745
    edited 2010-02-18 01:02
    I'm about to test out a Prop powered 8x8xRGB LED matrix...

    You could look at the Sparkfun RGB matrix schematic to see how they did it...

    I noticed that some people use these chips: TLC5940

    I guess you have to decide if you want to do common anode or common cathode.

    I'm using some PMOS fets and darlington arrays as well as a demultiplexer...

    If you're brave, you could also look for Clemen's post on "Charliplexing"

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
  • OakGraphicsOakGraphics Posts: 202
    edited 2010-02-18 01:48
    Rayman said...
    I'm about to test out a Prop powered 8x8xRGB LED matrix...

    Oooh! That sounds fun! Do you have pics yet? smile.gif
  • RaymanRayman Posts: 14,745
    edited 2010-02-18 01:54
    Just got everything I need today... There'll be plenty of pics coming (assuming it works at all)

    Lots of hobbyists have done this before with different chips and such...

    The thing I hope to do differently is be able to drive each LED and near it's rated average current...

    Should allow it to work in full sunlight...

    Just today I was thinking it would be neat to add in an accelerometer, but then noticed that someone already
    did a project like that... It's hard to come up with something unique!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
  • OakGraphicsOakGraphics Posts: 202
    edited 2010-02-18 02:02
    interesting...
    the TI application note focus.ti.com/lit/an/slva346/slva346.pdf talks about how to use one of their chips for high current applications. smile.gif Slightly off topic but thanks for the pointer. Might be a simpler solution part's wise for what I would like to do. smile.gif
  • kwinnkwinn Posts: 8,697
    edited 2010-02-18 02:47
    Take a look at the HT1632C. It can control 32x8 or 16x24 leds with 16 levels of brightness. Take a look at this thread: http://forums.parallax.com/forums/default.aspx?f=15&m=399718
  • Agent420Agent420 Posts: 439
    edited 2010-02-18 13:00
    Rayman said...
    The thing I hope to do differently is be able to drive each LED and near it's rated average current...
    An led cube has been on my to-do list for quite a while; ordered a huge bag of leds and then build time seemed to become scarce.

    Anywho, while researching I've seen several recommendations to actually drive the leds at currents higher than their ratings to help overcome the percieved decrease in brightness resulting from the sequenced nature of the driving scheme.· Apparently, it is safe to do this because the led's can dissapate the heat during their 'off' time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • LeonLeon Posts: 7,620
    edited 2010-02-18 13:53
    LEDs should have ratings for pulsed operation. enabling much higher current levels than for continuous supplies. You shouldn't exceed them, though.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-02-18 14:44
    And if they overheat you can always fill the cube with mineral oil (apparently it is all the rage) [noparse]:)[/noparse]

    This thread seems useful:

    http://forums.parallax.com/showthread.php?p=667572

    Some good comments from the lesser-spotted DeSilva.

    Graham
  • RaymanRayman Posts: 14,745
    edited 2010-02-18 16:13
    The LED matrices I have do have pulse ratings... I think it's 100 mA or so, which is fine because that's about all I want to use anyway...
    The total current gets to be quite large with 8x8xRGB all on at full brightness. At 20 mA DC each, that comes to 3840 mA or about
    20 W of 5 V supply power.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2010-02-19 06:46
    Graham Stabler said...
    ·the lesser-spotted DeSilva...
    Alas, still missed.
  • Reset_VectorReset_Vector Posts: 55
    edited 2010-02-19 08:34
    Hi RapscalLion,

    I've made a 4x4x4 RGB led cube, propeller powered.
    It drives 192 leds in PWM mode, and for the drivers I use the ALLEGRO A6818 chips, each one can drive 32 leds.
    I use one chip for each color, driving the anodes, and one ULN2803 to drive the cathodes.
    The leds are arranged as an matrix.


    If you are interested, I can give you the whole code, i've develloped a 192 bits PWM routine wich can certainly be ehanced.

    Attached are some pictures of my cube

    Best regards from FRANCE
    3008 x 2000 - 781K
    3008 x 2000 - 727K
    3008 x 2000 - 577K
  • lockadoclockadoc Posts: 115
    edited 2010-02-19 12:06
    Reset_Vector
    Very cool display

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Life is fun with a Prop.



    BillS
    ··· Louisville KY.
  • RaymanRayman Posts: 14,745
    edited 2010-02-19 15:20
    Reset: That is very nice looking!

    I'm thinking that the Prop is well suited to driving an 8x8xRGB array without external driver chips.
    Even with 32 outputs, you'd need a few to drive the matrix and they seem to be ~$4 each.
    I think I can do this directly from the Prop, hopefully just as well, and maybe even better...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
  • BTXBTX Posts: 674
    edited 2010-02-19 15:39
    Hi Ray & rapscallion

    And you can get 24bit full color without any special PWM driver (using only a programming tip).
    I did it recently, but I never wrote about it in the forum, I got a full color led screen using simple on-off drivers with more than 30fps video.
    I think it could be possible too, controlling leds directly from pchip too.
    It is a challenge Ray, you can do it too, I'm sure. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Regards.

    Alberto.
Sign In or Register to comment.