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. OpenHardware.io
  3. 💬 AC-DC double solid state relay module

💬 AC-DC double solid state relay module

Scheduled Pinned Locked Moved OpenHardware.io
hlk-pm01solid state relaylight switchlightacdc
226 Posts 67 Posters 103.5k Views 65 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.
  • Nca78N Nca78

    @tonnerre33 said:

    Hi,

    can we install this module in a wall ?
    Can we command shutters ?

    For the wall, that's the idea of keeping the 50*50mm size :)
    For the shutters technically yes, but there are (at least) 2 problems :

    • if you have the 2 relays on at the same time = 2 directions you will probably kill the motor, there is no hardware protection on this board to avoid that (one of the relays must have power only when the other one is in off state). This can be done in software so it's not blocking.
    • if you want to be able to control the level/percentage of closing, you need to measure time from min to max position, to do that you need to measure current (when motor stop consuming current it means shutter has reached it's 0% or 100% position). But there is no current sensor on this board, so you either need to implement a manual calibration process (that will lose precision over time) or use only manual control.

    I am planning to test it when I have some time, and when I receive the PCB.

    tonnerre33T Offline
    tonnerre33T Offline
    tonnerre33
    Hardware Contributor
    wrote on last edited by
    #48

    @Nca78 thanx for your answer ;)

    You are right, 2 directions can kill the motor that's why we need one relay for on/off the motor and the other for command up/down.
    But for command up/down, and in order to do an hardware protection, we can use an inversor relay.
    Do you know an inversor relay with the same size ? I didn't find that kind of relay :(

    1 Reply Last reply
    0
    • scalzS Offline
      scalzS Offline
      scalz
      Hardware Contributor
      wrote on last edited by scalz
      #49

      @tonnerre33
      I have made a board for tshutters ;)
      on my side, it's completed. I'm actually checking files, writing docs for my git (bom etc..) I have so much projects almost completed to show so I have to clean my projects one by one :persevere: and I don't talk about software stuff too..arghh!
      Here it is https://forum.mysensors.org/topic/2944/roller-shutter-node

      1 Reply Last reply
      0
      • tonnerre33T Offline
        tonnerre33T Offline
        tonnerre33
        Hardware Contributor
        wrote on last edited by tonnerre33
        #50

        Yes, i know this good project but he don't use an arduino pro mini like Aproxx ;)
        Your project need welding cms and i never do it ^^
        The Aproxx's board has Thermal Cutoffs, and i didn't see that in your project

        1 Reply Last reply
        0
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by scalz
          #51

          @tonnerre33 yep. you're right, it's cms I'm sorry :disappointed: I think.. good luck to fit everything with arduino mini in wall.
          About the cutoff, I replaced this by a simple temperature sensor for monitoring. imho, i have two fuses onboards + varistor, enough for me comparing to some commercial products. If it burns you have a big problem somewhere!! But sure it's better to know what you do, thermal fuses is good ;)

          tonnerre33T 1 Reply Last reply
          0
          • scalzS scalz

            @tonnerre33 yep. you're right, it's cms I'm sorry :disappointed: I think.. good luck to fit everything with arduino mini in wall.
            About the cutoff, I replaced this by a simple temperature sensor for monitoring. imho, i have two fuses onboards + varistor, enough for me comparing to some commercial products. If it burns you have a big problem somewhere!! But sure it's better to know what you do, thermal fuses is good ;)

            tonnerre33T Offline
            tonnerre33T Offline
            tonnerre33
            Hardware Contributor
            wrote on last edited by
            #52

            @scalz don't be sorry, i just need to learn to weld cms xd But for not disturb this project, i'll continue ta ask my questions in your topic project ;)

            1 Reply Last reply
            0
            • Nca78N Offline
              Nca78N Offline
              Nca78
              Hardware Contributor
              wrote on last edited by
              #53

              @tonnerre33 said:

              But for command up/down, and in order to do an hardware protection, we can use an inversor relay.
              I don't know if we need an inversor relay. For sure it will be hard to find another relay as small as these SSRs
              Maybe I'm wrong but I from what I know roller shutter motors have a common ground and then you connect the phase for the direction you want to use. I think it can be done in software, with hardware it cannot be done on this PCB because of the way the SSRs are connected.

              @scalz on your board you use relays that are much bigger than those tiny SSRs, in the end it probably gives the same result for the space used on the board, and as you have the radio on the other side the depth difference is not very big, just 2mm from the plastic at the base of the connectors.

              1 Reply Last reply
              0
              • okosO Offline
                okosO Offline
                okos
                wrote on last edited by okos
                #54

                Hi I did everything according to the project and I have problem "error sending the switch command check device / hardware"
                One change for me is 10nF capacitor instead of 100nF (I dont have now
                )
                Could this be the reasons this error?!
                0_1470516115940_ERROR.JPG

                Nca78N 1 Reply Last reply
                0
                • okosO okos

                  Hi I did everything according to the project and I have problem "error sending the switch command check device / hardware"
                  One change for me is 10nF capacitor instead of 100nF (I dont have now
                  )
                  Could this be the reasons this error?!
                  0_1470516115940_ERROR.JPG

                  Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by Nca78
                  #55

                  @okos if you have the device in Domoticz it means it could run, and send data to the gateway controller.
                  Did you change anything in hardware of software between the moment you added the node/sensor to Domoticz and the moment you tried to activate it ?
                  Are you sure your settings for the ACK are ok ? Maybe you are not sending one in the node but waiting from one in Domoticz ? Check the "Ack" column in Domoticz and if it's true try to change it to false.

                  okosO 1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Matt
                    wrote on last edited by Matt
                    #56

                    Aproxx you roxx. It works! Not sure what to do with it yet, but likely it will end up in a wall sometime soon on light duties. Thanks for sharing such a great design :-)
                    0_1470565848624_IMG_20160807_222603-800x735.jpg
                    Hmm just pulled some switches, they are mostly SPDT jobbies on multiple switches, no idea how to hood this bad-boy up =(

                    1 Reply Last reply
                    0
                    • Daniel OliveiraD Offline
                      Daniel OliveiraD Offline
                      Daniel Oliveira
                      wrote on last edited by
                      #57

                      Hi everyone,

                      First I would like to thank the OP for sharing this great project :)

                      Then I would like to ask what would happen if the node cannot connect to the gateway on startup? It would still be possible to use the switch?

                      Thank you,

                      MySensors rules my home :)

                      Nca78N 1 Reply Last reply
                      0
                      • Daniel OliveiraD Daniel Oliveira

                        Hi everyone,

                        First I would like to thank the OP for sharing this great project :)

                        Then I would like to ask what would happen if the node cannot connect to the gateway on startup? It would still be possible to use the switch?

                        Thank you,

                        Nca78N Offline
                        Nca78N Offline
                        Nca78
                        Hardware Contributor
                        wrote on last edited by Nca78
                        #58

                        @Daniel-Oliveira said:

                        Then I would like to ask what would happen if the node cannot connect to the gateway on startup? It would still be possible to use the switch?

                        Hello, on startup if it cannot connect to gateway MySensors library will loop until it connects, so no. But once started as you have direct connection to the switch it will work even if the gateway fails.

                        Daniel OliveiraD 1 Reply Last reply
                        0
                        • Nca78N Nca78

                          @Daniel-Oliveira said:

                          Then I would like to ask what would happen if the node cannot connect to the gateway on startup? It would still be possible to use the switch?

                          Hello, on startup if it cannot connect to gateway MySensors library will loop until it connects, so no. But once started as you have direct connection to the switch it will work even if the gateway fails.

                          Daniel OliveiraD Offline
                          Daniel OliveiraD Offline
                          Daniel Oliveira
                          wrote on last edited by
                          #59

                          @Nca78 Thank you for the reply,

                          There is a way to overcame that? Like add a max retry of sorts? My concern is that if by some reason the gateway fails and the node reboots I will not be able use the switch.

                          Or does MySensors have another fail safe mechanism that I'm not aware?

                          MySensors rules my home :)

                          1 Reply Last reply
                          0
                          • Nca78N Offline
                            Nca78N Offline
                            Nca78
                            Hardware Contributor
                            wrote on last edited by
                            #60

                            No that I know.
                            But this situation is really unlikely, nodes are very stable usually (else you'll quickly see a problem). Basically you would need the gateway to fail, then a power outage to reboot your node.

                            1 Reply Last reply
                            0
                            • Nca78N Nca78

                              @okos if you have the device in Domoticz it means it could run, and send data to the gateway controller.
                              Did you change anything in hardware of software between the moment you added the node/sensor to Domoticz and the moment you tried to activate it ?
                              Are you sure your settings for the ACK are ok ? Maybe you are not sending one in the node but waiting from one in Domoticz ? Check the "Ack" column in Domoticz and if it's true try to change it to false.

                              okosO Offline
                              okosO Offline
                              okos
                              wrote on last edited by
                              #61

                              @Nca78 said:

                              @okos if you have the device in Domoticz it means it could run, and send data to the gateway controller.
                              Did you change anything in hardware of software between the moment you added the node/sensor to Domoticz and the moment you tried to activate it ?
                              Are you sure your settings for the ACK are ok ? Maybe you are not sending one in the node but waiting from one in Domoticz ? Check the "Ack" column in Domoticz and if it's true try to change it to false.

                              Thanks for the answer :smiley: Nca78, but I do not know where to look for settings Ack.
                              Please help

                              Nca78N 1 Reply Last reply
                              0
                              • okosO okos

                                @Nca78 said:

                                @okos if you have the device in Domoticz it means it could run, and send data to the gateway controller.
                                Did you change anything in hardware of software between the moment you added the node/sensor to Domoticz and the moment you tried to activate it ?
                                Are you sure your settings for the ACK are ok ? Maybe you are not sending one in the node but waiting from one in Domoticz ? Check the "Ack" column in Domoticz and if it's true try to change it to false.

                                Thanks for the answer :smiley: Nca78, but I do not know where to look for settings Ack.
                                Please help

                                Nca78N Offline
                                Nca78N Offline
                                Nca78
                                Hardware Contributor
                                wrote on last edited by
                                #62

                                @okos go to Setup menu / Hardware, then click on the "Setup" button for your MySensors gateway.
                                In the top list select the node, and in the bottom you will see the sensors attached to this node, and a Ack column for each sensor. To edit the ack column just select item and you have the checkbox below the grid with update button.

                                okosO 1 Reply Last reply
                                0
                                • Nca78N Nca78

                                  @okos go to Setup menu / Hardware, then click on the "Setup" button for your MySensors gateway.
                                  In the top list select the node, and in the bottom you will see the sensors attached to this node, and a Ack column for each sensor. To edit the ack column just select item and you have the checkbox below the grid with update button.

                                  okosO Offline
                                  okosO Offline
                                  okos
                                  wrote on last edited by okos
                                  #63
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  • Nca78N Offline
                                    Nca78N Offline
                                    Nca78
                                    Hardware Contributor
                                    wrote on last edited by
                                    #64

                                    First board soldered and tested, it runs very well, thank you for the great work @aproxx !
                                    Thank you @Konstantin-Kolesnichenko also for adapting the script to version 2.0.

                                    I just didn't dare to install the ds18b20, the tiny distance to the temp fuse pad gives me some nightmares :cold_sweat: so I prefer having no temperature sensor and put a piece of insulating tape on both sides.
                                    This one will go in the ceiling, but for next board I will keep the vcc pin of the NRF24 and change a bit the code to use touch sensors behind a livolo glass plate. I need some top level WAF before I can go on with the MySensorization of all the appartment :D

                                    0_1471537898596_SSR_Relay_Board.jpg (like the others I will not show the back side and it's ugly pieces of insulating tape :D)

                                    @okos did you fix your problem ? I see your deleted message.

                                    okosO 1 Reply Last reply
                                    1
                                    • Nca78N Nca78

                                      First board soldered and tested, it runs very well, thank you for the great work @aproxx !
                                      Thank you @Konstantin-Kolesnichenko also for adapting the script to version 2.0.

                                      I just didn't dare to install the ds18b20, the tiny distance to the temp fuse pad gives me some nightmares :cold_sweat: so I prefer having no temperature sensor and put a piece of insulating tape on both sides.
                                      This one will go in the ceiling, but for next board I will keep the vcc pin of the NRF24 and change a bit the code to use touch sensors behind a livolo glass plate. I need some top level WAF before I can go on with the MySensorization of all the appartment :D

                                      0_1471537898596_SSR_Relay_Board.jpg (like the others I will not show the back side and it's ugly pieces of insulating tape :D)

                                      @okos did you fix your problem ? I see your deleted message.

                                      okosO Offline
                                      okosO Offline
                                      okos
                                      wrote on last edited by okos
                                      #65

                                      @okos did you fix your problem ? I see your deleted message.

                                      Now everything is ok.
                                      Nrf changed, and changed the position of the gate (it is now above - on the fridge :))

                                      But I have another problem
                                      I used the code from Konstantin Kolesnichenko (thanks), and even after the power is changing relay.

                                      Example:

                                      on relay 1
                                      off Relay 2

                                      turn off the power, and after power returning I

                                      on relay 2
                                      off Relay 1

                                      Why exchange ?

                                      Nca78N 1 Reply Last reply
                                      0
                                      • okosO okos

                                        @okos did you fix your problem ? I see your deleted message.

                                        Now everything is ok.
                                        Nrf changed, and changed the position of the gate (it is now above - on the fridge :))

                                        But I have another problem
                                        I used the code from Konstantin Kolesnichenko (thanks), and even after the power is changing relay.

                                        Example:

                                        on relay 1
                                        off Relay 2

                                        turn off the power, and after power returning I

                                        on relay 2
                                        off Relay 1

                                        Why exchange ?

                                        Nca78N Offline
                                        Nca78N Offline
                                        Nca78
                                        Hardware Contributor
                                        wrote on last edited by
                                        #66

                                        @okos I will try to do more tests tomorrow to see if I have the same problem. I see no obvious mistake in the script that would generate this though. The only thing I see would be if you have linked your module with physical switches and they are in different position. As the script assumes that at startup the buttons are in "off" position (circuit opened).

                                        I think we should have this code at the end of the setup() method to initialize the oldValue and oldValue2 variables.

                                          // Set the initial values of oldValue/oldValue2 variables from status of physical switches
                                          debouncer.update();
                                          debouncer2.update();
                                          oldValue = debouncer.read();
                                          oldValue2 = debouncer2.read();
                                        
                                        1 Reply Last reply
                                        0
                                        • Nca78N Offline
                                          Nca78N Offline
                                          Nca78
                                          Hardware Contributor
                                          wrote on last edited by
                                          #67

                                          @okos I confirm to you that without the change in my previous message, I had a similar problem (relay 1 always on and relay 2 always off at startup). After applying the change I don't have any problem on restart, it was just an initialization problem.
                                          I'm making some small improvements to the sketch, I will test tomorrow and post it.

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


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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