pfalstad / circuitjs1

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

The relay component switches to the intermediate state immediately giving incorrect results for some circuits. #67

Open Glidos opened 5 months ago

Glidos commented 5 months ago

I was testing a circuit built from many relays and diodes. The simulator uncovered an unexpected failure case where the back emf from the coil of one relay activated another. I was (and still am) impressed at the simultor finding that behaviour, but have realised that the behaviour would very likely not occur with real relays: the transients from the switch off are only momentary, too short a period to cause any significant movement of the switch. It would be useful to be able to specify delays for both parts of the switching action.