{"id":41,"date":"2020-03-15T15:12:15","date_gmt":"2020-03-15T15:12:15","guid":{"rendered":"https:\/\/phils-linux.com\/?p=41"},"modified":"2020-04-12T10:21:02","modified_gmt":"2020-04-12T10:21:02","slug":"getting-started-with-inputs","status":"publish","type":"post","link":"https:\/\/www.phils-linux.com\/?p=41","title":{"rendered":"Getting started with inputs"},"content":{"rendered":"\n<p>So after testing the Max7219 drivers and getting all desired digits to work, I gave Inputs a try. So the goal was to &#8220;migrate&#8221; my already working OpenCockpits instruments to SimVim. <\/p>\n\n\n\n<p>In order to reach that goal, the easiest would have been to make OC&#8217;s Inputs card somehow compatible with SimVim, meaning I&#8217;d just need to find a way, of connecting the multiplexer cards. Well &#8211; it turned out, that the pin positions don&#8217;t correspond with the actual &#8220;Input&#8221; pin. In fact, they seem to be completely random (I guess they are not, but I didn&#8217;t really bother yet to dig deeper).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-1024x768.jpg\" alt=\"\" class=\"wp-image-46\" width=\"598\" height=\"449\" srcset=\"https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-1024x768.jpg 1024w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-300x225.jpg 300w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-768x576.jpg 768w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-1536x1152.jpg 1536w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-2048x1536.jpg 2048w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202745-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 598px) 85vw, 598px\" \/><\/figure><\/div>\n\n\n\n<p>So instead I disconnected the wires of my transponder from the Screw Terminal crimped them and put a connector on them to try it out. <\/p>\n\n\n\n<p>For the transponder we are talking about the following components, which needed to be connected and configured:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1 Momentary Push botton (used for IDENT)<\/li><li>2 rotary Encoders (used for outer and inner Squawk)<\/li><li>1 Rotary switch (Used for modes)<\/li><\/ul>\n\n\n\n<p>After hooking them all up to the breadboard I gave SimVim&#8217;s configurator a go, created the config, fired up X-Plane AAAAANDDD it worked. At least thats what I though initially. The rotary switch &#8211; well &#8211; switched through the modes. But when hitting &#8216;TA\/RA&#8217; (which was configured to be on &#8216;C5&#8217; of the multiplexer Board, SimVim got input from IDT, which was configured on channel 9. I checked and double checked the wires an connectors, but only the ones from the instrument to the multiplexer board. It turned out,did a mistake hooking up  the address lines to the multiplexer board, resulting in mixed up addresses. So, instead of address 0101, Arduino got 1001. In the end I decided to redo the wireing completely and the problem was solved (to be honest, I really need to improve my cable management).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-1024x768.jpg\" alt=\"\" class=\"wp-image-45\" width=\"609\" height=\"457\" srcset=\"https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-1024x768.jpg 1024w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-300x225.jpg 300w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-768x576.jpg 768w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-1536x1152.jpg 1536w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-2048x1536.jpg 2048w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202732-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><figcaption>It still looks like a mess, but hey, at least it worked!<\/figcaption><\/figure><\/div>\n\n\n\n<p>After I had my SimVim config done and everything looked good that far, I also connected the 4 digits  I previously used with the transponder to the prototyping PCB. Last time I soldered one Max7219 driver to a blank PCB, added some male pin header and starter connecting Segments and digits. As you could see in my previous post, I already had the segments working that far. I added them to the config and hey &#8211; I got my transponder working again!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-1024x768.jpg\" alt=\"\" class=\"wp-image-48\" width=\"619\" height=\"464\" srcset=\"https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-1024x768.jpg 1024w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-300x225.jpg 300w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-768x576.jpg 768w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-1536x1152.jpg 1536w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-2048x1536.jpg 2048w, https:\/\/www.phils-linux.com\/wp-content\/uploads\/2020\/03\/IMG_20200314_202800-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure><\/div>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/phils-linux.com\/wp-content\/uploads\/2020\/03\/VID_20200314_202845.mp4\"><\/video><\/figure>\n\n\n\n<p>Since this is just a prove of concept, I&#8217;m looking forward to redoing all cables, connectors, etc. in a nice, clean way. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>So after testing the Max7219 drivers and getting all desired digits to work, I gave Inputs a try. So the goal was to &#8220;migrate&#8221; my already working OpenCockpits instruments to SimVim. In order to reach that goal, the easiest would have been to make OC&#8217;s Inputs card somehow compatible with SimVim, meaning I&#8217;d just need &hellip; <a href=\"https:\/\/www.phils-linux.com\/?p=41\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Getting started with inputs&#8221;<\/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":[5,3,4],"tags":[12,11,15,13,8],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-b738","category-homecockpit","category-xpdr","tag-b737-800","tag-b738","tag-i-o","tag-inputs","tag-simvim"],"_links":{"self":[{"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":6,"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phils-linux.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}