Is there any example that could guide me on the simulation of a transimpedance amplifier to perform AC analysis (gain, phase…)?
I just found an example of voltage amplifier with voltage source, but the transimpedance uses a current source. It appears that Kicad cannot perform AC analysis with a current source.
It’s not KiCad that does the simulation, but ngSpice. I don’t have much experience with ngSpice, but find it hard to believe that a current source would be a problem. And that leaves us guessing to what the actual problem is. You can start by posting a schematic and actual error messages that you get.
KiCad “only” provides an (integrated) interface to ngSpice, but it is still a separate project. You can find manuals, tutorials and other useful information for ngSpice on:
Of course, KiCad can ( through ngspice ) make AC simulations with current sources.
I just made a small change in the “sallen_key” example file you can find in “File > Open demo project” from the main KiCad window. I sugget you have a look at that file.
Dear Drinausaur,
With your guidance, I was able to change the “sallen_key” example and reproduce the same output that you got. In my simulation, I needed to include “ac=1” in the current source. I also needed to close and reopen the project with the changes applied to run the simulations without errors. I must confess that sometimes is quite difficult to understand the errors messages.
Thank you very much!