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. 110v-230v AC to Mysensors PCB board

110v-230v AC to Mysensors PCB board

Scheduled Pinned Locked Moved Hardware
269 Posts 63 Posters 270.9k Views 68 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.
  • A aproxx

    Hi all,

    **UPDATE April 17 2016 **
    The latest version of this board is available HERE.

    After spending a few months on this forum and a few prototypes later, I decided I wanted to build a small but cheap PCB which could be placed in either the wall behind the light switch, or above the lamp.

    Besides the boards I've seen on this forum, I wanted these boards to contain a module to go from 230v AC to 5/3.3v DC in order to power an Arduino nano and the NRF module. I eventually ended up with a PCB which is about 4 by 4.5cm. So with all components attached I'm hoping to get in stuffed in a 5x5x3cm plastic printed case.

    Modules which I've used to power the board:
    [http://www.aliexpress.com/item/5-pcs-HLK-PM01-AC-DC-220V-to-5V-Step-Down-Power-Supply-Module-Intelligent-Household/32319202093.html?spm=2114.32010308.4.19.8oKfZg

    UPDATE: 2015/09/18
    As promised, I've got an update for this project. The board has been tested in the past week, and everything is working as expected. Compared to the previous board I've posted, I have updated the following:
    • Solder pads of LE33CZ have been placed a little wider apart to avoid short circuit while soldering.
    • Solder pads of the resettable fuse (Fuse2) has been placed closer together to better fit the fuses of the BOM.
    • Moved the NRF24L01 connector a bit away from the solid state relay. Should make it easier to solder.
    • Moved Fuse2 to another location on the board, away from the 230v circuit.

    Some 3D pictures (Top and bottom):
    Top.png
    Bottom.png

    Anyone who is interested can order the PCB HERE

    Some documentation, complete list of required components and all gerber / DipTrace files (in case you would like to make some modifications) can be found here: MySensors board v3.2.3.zip.

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

    @aproxx what is the size of the step down module? i don't think it was mentioned anywhere but i might have missed it among all the useful data provided.... also, forgive the hopelessly noob question, but how do you connect these modules? are the dots soldering points?

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

      http://www.hlktech.net/product_detail.php?ProId=54

      1 Reply Last reply
      0
      • Moshe LivneM Moshe Livne

        @aproxx what is the size of the step down module? i don't think it was mentioned anywhere but i might have missed it among all the useful data provided.... also, forgive the hopelessly noob question, but how do you connect these modules? are the dots soldering points?

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

        @aproxx found the datasheet http://www.hlktech.net/product_detail.php?ProId=54
        its 34x20.2x15 and there are legs at the bottom

        1 Reply Last reply
        0
        • Moshe LivneM Offline
          Moshe LivneM Offline
          Moshe Livne
          Hero Member
          wrote on last edited by
          #7

          @aproxx also re-read my post and it might have come out bad - I didn't mean to criticize your data - I meant that on aliexpress they dumped heaps of data a bit badly formatted so it was hard to find things. apologies...

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aproxx
            Hero Member
            wrote on last edited by aproxx
            #8

            Thanks for the positive feedback already! Last night I managed to replace some of the components in order to fit some extra pin-outs in case it is needed.

            I still need to test the AC/DC converter+stepdown module, but I have high hopes on this one. I know that really cheap China transfos are cheaper and a bit smaller, but I'd rather go for something a bit more expensive, hopefully has a bit better components and has short circuit protection (it is supposed to be powered on for years and years).

            @scalz , you project absolutely seems interesting as well! Unfortunately I don't feel confident enough to do any SMD soldering, so I'm currently sticking to regular Arduino Pro Mini Boards. Maybe I'll try adding an SMD microcontroller and relay in the future.

            @Moshe-Livne No worries. AliExpress sure ins't the best source to get specific device information. Glad you found the datasheet!

            1 Reply Last reply
            0
            • axillentA Offline
              axillentA Offline
              axillent
              Mod
              wrote on last edited by
              #9

              It was another discussion http://forum.mysensors.org/topic/687/230v-power-supply-to-arduino/23
              You are adding a valuable solution.
              This module looks very interesting in case it will meet all stated characteristics,

              I also thinkin on something small to fit into standard wall box but I have some complication.
              I need a solution for 2-wire lighting, It is because All lighting in my house is a two-wire system.
              Otherwise I will need to feed third wire to each wall box.

              sense and drive

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

                @aproxx : of course I am interested with your files. It could be useful.

                @axillent : when you say 2-wire lighting, do you mean for one main??? I have done some tests last month to make something like fibaro fgd211. But I jumped onto another project. I had problems I remember. To test I was using a little china transfo and incandescent bulb. First test, zero cross detect with triac. Arduino rebooted always at start (I think about drop voltage and brownout reset arduino, because of a reset of the transfo. but not sure it was that, or maybe it was a no good zerocross....). Then I tried with mosfet pwm. Arduino booted right, but when I increased pwm to something like 192-200, arduino resetted. So I was thinking to use lnk306 but no time (and I think lnk306 need same input voltage so I don't know if it could resolve the problem. So I now am thinking to disconnect my light network and connect it to dc 48 and using led instead.
                Do you have idea, to power (steal energy) nodes with one main???

                RJ_MakeR 1 Reply Last reply
                0
                • scalzS scalz

                  @aproxx : of course I am interested with your files. It could be useful.

                  @axillent : when you say 2-wire lighting, do you mean for one main??? I have done some tests last month to make something like fibaro fgd211. But I jumped onto another project. I had problems I remember. To test I was using a little china transfo and incandescent bulb. First test, zero cross detect with triac. Arduino rebooted always at start (I think about drop voltage and brownout reset arduino, because of a reset of the transfo. but not sure it was that, or maybe it was a no good zerocross....). Then I tried with mosfet pwm. Arduino booted right, but when I increased pwm to something like 192-200, arduino resetted. So I was thinking to use lnk306 but no time (and I think lnk306 need same input voltage so I don't know if it could resolve the problem. So I now am thinking to disconnect my light network and connect it to dc 48 and using led instead.
                  Do you have idea, to power (steal energy) nodes with one main???

                  RJ_MakeR Offline
                  RJ_MakeR Offline
                  RJ_Make
                  Hero Member
                  wrote on last edited by
                  #11

                  @scalz
                  May I make a suggestion? I would look for a solution for both 230v AND 120v for us yanks.. :-) I know I would make the purchase.

                  RJ_Make

                  scalzS 1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Andreas Maurer
                    wrote on last edited by
                    #12

                    If you have a look at the datasheet you see:

                    All voltage input (AC: 90 ~ 264V)

                    110 should work.

                    RJ_MakeR 1 Reply Last reply
                    0
                    • A Andreas Maurer

                      If you have a look at the datasheet you see:

                      All voltage input (AC: 90 ~ 264V)

                      110 should work.

                      RJ_MakeR Offline
                      RJ_MakeR Offline
                      RJ_Make
                      Hero Member
                      wrote on last edited by
                      #13

                      @Andreas-Maurer Thats Great. You may want to change the title to reflect that.

                      RJ_Make

                      1 Reply Last reply
                      0
                      • RJ_MakeR RJ_Make

                        @scalz
                        May I make a suggestion? I would look for a solution for both 230v AND 120v for us yanks.. :-) I know I would make the purchase.

                        scalzS Offline
                        scalzS Offline
                        scalz
                        Hardware Contributor
                        wrote on last edited by
                        #14

                        @ServiceXp : are you talking about my relay board? if yes, I will check what I can do in the end of the week and post my project in a new topic (I think I have to rearrange the board to fit the step down).

                        RJ_MakeR 1 Reply Last reply
                        0
                        • axillentA Offline
                          axillentA Offline
                          axillent
                          Mod
                          wrote on last edited by
                          #15

                          @scalz two wire ligting menas that a wall switch is feeded only with two wires. One wire is a L source and second wire is from the load (from the lamp). Classical switch just need to short this two for the light to startup. In this case ay smart switch need some advanced technique on to power itself. For example fibaro dimmers do so.

                          Do you plan to use single 48V power supply for the lighting? I'm working on the prokect for the guest house because it is just on building stage. I have a plan to use single 48V AC-DC power source with wired mysensors network. I will use 3 wires accross all lamps and switches and sensors. They will communicate with each othe P2P using a single wire interface based on Manchester encoding. I also plan to have Mysensors gateway.

                          sense and drive

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

                            @axillent Ok. thank you. At my home it is like that. sure it needs a smart switch. and fibaro seems to be very smart (very small, small transfo, and steal energy, but z wave so I think it may use sync comm to use less energy. Maybe I am wrong and don't know how it is inside).
                            You are right. I am thinking to use 48v power supply lighting. But I cannot change my electrical network. So two wire. And I hope it will be easier to steal energy and power the in wall switch node for leds. Maybe I am wrong. I will power my lightings with energy harvesting (solar, or maybe I have another idea but i have to make experiments.

                            Your lighting project is very smart too. can't wait to see it too.

                            1 Reply Last reply
                            0
                            • scalzS scalz

                              @ServiceXp : are you talking about my relay board? if yes, I will check what I can do in the end of the week and post my project in a new topic (I think I have to rearrange the board to fit the step down).

                              RJ_MakeR Offline
                              RJ_MakeR Offline
                              RJ_Make
                              Hero Member
                              wrote on last edited by
                              #17

                              @scalz Sorry, No I was referring to the OP.

                              RJ_Make

                              1 Reply Last reply
                              0
                              • rvendrameR Offline
                                rvendrameR Offline
                                rvendrame
                                Hero Member
                                wrote on last edited by
                                #18

                                @ServiceXp , I'm also looking for a way to power a node from the available-standard two wire switch. It should be possible to steal some milliamps from there, but I don't know even from where to start researching it.

                                Home Assistant / Vera Plus UI7
                                ESP8266 GW + mySensors 2.3.2
                                Alexa / Google Home

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  aproxx
                                  Hero Member
                                  wrote on last edited by
                                  #19

                                  Hi All,

                                  I'm not sure if I understand the 2-wire thing completely, but in my house (which is kind of standard I guess in Europe) I have 3 wires going from the electricity cabinet, to the light switch and then to the light bulb. These cables are Phase, Neutral and Ground.

                                  As I don't want to rewire my entire grid, I decided to build these boards so I can reuse the current wiring. I ended up with the following "schematic" if I can call my paintskills like that.
                                  The enclosure at the bottom of the drawing would be placed behind the current light switch, while the enclosure at the top of the drawing would be placed right above the light bulb. This requires little to no modification of my current wiring.

                                  Connection overview.jpg

                                  @ServiceXP, I'll update the title to include the 110v information.

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    Jan Gatzke
                                    wrote on last edited by Jan Gatzke
                                    #20

                                    Why don't you place the relay behind the switch, too? This way you could save half of the nodes.

                                    I have just ordered some of those power supply modules. Very interesting, cheapest similar ones I found before were about 14 €.

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      shabba
                                      wrote on last edited by
                                      #21

                                      This is what I have done for a light bulb in the pantry with a motion sensor. Its a mess as it is a proof of concept.

                                      I have a 5 separate "modules" as such. Arduino Pro Mini, Motion Sensor, Radio, 5V AC/DC transformer and a 5V Relay. So clearly it is too big and a bit of a mess! So I am really interested in your PCB @aproxx! Do let us know how it works for you.

                                      2015-06-17 20.02.09.jpg

                                      AWIA 1 Reply Last reply
                                      0
                                      • S shabba

                                        This is what I have done for a light bulb in the pantry with a motion sensor. Its a mess as it is a proof of concept.

                                        I have a 5 separate "modules" as such. Arduino Pro Mini, Motion Sensor, Radio, 5V AC/DC transformer and a 5V Relay. So clearly it is too big and a bit of a mess! So I am really interested in your PCB @aproxx! Do let us know how it works for you.

                                        2015-06-17 20.02.09.jpg

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

                                        @shabba It looks like you are trying to build something to "pop your corn" on the shelf :smile:

                                        1 Reply Last reply
                                        0
                                        • hekH Offline
                                          hekH Offline
                                          hek
                                          Admin
                                          wrote on last edited by
                                          #23

                                          @shabba

                                          That picture makes me a bit worried... :sweat: Please don't let any kids near it.

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


                                          14

                                          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