• latching relays

    From Mike Scott@3:770/3 to All on Mon Feb 10 09:12:32 2025
    Hi all. I think a latching relay is the way to go for a pico-based job I
    have in mind. However the prevalent ones all seem to be controlled by a
    pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up. But I see no
    indication of any way of resetting them to that known state without
    turning off the power - eg after reloading the pico control program.

    Has anyone used these and can offer advice please? Thanks.


    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Joe@3:770/3 to Mike Scott on Mon Feb 10 12:33:18 2025
    On Mon, 10 Feb 2025 09:12:32 +0000, Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    Hi all. I think a latching relay is the way to go for a pico-based job I
    have in mind. However the prevalent ones all seem to be controlled by a
    pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up. But I see no
    indication of any way of resetting them to that known state without
    turning off the power - eg after reloading the pico control program.

    Has anyone used these and can offer advice please? Thanks.
    I am using the HFD2/005-S-L2-D dual coil relays. They work for my purpose....

    See: https://source.hongfa.com//Api/DownloadPdf/323

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to Joe on Mon Feb 10 14:02:54 2025
    On 10/02/2025 12:33, Joe wrote:
    On Mon, 10 Feb 2025 09:12:32 +0000, Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    Hi all. I think a latching relay is the way to go for a pico-based job I
    have in mind. However the prevalent ones all seem to be controlled by a
    pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up. But I see no
    indication of any way of resetting them to that known state without
    turning off the power - eg after reloading the pico control program.

    Has anyone used these and can offer advice please? Thanks.
    I am using the HFD2/005-S-L2-D dual coil relays. They work for my purpose....

    See: https://source.hongfa.com//Api/DownloadPdf/323

    Thanks for the reply. I was considering complete units (like eg url
    below (*)), which differ in operation. They take a pulse on a single logic-level input, and flip-flop between states: my query is how to
    reset from a random state to the power-up state.

    The one you reference uses either reverse polarity or a 2nd coil to flip
    and flop.



    (*) <https://www.amazon.co.uk/%E3%80%90%F0%9D%90%84%F0%9D%90%9A%F0%9D%90%AC%F0%9D%90%AD%F0%9D%90%9E%F0%9D%90%AB-%F0%9D%90%8F%F0%9D%90%AB%F0%9D%90%A8%F0%9D%90%A6%F0%9D%90%A8%F0%9D%90%AD%F0%9D%90%A2%F0%9D%90%A8%F0%9D%90%A7%E3%80%91-Flip-Flop-Self-Locking-
    Bistable/dp/B08LCTTR4Z/ref=sr_1_6?crid=1X3LJ40EW31PS&dib=eyJ2IjoiMSJ9.RT0p7Xw5aJ0Swdoibedry1USbeWgVfw825dY065GrU69oETh7LUKVWnWUjyVpSszgw3nD-k3IJb0JqTj4_dub2sNKoCG5RiD66Y0AXX_2FUXHDzt-3kELJdgbFjrV-
    fEzfWkFsXFRRZC4yqrRIh2DzCvMEDlqaV1C66gP9H9OtABUWO3miMmsfqPY2OvxIz4ORJ-gEzJ81GrtiW30IbGrE9nNDx5D6MQ_hjlXLgsBaq1iAptiO6lvwn31IMh4vJXsSVS3a7ckkG1MO4Z6DWTI1Og3Tw5QgXRDR7L9c07Uk7Mtd0mccGx33TGtHFf0Q7I_ojHzk-TeNSON2usCmhqoBpo3qK7DbckUoRsRbuv2TLMwKsO_
    4fpMxQxZk8ba4n19QVDlRdXVJedgWzL5ye6aH0bLnlc5tk1Bk9IsieO-wIIDOqHja6LmsdPjwi52Ltq.uR8nBzN6Nf-BBzOjkOcmfdgfxpIuRN1Ed4Spc0VtRUA&dib_tag=se&keywords=5v+dpdt+latching+relay&qid=1739195865&sprefix=%2Caps%2C72&sr=8-6>

    (No, I'd not pay that sort of price :-) )

    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Michael J. Mahon@3:770/3 to Mike Scott on Mon Feb 10 18:49:04 2025
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
    On 10/02/2025 12:33, Joe wrote:
    On Mon, 10 Feb 2025 09:12:32 +0000, Mike Scott
    <usenet.16@scottsonline.org.uk.invalid> wrote:

    Hi all. I think a latching relay is the way to go for a pico-based job I >>> have in mind. However the prevalent ones all seem to be controlled by a
    pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up. But I see no
    indication of any way of resetting them to that known state without
    turning off the power - eg after reloading the pico control program.

    Has anyone used these and can offer advice please? Thanks.
    I am using the HFD2/005-S-L2-D dual coil relays. They work for my purpose....

    See: https://source.hongfa.com//Api/DownloadPdf/323

    Thanks for the reply. I was considering complete units (like eg url
    below (*)), which differ in operation. They take a pulse on a single logic-level input, and flip-flop between states: my query is how to
    reset from a random state to the power-up state.

    The one you reference uses either reverse polarity or a 2nd coil to flip
    and flop.



    (*) <https://www.amazon.co.uk/%E3%80%90%F0%9D%90%84%F0%9D%90%9A%F0%9D%90%AC%F0%9D%90%AD%F0%9D%90%9E%F0%9D%90%AB-%F0%9D%90%8F%F0%9D%90%AB%F0%9D%90%A8%F0%9D%90%A6%F0%9D%90%A8%F0%9D%90%AD%F0%9D%90%A2%F0%9D%90%A8%F0%9D%90%A7%E3%80%91-Flip-Flop-Self-Locking-
    Bistable/dp/B08LCTTR4Z/ref=sr_1_6?crid=1X3LJ40EW31PS&dib=eyJ2IjoiMSJ9.RT0p7Xw5aJ0Swdoibedry1USbeWgVfw825dY065GrU69oETh7LUKVWnWUjyVpSszgw3nD-k3IJb0JqTj4_dub2sNKoCG5RiD66Y0AXX_2FUXHDzt-3kELJdgbFjrV-
    fEzfWkFsXFRRZC4yqrRIh2DzCvMEDlqaV1C66gP9H9OtABUWO3miMmsfqPY2OvxIz4ORJ-gEzJ81GrtiW30IbGrE9nNDx5D6MQ_hjlXLgsBaq1iAptiO6lvwn31IMh4vJXsSVS3a7ckkG1MO4Z6DWTI1Og3Tw5QgXRDR7L9c07Uk7Mtd0mccGx33TGtHFf0Q7I_ojHzk-TeNSON2usCmhqoBpo3qK7DbckUoRsRbuv2TLMwKsO_
    4fpMxQxZk8ba4n19QVDlRdXVJedgWzL5ye6aH0bLnlc5tk1Bk9IsieO-wIIDOqHja6LmsdPjwi52Ltq.uR8nBzN6Nf-BBzOjkOcmfdgfxpIuRN1Ed4Spc0VtRUA&dib_tag=se&keywords=5v+dpdt+latching+relay&qid=1739195865&sprefix=%2Caps%2C72&sr=8-6>

    (No, I'd not pay that sort of price :-) )


    In that case, the only reliable way to proceed is to provide a way to sense
    the current state of the relay so that the desired state can be selected.

    --
    -michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From David Higton@3:770/3 to Mike Scott on Mon Feb 10 18:47:20 2025
    In message <vocfu0$14uka$1@dont-email.me>
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    Hi all. I think a latching relay is the way to go for a pico-based job I
    have in mind. However the prevalent ones all seem to be controlled by a
    pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up.

    It has always been my understanding that they retain their current state indefinitely, until the next pulse. So there is no such thing as a
    reset state.

    David

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Andrew Smallshaw@3:770/3 to Mike Scott on Mon Feb 10 23:42:58 2025
    On 2025-02-10, Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    Thanks for the reply. I was considering complete units (like eg url
    below (*)), which differ in operation. They take a pulse on a single logic-level input, and flip-flop between states: my query is how to
    reset from a random state to the power-up state.

    The one you reference uses either reverse polarity or a 2nd coil to flip
    and flop.

    [ https://www.amazon.co.uk/dp/B08LCTTR4Z/ ]

    Those are not conventional latching relays but standard one with
    an external latching circuit. The semantics oare defiferent.
    latching relays use two coildand don't need power to maintain their
    state. The page tells you all you need to know, namely the relay
    is not energised when power is first applied, so conductivity is
    between NCx and COMx, switching to NOx and COMx on the first pulse.

    Lack of proper data sheets is one of the reasons I'm not generally
    a fan of commercial building block modules like this.

    --
    Andrew Smallshaw
    andrews@sdf.org

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Joe Beanfish@3:770/3 to Michael J. Mahon on Tue Feb 11 13:10:06 2025
    On Mon, 10 Feb 2025 18:49:04 +0000, Michael J. Mahon wrote:

    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
    On 10/02/2025 12:33, Joe wrote:
    On Mon, 10 Feb 2025 09:12:32 +0000, Mike Scott
    <usenet.16@scottsonline.org.uk.invalid> wrote:

    Hi all. I think a latching relay is the way to go for a pico-based job I >>>> have in mind. However the prevalent ones all seem to be controlled by a >>>> pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up. But I see no
    indication of any way of resetting them to that known state without
    turning off the power - eg after reloading the pico control program.

    Has anyone used these and can offer advice please? Thanks.
    I am using the HFD2/005-S-L2-D dual coil relays. They work for my purpose....

    See: https://source.hongfa.com//Api/DownloadPdf/323

    Thanks for the reply. I was considering complete units (like eg url
    below (*)), which differ in operation. They take a pulse on a single
    logic-level input, and flip-flop between states: my query is how to
    reset from a random state to the power-up state.

    The one you reference uses either reverse polarity or a 2nd coil to flip
    and flop.



    (*)
    <https://www.amazon.co.uk/%E3%80%90%F0%9D%90%84%F0%9D%90%9A%F0%9D%90%AC%F0%9D%90%AD%F0%9D%90%9E%F0%9D%90%AB-%F0%9D%90%8F%F0%9D%90%AB%F0%9D%90%A8%F0%9D%90%A6%F0%9D%90%A8%F0%9D%90%AD%F0%9D%90%A2%F0%9D%90%A8%F0%9D%90%A7%E3%80%91-Flip-Flop-Self-Locking-
    Bistable/dp/B08LCTTR4Z/ref=sr_1_6?crid=1X3LJ40EW31PS&dib=eyJ2IjoiMSJ9.RT0p7Xw5aJ0Swdoibedry1USbeWgVfw825dY065GrU69oETh7LUKVWnWUjyVpSszgw3nD-k3IJb0JqTj4_dub2sNKoCG5RiD66Y0AXX_2FUXHDzt-3kELJdgbFjrV-
    fEzfWkFsXFRRZC4yqrRIh2DzCvMEDlqaV1C66gP9H9OtABUWO3miMmsfqPY2OvxIz4ORJ-gEzJ81GrtiW30IbGrE9nNDx5D6MQ_hjlXLgsBaq1iAptiO6lvwn31IMh4vJXsSVS3a7ckkG1MO4Z6DWTI1Og3Tw5QgXRDR7L9c07Uk7Mtd0mccGx33TGtHFf0Q7I_ojHzk-TeNSON2usCmhqoBpo3qK7DbckUoRsRbuv2TLMwKsO_
    4fpMxQxZk8ba4n19QVDlRdXVJedgWzL5ye6aH0bLnlc5tk1Bk9IsieO-wIIDOqHja6LmsdPjwi52Ltq.uR8nBzN6Nf-BBzOjkOcmfdgfxpIuRN1Ed4Spc0VtRUA&dib_tag=se&keywords=5v+dpdt+latching+relay&qid=1739195865&sprefix=%2Caps%2C72&sr=8-6>

    (No, I'd not pay that sort of price :-) )


    In that case, the only reliable way to proceed is to provide a way to sense the current state of the relay so that the desired state can be selected.

    Such as an extra pole that you could connect to a sense input to poll
    and check the relay state.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Mike Scott@3:770/3 to Andrew Smallshaw on Tue Feb 11 15:19:56 2025
    On 10/02/2025 23:42, Andrew Smallshaw wrote:
    On 2025-02-10, Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    Thanks for the reply. I was considering complete units (like eg url
    below (*)), which differ in operation. They take a pulse on a single
    logic-level input, and flip-flop between states: my query is how to
    reset from a random state to the power-up state.

    The one you reference uses either reverse polarity or a 2nd coil to flip
    and flop.

    [ https://www.amazon.co.uk/dp/B08LCTTR4Z/ ]

    Those are not conventional latching relays but standard one with
    an external latching circuit. The semantics oare defiferent.
    latching relays use two coildand don't need power to maintain their
    state. The page tells you all you need to know, namely the relay
    is not energised when power is first applied, so conductivity is
    between NCx and COMx, switching to NOx and COMx on the first pulse.

    OK, I get it. I'm after something that'll retain the same setting for
    extended periods, hence the desire for a latching relay to keep power dissipation down. Indeed, it does look as though what I've been looking
    at is a normal relay plus a flip-flop - not what I want, and I think
    you've saved me from a bad mistake.

    Not wanting to mess with relay driver circuitry, I've found something
    that's definitely latching at PiHut (I hope!!). Pricey, but complete
    modules don't seem available otherwise.

    Thanks to all for commenting.

    Lack of proper data sheets is one of the reasons I'm not generally
    a fan of commercial building block modules like this.



    --
    Mike Scott
    Harlow, England

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From David Higton@3:770/3 to Mike Scott on Tue Feb 11 19:04:20 2025
    In message <vofpqt$1qm8g$1@dont-email.me>
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    OK, I get it. I'm after something that'll retain the same setting for extended periods, hence the desire for a latching relay to keep power dissipation down. Indeed, it does look as though what I've been looking at is a normal relay plus a flip-flop - not what I want, and I think you've saved me from a bad mistake.

    Not wanting to mess with relay driver circuitry, I've found something
    that's definitely latching at PiHut (I hope!!). Pricey, but complete
    modules don't seem available otherwise.

    Thanks to all for commenting.

    Look at the Hongfa HFD2 data sheet. The range includes single side
    stable (i.e. an "ordinary" relay), 1 coil latching, and 2 coils
    laching, and shows how to connect and how to energise to get latching
    relays of either type into the state you want.

    The latching relays are the real thing; they retain state indefinitely,
    without power, after being set to either state.

    David

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Joe@3:770/3 to David Higton on Wed Feb 12 14:57:10 2025
    On Tue, 11 Feb 2025 19:04:20 GMT, David Higton <dave@davehigton.me.uk> wrote:

    In message <vofpqt$1qm8g$1@dont-email.me>
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    OK, I get it. I'm after something that'll retain the same setting for
    extended periods, hence the desire for a latching relay to keep power
    dissipation down. Indeed, it does look as though what I've been looking at >> is a normal relay plus a flip-flop - not what I want, and I think you've
    saved me from a bad mistake.

    Not wanting to mess with relay driver circuitry, I've found something
    that's definitely latching at PiHut (I hope!!). Pricey, but complete
    modules don't seem available otherwise.

    Thanks to all for commenting.

    Look at the Hongfa HFD2 data sheet. The range includes single side
    stable (i.e. an "ordinary" relay), 1 coil latching, and 2 coils
    laching, and shows how to connect and how to energise to get latching
    relays of either type into the state you want.

    The latching relays are the real thing; they retain state indefinitely, >without power, after being set to either state.

    David
    The one thing: You HAVE to prevent your control circuit (like Arduino) from sending spurious signals to the relay on power-up to
    prevent unwanted/uncontrolled switching. Known issue and solutions are on the internet i.e.
    https://forum.arduino.cc/t/relay-turn-on-whenever-i-turn-on-arduino/644387

    I would guess the Pi behaves in a similar way.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Joe@3:770/3 to David Higton on Fri Feb 14 10:09:32 2025
    On Mon, 10 Feb 2025 18:47:21 GMT, David Higton <dave@davehigton.me.uk> wrote:

    In message <vocfu0$14uka$1@dont-email.me>
    Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:

    Hi all. I think a latching relay is the way to go for a pico-based job I
    have in mind. However the prevalent ones all seem to be controlled by a
    pulse on a single input wire which flips and flops the state.

    No doubt they reset to a known-state at power-up.

    It has always been my understanding that they retain their current state >indefinitely, until the next pulse. So there is no such thing as a
    reset state.

    David
    Yes they remain their state BUT sometimes Arduino likes (from experience) & probably Raspi's give of spurious pulses on startup
    which can be/needs to be prevented:

    Known issue and solutions are on the internet i.e. https://forum.arduino.cc/t/relay-turn-on-whenever-i-turn-on-arduino/644387

    If the state needs to be knows between bootups, store the last setting in a file before/after switching and if needed send the
    proper setting again after bootup. That is why I like dual coil relays ;-)

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From David Higton@3:770/3 to Joe on Sat Feb 15 13:36:16 2025
    In message <lb5uqjh7rn4t3t5ftq7shqo0ia5730lha9@4ax.com>
    Joe <none@nowhere.whereo> wrote:

    Yes they remain their state BUT sometimes Arduino likes (from experience) & probably Raspi's give of spurious pulses on startup which can be/needs to
    be prevented:

    Yes. The important thing is that, although they may be regaded as
    spurious, they are /not/ /random/; they are completely predictable and completely curable.

    David

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)