{"id":1271,"date":"2018-11-12T12:43:53","date_gmt":"2018-11-12T11:43:53","guid":{"rendered":"http:\/\/EvertDekker.com\/?p=1271"},"modified":"2022-12-31T14:06:21","modified_gmt":"2022-12-31T13:06:21","slug":"iot-blinds-controller","status":"publish","type":"post","link":"https:\/\/evertdekker.com\/wp\/?p=1271","title":{"rendered":"Iot Blinds Controller"},"content":{"rendered":"<hr \/>\n<p>This is a renewed and updated version of my <a href=\"http:\/\/evertdekker.com\/?p=453\">blinds controller<\/a>. With this controller we can lower and raise the horizontal Luxaflex blinds. This controller was one of the first devices in my <a href=\"http:\/\/evertdekker.com\/?p=692\">Joshua Domotica<\/a> and the controller for one of the bedrooms needed to be replaced.<\/p>\n<p>Just like my previous Esp8266 and Esp32 domotica projects it will connect through Mosquitto with Node-red. With the help of Node-red we can control the blinds and do almost everything we want with it.<\/p>\n<p>The hart of the design is the Esp8266 and a <a href=\"http:\/\/www.evertdekker.com\/Joomla\/images\/stories\/projects\/Blindscontroller\/drv8801.pdf\" target=\"_blank\" rel=\"noopener\">DRV8800<\/a> full bridge motor driver. With the h-bridge we can control the direction that the 24V motor of the blinds will turn and therefore lower or raise the blinds .<br \/>\nWith the help of the Enable pin and pwm (pulse wide modulation) it&#8217;s possible to let motor run on lower speed to tilt the blinds for example half way the window.<br \/>\nBecause the motor requires 24V to operate and the Esp8266 only 3.3V we needed a buck convertor to step down the 24V with a minimum of loss to 3.3V. For this buck convertor I simply bought a ready made one from Ali express.<\/p>\n<p>To suppress the inrush current for the motor some electrolytic capacitors were added to prevent the Esp8266 for resetting due to a dip in the power supply. <strong>Note<\/strong>: In the <a href=\"http:\/\/www.evertdekker.com\/Joomla\/images\/stories\/projects\/Blindscontroller\/schematic.pdf\" target=\"_blank\" rel=\"noopener\">schematic<\/a> C4 has a value of 1000\u00b5F, but this should be just like C1, 220\u00b5F. Btw the value of R8 is also incorrect, see below. I really should update my schematics sooner and better.<\/p>\n<p>Because the blinds doesn&#8217;t have end switches or other feedback, the only way to determine where they are is the time when the motor is running and in what direction, it&#8217;s mostly done by the software. To determine if the motor runs there&#8217;s a current sense resistor added to the DRV8800. Over this resistor is an 1.8V zenerdiode mounted to prevent to high voltage on the analog input of the Esp8266.<br \/>\nThe 1\u03a9 resistor on the photo is replaced with a 0.5\u03a9 1210 resistor because the DRV8800 was not working with 1\u03a9. According to the datasheet this will exceed the maximum sense voltage.<br \/>\nYou read those things in the datasheet after you find out it&#8217;s not working correct. Due to the smaller resistor the voltage drop is also smaller and it&#8217;s not possible anymore to use the full AD range of 1V of the Esp8266. We can still detect if the motor is running or not, but in a next design there should be an op-amp added to amplify the signal.<\/p>\n<p>The pcb was designed very compact. I bought a small box 53x35x23mm and made the pcb to fit exactly in this box. The pcb is mounted on the back of the switch to make it one and save some space for mounting holes. The pcb is 1mm thick to save also some space in the height. Very nice design if I may say so.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"n2_ss_slider_publish__option_code\" dir=\"ltr\" data-mode=\"id\"><\/div>\n<p>&nbsp;<\/p>\n<div class=\"lyte-wrapper\" title=\"Demo Blinds Controller\" style=\"width:420px;max-width: 100%;margin:5px;\"><div class=\"lyMe hidef\" id=\"WYL_aKhHngMHoDo\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"https:\/\/i.ytimg.com\/vi\/aKhHngMHoDo\/maxresdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/aKhHngMHoDo\" \/><meta itemprop=\"uploadDate\" content=\"2018-11-12T11:33:58.000Z\" \/><\/div><div id=\"lyte_aKhHngMHoDo\" data-src=\"https:\/\/i.ytimg.com\/vi\/aKhHngMHoDo\/maxresdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Demo Blinds Controller<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/aKhHngMHoDo\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/aKhHngMHoDo\/0.jpg\" alt=\"\" width=\"420\" height=\"216\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"A small demo of my Iot blinds controller. Blinds are controlled with the help of an Esp8266, Mosquitto and Node-red. For more details have a look here: http:\/\/EvertDekker.com\/?p=1271\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>If want to make your own, or use some parts from the design, here are the Altium 16 design files.<br \/>\n<div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><a href=\"https:\/\/evertdekker.com\/wp\/?sdm_process_download=1&download_id=1270\" class=\"sdm_download darkblue\" title=\"Iot Blinds Controller\" >Download Now!<\/a><\/div><\/div> <div class=\"sdm_download_count\"><span class=\"sdm_count_number\">2342<\/span><span class=\"sdm_count_string\"> Downloads<\/span><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a renewed and updated version of my blinds controller. With this controller we can lower and raise the horizontal Luxaflex blinds. This controller was one of the first devices in my Joshua Domotica and the controller for one of the bedrooms needed to be replaced. Just like my previous Esp8266 and Esp32 domotica [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[130,69,198,129,133,172,171],"class_list":["post-1271","post","type-post","status-publish","format-standard","hentry","category-esp8266","tag-arduino","tag-blinds","tag-drv8800pwpr","tag-esp8266","tag-iot","tag-mosquitto","tag-node-red"],"_links":{"self":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1271"}],"version-history":[{"count":20,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1271\/revisions"}],"predecessor-version":[{"id":1631,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1271\/revisions\/1631"}],"wp:attachment":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}