{"id":937,"date":"2016-12-10T11:28:47","date_gmt":"2016-12-10T10:28:47","guid":{"rendered":"http:\/\/axotron.se\/blog\/?p=937"},"modified":"2016-12-10T11:28:47","modified_gmt":"2016-12-10T10:28:47","slug":"the-christmas-tree-mystery","status":"publish","type":"post","link":"https:\/\/axotron.se\/blog\/the-christmas-tree-mystery\/","title":{"rendered":"The Christmas Tree Mystery"},"content":{"rendered":"<p>Today I noticed something peculiar. In our garden, we have a spruce in which I have put a string of LED lights. The lights are powered via a switch mode AC\/DC power supply that creates the low voltage required by the LEDs from the mains voltage. This power supply is connected to an extension cord and a timer inside the garage and I have set the timer such that the lights are on only while it is dark outside. However, the LEDs were mysteriously glowing dimly in the middle of the day when they were supposed to be off.<\/p>\n<p>Hmm, that is odd I thought.<\/p>\n<figure id=\"attachment_938\" aria-describedby=\"caption-attachment-938\" style=\"width: 500px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/light_1000.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-938\" src=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/light_1000-300x300.jpg\" alt=\"Dimly glowing LEDs\" width=\"500\" height=\"500\" srcset=\"https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/light_1000-300x300.jpg 300w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/light_1000-150x150.jpg 150w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/light_1000-768x768.jpg 768w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/light_1000.jpg 1000w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-938\" class=\"wp-caption-text\">Dimly glowing LEDs.<\/figcaption><\/figure>\n<p>I did not think too hard about this at first, but a while later I realized what could cause this behavior. If the timer happens to be connected such that it breaks the neutral wire of the mains voltage instead of the live wire (phase), there could perhaps be enough capacitive leakage via the Y-capacitor going from neutral to protective earth inside the AC\/DC supply such that the supply gets enough power to dimly light up the LEDs.<\/p>\n<p>Y capacitors are present in virtually all switch mode AC\/DC supplies. They are connected between phase and earth as well as between neutral and earth. Their purpose is to limit the amount of unintended radio frequency noise generated by the switch mode supply that is radiated back onto the mains network. There is usually also an X capacitor for the same purpose connected between phase and neutral.<\/p>\n<p>In addition to the Y capacitor, there will also be leakage via the capacitance of the cable from neutral to earth as well as from neutral to the external world which currently consists of a quite wet lawn. But I would guess the leakage via the Y capacitor is much larger than the leakage via the cable capacitance.<\/p>\n<p>The equivalent circuit for the case when the timer breaks the neutral line is shown below.<\/p>\n<figure id=\"attachment_940\" aria-describedby=\"caption-attachment-940\" style=\"width: 835px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_neutral.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-940 size-full\" src=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_neutral.png\" alt=\"Equivalent circuit of timer breaking the neutral wire.\" width=\"835\" height=\"293\" srcset=\"https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_neutral.png 835w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_neutral-300x105.png 300w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_neutral-768x269.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/a><figcaption id=\"caption-attachment-940\" class=\"wp-caption-text\">Equivalent circuit of timer breaking the neutral wire.<\/figcaption><\/figure>\n<p>The dashed arrow shows the flow of current from the phase wire, via the AC\/DC circuitry in the dotted box, the CY2 capacitor and back via protective earth. There will also be some current from from the neutral (disconnected) wire of the extension cord and the cable capacitance to the earth wire, CcableNE as well as a little current flowing in the capacitance from the cable neutral wire to the outside world (which as of this writing is a wet lawn). This capacitance is not shown in the figure above.<\/p>\n<p>So, a hypothesis about what is happening is fine, but how could I test this? Well, that is not too hard. Just rotate the timer 180 degrees in the wall outlet so that it breaks the other wire, which according to the hypothesis would be the phase.<\/p>\n<figure id=\"attachment_947\" aria-describedby=\"caption-attachment-947\" style=\"width: 835px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_phase.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-947 size-full\" src=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_phase.png\" alt=\"Timer breaking the phase (live) wire instead of the neutral.\" width=\"835\" height=\"293\" srcset=\"https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_phase.png 835w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_phase-300x105.png 300w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/breaking_phase-768x269.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/a><figcaption id=\"caption-attachment-947\" class=\"wp-caption-text\">Equivalent circuit of timer breaking the phase (live) wire instead of the neutral.<\/figcaption><\/figure>\n<p>The rotation of the timer changes the equivalent circuit as shown above. Now the phase is stopped in the timer and no leakage can occur.<\/p>\n<figure id=\"attachment_941\" aria-describedby=\"caption-attachment-941\" style=\"width: 200px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer1_1000.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-941\" src=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer1_1000-200x300.jpg\" alt=\"Timer before rotation\" width=\"200\" height=\"300\" srcset=\"https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer1_1000-200x300.jpg 200w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer1_1000.jpg 667w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><figcaption id=\"caption-attachment-941\" class=\"wp-caption-text\">Timer before rotation<\/figcaption><\/figure>\n<figure id=\"attachment_942\" aria-describedby=\"caption-attachment-942\" style=\"width: 200px\" class=\"wp-caption alignright\"><a href=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer2_1000.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-942\" src=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer2_1000-200x300.jpg\" alt=\"Timer after rotation\" width=\"200\" height=\"300\" srcset=\"https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer2_1000-200x300.jpg 200w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/timer2_1000.jpg 667w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><figcaption id=\"caption-attachment-942\" class=\"wp-caption-text\">Timer after rotation<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_945\" aria-describedby=\"caption-attachment-945\" style=\"width: 500px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/no_light_1000.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-945\" src=\"http:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/no_light_1000-300x300.jpg\" alt=\"The LEDs are completely off!\" width=\"500\" height=\"500\" srcset=\"https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/no_light_1000-300x300.jpg 300w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/no_light_1000-150x150.jpg 150w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/no_light_1000-768x768.jpg 768w, https:\/\/axotron.se\/blog\/wp-content\/uploads\/2016\/12\/no_light_1000.jpg 1000w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><figcaption id=\"caption-attachment-945\" class=\"wp-caption-text\">The LEDs are completely off!<\/figcaption><\/figure>\n<p>After this maneuver, the LEDs in the tree were completely off, so the hypothesis seems to be correct.<\/p>\n<p>I would guess there are numerous similarly mysterious cases of LEDs powered via AC\/DC converters connected to protective earth that light up dimly even when they are supposed to be off. The remedy is to make sure that the live wire is interrupted by the circuit breaker, rather than the neutral wire. In installations connected to wall outlets, this can be done by rotating the plug (if you are in country where plugs with protective earth can be rotated). In fixed installations, it is necessary to swap which wire is connected to the light switch, which probably requires the intervention of an electrician.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I noticed something peculiar. In our garden, we have a spruce in which I have put a string of LED lights. The lights are powered via a switch mode AC\/DC power supply that creates the low voltage required by the LEDs from the mains voltage. This power supply is connected to an extension cord &hellip; <a href=\"https:\/\/axotron.se\/blog\/the-christmas-tree-mystery\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The Christmas Tree Mystery<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-937","post","type-post","status-publish","format-standard","hentry","category-electronics"],"_links":{"self":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts\/937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/comments?post=937"}],"version-history":[{"count":5,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts\/937\/revisions"}],"predecessor-version":[{"id":949,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts\/937\/revisions\/949"}],"wp:attachment":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/media?parent=937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/categories?post=937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/tags?post=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}