A Quick LTspice Tutorial - Charging Capacitor

Поділитися
Вставка
  • Опубліковано 2 лис 2024
  • LTspice can be used to quickly and easily simulate a charging capacitor in an RC circuit using a transient analysis. The issue with the transient analysis, is that it assumes that capacitors are already fully charged and are therefore treated as open circuits. To make sure this isn't a problem, you need to set the initial conditions on the capacitor to be at 0 volts.
    This video goes through all the steps you need to simulate a charging capacitor and includes a bonus tip on how to change the thickness of the lines in the simulation plot - by default, they are, in my opinion, far too skinny.
    For more about charging and discharging capacitors, including more SPICE simulation, check out:
    electronx.ca/e...
    which includes introductory circuits courses based around the free and open source text book - Lessons in Electric Circuits by Tony Kuphaldt.

КОМЕНТАРІ • 18

  • @Dragoneer
    @Dragoneer 2 роки тому +7

    3:12 God, thank you so much for this tip!! Spent a near hour pulling my hair out trying to get a very fucking simple RC circuit working with LTSPICE. Why would the initial conditions every _not_ be 0V??? Ridiculous you have to do that...thank you very much for this though, actual life saver...

  • @deejay7339
    @deejay7339 Рік тому +6

    If anyone was like me wondering about the wire thickness go to Tools -> Control Panel -> Drafting options -> Pen Thickness

  • @jberringer1720
    @jberringer1720 Рік тому +1

    Thank you so much! I had been struggling to figure out why my capacitor charging circuit wasn't working in LTspice, and this video was EXACTLY what I needed!

  • @AshishYadav-ul8es
    @AshishYadav-ul8es 10 місяців тому

    The best explanation for Capacitor charging waveform capture, its really helpful to perform the simulation for my circuits

  • @athousandprojects
    @athousandprojects 18 днів тому

    For anyone looking for the trace width in later versions, its under settings now. Tools->Settings then waveform tab.

  • @firasb-ck1dj
    @firasb-ck1dj 4 місяці тому

    Thanks so much , very well explained

  • @137bob3d
    @137bob3d 2 роки тому

    'X Lab person ,
    thanks for putting this LT spice vid together.
    your posting of it is in sync with something active in my life right now.
    my honda motorcycle 80cc engine flywheel coil spits out 3 successive '+' 1/2 sine waves
    200 volt peak every kick - start revolution. they go directly to the CDI module.
    and charge a capacitor or size about 2uF.
    and while 'scoping them and not getting a spark ( faulty trig signal ) an idea arose.
    to connect the 1/2 sine waves to a cap on a bd. - bd. with Rs and see how the
    cap charges. and then once the Rs is found. ...quickly jumper C to the primary of
    the coil and see if a spark follows .
    you get the idea. i see the engine as a signal generator to experiment with.
    so far as learning 'cycle ignition systems.
    the bugger here is the 60's weather just ended and a new cold front is moving in.
    now if i had another way to get a 200Vp sine wave then this exp. could
    continue indoors here where its warm
    so , can you tell me if LTspice can be coded to deliver just 3 200V 1/2 sine waves
    in .050 sec (to sim' a 600 rpm kick start ) ?

  • @iulianprodan3232
    @iulianprodan3232 2 роки тому

    Thank you for the .ic tip

  • @techankhamun838
    @techankhamun838 2 роки тому

    Extremely helpful! Thanks a lot! I liked and subscribed and waiting for more great content like this!

  • @fabriziolavini7457
    @fabriziolavini7457 Рік тому

    Many thanks for the explanation.
    I noticed this.
    Set 10V as supply voltage (no internal resistance).
    Time constant is calculated differently depending on resistance (kept capacitance constant = 1000u).
    R = 0.001 -> RC = 1 us => 61.24%
    R = 0.01 -> RC = 10 us => 61.18%
    R = 100 -> RC = 100 ms => 63.22%
    Calculating 10 x (1 - EXP(-1) ) would give 63.21 %.
    Differences even with peak currents.
    Is it explainable ?
    Thank you again

  • @BRANDONKAMTING-ERNA23KE005
    @BRANDONKAMTING-ERNA23KE005 11 місяців тому

    very useful, thank you!!!

  • @Aggregator_
    @Aggregator_ 4 місяці тому

    for some reasons, the current rises from negative to zero instead of falling from 1.5 mA to Zero, which isnt the typical charging function of the Current in a Capacitor...
    its the discharge function. i dont get why the Current function is delayed like that.
    what did i forget?

  • @mortenlund1418
    @mortenlund1418 Рік тому

    Saved my day. Thanks. It is probably me, but should the .1 step command not be in the end? So
    .tran 10 .1 which is the same as maximum timestep. And if you use the Edit Simulation Command window it will also automatically insert 0 for time to start saving data. Then the complete line will look like this: .tran 0 10 0 .1 Am I understanding it false?

  • @adic9091
    @adic9091 2 роки тому

    Are you wearing special glasses to see the blue line against the black background?

    • @ElectronXLab
      @ElectronXLab  2 роки тому +2

      Yeah, the blue is kinda dark isn't it. It's easy enough to change the colour though. Just click on the signal name at the top of the graph and you'll get some options

  • @jayadevashok2070
    @jayadevashok2070 Рік тому

    This doesnt work for parallel RC circuits for some reason. Needed to put a small resistance in series with the cap to display the charging