35mA led with 25mA pic output?


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RussMartin View Post
    It may be that the 35mA rating for the LED you describe is a maximum, do-not-exceed rating. If you can find the data sheet for the LED, see if it also gives a typical operating current.

    People sometimes forget that most LEDs will produce full brightness long before maximum rated current is reached.

    A couple of replies have suggested a 220 ohm resistor; that or even a 180 ohm resistor would be a good starting point. Depending on the Vf of the LED, that will give you something between 14 and 19 mA. You may be surprised to find that the LED is quite bright.



    Piezo tone/buzzer devices are basically voltage-driven; the greater the voltage, the louder the sound. The 9 mA rating is probably for the 12 VDC maximum; at 5 volts, it will likely draw only 4 or 5 mA.
    They say "max dc forward current" and "Typical" FC is 35 mA
    See: http://www.futurlec.com/LEDR3R.shtml

    About the buzzer, thanks for the info, I'm surprised it needs only 9mA (7mA in fact) at 12V. That's cool.

    I lear so many things here.
    Last edited by xnihilo; - 26th October 2008 at 20:58.

  2. #2
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xnihilo View Post
    They say "max dc forward current" and "Typical" FC is 35 mA
    See: http://www.futurlec.com/LEDR3R.shtml
    You are misreading the table.

    The third line is saying that the maximum DC forward current is typically 35 mA. It means that for some of the LEDs, it may be a little more and for others a little less, but what it is telling you for sure is, "Don't exceed 35 mA."

    The first line of the table is probably more indicative, where it shows a typical forward voltage (Vf) of 2 VDC when run at 12 mA. This sounds like a typical operating condition and is probably as bright as it needs to be.

    So you need a series resistor of 220 ohms (13.6 mA), but you can probably use down to 150 ohms (20 mA).
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RussMartin View Post
    You are misreading the table.

    The third line is saying that the maximum DC forward current is typically 35 mA. It means that for some of the LEDs, it may be a little more and for others a little less, but what it is telling you for sure is, "Don't exceed 35 mA."

    The first line of the table is probably more indicative, where it shows a typical forward voltage (Vf) of 2 VDC when run at 12 mA. This sounds like a typical operating condition and is probably as bright as it needs to be.

    So you need a series resistor of 220 ohms (13.6 mA), but you can probably use down to 150 ohms (20 mA).
    ... Right. Thank you.
    Stuff like "Vcc=Min,Iol=MAX,Vih=MAX" is not yet so obvious for me.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    .....Information removed at the risk of annoying RussMartin......
    See post below....
    Last edited by skimask; - 29th October 2008 at 10:48.

  5. #5
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Most of those abbreviations are listed at the bottom of the pages of the datasheets.
    If not there, usually a Google-search and/or Wiki will get you the answer on whatever the abbreviation means. In this case:
    Vcc = voltage common-collector, generally positive voltage input
    Iol = current, output, low (sinking current)
    Vih = voltage, input, high
    . . . and which have nothing to do with either his question or his LED. I believe he was conveying his thanks to me, not asking another question.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RussMartin View Post
    . . . and which have nothing to do with either his question or his LED. I believe he was conveying his thanks to me, not asking another question.
    Well excuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu uuuuuuuuuuuuuuuuuuse me

Similar Threads

  1. comp music with pic Sounds - Aka BeepMaster
    By flipper_md in forum Code Examples
    Replies: 18
    Last Post: - 20th September 2010, 06:04
  2. Calulating BJT base resistance for PIC led switching?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 20th November 2008, 08:41
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. Capacitor on PIC output
    By Michael in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st March 2008, 19:10
  5. PIC16F877A PAUSE command
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 12th December 2006, 01:40

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