+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Advanced Member level 4
    Points: 7,079, Level: 20

    Join Date
    Dec 2015
    Location
    Madrid, Spain
    Posts
    1,244
    Helped
    308 / 308
    Points
    7,079
    Level
    20

    Wrong simulation results in Falstad

    What is going on here?



    The input is a simple sine wave with 1V amplitude.

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 50,445, Level: 54

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,407
    Helped
    2464 / 2464
    Points
    50,445
    Level
    54

    Re: Wrong simulation results in Falstad

    Lefthand output is 6V, righthand 5V. Both schematics have a 5:1 feedback ratio (or so it appears).

    I tend to think of the one formula (R2/R1) for the righthand situation. It's easy to remember. But there's another formula for the lefthand situation. Op amps are counter-intuitive that way.



    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 4
    Points: 7,079, Level: 20

    Join Date
    Dec 2015
    Location
    Madrid, Spain
    Posts
    1,244
    Helped
    308 / 308
    Points
    7,079
    Level
    20

    Re: Wrong simulation results in Falstad

    The gain is correct(6 left one) but what about the phase of the output? Input=sine wave

    Left circuit is a non-inverting one but the output is inverted ! When sine wave goes up, output should have gone up, but there goes down.

    Right circuit(gain=-R2/R1) is an inverting one but it's output is not inverted ! When sine wave goes up, output should have gone down, but there goes up.
    Last edited by CataM; 13th February 2016 at 23:34.



    •   AltAdvertisment

        
       

  4. #4
    Advanced Member level 5
    Points: 18,360, Level: 32
    Achievements:
    7 years registered
    crutschow's Avatar
    Join Date
    Feb 2012
    Location
    L.A. USA Zulu -8
    Posts
    3,562
    Helped
    839 / 839
    Points
    18,360
    Level
    32

    Re: Wrong simulation results in Falstad

    I don't see the input waveform to compare its phase to the output.
    Zapper
    Curmudgeon Elektroniker


    1 members found this post helpful.

  5. #5
    Super Moderator
    Points: 50,445, Level: 54

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,407
    Helped
    2464 / 2464
    Points
    50,445
    Level
    54

    Re: Wrong simulation results in Falstad

    Falstad's AC source is ambiguous as to whether it is oriented upside-down or right side up.

    You can tell by looking closely at the color of its wires. The upper wire appears red (negative) in both your schematics. Therefore the op amp inputs are working properly in regard to inverting or not inverting.

    Most Falstad icons do not indicate the orientation of a component. I find it helps if I put an 'Analog output' at one lead, for a volt reading or scope trace. It's unambiguous.



    Notice the snapshot was taken at a time when the source has a green upper wire, or positive waveform.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  6. #6
    Advanced Member level 4
    Points: 7,079, Level: 20

    Join Date
    Dec 2015
    Location
    Madrid, Spain
    Posts
    1,244
    Helped
    308 / 308
    Points
    7,079
    Level
    20

    Re: Wrong simulation results in Falstad

    Yes Brad you are right. I noticed that when trying to place a DC supply "Add voltage source 2 terminal (v)" that always appears placed upside down because I always drag the mouse to draw it from up to down and when I placed the AC source the 40 hz number did not appear in the wrong side and thought it is only for DC sources that they place it upside down.



--[[ ]]--