5
\$\begingroup\$

I would like to use a 12V relay in my LTspice circuit, however there is no relay in the component list.

How can I do?

Relay model: SRD-12VDC-SL-C

\$\endgroup\$
  • \$\begingroup\$ I edited your post adding a link to the datasheet. Would you mind to confirm that the relay you are using is that shown in the datasheet. Otherwise you may want to provide a link to the correct datasheet. \$\endgroup\$ – Lorenzo Donati -- Codidact.org Aug 15 '15 at 18:33
9
\$\begingroup\$

As @KevinWhite said, you can use a voltage controlled switch. Here is an example of a very rough model for a relay:

enter image description here

And this is the result of the simulation:

enter image description here

The model is very rough because:

  • The excitation coil is modeled only by a resistor, neglecting the inductive component (this may be OK).
  • The switch triggers when a voltage is applied to the terminals of the coil, whereas physically the relay triggers when the current in the coil is sufficiently high to move the contacts.

Both points above can be neglected unless you need to simulate the exact behavior of the relay under transient conditions (switching delays, oscillations, contact bounces, etc.).

An inductor in series with the coil resistance can be useful to simulate the inductive kick the relay produces when switched off.

| improve this answer | |
\$\endgroup\$
8
\$\begingroup\$

You can use a voltage controlled switch to simulate the contacts (Just called SW in LTSpice).

Set the operating voltage to match pull-in voltage of your relay.

You can use a resistor (and an inductor if desired) to simulate the relay coil.

Here are a couple of useful links: Relay Model Voltage controlled switch example

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.