{"id":312,"date":"2023-03-24T04:00:06","date_gmt":"2023-03-24T04:00:06","guid":{"rendered":"https:\/\/danlacroix.a2hosted.com\/wordpress\/?p=312"},"modified":"2023-04-05T05:24:48","modified_gmt":"2023-04-05T05:24:48","slug":"sound-reactive-light-board","status":"publish","type":"post","link":"https:\/\/danlacroix.a2hosted.com\/?p=312","title":{"rendered":"Sound reactive light board"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Intro<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Addressable LED strip projects were making the rounds on maker blogs a while ago and it got me wondering if you could make them react to music in interesting ways. Not surprisingly, someone had already done a similar project and I was able to borrow some concepts from their code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Backing board<\/h2>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2319-1024x768.jpg\" alt=\"\" class=\"wp-image-218\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2319-1024x768.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2319-300x225.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2319-768x576.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2319-1536x1152.jpg 1536w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2319.jpg 1958w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/danlacroix.a2hosted.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_2325-768x1024.jpg\" alt=\"\" class=\"wp-image-219\"\/><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Cutting the shapes out of fiberboard. Did most of the geometry layout with a compass which was tricky but fun.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frame<\/h2>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/danlacroix.a2hosted.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_2328-768x1024.jpg\" alt=\"\" class=\"wp-image-220\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/danlacroix.a2hosted.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_2334-768x1024.jpg\" alt=\"\" class=\"wp-image-222\"\/><\/figure>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Electronics<\/h2>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2395_comp-1024x1024.jpg\" alt=\"\" class=\"wp-image-237\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2395_comp-1024x1024.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2395_comp-300x300.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2395_comp-150x150.jpg 150w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2395_comp-768x768.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2395_comp.jpg 1228w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Buttons to select different modes<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2396_comp-1024x1024.jpg\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2396_comp-1024x1024.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2396_comp-300x300.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2396_comp-150x150.jpg 150w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2396_comp-768x768.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2396_comp.jpg 1228w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Sound collection breakout board<\/figcaption><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2406_comp-1024x1024.jpg\" alt=\"\" class=\"wp-image-226\" width=\"348\" height=\"348\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2406_comp-1024x1024.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2406_comp-300x300.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2406_comp-150x150.jpg 150w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2406_comp-768x768.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_2406_comp.jpg 1228w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><figcaption class=\"wp-element-caption\">Control board for electronics, taken from the scrap metal bin. Sticking with the hexagon theme.<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">LEDs<\/h2>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/danlacroix.a2hosted.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_2530-768x1024.jpg\" alt=\"\" class=\"wp-image-228\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/danlacroix.a2hosted.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_2533-768x1024.jpg\" alt=\"\" class=\"wp-image-229\"\/><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The wood frame was mostly to give it some depth and hide the junky edge of the fiberboard. It also allows you to route the LED strip without kinking it. Another bonus is that the LEDs reflect off the wall instead of shining at you directly &#8211; they&#8217;re way brighter than I anticipated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Up and running<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m happy with the build overall but the sound processing could use some work. If I was writing it from scratch I&#8217;d probably try to implement better beat detection and have different brightness and colors for different frequencies and beats.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Even without the sound detection running it was fun programming different light sequences. I made a pretty convincing lightning simulator which involved some research into what makes lighting look like lightning. Anything periodic looks artificial and anything purely random doesn&#8217;t seem natural. You can also make cool rippling patterns which look like some kind of sea creature dazzle camouflage.<\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3054-1024x768.jpg\" alt=\"\" class=\"wp-image-232\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3054-1024x768.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3054-300x225.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3054-768x576.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3054-1536x1152.jpg 1536w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3054-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3079-1024x768.jpg\" alt=\"\" class=\"wp-image-235\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3079-1024x768.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3079-300x225.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3079-768x576.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3079-1536x1152.jpg 1536w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3079-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3061-1024x768.jpg\" alt=\"\" class=\"wp-image-233\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3061-1024x768.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3061-300x225.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3061-768x576.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3061-1536x1152.jpg 1536w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3061-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3068-1024x768.jpg\" alt=\"\" class=\"wp-image-234\" srcset=\"https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3068-1024x768.jpg 1024w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3068-300x225.jpg 300w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3068-768x576.jpg 768w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3068-1536x1152.jpg 1536w, https:\/\/danlacroix.a2hosted.com\/wp-content\/uploads\/2023\/03\/IMG_3068-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Sound reactive light board - test 1\" width=\"660\" height=\"371\" src=\"https:\/\/www.youtube.com\/embed\/oOPPfByyufM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Intro Addressable LED strip projects were making the rounds on maker blogs a while ago and it got me wondering if you could make them react to music in interesting ways. Not surprisingly, someone had already done a similar project and I was able to borrow some concepts from their code. Backing board Cutting the &hellip; <a href=\"https:\/\/danlacroix.a2hosted.com\/?p=312\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Sound reactive light board<\/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":[3],"tags":[9,15],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-electronics_sound_hobby","tag-electronics","tag-sound"],"_links":{"self":[{"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":3,"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":477,"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions\/477"}],"wp:attachment":[{"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danlacroix.a2hosted.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}