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. My Project
  3. $8 Lamp (Outlet) "Smart Plug" Module

$8 Lamp (Outlet) "Smart Plug" Module

Scheduled Pinned Locked Moved My Project
109 Posts 34 Posters 97.5k Views 13 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.
  • AWIA Offline
    AWIA Offline
    AWI
    Hero Member
    wrote on last edited by
    #43

    I have these lockups all the time and have not been able to get rid of them. I tried:

    • separated power supplies
    • capacitors
    • shielding

    Most probably (in my case) is the spike introduced by the coil of the relay. This somehow puts the radio in a sleep (or half dead) state. By moving away from mechanical to triac (ssd) 'relays' I was finaly able to solve it. If you find a solution please post.

    petewillP 1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #44

      @AWI Hmm, ok... will give it a try and report back if i find anything...

      It seems to be both range and spikes? The sensor works great without anything connected to 240v out but as soon as i connect anything like a lamp it fails within 5 on/off. Also when i move it close to the gw but then atleast it works without any 240v connected.

      The SSD relays, is that something like this?
      http://www.ebay.com/itm/1pcs-5V-DC-1-Channel-Solid-State-Relay-Board-module-High-Level-fuse-for-arduino-/191563980850?pt=LH_DefaultDomain_2&hash=item2c9a1a6032

      Any downsides with SSR relays?

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      AWIA 1 Reply Last reply
      0
      • sundberg84S sundberg84

        @AWI Hmm, ok... will give it a try and report back if i find anything...

        It seems to be both range and spikes? The sensor works great without anything connected to 240v out but as soon as i connect anything like a lamp it fails within 5 on/off. Also when i move it close to the gw but then atleast it works without any 240v connected.

        The SSD relays, is that something like this?
        http://www.ebay.com/itm/1pcs-5V-DC-1-Channel-Solid-State-Relay-Board-module-High-Level-fuse-for-arduino-/191563980850?pt=LH_DefaultDomain_2&hash=item2c9a1a6032

        Any downsides with SSR relays?

        AWIA Offline
        AWIA Offline
        AWI
        Hero Member
        wrote on last edited by
        #45

        @sundberg84 I have never found these before. Sounds like an interesting option. Made myself boards like these
        The 'downside' of these is that there can be a leak voltage when the output is left open.

        1 Reply Last reply
        0
        • sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #46

          @AWI Your link didnt work (typo)
          Ill give these a try and let post if they are any good.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          0
          • AWIA AWI

            I have these lockups all the time and have not been able to get rid of them. I tried:

            • separated power supplies
            • capacitors
            • shielding

            Most probably (in my case) is the spike introduced by the coil of the relay. This somehow puts the radio in a sleep (or half dead) state. By moving away from mechanical to triac (ssd) 'relays' I was finaly able to solve it. If you find a solution please post.

            petewillP Offline
            petewillP Offline
            petewill
            Admin
            wrote on last edited by
            #47

            @AWI said:

            I have these lockups all the time and have not been able to get rid of them. I tried:

            • separated power supplies
            • capacitors
            • shielding

            Most probably (in my case) is the spike introduced by the coil of the relay. This somehow puts the radio in a sleep (or half dead) state. By moving away from mechanical to triac (ssd) 'relays' I was finaly able to solve it. If you find a solution please post.

            Strange. I have been using mine for months without any issues. It is triggered by motion in my family room so it is used every day multiple times. Were you powering the relay from the Arduino or directly from the 5v?

            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

            1 Reply Last reply
            0
            • sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by sundberg84
              #48

              @petewill In my case from VCC from arduino. I try to change incoming to raw and see if that makes any differens.

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              petewillP 1 Reply Last reply
              0
              • sundberg84S sundberg84

                @petewill In my case from VCC from arduino. I try to change incoming to raw and see if that makes any differens.

                petewillP Offline
                petewillP Offline
                petewill
                Admin
                wrote on last edited by
                #49

                @sundberg84 said:

                @petewill In my case from VCC from arduino. I try to change incoming to raw and see if that makes any differens.

                Yeah, let me know. It's been a while, so I don't remember what project I had issues with, but I had issues with power when I was using the Arduino 5V. I always try to pull power from the source (not Arduino) whenever I can now. Hopefully this will help your issue.

                My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

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

                  Now the relay powers up, and i can switch (led turns on) but no click/coil activation so no 240v power out. Changed the relay but same result. I have 5v relay vcc and 5v on in but nothing... strange.

                  Controller: Proxmox VM - Home Assistant
                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                  Moshe LivneM petewillP 2 Replies Last reply
                  0
                  • sundberg84S sundberg84

                    Now the relay powers up, and i can switch (led turns on) but no click/coil activation so no 240v power out. Changed the relay but same result. I have 5v relay vcc and 5v on in but nothing... strange.

                    Moshe LivneM Offline
                    Moshe LivneM Offline
                    Moshe Livne
                    Hero Member
                    wrote on last edited by
                    #51

                    @sundberg84 try the relay by itself first - connect to 5v and gnd and give it signal (even by just touching a wire to the signal leg). I had a run of several dead relays (was because of non rectified power supply so they switched on and off 50 times a second... one of the best ways to kill a relay I think)

                    1 Reply Last reply
                    0
                    • sundberg84S sundberg84

                      Now the relay powers up, and i can switch (led turns on) but no click/coil activation so no 240v power out. Changed the relay but same result. I have 5v relay vcc and 5v on in but nothing... strange.

                      petewillP Offline
                      petewillP Offline
                      petewill
                      Admin
                      wrote on last edited by
                      #52

                      @sundberg84 said:

                      Now the relay powers up, and i can switch (led turns on) but no click/coil activation so no 240v power out. Changed the relay but same result. I have 5v relay vcc and 5v on in but nothing... strange.

                      Wow, that is strange. I am using 5 or so different relays all around my house every day and I've never had this issues. I always connect them to 5v directly from the dc transformer (old cell phone chargers).

                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                      1 Reply Last reply
                      0
                      • Mohsin HassanM Offline
                        Mohsin HassanM Offline
                        Mohsin Hassan
                        wrote on last edited by
                        #53

                        Hi,

                        any possibility of including a push button to manually trigger the switch on and off as well?
                        And if possible update Vera on the status change.

                        This way i can make it Wife safe and not get kicked out of the house...

                        I'm not good with coding but if someone can point me in the right direction please...

                        petewillP 1 Reply Last reply
                        0
                        • sundberg84S Offline
                          sundberg84S Offline
                          sundberg84
                          Hardware Contributor
                          wrote on last edited by sundberg84
                          #54

                          There is a scetch in mysensors lib doing this. Relayaccuatorwithbutton or something. Download the examplescetches and have a look: http://www.mysensors.org/build/relay#relaywithbuttonactuator-example @Mohsin-Hassan

                          Controller: Proxmox VM - Home Assistant
                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                          1 Reply Last reply
                          1
                          • sundberg84S Offline
                            sundberg84S Offline
                            sundberg84
                            Hardware Contributor
                            wrote on last edited by
                            #55

                            @petewill @Moshe-Livne . Coil activates when i try with a 9v battery, so either bad/cheap relays or to weak power plug. All measures +5v but its not enough. Ill order some new relays.

                            Controller: Proxmox VM - Home Assistant
                            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                            Moshe LivneM petewillP 2 Replies Last reply
                            0
                            • sundberg84S sundberg84

                              @petewill @Moshe-Livne . Coil activates when i try with a 9v battery, so either bad/cheap relays or to weak power plug. All measures +5v but its not enough. Ill order some new relays.

                              Moshe LivneM Offline
                              Moshe LivneM Offline
                              Moshe Livne
                              Hero Member
                              wrote on last edited by
                              #56

                              @sundberg84 IMHO 9v will fry the relay. max voltage is 5.5v if my failing memory serves. depends on your relay, naturally but this is the most common one. have a look at the datasheet https://www.ghielectronics.com/downloads/man/20084141716341001RelayX1.pdf
                              yes it is 5.5v - nominal 5v, max current is 110%. I am sure it can sustain 6 but 9v will be really pushing it IMHO

                              1 Reply Last reply
                              0
                              • sundberg84S Offline
                                sundberg84S Offline
                                sundberg84
                                Hardware Contributor
                                wrote on last edited by
                                #57

                                It was only to test coil failure and see if it was a power issue :)

                                Controller: Proxmox VM - Home Assistant
                                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                Moshe LivneM 1 Reply Last reply
                                0
                                • sundberg84S sundberg84

                                  It was only to test coil failure and see if it was a power issue :)

                                  Moshe LivneM Offline
                                  Moshe LivneM Offline
                                  Moshe Livne
                                  Hero Member
                                  wrote on last edited by
                                  #58

                                  @sundberg84 A self fulfilling prophecy :-)

                                  1 Reply Last reply
                                  0
                                  • Mohsin HassanM Mohsin Hassan

                                    Hi,

                                    any possibility of including a push button to manually trigger the switch on and off as well?
                                    And if possible update Vera on the status change.

                                    This way i can make it Wife safe and not get kicked out of the house...

                                    I'm not good with coding but if someone can point me in the right direction please...

                                    petewillP Offline
                                    petewillP Offline
                                    petewill
                                    Admin
                                    wrote on last edited by
                                    #59

                                    @Mohsin-Hassan said:

                                    Hi,

                                    any possibility of including a push button to manually trigger the switch on and off as well?
                                    And if possible update Vera on the status change.

                                    This way i can make it Wife safe and not get kicked out of the house...

                                    I'm not good with coding but if someone can point me in the right direction please...

                                    We are discussing this over here: http://forum.mysensors.org/topic/1607/safe-in-wall-ac-to-dc-transformers

                                    You want to be careful you use the right transformer so you don't burn your house down. :) The wife probably wouldn't appreciate that.

                                    I really want to do this too. I'm just waiting for the experts to weigh in on which transformer is safe.

                                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                    1 Reply Last reply
                                    0
                                    • sundberg84S sundberg84

                                      @petewill @Moshe-Livne . Coil activates when i try with a 9v battery, so either bad/cheap relays or to weak power plug. All measures +5v but its not enough. Ill order some new relays.

                                      petewillP Offline
                                      petewillP Offline
                                      petewill
                                      Admin
                                      wrote on last edited by
                                      #60

                                      @sundberg84 said:

                                      @petewill @Moshe-Livne . Coil activates when i try with a 9v battery, so either bad/cheap relays or to weak power plug. All measures +5v but its not enough. Ill order some new relays.

                                      So strange that it's not working. What is the power rating of your 5V transformer? Do you have a picture of your set up?

                                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                      1 Reply Last reply
                                      0
                                      • sundberg84S Offline
                                        sundberg84S Offline
                                        sundberg84
                                        Hardware Contributor
                                        wrote on last edited by sundberg84
                                        #61

                                        @petewill @Moshe-Livne

                                        I dont reallt wants to admit it...
                                        Well, I ordered the 5v relay from ebay (i have the reciept!) and looking at petewill video it says SRD-05VDC-
                                        Looking at mine it says SRD-12VDC so probalby the sent me a 12v relay...

                                        New one will arive soon i hope :) Thank you for the help and sorry for clogging the thread.

                                        Controller: Proxmox VM - Home Assistant
                                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                        Moshe LivneM petewillP 2 Replies Last reply
                                        0
                                        • sundberg84S sundberg84

                                          @petewill @Moshe-Livne

                                          I dont reallt wants to admit it...
                                          Well, I ordered the 5v relay from ebay (i have the reciept!) and looking at petewill video it says SRD-05VDC-
                                          Looking at mine it says SRD-12VDC so probalby the sent me a 12v relay...

                                          New one will arive soon i hope :) Thank you for the help and sorry for clogging the thread.

                                          Moshe LivneM Offline
                                          Moshe LivneM Offline
                                          Moshe Livne
                                          Hero Member
                                          wrote on last edited by
                                          #62

                                          @sundberg84 that makes so much sense! And its not even your fault! :-)

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


                                          11

                                          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