Shop OBEX P1 Docs P2 Docs Learn Events
12 volt 8 Segment LED hookup to Microprocessor? — Parallax Forums

12 volt 8 Segment LED hookup to Microprocessor?

RegorRegor Posts: 19
edited 2007-05-09 16:57 in General Discussion
I have an 8 segment LED that requires 12 volts that I want to drive either from a microprocessor running at 3 or 5 volts.

I'm looking for advice on how to minimize the component count for doing this since the only way I can think of is having a Transistor for each output from the Microrocessor.

·

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-04-24 23:57
    The simplest method is using a darlington array, however your LED must have a common anode configuration for darlington arrays to work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • RegorRegor Posts: 19
    edited 2007-04-25 00:19
    That was my original thought process but the 8 digit LED requires a common anode.
    ·
  • RegorRegor Posts: 19
    edited 2007-04-27 21:43
    Meant to say common the 8 segment LED I have has a common cathode.
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-04-30 05:49
    I did some searching, pnp darlington arrays used to be made, but noone makes them anymore. You need to use discrete transistors, and there's an additional rub. You need to include a high side driver chip and transistors. This is because you are switching the high side, that high side is 12V, with a 5V microcontroller it's high side is 5V, thats 7V difference and enough to turn on any transistor. This means you have no way of turning off the transistors, this is where the high side driver comes in, it takes the 0/5V logic and translates it into a true on/off for the transistor.

    The other option is to use a LED segment driver chip which can drive a common cathode, however none are made (that I could find) that work at 12V.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.

    Post Edited (Paul Baker (Parallax)) : 4/30/2007 5:54:08 AM GMT
  • RegorRegor Posts: 19
    edited 2007-04-30 20:26
    I really appreciate you taking the time to look into this. I've never used one but would an Optoisolator work for doing the voltage step up?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-30 20:29
    An optoisolator is an excellent idea.
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-04-30 21:02
    Yeah an optoisolator or a n-type transistor with a pull-up resistor:
        12V    12V
         ^      ^
         |      |
         \      |
         /      |
         \     /
         +---|< pnp
         |     \
         |      |
        /      LED
    --|< npn    |
        \      ---
         |      -
        ---
         -
    

    Actually come to think of it you can just use an optoisolator, since theres no galvanometric connection you can perform the control. Connect the cathode of the LED in the optoisolator to ground and connect the anode to your I/O pin (through a resistor first) you then can use the phototransistor to directly control the segment.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.

    Post Edited (Paul Baker (Parallax)) : 4/30/2007 9:17:11 PM GMT
  • RegorRegor Posts: 19
    edited 2007-05-09 16:57
    As a follow up I ordered a couple of Lite-On LTV-846 optoisolators.· They are working excellent.
Sign In or Register to comment.