1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Latching-relay (single and dual-coil) simulation models

Discussion in 'Circuit Simulation & PCB Design' started by alec_t, Jul 26, 2016.

  1. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,730
    Likes:
    1,277
    Location:
    Cardiff, Wales
    In connection with this other thread, I developed LTspice simulation models respectively for single and dual-coil DPDT latching relays, based on data from various datasheets. I attach the .sub and .asy files here in case anyone else might find them useful or can suggest improvements. In use, right-clicking on the symbol enables default relay parameters to be adjusted.
     

    Attached Files:

    • Like Like x 1
  2. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    713
    Location:
    Somerset UK GMT
    This looks like good material for an ETO rticle Alec.

    spec
     
  3. marshaul

    marshaul New Member

    Joined:
    Feb 10, 2018
    Messages:
    3
    Likes:
    0
    Thanks for this. This is going to come in handy right now...
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,730
    Likes:
    1,277
    Location:
    Cardiff, Wales
    Good. Welcome to ETO!
     
  6. marshaul

    marshaul New Member

    Joined:
    Feb 10, 2018
    Messages:
    3
    Likes:
    0
    Is there any reason this shouldn't be compatible with LTspice XVII? It does't appear as a placeable component in the "place component" menu, after adding the .sub files to lib\sub and the .asy file to lib\sym -- although for some reason I can place it from the working directory where it resides alongside the test circuit.

    In either event, LTspice gives me an "unknown subcircuit" error and won't simulate the test file. I'm not sure how to proceed since I've never added components in this fashion to LTspice.
     
  7. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,730
    Likes:
    1,277
    Location:
    Cardiff, Wales
    If you're running LTS XVII under Windows10 the files need to be in the .....User\Documents\LTspiceXVII\lib folders path.
     
  8. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  9. marshaul

    marshaul New Member

    Joined:
    Feb 10, 2018
    Messages:
    3
    Likes:
    0
    I didn't know that about LTspice XVII, but the problem was actually that I needed to add the SPICE directive ".include DPDT_latch_dual_coil.sub" to the example asc file.

    Thanks!
     
    Last edited: Feb 13, 2018
  10. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,730
    Likes:
    1,277
    Location:
    Cardiff, Wales
    Glad you found a solution.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice