sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.23k stars 622 forks source link

Feature request : more op amp models? #836

Open MichaelWeaser opened 1 year ago

MichaelWeaser commented 1 year ago

I know the 741 and the Lm324 is really common used op amps and I know the 741 is used as an introduction to op amps , which is why probably those op amps are the only ones listed.

Could you eventually add other op amps? I am thinking like maybe like a TL071 FET op amp? I am thinking maybe other op amps like NE5532 audio op amp , OP07 classic precision op amp.

The only reason why I think other op amp models should be available is that the 741 really isn't used anymore in designs and the LM324 usually isn't used either.

thephantom1492 commented 1 year ago

I have also an idea, about a parametric opamp. It shouln't be too hard, and should allow the user to simulate virtually any opamp with only a few parameters. I think that the parameters could be:

I think that with only those parameters, virtually all opamp can be simulated with a good enough precision for most simulations.

MichaelWeaser commented 1 year ago

@thephantom1492 What about the option to upload a op amp model? Maybe the option of uploading a op amp spice model, could allow different op amps?

thephantom1492 commented 1 year ago

AFAIK, falstad do not use spice model, but hard coded modules. But that I am not sure, maybe when the dev team answer they could highlight it, but until then, I do not know.