PIC driving Adjustable Voltage Regulator


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Your circuit will allow you to vary the output voltage, but only over a narrow range. I see that your input voltage is 24 - which implies to me that you need an output voltage that is probably above 10V.

    The LM317 series of regulators is designed such that the output voltage on pin 2 is 1.2V greater than the voltage at the "adj" pin 1. For that reason, your circuit will have a voltage output of a little over 1.2V (at "0" PWM) or to a maximum of 6.2V at PWM = 255.

    If you want full-range, you should add an op-amp with a gain of about 5 at the R-C junction, and the output of that op-amp would go to the LM317 adjust pin. I would also pull up the PIC output pin to Vcc through a 1K (or so) resistor to help insure that the pin swings close to 5V when it is HIGH.

    Adding an op-amp to the circuit would also let your raise the impedance of the R1/R2 circuit. That would allow for a smaller capacitor and lower your PIC loading.
    Charles Linquist

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis View Post
    Adding an op-amp to the circuit would also let your raise the impedance of the R1/R2 circuit. That would allow for a smaller capacitor and lower your PIC loading.
    Or maybe use one of those digital potentiometers, like the Xicor series types, for your voltage divider...

  3. #3
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default You are loosing the LM317 voltage regulation

    Hi,

    Look at this article here http://www.elecdesign.com/Articles/I...rticleID=13077 . I hope no explanations are necessary.
    Attached Images Attached Images  
    Regards

    Sougata

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


    Did you find this post helpful? Yes | No

    Talking

    Hi Flotul

    I already saw a '317 as a couple of KHz PWM amplifier ( yes ON/OFF !!! ) ... OK ... precisely ON/1.25v ...

    Seems it's also already used in classA amplifiers !!! ( see National Datasheet )

    Just have a nice filtering for the PWM out of the Pic and it will work just as you want !!!

    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 " !!!
    *****************************************

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default ?

    Alain,

    I downloaded the datasheet and quickly read it.

    Could you give me a little more info about what you mean by "a couple of kHz amplifier"?

    Sougata,

    Your link just gives everything I need . I thought I could make something with less components; I'm very short in space.
    Roger

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


    Did you find this post helpful? Yes | No

    Talking

    Hi, flotul

    I just mean the ref pin is driven by a 1kHz 12v p.p. square wave !!!

    The use is a variable switching supply for model Trains ...

    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 " !!!
    *****************************************

Similar Threads

  1. PWM and adjustable voltage regulator
    By bogdan in forum Schematics
    Replies: 0
    Last Post: - 11th September 2009, 13:26
  2. 3V Voltage Regulator with Shutdown Feature
    By rsocor01 in forum General
    Replies: 8
    Last Post: - 30th August 2009, 06:34
  3. voltage regulator or resistor for a pic?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th August 2008, 15:15
  4. make a low voltage output from a PIC pin
    By emptyset in forum General
    Replies: 1
    Last Post: - 8th February 2008, 19:20
  5. Driving a Voltage Regulator with PWM
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th June 2007, 13:14

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