Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. why no one uses latching relays ?

why no one uses latching relays ?

Scheduled Pinned Locked Moved Hardware
41 Posts 14 Posters 16.6k Views 18 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rozpruwaczR Offline
    rozpruwaczR Offline
    rozpruwacz
    wrote on last edited by
    #1

    Hi,

    I'm preparing to desing some actuators for my new flat using MySensors. I will be using relays for switching lights and wall plugs. As I search for some ready to use projects I find that all of them are using relays that require continous current flow to stay in one of the states. And normaly those relays consume around 0.5 W of power ! I thought that one of the goals of home automation is to reduce unnecessary power consumption. Considering that one uses a lot of relays in such system, 0.5W of power for single relay is totaly unacceptable. The simplest solution is to use latching relay which consumes power only during switching (and propably very infrequently). But I can't find any latching relay modules to buy. Why is that ?

    gohanG YveauxY 2 Replies Last reply
    1
    • T Offline
      T Offline
      TimO
      Hero Member
      wrote on last edited by
      #2

      Are you searching for latching relays for your fuse box, like from Eltako, or latching relays for usage on a circuit board? I'm controlling the first mentioned in my fuse box with mysensors.

      1 Reply Last reply
      0
      • rozpruwaczR Offline
        rozpruwaczR Offline
        rozpruwacz
        wrote on last edited by
        #3

        I'm talking about micro relays for PCB.

        1 Reply Last reply
        0
        • rozpruwaczR rozpruwacz

          Hi,

          I'm preparing to desing some actuators for my new flat using MySensors. I will be using relays for switching lights and wall plugs. As I search for some ready to use projects I find that all of them are using relays that require continous current flow to stay in one of the states. And normaly those relays consume around 0.5 W of power ! I thought that one of the goals of home automation is to reduce unnecessary power consumption. Considering that one uses a lot of relays in such system, 0.5W of power for single relay is totaly unacceptable. The simplest solution is to use latching relay which consumes power only during switching (and propably very infrequently). But I can't find any latching relay modules to buy. Why is that ?

          gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          @rozpruwacz
          The problem is how do determine if lights are on or off? I mean in case the arduino restarts after a power failure or unexpected reset, how can it knows what was the last state? A normal realy you can choose to either switch it on or off regardless of last state.

          T 1 Reply Last reply
          1
          • gohanG gohan

            @rozpruwacz
            The problem is how do determine if lights are on or off? I mean in case the arduino restarts after a power failure or unexpected reset, how can it knows what was the last state? A normal realy you can choose to either switch it on or off regardless of last state.

            T Offline
            T Offline
            TimO
            Hero Member
            wrote on last edited by
            #5

            @gohan I'm using a ACS712 to get the power consumption.

            1 Reply Last reply
            0
            • rozpruwaczR rozpruwacz

              Hi,

              I'm preparing to desing some actuators for my new flat using MySensors. I will be using relays for switching lights and wall plugs. As I search for some ready to use projects I find that all of them are using relays that require continous current flow to stay in one of the states. And normaly those relays consume around 0.5 W of power ! I thought that one of the goals of home automation is to reduce unnecessary power consumption. Considering that one uses a lot of relays in such system, 0.5W of power for single relay is totaly unacceptable. The simplest solution is to use latching relay which consumes power only during switching (and propably very infrequently). But I can't find any latching relay modules to buy. Why is that ?

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #6

              @rozpruwacz so far I've only seen cheap non-latching relay modules from China.
              Controlling latching relays can be a bit harder for the ones requiring an H-bridge. I've controlled some with a dual mosfet driver which works great.

              http://yveaux.blogspot.nl

              1 Reply Last reply
              0
              • rozpruwaczR Offline
                rozpruwaczR Offline
                rozpruwacz
                wrote on last edited by
                #7

                @gohan I don't get what is the problem. With latching relay, You can set the switch on/off regardless of the last state. I think that latching relays are even better in case of cpu failure (reset) because they holds their state. Additionally You can make some circuitry to indicate the current state to the cpu or store the state in the eeprom.

                @Yveaux how is using dual mosfet driver harder than an optoisolator that is in most of relay modules ?

                gohanG YveauxY 2 Replies Last reply
                0
                • rozpruwaczR rozpruwacz

                  @gohan I don't get what is the problem. With latching relay, You can set the switch on/off regardless of the last state. I think that latching relays are even better in case of cpu failure (reset) because they holds their state. Additionally You can make some circuitry to indicate the current state to the cpu or store the state in the eeprom.

                  @Yveaux how is using dual mosfet driver harder than an optoisolator that is in most of relay modules ?

                  gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #8

                  @rozpruwacz
                  Sure it keeps the state but how does the arduino or controller knows what is the current state if they lost it because of a reset/reboot? For example you have light on and a rule/scene/voice command that wants to turns light on/off and the system has just been rebooted so normally it would assume everything is off (while lights are still on because of the latching relay), so now you will get inverted logic when you tell your controller to switch lights; so unless you use, like TimO, something that gives you feedback about lights being on or off (like the AC712, but could it be also a light sensor, it doesn't matter as long as it can give feedback about light's status), you may eventually end up with the logic inverted

                  YveauxY 1 Reply Last reply
                  0
                  • gohanG gohan

                    @rozpruwacz
                    Sure it keeps the state but how does the arduino or controller knows what is the current state if they lost it because of a reset/reboot? For example you have light on and a rule/scene/voice command that wants to turns light on/off and the system has just been rebooted so normally it would assume everything is off (while lights are still on because of the latching relay), so now you will get inverted logic when you tell your controller to switch lights; so unless you use, like TimO, something that gives you feedback about lights being on or off (like the AC712, but could it be also a light sensor, it doesn't matter as long as it can give feedback about light's status), you may eventually end up with the logic inverted

                    YveauxY Offline
                    YveauxY Offline
                    Yveaux
                    Mod
                    wrote on last edited by Yveaux
                    #9

                    @gohan no, it all depends on the type of latching relays used. Some have a dedicated control to open/close, which doesn't depend on the current state.
                    The main reason to use latching relays is to reduce power consumption. True that you can not retrieve the current state, but given the right relay you can always start from a defined situation after startup (e.g. Switched off as would be the case for most regular relays).
                    Another option is to store the current state of the relay somewhere after switching, e.g. in eeprom.

                    http://yveaux.blogspot.nl

                    1 Reply Last reply
                    0
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #10

                      Ok for reducing power consumption, but a small 5v relay it is using less than 0.2W so unless you are using a battery operated node, that power usage is negligible

                      1 Reply Last reply
                      0
                      • rozpruwaczR Offline
                        rozpruwaczR Offline
                        rozpruwacz
                        wrote on last edited by
                        #11

                        show me a relay with 0.2W power consumption, I couldn't find one.

                        gohanG 1 Reply Last reply
                        0
                        • rozpruwaczR rozpruwacz

                          @gohan I don't get what is the problem. With latching relay, You can set the switch on/off regardless of the last state. I think that latching relays are even better in case of cpu failure (reset) because they holds their state. Additionally You can make some circuitry to indicate the current state to the cpu or store the state in the eeprom.

                          @Yveaux how is using dual mosfet driver harder than an optoisolator that is in most of relay modules ?

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by Yveaux
                          #12

                          @rozpruwacz We were talking relay modules (like this one) which normally only take supply and a single control signal.
                          Having to control the latching of the relay using an H-Bridge I find 'a bit harder' compared to just toggling an IO, regarding both software and hardware.

                          For reference, this is the schematic I use to control a latching relay:

                          0_1487085965612_upload-0a5788cc-27e7-4bf6-98a1-7c26962bf71f

                          It uses a MAX2226/4427/4428 or compatible MOSFET driver to drive the relay.

                          And a function to switch it:

                          #define RELAY_INA_PIN         (A0)
                          #define RELAY_INB_PIN         (A1)
                          #define RELAY_SET_TIME_MS     (30)
                          
                          static void switchRelay( const bool on )
                          {
                              digitalWrite(RELAY_INA_PIN, on ? LOW : HIGH);
                              digitalWrite(RELAY_INB_PIN, on ? HIGH : LOW);
                              delay(RELAY_SET_TIME_MS);
                              digitalWrite(RELAY_INA_PIN, LOW);
                              digitalWrite(RELAY_INB_PIN, LOW);
                          }
                          

                          http://yveaux.blogspot.nl

                          ? 1 Reply Last reply
                          2
                          • rozpruwaczR Offline
                            rozpruwaczR Offline
                            rozpruwacz
                            wrote on last edited by
                            #13

                            You can make a circuit to control the latching relay just like normal relay, You don't have to use h-bridge. The simplest one would be to put a capacitor in series with the relay coil. Referring to your schematic, You could connect the A1 leg of the relay to a capacitor and that capacitor to the ground (leaving pin 5 of the IR4427S disconnected). That way, when you drive REALY_INA high, through the coil will flow the curent in one direction charging the capacitor. When capacitor will charge fully the curent will stop flowing. Then when you drive REALY_INA low, the capacitor will discharge and the curent will flow through the relay in reversed direction.

                            So if there are ways to drive the lathing relay circuit the same way as normal relays, there could be as well ready made module that has this circuit and from the point of view of the microcontroller they would appear as normal relay modules. So why there are no such modules ?

                            PS.
                            As I understand, your circuit needs to recieve pulses on RELAY_INA and RELAY_INB to properly work, and I think that this is dangerous because if the CPU will hang during relay shwitching it can damage the latch - because the latching relay has defined maximum pulse duration.

                            1 Reply Last reply
                            0
                            • rozpruwaczR rozpruwacz

                              show me a relay with 0.2W power consumption, I couldn't find one.

                              gohanG Offline
                              gohanG Offline
                              gohan
                              Mod
                              wrote on last edited by
                              #14

                              @rozpruwacz
                              I got an 8 channels relay board and according to specs it requires 20mA per channel, so 5v x 0.02A= 0.1 W if my math is correct

                              1 Reply Last reply
                              0
                              • rozpruwaczR Offline
                                rozpruwaczR Offline
                                rozpruwacz
                                wrote on last edited by
                                #15

                                You are talking about current driving the board input or current consumed by the relay ? What board ? what relay ?

                                1 Reply Last reply
                                0
                                • Anne van RossumA Offline
                                  Anne van RossumA Offline
                                  Anne van Rossum
                                  wrote on last edited by
                                  #16

                                  If you drop me a message I can tell you what kind of bistable relays we are using in the Crownstones (http://crownstone.rocks). We switch 16A using a relays from Panasonic. It's one of the most expensive parts of our BOM.

                                  1 Reply Last reply
                                  0
                                  • F Offline
                                    F Offline
                                    Fabien
                                    wrote on last edited by
                                    #17

                                    OMRON G5Q consume 0.2W : https://www.omron.com/ecb/products/pdf/en-g5q.pdf (125mW for 5V version). Very small packaging

                                    Anne van RossumA 1 Reply Last reply
                                    0
                                    • F Fabien

                                      OMRON G5Q consume 0.2W : https://www.omron.com/ecb/products/pdf/en-g5q.pdf (125mW for 5V version). Very small packaging

                                      Anne van RossumA Offline
                                      Anne van RossumA Offline
                                      Anne van Rossum
                                      wrote on last edited by
                                      #18

                                      @Fabien just for completeness, that's specced for 10A. The Panasonic ones are not much bigger, http://eu.mouser.com/Electromechanical/Relays/General-Purpose-Relays/_/N-5g36?P=1z0z1s3, e.g. http://eu.mouser.com/ProductDetail/Panasonic-Industrial-Devices/ADW1212HLW/?qs=sGAEpiMZZMtSzCF3XBhmW2w01ZqnWsnJ%2FIRuNGt%252bt2Q%3D are specced for 16A.

                                      1 Reply Last reply
                                      1
                                      • dbemowskD Offline
                                        dbemowskD Offline
                                        dbemowsk
                                        wrote on last edited by
                                        #19

                                        I hear people's arguments that you do not know the last state of a latching relay on a power failure, but what if you stored the last state in the eeprom? I mean you store the node ID and other things that get remembered on a power failure, why not the relay state? Every time you change the state of the relay, store it. Doesn't seem that challenging.

                                        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                        YveauxY 1 Reply Last reply
                                        0
                                        • dbemowskD dbemowsk

                                          I hear people's arguments that you do not know the last state of a latching relay on a power failure, but what if you stored the last state in the eeprom? I mean you store the node ID and other things that get remembered on a power failure, why not the relay state? Every time you change the state of the relay, store it. Doesn't seem that challenging.

                                          YveauxY Offline
                                          YveauxY Offline
                                          Yveaux
                                          Mod
                                          wrote on last edited by
                                          #20

                                          @dbemowsk exactly what I wrote above "Another option is to store the current state of the relay somewhere after switching, e.g. in eeprom." ;-)

                                          http://yveaux.blogspot.nl

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular