Author Topic: Help with led driver  (Read 7715 times)

0 Members and 1 Guest are viewing this topic.

Offline iceisfunTopic starter

  • Regular Contributor
  • *
  • Posts: 140
  • Country: us
Help with led driver
« on: October 12, 2013, 07:06:55 pm »
I have some 7 segment common anode 12 vdc LED segments I am trying to drive with a Max7219 and a PIC32 and I'm having trouble with the way these 7 segment displays work.

I've got some common cathode normal 7 segment displays that I have working great in my example breadboard.

Can someone give me some direction on driving these monsters?

 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5135
  • Country: ro
  • .
Re: Help with led driver
« Reply #1 on: October 12, 2013, 07:53:01 pm »
Max 7219 is a common cathode driver ... it's kinda hard and pointless to use it with common anode led segments.

You can use something like ULN2003A (7 darlington array) or ULN2803A (8 darlington array) which enables you to light up individual segments... like in this picture here:



 You enable power to a particular number in the seven segment display by energizing the npn transistor npn transistor (or whatever you want, mosfet etc), then light up the segments you want by sending power to the base of individual darlington elements in the uln2803a set. When the darlington element is active, it passes electricity to ground, so it completes the circuit making electricity flow through the led segments. If you want to reduce the number of pins, you can add a simple shift register IC in the front of the uln2803A.
« Last Edit: October 12, 2013, 07:59:18 pm by mariush »
 

Offline iceisfunTopic starter

  • Regular Contributor
  • *
  • Posts: 140
  • Country: us
Re: Help with led driver
« Reply #2 on: October 13, 2013, 06:00:02 am »
Ok I have this working now, thanks

I've used these to drive DPSS TTL laser to ground before, should have thought of these
 

Offline geraldjhg

  • Regular Contributor
  • *
  • Posts: 61
  • Country: ar
Re: Help with led driver
« Reply #3 on: October 14, 2013, 01:29:27 pm »
hi
not easy with current hog displays
for newer displays (less thn 5ma per seg)
drive directly from mcu and use a uln 2003
as digit sink
saludos
G E R A L D
 

Offline iceisfunTopic starter

  • Regular Contributor
  • *
  • Posts: 140
  • Country: us
Re: Help with led driver
« Reply #4 on: October 19, 2013, 07:45:26 pm »
I got it working with the MAX7219, ULN2803 and a Hex Inverter



 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf