{"id":481,"date":"2022-04-07T15:25:00","date_gmt":"2022-04-07T19:25:00","guid":{"rendered":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/?p=481"},"modified":"2022-04-07T15:25:00","modified_gmt":"2022-04-07T19:25:00","slug":"megahits-hu3900-la-edition","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/zchen10\/megahits-hu3900-la-edition\/","title":{"rendered":"MegaHits HU3900-LA Edition"},"content":{"rendered":"\n<p>Last week I finished the first prototype of my HU3900 controller board. Thankfully no circuit mistake and It&#8217;s working as intended.<\/p>\n\n\n\n<p>I wrote a simple program for flashing its LED in a semi-random pattern with a dimming effect controlled by the on-chip PWM generator.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.discordapp.com\/attachments\/954048989295161347\/961704663302963230\/20220407_151039.jpg\" alt=\"\" \/><figcaption>Bare and assembled circuit board with LED and controller IC.<\/figcaption><\/figure>\n\n\n\n<p>Since the software&#8217;s random number generator is a pseudo-random generator, I have to find a way to get different random patterns out of different chips. To address that, I wrote a routine to fetch the IC&#8217;s 96-bits unique ID and program my random number generator based on that 96-bits ID.<\/p>\n\n\n\n<p>The audio playback on the HU3900-LA variant is also working!<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-content\/uploads\/sites\/23\/2022\/04\/VID_20220402_150624.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Last week I finished the first prototype of my HU3900 controller board. Thankfully no circuit mistake and It&#8217;s working as intended. I wrote a simple program for flashing its LED in a semi-random pattern with a dimming effect controlled by the on-chip PWM generator. Since the software&#8217;s random number generator is a pseudo-random generator, I&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/zchen10\/megahits-hu3900-la-edition\/\">Read More<\/a><\/div>\n","protected":false},"author":232,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-481","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/users\/232"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":2,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"predecessor-version":[{"id":521,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts\/481\/revisions\/521"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}