voltage regulator or resistor for a pic?


Closed Thread
Results 1 to 8 of 8
  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Smile voltage regulator or resistor for a pic?

    Hello,

    I have a silly question:

    Why should I use a 5V voltage regulator with a 9V battery while I could use a current limiting resistor?

    Thank you

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Because

    Let's say you have a battery (9V) and a circuit that more or less have the same current consumption over time (i.e 100 mA)

    In this case you would need to burn away 4V using a resistor.... but after a while you only have 7V in your battery and then you would need a different resistor value .....

    Or your circuit sometimes uses 2 mA (then you need one value) and then suddenly you shoot your IR LED and draw 200 mA .... then you would need a new value...

    So.. by having a voltage regulator you would always have the correct output voltage no matter what, as long as you stay inside the datasheet for the component.

    Look at a LM7805, it will require from 20V to 7V as the battery voltage to provide 5V out at 1A loads.

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Jumper View Post
    Let's say you have a battery (9V) and a circuit that more or less have the same current consumption over time (i.e 100 mA)

    In this case you would need to burn away 4V using a resistor.... but after a while you only have 7V in your battery and then you would need a different resistor value .....

    Or your circuit sometimes uses 2 mA (then you need one value) and then suddenly you shoot your IR LED and draw 200 mA .... then you would need a new value...

    So.. by having a voltage regulator you would always have the correct output voltage no matter what, as long as you stay inside the datasheet for the component.

    Look at a LM7805, it will require from 20V to 7V as the battery voltage to provide 5V out at 1A loads.
    Right, thank you for your answer.
    In fact I am already using a L7805 voltage regulator, a TO-220 with its nice huge heatsink for my PCB but yesterday when I tried to insert all components on the board I noticed this TO-220 is a little bigger than I first estimated when I drawed the PCB, so to fit on my PCB I have to skew the leads of the two neighboring resistors, this is not very professional. I thought of replacing it by the smaller TO-92 (LM75L05) but this component gives 'only' 0.1A while the L7805 gives 1A.
    I quickly checked the current needed for the components on the board. Everything is fine except when I turn of the LCD backlight (7*10mA) then 100mA won't be enough. That's why I wanted to use a LM78L05 for everything on the board but for the LCD backlight supply and use a current limiter between 9V battery and the LCD backlight anode.
    But when the battery is weakening, I might have a problem. Is it a real problem? The LCD light up very shortly from time to time. You see?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xnihilo View Post
    Right, thank you for your answer.
    In fact I am already using a L7805 voltage regulator, a TO-220 with its nice huge heatsink for my PCB but yesterday when I tried to insert all components on the board I noticed this TO-220 is a little bigger than I first estimated when I drawed the PCB, so to fit on my PCB I have to skew the leads of the two neighboring resistors, this is not very professional. I thought of replacing it by the smaller TO-92 (LM75L05) but this component gives 'only' 0.1A while the L7805 gives 1A.
    I quickly checked the current needed for the components on the board. Everything is fine except when I turn of the LCD backlight (7*10mA) then 100mA won't be enough. That's why I wanted to use a LM78L05 for everything on the board but for the LCD backlight supply and use a current limiter between 9V battery and the LCD backlight anode.
    But when the battery is weakening, I might have a problem. Is it a real problem? The LCD light up very shortly from time to time. You see?
    Put the resistors on the opposite side of the PCB?
    Replace the TO-220 w/ TO-92? Try it. Worst that'll happen is it overheats and shutsdown.
    LCD backlight - why not dedicate a pin and a transistor to PWM'ing the backlight. Probably won't use all of that 100mA. And that is a big backlight. Most of mine don't draw much over 20mA. Is it bright? Like really bright? Maybe you need to increase your backlight current limiting resistor.

  5. #5
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    No available PWM enabled pin, that's my usual problem (I might use a LM555).
    I can reduce the current to the LCD backlight leds, right.
    Thank you.

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    No limit to the number of 5v regulators you can use, use a TO92 reg for each PIC and LCD backlight. Put them anywhere on the board you want to.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    No limit to the number of 5v regulators you can use, use a TO92 reg for each PIC and LCD backlight. Put them anywhere on the board you want to.
    Yes, I didn't think about that. Good idea Thanks

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    No limit to the number of 5v regulators you can use, use a TO92 reg for each PIC and LCD backlight. Put them anywhere on the board you want to.
    There ya go. They're small enough, you could 'deadbug' them all over the place.

    As far as driving the backlight, yes, you should be able to increase the current limiting resistor value to decrease the backlight down to a more manageable level.

Similar Threads

  1. Variable voltage output from a Pic?
    By Dan_lay in forum General
    Replies: 8
    Last Post: - 24th June 2013, 20:25
  2. make a low voltage output from a PIC pin
    By emptyset in forum General
    Replies: 1
    Last Post: - 8th February 2008, 19:20
  3. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  4. Replies: 3
    Last Post: - 29th October 2006, 09:16
  5. Pic suggestion for high precision voltage measure
    By d1camero in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th April 2004, 06:22

Members who have read this thread : 1

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