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. Safe In-Wall AC to DC Transformers??

Safe In-Wall AC to DC Transformers??

Scheduled Pinned Locked Moved Hardware
431 Posts 71 Posters 457.8k Views 69 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.
  • B Offline
    B Offline
    Bertb
    wrote on last edited by Bertb
    #128

    I did not finish the automated power tester, but I put an HLK with a DS18B20 temp sensor in a closed flush box(is that the English word for the box in the wall, used for domestic wiring?).
    A simple resistor acts as a load and draws a 800 mA from the power supply. That is 33% more than the max continuous value. Voltage across the leads is 4.96. That is 5.08 without load. Not too bad. At 600 mA (100% load) the voltage is also 5.00.
    The Dallas says that the surface temperature at the HLK is 48.19 c ( F: 118.74).
    Also do not forget to mount adequate capacitors to reduce ripple.

    @petewill and @rvendrame ... Every country has directives regarding flammability. I cannot say which one is valid. I have seen some testing in the past. They put a burner under the device under test and waited to see what happened after removal of the source. In general (without any warranty whatsoever) when there are no flames or when they extinguish autonomic is good. If there is no hot material dripping from the DUT, that is also good. The test I carried out is described above. No dripping en self extinguishing. So I am satisfied.
    Sorry, I cannot be more specific. I do not have the knowledge.

    @rvendrame: yes the fuse in series in the mains live wire en the varistor in parallel with the primary side of the HLK.
    With respect to the varistor ... see the sheet below:
    Take a value that is well above the normal AC tension of your mains power, but below the max input voltage of the HLK. so in Netherlands 250 volts will do.

    link text

    Moshe LivneM 1 Reply Last reply
    1
    • B Offline
      B Offline
      Bertb
      wrote on last edited by
      #129

      Now for the million dollar question ... would I mount a HLK in a flush box?
      Well ... when equipped with varistor and fuse and with the load on the safe side ...
      Yes, I would.

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

        @Bertb, thanks again. I got a bit confused, do you mean put the varistor + fuse into the PSU input (AC Mains)? I was more thinking in over voltage protection on output. So a low-volt varistor together with a fuse/ptc, both on the 5V output.

        My concern is having something wrong into the PSU-PWM control, and somehow the AC mains leaking to the low-volt side, cause arduino+friends burn/flaming. But I'm a hobbyist, so maybe I'm guessing wrong here.

        Maybe to be on safest side --- varistor + fuse/ptc on both AC mains and 5V rails?

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

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bertb
          wrote on last edited by Bertb
          #131

          My initial safety is always toward the biggest danger ... mains in this case.
          For the secondary part a simple semiconductor fuse and a zener (transzorb) will do.

          1 Reply Last reply
          0
          • B Bertb

            I did not finish the automated power tester, but I put an HLK with a DS18B20 temp sensor in a closed flush box(is that the English word for the box in the wall, used for domestic wiring?).
            A simple resistor acts as a load and draws a 800 mA from the power supply. That is 33% more than the max continuous value. Voltage across the leads is 4.96. That is 5.08 without load. Not too bad. At 600 mA (100% load) the voltage is also 5.00.
            The Dallas says that the surface temperature at the HLK is 48.19 c ( F: 118.74).
            Also do not forget to mount adequate capacitors to reduce ripple.

            @petewill and @rvendrame ... Every country has directives regarding flammability. I cannot say which one is valid. I have seen some testing in the past. They put a burner under the device under test and waited to see what happened after removal of the source. In general (without any warranty whatsoever) when there are no flames or when they extinguish autonomic is good. If there is no hot material dripping from the DUT, that is also good. The test I carried out is described above. No dripping en self extinguishing. So I am satisfied.
            Sorry, I cannot be more specific. I do not have the knowledge.

            @rvendrame: yes the fuse in series in the mains live wire en the varistor in parallel with the primary side of the HLK.
            With respect to the varistor ... see the sheet below:
            Take a value that is well above the normal AC tension of your mains power, but below the max input voltage of the HLK. so in Netherlands 250 volts will do.

            link text

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

            @Bertb that is actually a very good surface temp for overload from what I saw in the other tests. Very promising.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bertb
              wrote on last edited by
              #133

              At 535 mA, the temperature stabilizes at 39.81c /F 103.66

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

                From what I researched at internet, the most important safety measure is the isolation part. Most countries have similar standards. From the pictures above I see the PCB tracks from high and low voltage are clearly separated by at least 0.5cm , which I think is also a requirement in EU.

                Maybe if we figure out a way to provide something between 7.5Kv and 10Kv into the its AC input for some seconds/minutes, and see what happens. This is the worst-case scenario --- A lightning event into the AC line during a electrical storm.

                Despite it may (and will) burn inside completely, any high voltage should never be present at output, as well as no significant flame that may propagate fire should occur.

                This of course requires costly and sofisticated lab equipment.

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

                Moshe LivneM 1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Bertb
                  wrote on last edited by
                  #135

                  The specs of the unit states that it resilient to high voltages. I tested it with 250 VDC across input and output.
                  As stated before in this threat, the specs are ok, it only lacks the stamps.
                  From what I have seen so far, the module is good for me.

                  From the specs:
                  4.Safety Characteristics:
                  4.1Products designed to meet UL, CE safety certification requirements.
                  4.2Safety and electromagnetic compatibility
                  Designed with the input of 0.5A UL certified insurance;
                  PCB board using double-sided copper clad plate production, material for the 94-V0 fire rating level;
                  Safety standards: Compliance with UL1012, EN60950, UL60950
                  Insulation voltage: I / P-O / P: 2500VAC
                  Insulation resistance :I / PO / P> 100M Ohms / 500VDC 25 ℃ 70% RH
                  Conduction and radiation :comply with EN55011, EN55022 (CISPR22)
                  Electrostatic discharge :IEC / EN 61000-4-2 level 4 8kV / 15kV
                  RF radiation Immunity: IEC / EN 61000-4-3 See Application Note
                  4.3 Temperature safety design
                  At room temperature,the capacitors of this power , the inner surface of the main converter maximum temperature does not exceed 90 ℃;
                  Shell maximum surface temperature does not exceed 60 ℃

                  1 Reply Last reply
                  1
                  • RJ_MakeR Offline
                    RJ_MakeR Offline
                    RJ_Make
                    Hero Member
                    wrote on last edited by
                    #136

                    Overall that looks like a pretty good AC/DC trans. The isolation boundary looks massive.

                    RJ_Make

                    1 Reply Last reply
                    0
                    • rvendrameR rvendrame

                      From what I researched at internet, the most important safety measure is the isolation part. Most countries have similar standards. From the pictures above I see the PCB tracks from high and low voltage are clearly separated by at least 0.5cm , which I think is also a requirement in EU.

                      Maybe if we figure out a way to provide something between 7.5Kv and 10Kv into the its AC input for some seconds/minutes, and see what happens. This is the worst-case scenario --- A lightning event into the AC line during a electrical storm.

                      Despite it may (and will) burn inside completely, any high voltage should never be present at output, as well as no significant flame that may propagate fire should occur.

                      This of course requires costly and sofisticated lab equipment.

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

                      @rvendrame @Bertb this guy detail his methods here http://lygte-info.dk/info/usbPowerSupplyTestHow UK.html

                      he has some kind of gadget that produce 2500v to 5000v.

                      Anyway, I am convinced that this is safe (or at least MUCH safer then what people here have been using). If one of the electrical wizards can detail the circuit with extra fuses, diodes and varistor (what is that???) I think it can help us all.

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

                        @Moshe Livne, yes I think I saw that website. The list of equipment there is surely respectable, at least. I just wrote to the info@ there, asking if perhaps he would like to test one of this HLK PSU. I can send one or two of my lot, lets see if we get some reply.

                        The varistor is a device widely used for protection. It is connected in parallel with the AC mains. It will short the circuit in case the voltage exceeds its pre-determined value. The ideia is to use it burn an internal fuse, or trigger the house circuit breaker in case of over voltage. A 20K-250V varistor will short the circuit if voltage is above 250V, and it supports voltages up to 20KV without produce any flame.

                        Using a varistor in conjunction with a PTC fuse (a fuse that automatically resets after some time) creates a very good protection for over voltage, with small cost and footprint.

                        I do agree with @Bertb and @ServiceXp , this HLK PSU looks good and safe for what we intend to use. Surely it is better than a phone charger. But as in any DIY, each one of us must know where to step on, assuming the involved risks.

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

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          ThinkPad
                          wrote on last edited by ThinkPad
                          #139

                          @Bertb I live in the Netherlands just like you. If you're interested i can make some thermal images of the disassembled HLK unit if you send it to me. I expect my FLIR One (Android) to arrive probably next week.

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            Bertb
                            wrote on last edited by Bertb
                            #140

                            Just to be sure everybody understands the schematic, hereunder a schematic.
                            I am not a fan of blowing mains fuses ...

                            Draft schematic

                            1 Reply Last reply
                            0
                            • B Offline
                              B Offline
                              Bertb
                              wrote on last edited by
                              #141

                              @ThinkPad I am not sure it is still safe to operate.

                              T 1 Reply Last reply
                              0
                              • B Bertb

                                @ThinkPad I am not sure it is still safe to operate.

                                T Offline
                                T Offline
                                ThinkPad
                                wrote on last edited by ThinkPad
                                #142

                                @Bertb The idea was to put it on my desk (with a mains cord soldered to it) running a resistor load, and then shoot some thermal pics of it
                                . I wasn't planning to touch the unit with my bare hands while it is powered hahaha

                                B 1 Reply Last reply
                                0
                                • T ThinkPad

                                  @Bertb The idea was to put it on my desk (with a mains cord soldered to it) running a resistor load, and then shoot some thermal pics of it
                                  . I wasn't planning to touch the unit with my bare hands while it is powered hahaha

                                  B Offline
                                  B Offline
                                  Bertb
                                  wrote on last edited by
                                  #143

                                  @ThinkPad Well its your desk, so its fine with me.
                                  Is there a way to get your address without shouting it from the rooftops?

                                  T 1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    Atomfire
                                    wrote on last edited by
                                    #144

                                    Don't suppose anyone could tell me what components (values) need to be purchased for 230v (UK)? I have bought 10 of these and wish to make them as safe as I can.

                                    B 1 Reply Last reply
                                    0
                                    • B Bertb

                                      @ThinkPad Well its your desk, so its fine with me.
                                      Is there a way to get your address without shouting it from the rooftops?

                                      T Offline
                                      T Offline
                                      ThinkPad
                                      wrote on last edited by
                                      #145

                                      @Bertb Have sent you a chat, see the chat balloon top right corner.

                                      1 Reply Last reply
                                      0
                                      • A Atomfire

                                        Don't suppose anyone could tell me what components (values) need to be purchased for 230v (UK)? I have bought 10 of these and wish to make them as safe as I can.

                                        B Offline
                                        B Offline
                                        Bertb
                                        wrote on last edited by
                                        #146

                                        @Atomfire I will come back to that tomorrow.

                                        petewillP 1 Reply Last reply
                                        0
                                        • B Bertb

                                          @Atomfire I will come back to that tomorrow.

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

                                          @Bertb Once again, thank you for all your work with this! I can't wait to start building with this! This will be so helpful to have a safer method instead of just dismantling old phone chargers and rolling the dice.

                                          I couldn't open the schematic. What is the file extension? Also, would you mind posting the required parts for 110v if they are any different than what you will be providing @Atomfire?

                                          Thanks!

                                          Pete

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

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


                                          8

                                          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