I’m trying to simulate a circuit driving an Opto-Triac.
The driving circuit works exactly as expected and simulates wonderfully.
But as soon as the opto-triac IC is placed, it all breaks down. Replacing the opto-triac with two 1N400x in series (to emulate the internal LED) makes the circuit simulate perfectly again.
I suspect something is wrong with the SPICE model for the opto-triac, but am too inexperienced to deduct the issue.
The error (after hanging a very long time at the turn-on point of the device) is:
Thanks for the models. Now there is another problem: Starting simulation with your Eeschema file, it issues a warning, which indeed is an error message: Could not find library file: /home/macro/.local/share/kicad/models/basic_models/bipolar/BC546.lib and others. I do not have such a directory. So I would have to attach anew all the models to the symbols in your circuit to run your circuit. But you do want to get support, not me.
So may I ask you to do the following:
Put all the files (Eeschema, non standard symbol libraries, ngspice models) into a single directory. Attach the models to the symbols.Test it (run the simulation), if this is what you want to publish. Create a zip (or better 7z) compressed directory and post it here. This project would run out-of-the-box if someone wants to check it and provide support.