{"id":352,"date":"2021-11-23T15:52:31","date_gmt":"2021-11-23T14:52:31","guid":{"rendered":"https:\/\/ca.rstenpresser.de\/blag\/?p=352"},"modified":"2021-11-23T15:57:03","modified_gmt":"2021-11-23T14:57:03","slug":"replacing-the-controls-of-the-ikea-lanespelare-ringlight-with-wled","status":"publish","type":"post","link":"https:\/\/ca.rstenpresser.de\/blag\/2021\/11\/replacing-the-controls-of-the-ikea-lanespelare-ringlight-with-wled\/","title":{"rendered":"Replacing the controls of the IKEA L\u00c5NESPELARE Ringlight with WLED"},"content":{"rendered":"\n<p>Ikea does sell a reasonably nice Ringlight called &#8216;L\u00c5NESPELARE&#8217;. It runs of 5V and has a USB-A-Plug for its supply. A simple controller is build into the cord. Unfortunately, it does not remember its last setting\/power status after it has been unplugged. If I switch it off via my home-automation using a zigbee outlet, I always need to also switch it on using its own controller. That kinda defeats the whole idea.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"948\" src=\"http:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-Case-1024x948.jpg\" alt=\"Controller case opened\" class=\"wp-image-353\" srcset=\"https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-Case-1024x948.jpg 1024w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-Case-300x278.jpg 300w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-Case-768x711.jpg 768w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-Case.jpg 1261w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The case does not open that easy. I had to use some force, but managed to not break it. Perhaps the left domes have been welded, I heard a crack when I finally got it open.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"366\" src=\"http:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-PCB-1024x366.jpg\" alt=\"Controller PCB\" class=\"wp-image-354\" srcset=\"https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-PCB-1024x366.jpg 1024w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-PCB-300x107.jpg 300w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-PCB-768x275.jpg 768w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-Controller-PCB.jpg 1442w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The original controller is pretty straightforward. It has a LDO (U1, &#8220;7136&#8221;, SOT-89 package) some kind of microcontoller (U2, SO-8 package), and two output transistors. One for Warmwhite and one for Coldwhite. The slikscreen reveals that those are low side switches. Seems like a simple PWM output.<\/p>\n\n\n\n<p>So we can replace it with another PWM controller. I choose to use <a href=\"https:\/\/github.com\/Aircoookie\/WLED\">https:\/\/github.com\/Aircoookie\/WLED<\/a> since it integrates nicely into home-assistant. Its also really easy to configure and use. It already comes with a mode for PWM Output for warm\/cold-white LEDs. All I had to do is to upload the firmware using <strong>esptool.py<\/strong>, no coding required at all. On the hardware-side two N-Channel-FETs (BS170) in TO-92 were used as low-side-switches. Then everything was fitted into a plastic case using excessive amounts of hot glue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"630\" src=\"http:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-ESP8266-1024x630.jpg\" alt=\"ES8266 as new controller\" class=\"wp-image-355\" srcset=\"https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-ESP8266-1024x630.jpg 1024w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-ESP8266-300x185.jpg 300w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-ESP8266-768x472.jpg 768w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-ESP8266-1536x945.jpg 1536w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/IKEA-LANESPELARE-ESP8266-2048x1260.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The BS170 is not the best FET for this application. Its Threshold-Voltage does not work well with the 3.3V of the esp8266. But those were the only available at the time. Below it the chart from its datasheet, with the working point circled in red. Perhaps I should just use the transistors from the original controller board \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"687\" height=\"556\" src=\"https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/bs170-arbeitspunkt.png\" alt=\"BS170 output characteristics\" class=\"wp-image-356\" srcset=\"https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/bs170-arbeitspunkt.png 687w, https:\/\/ca.rstenpresser.de\/wp-files\/2021\/11\/bs170-arbeitspunkt-300x243.png 300w\" sizes=\"(max-width: 687px) 100vw, 687px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Ikea does sell a reasonably nice Ringlight called &#8216;L\u00c5NESPELARE&#8217;. It runs of 5V and has a USB-A-Plug for its supply. A simple controller is build into the cord. Unfortunately, it does not remember its last setting\/power status after it has been unplugged. If I switch it off via my home-automation using a zigbee outlet, I &hellip; <a href=\"https:\/\/ca.rstenpresser.de\/blag\/2021\/11\/replacing-the-controls-of-the-ikea-lanespelare-ringlight-with-wled\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Replacing the controls of the IKEA L\u00c5NESPELARE Ringlight with WLED<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":354,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,17],"tags":[155,151,154,152],"_links":{"self":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts\/352"}],"collection":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":3,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts\/352\/revisions\/360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/media\/354"}],"wp:attachment":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}