2 LEDs and one pin left


Closed Thread
Results 1 to 40 of 54

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Actually, I'd rather know your conditions and do the math.
    What is it you need to do with your LED's?
    VDD, LED Forward Voltage / Forward Current?
    See if the theory works?

    Quote Originally Posted by cncmachineguy View Post
    ... As for the actual circuit, I will have to mull over why the 2 resistors in series with the led's doesn't create a voltage divider.
    Because the voltages across the resistors are changed by the voltage drops that are controlled by the LED's.

    I would just LOVE to haave proteus. I tried looking it up 1 time, seems it was in the triple digits, just a little much for me
    That's what I thought too at first.
    But they have a $250 "starter version" that gives you a 12F, 16F and an 18F.
    Of course it comes with all the other logic chips, analog stuff and test instruments.

    Even if it's not the exact chip you target, the "Family" is usually close enough to know your program has a chance.

    Beware:
    Once you get used to it ...
    You probably will spend $1000 for the full PIC version.
    DT

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    The LED's will be board level indicators, showing drive enables, disabled, or in a fault
    red is 2Vf @ 10-20ma green is 2.2Vf @ 10-20ma

    Vcc 5V

    Now I could use 3.3Vsupply for the LED's But was trying not to add that.

    $250 I could deal with, its the beware I am listing too!
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default

    Yes, after I posted that attachment I realized it was wrong. The correct value for the resistors should be between 100 and 330 ohms depending on the brightness that you want. I'm sorry for the confusion.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    I am using this technique with 6K8 resistors on 3.1V/1500mcd LEDs.
    Vdd is 5.0V.

    I am using one pin to simulate TX and RX transmission with two LEDs inside Hserin and Hserout routines.
    The light level is more than good enough for the purpose.
    I am %100 satisfied with the result.

    __________________________
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default did some tests today

    here was the setup:

    5Vdc->R1->2.2vF LED->1.9vF LED->R2->GND
    R1=R2
    first tried 240 ohm, Great brightness for each, pretty bright with no input
    next up 1K, simular results just dimmer
    last 4.7K, No real output for off, bright enough to see with input, but not really enough for an indicator in this app.

    So my opinion is everybody in this thread is correct in some respect.

    I feel like the best solution is to use a 3.3V supply. that way there is NO way to light both, and each can be nice and bright. Now, question for the masses: can we use a voltage divider to get this 3.3 from 5? This seems to me to be the least costly answer. Just 2 resistors and off we go. Hang a resistor inline with the signal pin and life is good. My perticular application will have 6 sets of LED's so if 1 from each set were on at once, could be 120mA.droping 1.7 volts, that would be 1.7*.12=.2W. That part doesn't seem too bad. Of course they could be strobed so there would never be more than 1 on at a time, then it would be 1.7*.02=.034W
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    can we use a voltage divider to get this 3.3 from 5?
    And run the whole thing? Nope.

    Using 5 volts with 470 resistors the thing I posted works fine.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default well its my DOH!!

    Dave thank you! I actually intended to hook it up this way, but somewhere between yesterday and today I got myself turned around. I even drew it up this way in my schmatic. double DOH! So 470 both sides, makes sense to me!

    Prolly the only size sips I didn't order.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts