{"id":1447,"date":"2015-05-20T11:47:42","date_gmt":"2015-05-20T10:47:42","guid":{"rendered":"https:\/\/andyland.info\/wordpress\/?p=1447"},"modified":"2016-10-13T15:26:32","modified_gmt":"2016-10-13T14:26:32","slug":"motion-sensor-to-midi-converter","status":"publish","type":"post","link":"https:\/\/andyland.info\/wordpress\/motion-sensor-to-midi-converter\/","title":{"rendered":"Motion-Sensor-to-MIDI-Converter"},"content":{"rendered":"<p>An idea that came up\u00a0during the 31C3. The guys from <a href=\"http:\/\/visualphievents.com\">VisualPhi<\/a> had some motion sensors lying around and wanted to use them to control their VJ-software. That&#8217;s why I built them a Motion-Sensor-to-MIDI-Converter.<\/p>\n<p>As usual it all starts on a breadboard. Most of the times I draw the schematics parallel to building the circuit on a breadboard. Guess that&#8217;s the usual way.<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0230.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1444\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0230-1024x768.jpg\" alt=\"CIMG0230\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0230-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0230-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0230-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0230-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The circuit itself is rather unspectacular. 8 inputs are polled from a 74HC165. Then there&#8217;s a little bit of logic implemented within an Arduino and then there&#8217;s 16 LEDs, a rotary encoder and MIDI out.<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0231.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1445\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0231-1024x768.jpg\" alt=\"CIMG0231\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0231-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0231-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0231-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0231-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0233.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1446\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0233-1024x768.jpg\" alt=\"CIMG0233\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0233-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0233-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0233-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0233-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>This project is the first one to benefit from my new 3D Printer. Due to the fact that I don&#8217;t have a dedicated toolshed anymore it&#8217;s kind of impossible to reliably manufacture the case anymore. Seems as if I don&#8217;t need one from now on.<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0261.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1436\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0261-1024x768.jpg\" alt=\"CIMG0261\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0261-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0261-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0261-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0261-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I really think the fixation of the rotary encoder is one of the smartest pieces ever done by mankind. Ever =)<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0264.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1438\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0264-1024x768.jpg\" alt=\"CIMG0264\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0264-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0264-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0264-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0264-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0263.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1437\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0263-1024x768.jpg\" alt=\"CIMG0263\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0263-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0263-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0263-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0263-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The LEDs are driven via Charlieplexing. It&#8217;s rather easy to implement but you really need to concentrate while soldering. By the way: If everything else fails I guess I&#8217;ll become a Soldering-Artist one day.<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0269.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1440\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0269-1024x768.jpg\" alt=\"CIMG0269\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0269-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0269-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0269-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0269-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The function of the device is easy to explain. Every input is triggered when the state of a connected switch changes. This is indicated by the red LED below the channel. The green LEDs indicate the channel that&#8217;s influenced by the rotary enoder: The encoder gives the possibility to set the time that has to pass from the moment the input is triggered until it can be retriggered again. Something like a &#8216;Retrigger Threshold&#8217;. The value can be set to values between 0 and ~2 seconds. When the lower \/ upper limit of the value is reached the green LED flashes. Pressing the rotary encoder (it has a built-in switch) switches to the next input.<\/p>\n<p>A triggered input sends a MIDI note.<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0266.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1439\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0266-1024x768.jpg\" alt=\"CIMG0266\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0266-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0266-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0266-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0266-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0276.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1443\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0276-1024x768.jpg\" alt=\"CIMG0276\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0276-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0276-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0276-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0276-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0275.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1442\" src=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0275-1024x768.jpg\" alt=\"CIMG0275\" width=\"800\" height=\"600\" srcset=\"https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0275-1024x768.jpg 1024w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0275-300x225.jpg 300w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0275-200x150.jpg 200w, https:\/\/andyland.info\/wordpress\/wp-content\/uploads\/CIMG0275-150x113.jpg 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An idea that came up\u00a0during the 31C3. The guys from VisualPhi had some motion sensors lying around and wanted to use them to control their VJ-software. That&#8217;s why I built them a Motion-Sensor-to-MIDI-Converter. As usual it all starts on a breadboard. Most of the times I draw the schematics parallel \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/andyland.info\/wordpress\/motion-sensor-to-midi-converter\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[20,19,5,21],"tags":[54,138,35,137],"class_list":["post-1447","post","type-post","status-publish","format-standard","hentry","category-licht","category-musik","category-projekte","category-video","tag-arduino","tag-charlieplexing","tag-midi","tag-motion-sensing","odd"],"_links":{"self":[{"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/posts\/1447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/comments?post=1447"}],"version-history":[{"count":0,"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/posts\/1447\/revisions"}],"wp:attachment":[{"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/media?parent=1447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/categories?post=1447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andyland.info\/wordpress\/wp-json\/wp\/v2\/tags?post=1447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}