{"id":245,"date":"2017-09-07T02:34:33","date_gmt":"2017-09-07T02:34:33","guid":{"rendered":"http:\/\/www.cribbstechnologies.com\/?page_id=245"},"modified":"2017-09-08T02:31:59","modified_gmt":"2017-09-08T02:31:59","slug":"mqtt-led-strips","status":"publish","type":"page","link":"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/mqtt-led-strips\/","title":{"rendered":"MQTT LED strips"},"content":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;Section&#8221; fullwidth=&#8221;on&#8221; specialty=&#8221;off&#8221; background_image=&#8221;http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170907_083121.jpg&#8221; transparent_background=&#8221;off&#8221; allow_player_pause=&#8221;off&#8221; inner_shadow=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;on&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; make_equal=&#8221;off&#8221; use_custom_gutter=&#8221;off&#8221; custom_css_main_element=&#8221;height: 375px;&#8221;][et_pb_fullwidth_header admin_label=&#8221;Fullwidth Header&#8221; title=&#8221;MQTT LED Strips&#8221; background_layout=&#8221;dark&#8221; text_orientation=&#8221;left&#8221; header_fullscreen=&#8221;off&#8221; header_scroll_down=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; content_orientation=&#8221;center&#8221; image_orientation=&#8221;center&#8221; custom_button_one=&#8221;off&#8221; button_one_letter_spacing=&#8221;0&#8243; button_one_use_icon=&#8221;default&#8221; button_one_icon_placement=&#8221;right&#8221; button_one_on_hover=&#8221;on&#8221; button_one_letter_spacing_hover=&#8221;0&#8243; custom_button_two=&#8221;off&#8221; button_two_letter_spacing=&#8221;0&#8243; button_two_use_icon=&#8221;default&#8221; button_two_icon_placement=&#8221;right&#8221; button_two_on_hover=&#8221;on&#8221; button_two_letter_spacing_hover=&#8221;0&#8243; \/][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221;][et_pb_row admin_label=&#8221;row&#8221;][et_pb_column type=&#8221;3_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<h2>Hardware<\/h2>\n<p>After watching BRUH Automation&#8217;s <a href=\"https:\/\/www.google.com\/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=2&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwjaiOqugZLWAhURayYKHYMKA4sQtwIILTAB&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9KI36GTgwuQ&amp;usg=AFQjCNGpiXANw3sjWoohrzZWo73KcbNFEA\">video<\/a>\u00a0for his MQTT controlled LED strips I decided to make some of my own. I didn&#8217;t want to install any outside (yet) so I decided that accent lighting above my kitchen cabinets would be a good place.<\/p>\n<p>I designed a 3d printed enclosure to house the NodeMCU, buck converter, logic level shifter, and molex connector. The wires going to the connector are +12V, ground, and the PWM control out to the WS2811 LED strips. You can see the buck converter that takes the 12V input and converts it to 5V output underneath the NodeMCU. To the right you can see the logic level shifter that converts the 3.3V logic output from the NodeMCU to 5V so I don&#8217;t have to worry about any voltage drop in the setup.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-251\" src=\"http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170615_233847-2-290x300.jpg\" alt=\"\" width=\"290\" height=\"300\" srcset=\"https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170615_233847-2-290x300.jpg 290w, https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170615_233847-2-768x795.jpg 768w, https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170615_233847-2-989x1024.jpg 989w, https:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170615_233847-2-1080x1118.jpg 1080w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/p>\n<p>The entire thing is powered from a <a href=\"http:\/\/a.co\/dPyEsMO\">10A 12V power supply<\/a>. The <a href=\"http:\/\/a.co\/7p3X6Vo\">WS2811 LEDs<\/a> are diffuse enough to where they could be installed on top of the cabinets without any need for channeling or diffusers. I used some 2-conductor wire to inject power in several places along the LED strip run to avoid voltage drop. I did run into an issue where I had to extend the wires between one set of LEDs and the next which required a <a href=\"http:\/\/myneopixel.com\/_p0935.html\">DMX amp<\/a> to overcome the voltage drop this extra wire caused.<\/p>\n<p>[\/et_pb_text][et_pb_video admin_label=&#8221;Video&#8221; src=&#8221;https:\/\/youtu.be\/74SdsFLXB-w&#8221; \/][et_pb_gallery admin_label=&#8221;Gallery&#8221; gallery_ids=&#8221;248,251&#8243; fullwidth=&#8221;off&#8221; orientation=&#8221;landscape&#8221; show_title_and_caption=&#8221;off&#8221; show_pagination=&#8221;on&#8221; background_layout=&#8221;light&#8221; auto=&#8221;off&#8221; hover_overlay_color=&#8221;rgba(255,255,255,0.9)&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221; \/][\/et_pb_column][et_pb_column type=&#8221;1_4&#8243;][et_pb_code admin_label=&#8221;Code&#8221;]<div id='LEDStrip' class='widgets_on_page wop_tiny1  wop_small1  wop_medium1  wop_large1  wop_wide1'>\n\t\t\t<ul><li id=\"nav_menu-9\" class=\"widget widget_nav_menu\"><div class=\"menu-mqtt-led-strips-container\"><ul id=\"menu-mqtt-led-strips\" class=\"menu\"><li id=\"menu-item-261\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-261\"><a href=\"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/mqtt-led-strips\/\">Hardware<\/a><\/li>\n<li id=\"menu-item-260\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-260\"><a href=\"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/mqtt-led-strips\/mqtt-led-strips-software\/\">Software<\/a><\/li>\n<\/ul><\/div><\/li><\/ul><\/div><!-- widgets_on_page -->[\/et_pb_code][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>Hardware Used<\/p>\n<ul>\n<li><a href=\"http:\/\/a.co\/aqADDpb\">WS2811 strips<\/a><\/li>\n<li><a href=\"http:\/\/a.co\/dPyEsMO\">12V Power Supply<\/a><\/li>\n<li><a href=\"http:\/\/myneopixel.com\/_p0935.html\">DMX Amplifier<\/a><\/li>\n<li><a href=\"http:\/\/a.co\/7OYIxsc\">3-conductor wire<\/a><\/li>\n<li><a href=\"http:\/\/a.co\/cAo1oJB\">2-conductor wire<\/a><\/li>\n<li><a href=\"http:\/\/a.co\/7UpxlwS\">Buck converter<\/a><\/li>\n<li><a href=\"http:\/\/bit.ly\/2wOaIjc\">Logic Level Converter<\/a><\/li>\n<li><a href=\"http:\/\/bit.ly\/2vK5MKY\">NodeMCU<br \/>\n<\/a>avoid buying this version<br \/>\nit doesn&#8217;t fit on breadboards<\/li>\n<\/ul>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;Section&#8221; fullwidth=&#8221;on&#8221; specialty=&#8221;off&#8221; background_image=&#8221;http:\/\/www.cribbstechnologies.com\/wp-content\/uploads\/2017\/09\/IMG_20170907_083121.jpg&#8221; transparent_background=&#8221;off&#8221; allow_player_pause=&#8221;off&#8221; inner_shadow=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;on&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; make_equal=&#8221;off&#8221; use_custom_gutter=&#8221;off&#8221; custom_css_main_element=&#8221;height: 375px;&#8221;][et_pb_fullwidth_header admin_label=&#8221;Fullwidth Header&#8221; title=&#8221;MQTT LED Strips&#8221; background_layout=&#8221;dark&#8221; text_orientation=&#8221;left&#8221; header_fullscreen=&#8221;off&#8221; header_scroll_down=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; content_orientation=&#8221;center&#8221; image_orientation=&#8221;center&#8221; custom_button_one=&#8221;off&#8221; button_one_letter_spacing=&#8221;0&#8243; button_one_use_icon=&#8221;default&#8221; button_one_icon_placement=&#8221;right&#8221; button_one_on_hover=&#8221;on&#8221; button_one_letter_spacing_hover=&#8221;0&#8243; custom_button_two=&#8221;off&#8221; button_two_letter_spacing=&#8221;0&#8243; button_two_use_icon=&#8221;default&#8221; button_two_icon_placement=&#8221;right&#8221; button_two_on_hover=&#8221;on&#8221; button_two_letter_spacing_hover=&#8221;0&#8243; \/][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221;][et_pb_row admin_label=&#8221;row&#8221;][et_pb_column type=&#8221;3_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] Hardware [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":39,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-245","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":10,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/245\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/245\/revisions\/265"}],"up":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/39"}],"wp:attachment":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/media?parent=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}