ngspice in KiCad 8: amplifier using the TI OPA1641 audio opamp

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.พ. 2024
  • Setting up and simulating an amplifier using the TI OPA1641 audio opamp.

ความคิดเห็น • 15

  • @JakePoznanski
    @JakePoznanski หลายเดือนก่อน

    Awesome series for refreshing my memory on SPICE and also making it practical with the great KiCad tools you show. Thank you!

  • @ion1969
    @ion1969 หลายเดือนก่อน +1

    Thanks for a great series of videos! It has the right pace and right level of detail.
    🎉🎉🎉

  • @osha1237
    @osha1237 หลายเดือนก่อน

    Thank you very much. Your Videos have been very resourceful to me

  • @Electheo
    @Electheo 2 หลายเดือนก่อน +5

    Great and detailed walkthrough, thanks!

  • @mogalagadiphahleng921
    @mogalagadiphahleng921 หลายเดือนก่อน

    Thanks you saved my Day

  • @bigbazer
    @bigbazer 2 หลายเดือนก่อน +1

    Thanks for the video and I’m looking forward to more videos you make on Kicad 8.
    I found it was easy to follow for a complete novice to Kicad 8 like me.

  • @SoundSleuth
    @SoundSleuth 2 หลายเดือนก่อน

    This is one of my goto Op Amps so great to see a simple Spice simulation and with KiCad8. Thank you!

  • @splackism
    @splackism 2 หลายเดือนก่อน +2

    Thanks for the video. It might be nicer to use keyboard shortcuts to speed things up a little.

    • @bigbazer
      @bigbazer 2 หลายเดือนก่อน

      I’m completely new to Kicad 8 and I don’t need things speeding up with keyboard shortcuts or I will get lost, I just need to learn the program and know where to click to find stuff.
      But I’m finding the shortcuts as I go along and using them when I can remember them.

  • @BruSilveira0
    @BruSilveira0 หลายเดือนก่อน

    Can you explain about FFT?
    The pure sinusoidal 1khz/1V source, with 100ns timestep and 100ms samples...
    the graph appears to not have enough samples.
    In LTspice I use the options plotwinsize=0 and numdgt=24 to improve the graph a lot, but in ngspice I don't know how to apply this, can you help?
    Thanks!

  • @torpemil6654
    @torpemil6654 7 วันที่ผ่านมา

    hey, thanks for this series. I tried this with the opamp OPA 1602. But the Kicad 8 implemented opamp symbol has not pins for vcc and vee (it has just 3 pins 1=out,2=(-),3=(+)), but in that pineditor text the power supply where mentioned (.SUBCKT OPA160x IN+ IN- VCC VEE OUT ). So i guessed I just follow that text file with the pin editing: (pin1=out,pin2=(-),pin3=(+),pin4=(V-),pin5=(V+)). I even edited the symbol and added Pin 4 and 8 for VEE and VCC. But nothing worked. A Video how to get a OPA1602 or 1678 working would be much appreciated!!! thank you

    • @holger8105
      @holger8105  7 วันที่ผ่านมา

      Indeed the symbol has 8 pins, as the real 1602 circuit has. Select the symbol, then click three times onto the Eeschema canvas: A and B opamp part symbols, C as the power pins.
      The simulation model has only 5 pins, as is common for opamps. So some translation is required between model and symbol. Currently this has to be done manually by the user, see ngspice.sourceforge.io/ngspice-eeschema.html#multi for an example. Yes, I should do a video about this.

  • @wolpumba4099
    @wolpumba4099 หลายเดือนก่อน

    *Abstract*
    This video tutorial demonstrates how to simulate an audio amplifier circuit using the OPA1641 operational amplifier in KiCad 8 [edited] and NGspice. Key concepts and steps covered in the video include:
    * *Circuit Design:* Creating a schematic for an inverting amplifier configuration with a gain of 10.
    * *Component Selection:* Choosing resistors, power supplies, and an input voltage source with appropriate values
    * *Obtaining Spice Model:* Downloading the OPA1641 Spice model from the Texas Instruments website.
    * *Model Integration:* Attaching the downloaded spice model to the OPA1641 symbol in the schematic.
    * *Pin Mapping:* Correctly mapping model pins to symbol pins for accurate simulation.
    * *Simulations:* Performing both transient and AC simulations to analyze the amplifier's time-domain response and frequency response.
    *Summary*
    * *0:00* Create a new KiCad project and name it appropriately.
    * *0:35* Find, select, and place the OPA 1641 amplifier symbol in the workspace.
    * *1:43* Add resistors, ground, and power supply symbols to the project.
    * *2:33* Add necessary power symbols (VCC and VRE).
    * *3:19* Add labels for input (in) and output (out).
    * *3:53* Connect power supplies to amplifier.
    * *5:11* Assign values to power supplies (+15v, -15v) and resistors (10k and 100k for amplification factor of 10).
    * *5:40* Add input voltage using the Vsin (sinusoidal input symbol).
    * *6:19* Configure Vsin with DC=0, Amplitude=0.1, Frequency=1khz and set the AC tag to 1 for AC simulation.
    *Finding and Integrating the Spice Model*
    * *6:55* TI provides the necessary spice model. Search on their website, download, and extract.
    * *8:19* Examine the `.lib` file to confirm it contains the OPA 1641 subcircuit model.
    * *9:14* Save the `.lib` file within the project directory.
    * *9:45* Attach the model to the OPA 1641 symbol in KiCad.
    * *10:30* Be aware: Pin layouts in the spice model might not match the symbol. Adjust pin mappings carefully within the model editor.
    *Setting Up and Running Simulations*
    * *12:57* Start with a Transient simulation
    * *13:15* Set appropriate time resolution and final time (example: 10us and 10ms)
    * *13:36* Mark the in and out voltages for plotting.
    * *13:44* Run the simulation. Verify the input amplitude of 0.1 and expected output indicating amplification by a factor of 10.
    * *14:16* Set up an AC Simulation
    * *14:29* 10 points per decade. Start frequency 10 Hz, end frequency 10 MHz
    * *14:53* Select the output to observe the gain/phase response.
    * *15:07* Run the AC simulation. Observe the frequency response.
    *Saving Your Work*
    * *15:50* Save the simulation setup for future use.
    * *16:14* Save the circuit diagram.
    Disclaimer: I used gemini advanced 1.0 (2024.03.04) to summarize the
    youtube video transcript. This method may make mistakes in recognizing words

    • @holger8105
      @holger8105  หลายเดือนก่อน

      You as the poster are responsible for the correctness of your post, nobody else, with disclaimer or without. Please check your posting. There is no Keysight, what is Keycad, for example.

    • @wolpumba4099
      @wolpumba4099 หลายเดือนก่อน

      @@holger8105 Sorry, i will edit it.