2
\$\begingroup\$

Falstad does not have an optotriac part. I've opened a feature request issue on the CircuitJS GitHub to ask for one to be added, but is there a reasonable way to emulate an optotriac given the components and building blocks that are currently available in the simulator, in the meantime?

My intuition is that I could probably use a VCVS block attached to the triac gate, to "force" a particular voltage delta between the gate and one of the main terminals, but I'm not familiar enough with (opto)triac behaviour and models to have a good handle on what a good transfer function would look like and what other considerations I need to make.

I tried replicating a couple of old optotransistor-based triac drivers, but they behave quite differently to optotriac designs, and an optotriac is what I would end up using in a physical circuit anyway.

I'm not looking for deep physical accuracy - the behaviour only needs to be approximated closely enough to play around with some simple leading/trailing edge 50Hz 230Vrms mains dimmer circuits with ZCD. I could do this in LTspice, and I will end up using LTspice to more rigorously simulate anything I intend to actually build, but I much prefer the interactivity of Falstad for quick experimentation and prototyping. So, if there's a quick-and-dirty approach to approximating an optotriac, then it'd be strongly preferable.

Is my VCVS approach workable? Is there a better way?

\$\endgroup\$
4
  • \$\begingroup\$ MOC308x series has been modeled by Helmut Sennewald (our late LTspice guru). Does Falstad allow you to make custom parts? If so, the models look pretty generic. \$\endgroup\$
    – qrk
    Mar 2, 2023 at 1:59
  • \$\begingroup\$ If the Opto-Triac is also a ZCS you can simulate an analog SPST with a synchronous control signal of any R value. \$\endgroup\$
    – Hoagie
    Mar 2, 2023 at 2:08
  • \$\begingroup\$ @qrk As far as I know, the only custom parts it supports are subcircuits based on parts you can already create inside the application, so I can't just load an arbitrary model. \$\endgroup\$
    – Polynomial
    Mar 2, 2023 at 2:18
  • \$\begingroup\$ @Hoagie I'd strongly prefer the optotriac approximation itself to not behave as a zero-crossing type, since a large part of what I'm investigating is leading-edge and trailing-edge dimming behaviours, so it'd be very useful to be able to implement the ZCD separately. I suppose an analog switch is a very crude approximation of a triac... might be a bit funky in terms of trying to roughly quantify the power dissipation though. \$\endgroup\$
    – Polynomial
    Mar 2, 2023 at 2:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.