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. 💬 Wall Socket Insertable Node

💬 Wall Socket Insertable Node

Scheduled Pinned Locked Moved OpenHardware.io
rfm69atsha204amysensorsrelaypower supply
77 Posts 21 Posters 24.0k Views 27 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.
  • jeremushkaJ jeremushka

    in case you want to use the wall plug manually when a device is connected (without mysensors), it will not work at all in case the relay has been switched ? How do you manage external usage ?

    Y Offline
    Y Offline
    yury
    wrote on last edited by
    #61

    @jeremushka

    Assume you need to use it with some kind of momentary or rocker switch in case you lose connection to the gateway. Use JST connector and enable A2 internall pullup. JST connector pins are A2 and ground.

    jeremushkaJ 1 Reply Last reply
    0
    • Y yury

      @jeremushka

      Assume you need to use it with some kind of momentary or rocker switch in case you lose connection to the gateway. Use JST connector and enable A2 internall pullup. JST connector pins are A2 and ground.

      jeremushkaJ Offline
      jeremushkaJ Offline
      jeremushka
      wrote on last edited by
      #62

      @yury i have built a system quite simular but still big mess in the connections. However, i am trying to have a detection when an equipment is plugged in into the wall plug to automatically activate the relay?
      You may ask why? Simple reason. At home my wife doesnt use the automation system. If she plug in a device (charger, coffee machine, etc, it should work automatically without to have to switch the node via the mysensors controller. Normal usage of the plug should in my case be working.

      kalinaK 1 Reply Last reply
      0
      • jeremushkaJ jeremushka

        @yury i have built a system quite simular but still big mess in the connections. However, i am trying to have a detection when an equipment is plugged in into the wall plug to automatically activate the relay?
        You may ask why? Simple reason. At home my wife doesnt use the automation system. If she plug in a device (charger, coffee machine, etc, it should work automatically without to have to switch the node via the mysensors controller. Normal usage of the plug should in my case be working.

        kalinaK Offline
        kalinaK Offline
        kalina
        Hardware Contributor
        wrote on last edited by kalina
        #63

        @jeremushka In my opinion you should have two modes - automatic (with mysensors) and manualy (without). In manualy case the wall plug must be always under the voltage and you don't need detect plug a device. But how are you going to switch mode - this is a question...

        KoreshK jeremushkaJ 2 Replies Last reply
        0
        • kalinaK kalina

          @jeremushka In my opinion you should have two modes - automatic (with mysensors) and manualy (without). In manualy case the wall plug must be always under the voltage and you don't need detect plug a device. But how are you going to switch mode - this is a question...

          KoreshK Offline
          KoreshK Offline
          Koresh
          Contest Winner
          wrote on last edited by
          #64

          @kalina said in 💬 Wall Socket Insertable Node:

          But how are you going to switch mode - this is a question...

          Long button pressure for example :)

          1 Reply Last reply
          0
          • kalinaK kalina

            @jeremushka In my opinion you should have two modes - automatic (with mysensors) and manualy (without). In manualy case the wall plug must be always under the voltage and you don't need detect plug a device. But how are you going to switch mode - this is a question...

            jeremushkaJ Offline
            jeremushkaJ Offline
            jeremushka
            wrote on last edited by
            #65

            @kalina agree with you. By pressing a button in that case better not to insert the system in the wall. To get outside plug. Something like the fibaro plug which is working with these two modes.

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              yury
              wrote on last edited by
              #66

              0_1511423252215_upload-58b63f65-387b-4f09-8ecc-8e502167df7c

              0_1511423242157_upload-b3e8f1c1-6885-49a9-bc85-9a031bec40a6

              make sense?

              sketch is here
              https://github.com/EasySensors/WallSocketInsertableNode/blob/master/WallSocketInsertableNode.ino

              but no LED support there, but easy to add.
              Yes, it will work if no gateway around.

              jeremushkaJ 1 Reply Last reply
              1
              • Y yury

                0_1511423252215_upload-58b63f65-387b-4f09-8ecc-8e502167df7c

                0_1511423242157_upload-b3e8f1c1-6885-49a9-bc85-9a031bec40a6

                make sense?

                sketch is here
                https://github.com/EasySensors/WallSocketInsertableNode/blob/master/WallSocketInsertableNode.ino

                but no LED support there, but easy to add.
                Yes, it will work if no gateway around.

                jeremushkaJ Offline
                jeremushkaJ Offline
                jeremushka
                wrote on last edited by
                #67

                @yury Yes, this is perfect :) Great job !!!

                Have you ever had feature as power meter?

                Y 1 Reply Last reply
                0
                • jeremushkaJ jeremushka

                  @yury Yes, this is perfect :) Great job !!!

                  Have you ever had feature as power meter?

                  Y Offline
                  Y Offline
                  yury
                  wrote on last edited by
                  #68

                  @jeremushka said in 💬 Wall Socket Insertable Node:

                  Have you ever had feature as power meter?

                  there is ACS712ELCTR-20A AC current sensing chip on the board. but Atmega ADC not very accurate at low currents reported from ACS712 - 20A. 15W loads or less can be difficult to recognize.

                  BTW another idea for LED indication . There is installed pixel LED on-board. check pictures. it is bright enough

                  0_1511469223333_upload-577ef824-0975-464f-bf71-01508746a49f

                  0_1511468966659_upload-959c7ab7-b86d-47bc-b50f-84bb42d7f16b

                  0_1511469249412_upload-ac69c082-8e14-4fb8-9e2f-0f45acc58f7a

                  0_1511469335265_upload-34073147-3f54-409c-a7cc-1999a990b7f8

                  kalinaK 1 Reply Last reply
                  0
                  • Y yury

                    @jeremushka said in 💬 Wall Socket Insertable Node:

                    Have you ever had feature as power meter?

                    there is ACS712ELCTR-20A AC current sensing chip on the board. but Atmega ADC not very accurate at low currents reported from ACS712 - 20A. 15W loads or less can be difficult to recognize.

                    BTW another idea for LED indication . There is installed pixel LED on-board. check pictures. it is bright enough

                    0_1511469223333_upload-577ef824-0975-464f-bf71-01508746a49f

                    0_1511468966659_upload-959c7ab7-b86d-47bc-b50f-84bb42d7f16b

                    0_1511469249412_upload-ac69c082-8e14-4fb8-9e2f-0f45acc58f7a

                    0_1511469335265_upload-34073147-3f54-409c-a7cc-1999a990b7f8

                    kalinaK Offline
                    kalinaK Offline
                    kalina
                    Hardware Contributor
                    wrote on last edited by kalina
                    #69

                    @yury What do you think about capacitive button "On/Off" to the right corner from led? Look at the pic below...
                    0_1511511651983_upload-94807368-e9e7-4f89-97ea-1d5f8ac468ff

                    Y 1 Reply Last reply
                    0
                    • jeremushkaJ Offline
                      jeremushkaJ Offline
                      jeremushka
                      wrote on last edited by
                      #70

                      @yury said in 💬 Wall Socket Insertable Node:

                      ACS712ELCTR-20A AC current

                      That will be great! for the current sensor, i am trying to check accurancy with another component HLW8012, it is used by Xiaomi as well. I don't know if it is good or not yet.

                      KoreshK 1 Reply Last reply
                      0
                      • jeremushkaJ jeremushka

                        @yury said in 💬 Wall Socket Insertable Node:

                        ACS712ELCTR-20A AC current

                        That will be great! for the current sensor, i am trying to check accurancy with another component HLW8012, it is used by Xiaomi as well. I don't know if it is good or not yet.

                        KoreshK Offline
                        KoreshK Offline
                        Koresh
                        Contest Winner
                        wrote on last edited by Koresh
                        #71

                        @jeremushka said in 💬 Wall Socket Insertable Node:

                        HLW8012

                        Very interesting solution. Except for one thing... According to HLW8012 appnote we need additional 5V power supply if we want to implement safety isolation between low voltage arduino circuit and high voltage circuit.

                        jeremushkaJ 1 Reply Last reply
                        0
                        • KoreshK Koresh

                          @jeremushka said in 💬 Wall Socket Insertable Node:

                          HLW8012

                          Very interesting solution. Except for one thing... According to HLW8012 appnote we need additional 5V power supply if we want to implement safety isolation between low voltage arduino circuit and high voltage circuit.

                          jeremushkaJ Offline
                          jeremushkaJ Offline
                          jeremushka
                          wrote on last edited by
                          #72

                          @Koresh could we reuse the 5V DC at the output of the transformer ? We have the isolation at this point. and the current will be enough for the the circuit.

                          KoreshK 1 Reply Last reply
                          0
                          • jeremushkaJ jeremushka

                            @Koresh could we reuse the 5V DC at the output of the transformer ? We have the isolation at this point. and the current will be enough for the the circuit.

                            KoreshK Offline
                            KoreshK Offline
                            Koresh
                            Contest Winner
                            wrote on last edited by Koresh
                            #73

                            @jeremushka Sorry but I don't understand... In current version of board ACS712 uses 5v DC from the transformer, but ACS output and power circuit are isolated from measure circuit. HLW8012 outputs and power are not isolated from measure circuit, so we should use circuit like this:
                            0_1511530343146_2017-11-24_16-28-39.png
                            And of cource we need additional power supply.

                            1 Reply Last reply
                            0
                            • kalinaK kalina

                              @yury What do you think about capacitive button "On/Off" to the right corner from led? Look at the pic below...
                              0_1511511651983_upload-94807368-e9e7-4f89-97ea-1d5f8ac468ff

                              Y Offline
                              Y Offline
                              yury
                              wrote on last edited by
                              #74

                              @kalina said in 💬 Wall Socket Insertable Node:

                              @yury What do you think about capacitive button "On/Off" to the right corner from led? Look at the pic below...
                              0_1511511651983_upload-94807368-e9e7-4f89-97ea-1d5f8ac468ff

                              Looks cool! Do you have experience with capacities switches? I did not play much with them. afraid to use close to AC interference though...

                              kalinaK Nca78N 2 Replies Last reply
                              0
                              • Y yury

                                @kalina said in 💬 Wall Socket Insertable Node:

                                @yury What do you think about capacitive button "On/Off" to the right corner from led? Look at the pic below...
                                0_1511511651983_upload-94807368-e9e7-4f89-97ea-1d5f8ac468ff

                                Looks cool! Do you have experience with capacities switches? I did not play much with them. afraid to use close to AC interference though...

                                kalinaK Offline
                                kalinaK Offline
                                kalina
                                Hardware Contributor
                                wrote on last edited by kalina
                                #75

                                @yury I have a little experience with AD7148 and 7150 chips in one of my projects . You are right, there wasn't a high voltage traces.
                                0_1512220170723_Prog.jpg

                                1 Reply Last reply
                                0
                                • KoreshK Koresh

                                  @DavidZH Sorry for such long delay with this question. I will try to explain it carefully now.
                                  I think it is not possible to buy ready transformer on ali or anywhere else. You can only derive it yourself according to your schematic and produce it at any factory according to your requirements.
                                  This board has flyback power supply so you can use any flyback transformer design guide, or use as similar as possible reference design. I used EBC10010 reference design to produce the required transformer.
                                  The main difficulty is the difference between theoretical transformers and produced transformers, so we should tune our schematic to produced transformer a little. Now I have a small batch of transformers almost all of which are soldered on the boards. When I place an order for the next batch of transformers (may be a larger one), I can who send it to anyone who is interested (of course with a tuned schematic if the next batch is different).

                                  Z Offline
                                  Z Offline
                                  zurajm
                                  wrote on last edited by
                                  #76

                                  @koresh Hi, I'm interested in the transformers. Do you have some to spare? I like your design very much because is so low profile. I will try to assemble some on my own to test the design but I have no idea where to find/order adequate transformer for it (you mentioned that you order them custom made). Thank you very much for the answer.

                                  1 Reply Last reply
                                  0
                                  • Y yury

                                    @kalina said in 💬 Wall Socket Insertable Node:

                                    @yury What do you think about capacitive button "On/Off" to the right corner from led? Look at the pic below...
                                    0_1511511651983_upload-94807368-e9e7-4f89-97ea-1d5f8ac468ff

                                    Looks cool! Do you have experience with capacities switches? I did not play much with them. afraid to use close to AC interference though...

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

                                    @yury said in 💬 Wall Socket Insertable Node:

                                    Looks cool! Do you have experience with capacities switches? I did not play much with them. afraid to use close to AC interference though...

                                    You need to use a capacitive IC with active shielding, basically you have an extra electrode around your touch electrode and the touch IC will compare capacitive change of the touch electrode with capacitive change from the shield electrode. If the change is due to electrical interference then both electrodes will be changed in a similar way and the IC will not trigger.

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


                                    13

                                    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