35mA led with 25mA pic output?


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Smile 35mA led with 25mA pic output?

    I have no 5v 10mA led left and the only led i have is 2v 35mA and I have to use that with a pic which can output maximum 25mA per pin. What will happen??

    Something else. The piezzo buzzer i use is 3-12v continuous tone, 9mA. 9mA for what voltage??

    Thank you if you can explain this to me.

  2. #2
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xnihilo View Post
    I have no 5v 10mA led left and the only led i have is 2v 35mA and I have to use that with a pic which can output maximum 25mA per pin. What will happen??
    Hi, can you say what you THINK might happen,


    ____

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by duncan303 View Post
    Hi, can you say what you THINK might happen,


    ____
    Led will glow dimmer...?

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Place a 220 ohms resistor in series to your led. If you want it brighter, then you should use a transistor. Your beeper can be connected directly to the pic output.

    Al.
    Last edited by aratti; - 24th October 2008 at 11:10.

  5. #5
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    You'll compromise the integrity of the pin trying to draw too much current from it with your 35mA LED. Possibly damage the PIC.

    Put a transistor in the circuit.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi Xnihilo,

    If you want to keep the full LED brightness you must use some sort of buffer (a small NPN or PNP transistor or a low power N or P channel FET or MOSFET will be your best choices) combined with a 82 Ohm resistor for your 2V 35 mA LED.
    If you don’t mind loosing some brightness a limiting resistor (in your case 120 Ohm will give you 25 mA or 150 Ohm will give you 20 mA).
    All you have to do is trying and decide.

    Regards,

    Nick

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Hi,

    Two paralled-trough-180 Ohms-resistors pins will do it ...

    simple way.

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Nicmus View Post
    Hi Xnihilo,

    If you want to keep the full LED brightness you must use some sort of buffer (a small NPN or PNP transistor or a low power N or P channel FET or MOSFET will be your best choices) combined with a 82 Ohm resistor for your 2V 35 mA LED.
    If you don’t mind loosing some brightness a limiting resistor (in your case 120 Ohm will give you 25 mA or 150 Ohm will give you 20 mA).
    All you have to do is trying and decide.

    Regards,

    Nick
    I understand i should use the 5v power supply with a 82 ohms limiter and switch led with a transistor in order to have full brightness but i do not wish to add a transistor. I should then either choose an inline current limiter and chose the adequate value for let's say 20mA and have a dimmer led or get a 10mA led.
    Okay, thanks all for your answers.

  9. #9
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by J. Mark Wolf View Post
    You'll compromise the integrity of the pin trying to draw too much current from it with your 35mA LED. Possibly damage the PIC.

    Put a transistor in the circuit.
    I see, the led will try to draw the 35mA it needs. The Chicago red 5v 10mA i used before were better
    Thanks

  10. #10
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aratti View Post
    Place a 220 ohms resistor in series to your led. If you want it brighter, then you should use a transistor. Your beeper can be connected directly to the pic output.

    Al.
    Okay, thank you but tell me, how did you calculate this 220 ohms value?

  11. #11
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xnihilo View Post
    I have no 5v 10mA led left and the only led i have is 2v 35mA and I have to use that with a pic which can output maximum 25mA per pin. What will happen??

    Something else. The piezzo buzzer i use is 3-12v continuous tone, 9mA. 9mA for what voltage??

    Thank you if you can explain this to me.
    easy way just connect 1kohm Resistor serially with your 2v led and it will work fine

    regards

  12. #12
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by eng.alamin View Post
    easy way just connect 1kohm Resistor serially with your 2v led and it will work fine
    You must mean like is suggested in posts #4, #6, #7, #11, #13 and a few others?
    Maybe not that exact value...but...well...

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