LTspice simple RLC circuit

Discussion in 'Programmer's Corner' started by fornaxxx, Nov 21, 2015.

  1. fornaxxx

    Thread Starter New Member

    Nov 21, 2015
    3
    0
    Hi, I'm trying to simulate my first RLC circuit. Source, capacitor, resistance and inductor in that order. However, when I put them in this order in lt spice, the response is nothing like a sine wave slowly decaying. This is represented in the first image im uploading called RLC circuit problem.

    Whats next is weird. By desperately trying to make this work, I interchanged the components of my circuit and managed to get a sine response, but then that is not exactly the circuit I have and i need the voltage across the inductor. This is represented in the second image im uploading called RLC circuit problem2.

    Im just trying to get the sine wave response across the inductor in the first circuit. Is that too much to ask from LTspice?

    Thanks
     
  2. crutschow

    Expert

    Mar 14, 2008
    13,052
    3,244
    LTspice is working fine. The error is in the cockpit. ;)
    Your first circuit is over-damped so it will not oscillate.
    Reduce the value of R1 to an ohm or less.

    The reason the second circuit works is because the inductor is .02H not .02mH which reduces the damping factor.

    Also check Skip initial operating point solution (uic) in the Simulation Command window so it does not solve for a DC solution at the start of the simulation.
     
    fornaxxx likes this.
  3. fornaxxx

    Thread Starter New Member

    Nov 21, 2015
    3
    0
    Thank you, I have to use the third and fifth bumps to generate a pulse in a comparator, and and other stuff, but i could continue without the exact values of those bumps. Is there a way to calculate by hand the max voltage of those bumps in the decomposing sine wave?
     
  4. fornaxxx

    Thread Starter New Member

    Nov 21, 2015
    3
    0
    Oh great, now I look dumb with those typos that i cant edit...
     
  5. crutschow

    Expert

    Mar 14, 2008
    13,052
    3,244
    Here is some mathematical info on a damped sinewave.
    I just let the computer do the calculations in an LTspice simulation and use the values from that.
     
Loading...