Need to create a circuit with a linear relationship between Vin and Vout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EasyGoing1
    Shock Therapist
    • Sep 2016
    • 977
    • USA

    #1

    Need to create a circuit with a linear relationship between Vin and Vout

    OK, given this circuit:



    Which has this actual relationship between the voltage at the base of the MOSFET and the voltage across the resistor at the drain:



    Notice that the saturation happens rather quickly at low gate voltages. What I'd like is to be able to vary the gate voltage from 0 to 5 volts and have the voltage drop across the resistor be more proportional across that range so that the graph would look more like this:



    How would I go about figuring out how to make a circuit like that?
    sigpic
  • eccerr0r
    Solder Sloth
    • Nov 2012
    • 8701
    • USA

    #2
    Re: Need to create a circuit with a linear relationship between Vin and Vout

    You're using a p-channel schematic drawing again for the n-channel irf520...

    Based on what you're doing here, you have absolutely no advantage to using a MOSFET. If you insist on using a MOSFET in the configuration presented, you need to make a (FAST) negative feedback loop.

    That being said, it's easier with BJTs as they have self negative feedback in emitter follower configuration. And the other hint is that we'll be describing to you something that sounds sort of similar to something else...

    hint is :
    SPEAKER

    ...
    Last edited by eccerr0r; 11-26-2020, 04:27 PM.

    Comment

    • EasyGoing1
      Shock Therapist
      • Sep 2016
      • 977
      • USA

      #3
      Re: Need to create a circuit with a linear relationship between Vin and Vout

      Originally posted by eccerr0r
      You're using a p-channel schematic drawing again for the n-channel irf520...
      I'm not sure why then the cad program lets me chose by part number so it must have the schematic symbol wrong for that part but anyway...

      Originally posted by eccerr0r
      Based on what you're doing here, you have absolutely no advantage to using a MOSFET. If you insist on using a MOSFET in the configuration presented, you need to make a (FAST) negative feedback loop.

      That being said, it's easier with BJTs as they have self negative feedback in emitter follower configuration. And the other hint is that we'll be describing to you something that sounds sort of similar to something else...

      hint is :
      SPEAKER

      ...
      I'm not married to ANY specific components ... I just need the results that I need whatever it takes to make that happen, I'm all in.
      sigpic

      Comment

      • eccerr0r
        Solder Sloth
        • Nov 2012
        • 8701
        • USA

        #4
        Re: Need to create a circuit with a linear relationship between Vin and Vout

        Well you seem to be married to a method at the moment. I can only guide you through that path now.

        The hint of what you're asking for, well, aren't audio equipment supposed to be linear to faithfully reproduce sound.

        So what you need is to build an audio amplifier - which would be linear. Bipolar transistors behavior in the forward active region is linear with respect to base current which is what you want. MOSFETs are second order so you'll need second order feedback to return to linear.

        A power audio amplifier IC or even a LM317T would easily do the job you want minus the limitations in power handling, which is another side effect to be included why this approach to solving your initial problem is nonideal, but enough said.

        Comment

        • budm
          Badcaps Legend
          • Feb 2010
          • 40746
          • USA

          #5
          Re: Need to create a circuit with a linear relationship between Vin and Vout

          I am curious about your schematic capture and simulation program you are using, I cannot see how you can get those graphs from the circuit simulation when the wrong MOSFET is used to simulate the circuit, this is the second time your schematic shows the wrong MOSFET.
          Last edited by budm; 11-27-2020, 01:04 AM.
          Never stop learning
          Basic LCD TV and Monitor troubleshooting guides.
          http://www.badcaps.net/forum/showthr...956#post305956

          Voltage Regulator (LDO) testing:
          http://www.badcaps.net/forum/showthr...999#post300999

          Inverter testing using old CFL:
          http://www.badcaps.net/forum/showthr...er+testing+cfl

          Tear down pictures : Hit the ">" Show Albums and stories" on the left side
          http://s807.photobucket.com/user/budm/library/

          TV Factory reset codes listing:
          http://www.badcaps.net/forum/showthread.php?t=24809

          Comment

          • eccerr0r
            Solder Sloth
            • Nov 2012
            • 8701
            • USA

            #6
            Re: Need to create a circuit with a linear relationship between Vin and Vout

            Actually I think his waveform is correct ... sort of ... for how he simulated it, providing the model used in the schematic indeed is a p-channel device.

            The waveform is really bad and shows nothing like what you'd want for a real circuit indeed because the transistor being used incorrectly...

            Comment

            • budm
              Badcaps Legend
              • Feb 2010
              • 40746
              • USA

              #7
              Re: Need to create a circuit with a linear relationship between Vin and Vout

              You mean N-CH.
              Never stop learning
              Basic LCD TV and Monitor troubleshooting guides.
              http://www.badcaps.net/forum/showthr...956#post305956

              Voltage Regulator (LDO) testing:
              http://www.badcaps.net/forum/showthr...999#post300999

              Inverter testing using old CFL:
              http://www.badcaps.net/forum/showthr...er+testing+cfl

              Tear down pictures : Hit the ">" Show Albums and stories" on the left side
              http://s807.photobucket.com/user/budm/library/

              TV Factory reset codes listing:
              http://www.badcaps.net/forum/showthread.php?t=24809

              Comment

              • eccerr0r
                Solder Sloth
                • Nov 2012
                • 8701
                • USA

                #8
                Re: Need to create a circuit with a linear relationship between Vin and Vout

                After looking at the scale of the initial waveform something is indeed messed up even for N-channel as the threshold voltage hasn't been reached though subthreshold leakage may be occurring.

                I'd still say throw this all away, go back to the drawing board, and forget about sinusoidal output prior the the output stage.

                Comment

                • redwire
                  Badcaps Legend
                  • Dec 2010
                  • 3910
                  • Canada

                  #9
                  Re: Need to create a circuit with a linear relationship between Vin and Vout

                  The simulator is out to lunch, the 10MEG is too large and the mosfet drawn as P-ch, and the body diode would just stay on, never letting Vout go above 0.7V but the graph does not agree. It looks like a poor simulator.

                  The Falstad simulator is better for understanding circuits:
                  https://falstad.com/circuit with many examples https://falstad.com/circuit/e-index.html

                  IRF520 has leakage current of over 10uA so a 10MEG would not work.

                  For sanity, the IRF9520 is not a IRF520.
                  Attached Files

                  Comment

                  • budm
                    Badcaps Legend
                    • Feb 2010
                    • 40746
                    • USA

                    #10
                    Re: Need to create a circuit with a linear relationship between Vin and Vout

                    It looks like crappy schematic capture/simulator program with bad component libraries.
                    I mean you look at the schematic you can just see what is not right right away, I.E. the effect of body diode of that P-CH MOSFET. This where basic understanding of of how components works come in instead of on relying on the CAD program alone.
                    Like I said, this is not he first time OP shows us bad schematic using this CAD program.
                    https://www.badcaps.net/forum/showpo...08&postcount=1
                    Last edited by budm; 11-27-2020, 06:32 PM.
                    Never stop learning
                    Basic LCD TV and Monitor troubleshooting guides.
                    http://www.badcaps.net/forum/showthr...956#post305956

                    Voltage Regulator (LDO) testing:
                    http://www.badcaps.net/forum/showthr...999#post300999

                    Inverter testing using old CFL:
                    http://www.badcaps.net/forum/showthr...er+testing+cfl

                    Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                    http://s807.photobucket.com/user/budm/library/

                    TV Factory reset codes listing:
                    http://www.badcaps.net/forum/showthread.php?t=24809

                    Comment

                    Related Topics

                    Collapse

                    • прямо
                      Help me understand this linear supply circuit.
                      by прямо
                      Was looking for a simple CV CC linear supply to build and came across this one.

                      https://oshwlab.com/svalentin544/lab...ply-0-38v-0-5a

                      I etched the provided board design and populated it.

                      The output voltage adjustment works.
                      ​​​​​​
                      The output current adjustment however, doesn't behave like I expected it to be. If PR2 is going clockwise, the output voltage decrease. Adjusting R5 has no effect.

                      I don't have a load connected to the output at all.

                      ​​​Can someone explain how the current adjustment work?...
                      02-17-2025, 11:09 PM
                    • Alimash
                      op amp circuit function?
                      by Alimash
                      Hi,
                      I am repairing a ups which doesn't turn on ,it has the following ICs:
                      SG3525 used to drive inverter mosfets.
                      couple of uc3483, one for the power supply and another to drive a big mosfet at the output stage(i think the technique is called boost)
                      A LM358 and TL074 for control mechanism and of course the uController.

                      The SG3525 is shutting down every time the ups is turned on.
                      I want your help to know the function of LM358 and TL074 in the system.
                      I reverse engineered the LM358 circuit and i think that one of the block(A) is used for battery level...
                      07-31-2025, 07:45 AM
                    • Astonished
                      Fixing the Charge Circuit of the Batteries of the DC Motor
                      by Astonished
                      Hi friends of electronics

                      What you see in the video and pictures attached is the circuit for charging the batteries of a DC motor.

                      The problem is that this circuit cannot charge the batteries (3 1800mAH NiMH batteries) any more. When the circuit was OK, its green LEDs lit up one at a time to show that the batteries have charged more. But now that the circuit is flawed, LEDs light up as you see in the video and at the same time successive beeps are heard.

                      Please help me fix this circuit.

                      (the datasheet of the IC: https://pdf.datasheet.live/28...
                      01-28-2025, 06:24 AM
                    • rddube
                      Lenovo L490 Ram voltage circuit malfunction
                      by rddube
                      Hello friends,

                      Looking for some guidance here. The RAM voltage circuit on this motherboard keeps burning out PU301 which is a RT8231AGQW. Copy of the board with the burnt chip attached with some voltage measurements and copy of the schematics also included.

                      I think I've checked almost every component in the circuit, but when I change the RT8231, the laptop starts I have 1.2V on the inductor for about 10 seconds and then the RT8231 goes south and no more voltage on the inductor. All other voltages on the laptop are good, this is the only one conking out for a reason I...
                      07-15-2025, 04:41 PM
                    • Tarot Superstars
                      Short Circuit tester
                      by Tarot Superstars
                      Hello.
                      I have seen a short circuit tester made with 3 * 9V batteries, a voltage limiter component and a resistor connected to the probes of a multimeter.
                      The theory is that the meter becomes sensitive enough to read very low resistances and the lowest resistance to ground on a circuit is likely to be a short circuit in that area.

                      Link
                      The Amazing $1 Short Finder Upgraded! Convert ... - YouTube
                      https://www.youtube.com/watch?v=0eixDdCpiO4

                      My multimeter isn't normally sensitive to very small resistance, but when I put a 1 mega ohm resistor...
                      09-25-2023, 09:11 AM
                    • Loading...
                    • No more items.
                    Working...