2 LEDs and one pin left


Closed Thread
Results 1 to 40 of 54

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Wow!!

    Thanks Darrel. That is an awesome gadget. Is there any way to get you to replace d2 and d3 with variable resistors (or fixed if need be) and bypass the 200 ohm on the pin? This way it will be closer to the other circuit. I would love to test it (and yes, I am trying to use your sim instead of my breadboard) I think a more approiate value would be 0-1000 ohms. If not, its all good.
    -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!

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


    Did you find this post helpful? Yes | No

    Default

    Well, the problem with that ... is that the variable resistors would only control current.
    But the correct operation of the LED's depends on the voltage.

    If the total forward voltage of the LED's is less than VDD, both LED's will be ON no matter what the resistor values are. The only difference will be their brightness.

    Given a specific VDD voltage, LED color (V forward) and foward current, the correct configuration can be found.

    And to add 2 variable resistors to the flash demo, would increase the frames from ~50 to more than 500,000. I'm affraid that will take a few years to create, and you probably won't wait the 2 weeks to download it.
    I suppose it could be done more efficiently.

    But again, if you have Proteus, it's a "Piece of Cake".
    DT

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


    Did you find this post helpful? Yes | No

    Default

    thanks darrel, once again, it seems a case of I know not what I ask. Don't worry about the demo then. 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.

    I would just LOVE to have proteus. I tried looking it up 1 time, seems it was in the 4 digits, just a little much for me
    Last edited by cncmachineguy; - 9th November 2010 at 03:59.
    -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!

  4. #4
    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

  5. #5
    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!

  6. #6
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    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

  7. #7
    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

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