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. Radio issue on relay sample

Radio issue on relay sample

Scheduled Pinned Locked Moved Hardware
14 Posts 2 Posters 2.3k Views 2 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.
  • manicfarmerM manicfarmer

    How I have setup the perfboard is to bridge the connections from the relay to the buck converter. It works great when plugged into usb from the pc. I experience the issue when the Arduino is powered from the buck converter. Button never seems to work although I have tested the voltage and it appears to be sending the correct voltage the the pin on the Arduino. I get intermittent results when I toggle the relay using my vera controller. So you are suggesting I try a new way of powering the unit? Here is a link to the buck converter that I am using to power the unit.

    http://www.ebay.com/itm/5V-700mA-AC-DC-Power-Supply-Buck-Converter-Step-Down-Module-Top-Sale-/111856870992?hash=item1a0b306650:g:zeMAAOSwhkRWeg2v

    manicfarmerM Offline
    manicfarmerM Offline
    manicfarmer
    wrote on last edited by
    #4

    @manicfarmer Oh yeah, it is a mechanical relay I believe. Not a solid state, one that uses magnetism.

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

      Well, if it works with power from PC but not power from buck converter you have the issue.

      First thing I would do is to look how you wired ground from the relay. I have had nodes that didnt work if i wired ground directly to source. Sometimes I had to wire it trough the arduino... and I have had nodes i needed to to the other way, relay ground directly to source. (Note: NOT on the AC/Mains side offcourse!)

      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
      • manicfarmerM Offline
        manicfarmerM Offline
        manicfarmer
        wrote on last edited by
        #6

        Ground from the relay is wired directly to the source (buck converter). All power and grounds come from that single source with the exception of the radio. I used the voltage regulator to step down the 5V to 3.3V. I used the ground from the buck converter to ground the voltage regulator. Are you suggesting that I try to ground the relay from the Arduino instead of the buck converter? I was also thinking of putting one of these on order to test it out.http://www.ebay.com/itm/1PCS-HLK-PM01-AC-DC-220V-to-5V-Step-Down-Power-Supply-Module-Household-Switch-/221950420477?hash=item33ad46a5fd:g:8WYAAOSwxN5WVRA-

        I hate to order just one in case it works because I have to wait on China shipping. Does anyone know if this is a better solution than the buck converter I posted up top?

        sundberg84S 1 Reply Last reply
        0
        • manicfarmerM manicfarmer

          Ground from the relay is wired directly to the source (buck converter). All power and grounds come from that single source with the exception of the radio. I used the voltage regulator to step down the 5V to 3.3V. I used the ground from the buck converter to ground the voltage regulator. Are you suggesting that I try to ground the relay from the Arduino instead of the buck converter? I was also thinking of putting one of these on order to test it out.http://www.ebay.com/itm/1PCS-HLK-PM01-AC-DC-220V-to-5V-Step-Down-Power-Supply-Module-Household-Switch-/221950420477?hash=item33ad46a5fd:g:8WYAAOSwxN5WVRA-

          I hate to order just one in case it works because I have to wait on China shipping. Does anyone know if this is a better solution than the buck converter I posted up top?

          sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by sundberg84
          #7

          @manicfarmer said:

          Are you suggesting that I try to ground the relay from the Arduino instead of the buck converter?

          Yes - No harm in trying that, it has worked fo me.

          About the HLK-PM01 - I use these in my AC designs and so far (in this forum) i think its the most discussed as it comes to safety. I would use those any day before those cheap buck converters. They are working great for me.

          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
          • manicfarmerM Offline
            manicfarmerM Offline
            manicfarmer
            wrote on last edited by
            #8

            I will definitely give that a try. I am also going to order about 10 of these HLK-PM01 for in wall switches. Maybe all the buck converters I have can be used for something that doesn't use relays and live inside a small enclosure. Thanks for the suggestions. I'll give them a try and post my results.

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

              As a tip, there is some projects on openhardware.io if you want to use HLK-PM01.
              Of if it works changing power, you could try a diode before the relay if you want to use that buck converter.

              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
              • manicfarmerM Offline
                manicfarmerM Offline
                manicfarmer
                wrote on last edited by
                #10

                Thanks for the tip(s)! I have actually stayed away from openhardware because it sounded like it was out of my league at this point. I have relied on google for most of my searching and found some cool in wall PCB projects but none that were a finished product and worked the way I had hoped. I just found your project on OpenHardware and am very impressed. Great work!!! It looks like you have already done what I am trying to prototype. I am going to take a closer look at your project. I would probably be better served starting with something that is much closer to a finished product. I think I am going to look at the components and try to build a few to test them out.

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

                  There is also a HLK-PM01 with a relay already attached - which mine has not.
                  http://forum.mysensors.org/topic/1540/110v-230v-ac-to-mysensors-pcb-board
                  This is a bit bigger so check if it fits inside the wall if that is the purpose.

                  Also im releasing a new design for my in-wall sensor, this has a few AC traces to close to each other which might be dangerous if you have them in either a enviroment with high humidity or a unclean enviroment.

                  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
                  • manicfarmerM Offline
                    manicfarmerM Offline
                    manicfarmer
                    wrote on last edited by
                    #12

                    @sundberg84 I did see that project but didn't look at the design in detail. I really like the idea of the relay and power being in one unit. I definitely have some reading to do.

                    I did try and ground the relay to the Arduino. The results seem to be not as good as before. I got it to function a couple of times but most of the time it didn't seem to work. Of course when it is powered from USB on my PC it works great. I hooked up the TX, RX and DTR so I could hook it up to the serial monitor to see what the output says and I was getting some readable output and some that wasn't. Pasting output below. Typically each send command prints on its own line so maybe this has something to do with the issue I am experiencing.

                    send: 1-1-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,ót=ok:1.5.1send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
                    repeater started, id=1,!parent=0, d¿/W–k•õÅrþsend: 1-1-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,st=ok:Relay & Button
                    send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st?ok:L‚
                    send: 1-1-0-0 s=1,c=0,t=3,pt}0,l=0¬sg=0,st=ok:

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

                      Those strange characters indicate it's a power problem in my world.

                      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
                      • manicfarmerM Offline
                        manicfarmerM Offline
                        manicfarmer
                        wrote on last edited by
                        #14

                        Got my HLK-PM01in the other day so I removed the buck converter from my test board and added one of these and now it communicates fine. Thanks for the advice.

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


                        12

                        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