{"id":950,"date":"2021-09-06T19:23:17","date_gmt":"2021-09-06T19:23:17","guid":{"rendered":"http:\/\/www.kerrygalloway.com\/kerryswebstudio\/?p=950"},"modified":"2021-09-23T16:53:53","modified_gmt":"2021-09-23T16:53:53","slug":"build-diary-hurricane-midi-fader-box-2","status":"publish","type":"post","link":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/2021\/09\/06\/build-diary-hurricane-midi-fader-box-2\/","title":{"rendered":"Build Diary: Hurricane MKI MIDI Fader Box #2 &#8211; electronics and coding"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">First steps: Investigating the feasibility of the processor\/code. <\/p>\n\n\n\n<p class=\"has-drop-cap wp-block-paragraph\">As it happens, I had an Arduino Teensy left over from some exploration a couple of years ago. <br><\/p>\n\n\n\n<p class=\"has-drop-cap wp-block-paragraph\">For those that don\u2019t know it, it\u2019s a tiny microprocessor about the size of the first joint of one\u2019s thumb. I\u2019ll flesh this out with more detail for those that are interested.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Microprocessors  &#8211; essentially the tiny raw basics of a computer &#8211; are decades-old by now, but because they lack even the most rudimentary interface they\u2019ve largely required expert knowledge to program. Today\u2019s hobby microprocessors plug into your computer and are addressed via a downloadable software editor called an IDE, and while there is still some coding involved it\u2019s lightyears more user-friendly than having to address it in its own language. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"http:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-content\/uploads\/2021\/09\/51d0LI7yJJL._AC_-1.jpg\" alt=\"\" class=\"wp-image-1000\" width=\"-173\" height=\"-161\" srcset=\"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-content\/uploads\/2021\/09\/51d0LI7yJJL._AC_-1.jpg 492w, https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-content\/uploads\/2021\/09\/51d0LI7yJJL._AC_-1-300x280.jpg 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><figcaption>Teensy 4.0 for scale<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">My exploration tells me the Teensy just happens to be the perfect device for this task (which is not entirely surprising, since I bought it for another midi related device project a couple of years back). It\u2019s cheap ($40 CAD); it\u2019s ubiquitous; there\u2019s an enormous code base out there, and tons of examples to work from and public domain code from which to pillage and learn; it\u2019s already a class-compliant-capable USB MIDI device out of the box so that\u2019s a big task I won\u2019t have to teach myself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In fact, there\u2019s an even cheaper version called a Teensy LC (for \u201clow cost\u201d) which runs around $25 Canadian, and I will be picking one up tomorrow to see if it will run the brief test code I\u2019ve written on my Teensy 3.2. I don\u2019t see any reason why it wouldn\u2019t, as they\u2019re almost the same, and the changes made to make it cheaper don\u2019t really Impact the functions I am using. This will keep me from sacrificing my slightly more expensive Teensy 3.2 (and having to unsolder all of the header pins &#8211; ugh). I\u2019ll keep the 3.2 as my workshop board.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some microprocessors run at 5 volts, others run at 3.3 V, and some can handle both. The Teensy 3.2 runs at 3.3 V, and 5 V can kill it (not always, but my electronic skills are fairly rudimentary and I don\u2019t think they\u2019re up to making sure that I don\u2019t).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This rules out a tiny 5V LCD screen I already had, but fortunately there\u2019s a crop of new OLED micro displays that run at 3.3 V, and they are extremely crisp, bright and power efficient, and cost less than $8.  In fact &#8211; if I scale up production to the point where I\u2019m buying a half dozen or 10 at a time, they drop far lower than that.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-content\/uploads\/2021\/09\/Hello-World-OLED.jpg\" alt=\"\" class=\"wp-image-1001\" width=\"246\" height=\"157\" srcset=\"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-content\/uploads\/2021\/09\/Hello-World-OLED.jpg 338w, https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-content\/uploads\/2021\/09\/Hello-World-OLED-300x192.jpg 300w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/><figcaption>0.91&#8243; OLED display<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Faders are relatively easy: I\u2019m going for industry standard 100mm Bourns faders, 10k ohms. The technical diagrams say that they are 130mm long and there is 120 mm between the centers of the mounting holes, so that gives me useful layout information for minimum size of the box.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now the single momentary pushbutton. My instinct says \u201cmetal\u201d will be best, although at this point I can\u2019t tell you exactly why. But soon, my own intuitions about the design of the box will become clearer to me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First steps: Investigating the feasibility of the processor\/code. As it happens, I had an Arduino Teensy left over from some&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-950","post","type-post","status-publish","format-standard","hentry","category-geeky-things"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paSxoy-fk","_links":{"self":[{"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/comments?post=950"}],"version-history":[{"count":5,"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/posts\/950\/revisions"}],"predecessor-version":[{"id":1076,"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/posts\/950\/revisions\/1076"}],"wp:attachment":[{"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/media?parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/categories?post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kerrygalloway.com\/kerryswebstudio\/wp-json\/wp\/v2\/tags?post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}