{"id":88,"date":"2019-04-10T02:27:54","date_gmt":"2019-04-10T08:27:54","guid":{"rendered":"http:\/\/www.wolfpack.xyz\/blog\/?p=88"},"modified":"2019-04-13T11:38:10","modified_gmt":"2019-04-13T17:38:10","slug":"where-im-at-now","status":"publish","type":"post","link":"http:\/\/www.wolfpack.xyz\/blog\/?p=88","title":{"rendered":"Where I&#8217;m at now."},"content":{"rendered":"<p>So in my adventures with this arduino project I&#8217;ve mainly been doing system testing by building small circuits. I am going to use some panel meters to display my ships batteries and power flow. I bought two 5v meters from aliexpress for this purpose.  They have yet to arrive but I THINK I have come up with some code that will work. The game outputs the data in two ranges. 0 to 100 and -100 to 100. Initially I figured I would need to mathematically convert those ranges to 0 to 255 so I can use PWM to drive the meters. I spent some time putting a system in place to convert the data&#8230;&#8230;.. then the next day I discovered arduino already has a method of doing this built it. Behold the map() function. Oh well, I&#8217;ll switch it over later.<\/p>\n<p>I also was able to drive a MAX7219 seven segment display to display my ships current heading.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.wolfpack.xyz\/blog\/wp-content\/uploads\/2019\/04\/20190410_020318.gif?resize=256%2C350\" class=\"alignnone size-full wp-image-87\" width=\"256\" height=\"350\" animated-media=\"animated-media\" data-recalc-dims=\"1\"><\/p>\n<p>Initially I thought this would be the hardest thing to code because of the way the LedControl.h library works. However I discovered the DigitLedDisplay.h it provides a super simple way do display multi digit numbers and even custom characters via binary. I want to have a bunch of these displays display things like, ship heading, motion heading, player money etc.<\/p>\n<p>I do have some other hardware on the way as well such as torpedo buttons with safety covers, more displays, meters, and some minor tools. Oh! And a pair of magnetic Reed switches for a cool idea I have but more on that later down the road. :3<\/p>\n<p>Today I also bought myself a decent jigsaw&#8230;. it was a long time coming hehe. I suppose I&#8217;ll have to get some of the structural MDF soon. Having the materials really helps me to plan&#8230; weirdly enough.<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-88\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=88&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-88\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=88&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>So in my adventures with this arduino project I&#8217;ve mainly been doing system testing by building small circuits. I am going to use some panel meters to display my ships batteries and power flow. I bought two 5v meters from aliexpress for this purpose. They have yet to arrive but I THINK I have come [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-88\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=88&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-88\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.wolfpack.xyz\/blog\/?p=88&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"status","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[6,7],"tags":[5],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6nSil-1q","jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/88"}],"collection":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":1,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":89,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/89"}],"wp:attachment":[{"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wolfpack.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}