Electronic Circuits and Projects Forum



LED matrix with less pins?

12 Last »
  1. #1
    edeca edeca is offline

    LED matrix with less pins?

    I'm sure I've seen somewhere an LED matrix with minimum pins. I was going to pick up one of these:

    LED Matrix - LEDM88G

    Which looks perfect for use with Nigel's tutorial. However I'm sure I've seen a few really good circuits that use less port pins by implementing row/column driver ICs.

    I've also seen Mike's excellent PWM version of a similar thing, but I assume that would need all the pins too.

    Can anybody suggest what other components/ICs I should buy at the same time so that I can try it?

  2. #2
    3v0 3v0 is offline
    Moderator
    Choose from the menu. If you have trouble understanding any of this pick the first option.

    Use a processor with enough pins.

    Use shift registers, 74hc595s work well. 3 pins per register chain. With some work you can get that down to 2 pins.

    Buy a IC designed to do the work. Depends on the interface, SPI will be 3 pins.
    0
    Please post questions to the forums. PM's are for personal communication.

    BCHS/3v0's PIC C18 Tutorials
    Mondo Tech's Super Probe
    Brian Schmalz's USB Bit Whacker

  3. #3
    Mike, K8LH Mike, K8LH is offline
    Consider using 8 bit or 16 bit serial-to-parallel "sinking" or "sourcing" driver ICs.

    Example 9 pin design below can drive one to fourteen 8x8 modules. It uses 9 pins forming a high current display module bus which is also used as a 7 channel SPI interface to load the shift register of the source driver ICs on each module in parallel during display "off" time.

    Similar designs using 9 or 10 pins can use "sinking" or "sourcing" driver ICs.

    Other designs might use 3 pins (Data, Clock, and Latch or PWM) and an additional serial-to-parallel driver IC.

    Mike
    Attached Images
    0
    Last edited by Mike, K8LH; 23rd February 2009 at 12:11 PM.

  4. #4
    edeca edeca is offline
    Thanks for both your replies. My futurlec order just arrived and I've got some 74HC595s and a matrix. I assume I can use these for the anodes fine.

    For the cathodes, the datasheet suggests they can sink or source 25mA, so could I use another 74HC595 as a column driver? Or would transistors be a better solution?
    0

  5. #5
    krazy krazy is offline
    I'm working on a project with an LED matrix that requires alot of power (each matrix element is 4 LEDs). I am doing exactly what 3v0 suggested... 74HC595s. They are chainable to a disgusting number of outputs and fairly fast (~20MHz, IIRC).

    If you need to switch alot of power, throw in some Darlington Transistor Arrays - ULN2068B.
    0

  6. #6
    Russ Hensel Russ Hensel is offline
    Quote Originally Posted by edeca View Post
    I'm sure I've seen somewhere an LED matrix with minimum pins. I was going to pick up one of these:

    LED Matrix - LEDM88G

    Which looks perfect for use with Nigel's tutorial. However I'm sure I've seen a few really good circuits that use less port pins by implementing row/column driver ICs.

    I've also seen Mike's excellent PWM version of a similar thing, but I assume that would need all the pins too.

    Can anybody suggest what other components/ICs I should buy at the same time so that I can try it?
    This may be of use:

    http://www.opencircuits.com/PointLess_LED_Array

    uses a high and low side driver, but high pinout pic, so no port expansion.
    Think it is the same led array you just got.
    0

  7. #7
    edeca edeca is offline
    Thanks, they are two useful links. However the PointLess one sure uses a lot of pins, surely the PIC could drive the array without the external ICs!

    I guess my question really was: are the 74HC595s suitable for sinking & sourcing which would be a 6 pin interface to the 8x8 array.. Or am I going to have to use one 74HC595 to drive and 8 transistors which would use 11 pins?

    I'm slightly confused how the 74HC595 sinks current rather than sources it, i.e. how it becomes an "input" rather than an "output".
    0

  8. #8
    Russ Hensel Russ Hensel is offline
    Quote Originally Posted by edeca View Post
    Thanks, they are two useful links. However the PointLess one sure uses a lot of pins, surely the PIC could drive the array without the external ICs!

    I guess my question really was: are the 74HC595s suitable for sinking & sourcing which would be a 6 pin interface to the 8x8 array.. Or am I going to have to use one 74HC595 to drive and 8 transistors which would use 11 pins?

    I'm slightly confused how the 74HC595 sinks current rather than sources it, i.e. how it becomes an "input" rather than an "output".
    the pointless does use a lot of pins, but current output is still limited. the dirvers are I think good for 500 ma per pin, with a total device current of a couple of times that. it is a very conservative design, but could be made very bright
    0

  9. #9
    edeca edeca is offline
    Quote Originally Posted by edeca View Post
    I'm slightly confused how the 74HC595 sinks current rather than sources it, i.e. how it becomes an "input" rather than an "output".
    Ah, so it appears the OE pin on the 74HC595 controls this. I'll have a play and see if I can get normal output onto 8 LEDs first (via sinking & sourcing), then play with the 8x8 matrix.
    0

  10. #10
    Mike, K8LH Mike, K8LH is offline
    Quote Originally Posted by edeca View Post
    I guess my question really was: are the 74HC595s suitable for sinking & sourcing which would be a 6 pin interface to the 8x8 array.. Or am I going to have to use one 74HC595 to drive and 8 transistors which would use 11 pins?
    Directly driving columns and rows from the 74HC595 outputs at a 1/8th or 12.5% duty cycle will not provide enough 'peak' current for a full brightness display.

    If 10 ma forward current through an individual LED provides full brightness then you would need approximately 80 ma forward current or 'peak' current at your 1/8th duty cycle to provide 10 ma 'average' current and to perceive the same brightness level.

    You need to provide 80 ma 'peak' current per LED at 1/8th duty cycle and you need to provide for up to 8 LEDs lighted at one time in a column or row, depending on which way you're multiplexing the display. That's 640 ma 'peak' current on your column or row drivers and that's why I use N-FET (sinking) or P-FET (sourcing) drivers on the rows in my design examples.

    Good luck with your project.

    Mike
    0

12 Last »
Tags
Similar Threads
Thread Starter Forum Replies Last Post
Using the PGD and PGC pins UTMonkey Microcontrollers 9 15th April 2008, 07:22 PM
Need schem or pinout f/LCD dot matrix 320x128, 28 pins conne fernandovil Datasheets, Manuals or Parts 2 10th January 2006, 10:01 PM
ic pins laurent sixtooth General Electronics Chat 3 19th February 2005, 01:18 PM
pic pins Chippie Microcontrollers 1 30th December 2003, 09:28 PM
AGP and PCI pins! matasoft General Electronics Chat 3 30th November 2003, 01:59 PM
Electronic Circuits  |  Learning Electronics

Join our community with over 100,000 Members! It's free, easy and when you're logged in you have many more features! Click to register.
Page Time: 0.05263 seconds      Memory: 7,351 KB      Queries: 17      Templates: 0