I've decided to convert from Yenka to LTSpice as Yenka can't keep up with large circuits. But, a lot of fundamental components aren't in the LTSpice library's. Like, simple switches. No SPST, DPST. Nothing.
I've decided to convert from Yenka to LTSpice as Yenka can't keep up with large circuits. But, a lot of fundamental components aren't in the LTSpice library's. Like, simple switches. No SPST, DPST. Nothing.
There are swtiches in LTspice. The are kinda funky, because they have a voltage "in" port that switches the contacts with a threashold voltage. I think it's under the "components" library. I'll have to look when I get back home and double check, but I know they are available.
If nobody else beast me to it, I'll post an example circuit that uses LTS switches.
Here's a schematic that uses a switch in LTSpice. You have to chose the switch from "components/sw" and use the .model statement as shown to define the switche's characteristics. You can simulate any switch by connecting the sw primative in various configurations, and as I said, hiding the details in a custom symbol.
I have used two spst switches as a spdt switch. I wire the inputs together so they get the same voltage. In the .model statement I set one switch to have an on resistance of 1 ohm and an off resistance of 10,000,000 ohms. The other switch has a on resistance of 10,000,000 and an off resistance of 1 ohm. This causes the two switches to act opposite to each other.