{"id":413,"date":"2020-02-20T00:06:33","date_gmt":"2020-02-20T05:06:33","guid":{"rendered":"http:\/\/skyfun.space\/?page_id=413"},"modified":"2020-02-28T20:25:15","modified_gmt":"2020-02-29T01:25:15","slug":"badasp","status":"publish","type":"page","link":"https:\/\/skyfun.space\/?page_id=413","title":{"rendered":"BADASP"},"content":{"rendered":"\n<p><em>Backup Air Data And Sensor Platform<\/em><\/p>\n\n\n\n<p>BADASP isn&#8217;t a product name it&#8217;s just easier to say than &#8220;microcontroller based sensor platform&#8221;.  I had to come up with something.  The logo would be awesome though \ud83d\ude42<\/p>\n\n\n\n<p>This sensor platform integrates easily available inexpensive sensors into a small enough package to mount under your wing as a backup source of data for airspeed, magnetic heading, orientation, altitude and vertical speed.  It relies on using the Stratux ADS-B receiver as a WiFi access point.  It broadcasts its data on the Stratux broadcast address which is expected to be received by the <em>Stratofier<\/em> app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Circuit Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"759\" data-attachment-id=\"421\" data-permalink=\"https:\/\/skyfun.space\/?attachment_id=421\" data-orig-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?fit=2554%2C3305&amp;ssl=1\" data-orig-size=\"2554,3305\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"BADASP_Diagram\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?fit=232%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?fit=586%2C759&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?resize=586%2C759\" alt=\"\" class=\"wp-image-421\" srcset=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?resize=791%2C1024&amp;ssl=1 791w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?resize=232%2C300&amp;ssl=1 232w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?resize=768%2C994&amp;ssl=1 768w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?resize=1187%2C1536&amp;ssl=1 1187w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?resize=1583%2C2048&amp;ssl=1 1583w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/BADASP_Diagram.png?w=1758 1758w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><figcaption>Circuit Diagram<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">The ugly prototype<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"377\" data-attachment-id=\"422\" data-permalink=\"https:\/\/skyfun.space\/?attachment_id=422\" data-orig-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?fit=2560%2C1645&amp;ssl=1\" data-orig-size=\"2560,1645\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;1.5&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;SM-G965U&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1582760214&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.3&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.1&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"20200226_233654\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?fit=300%2C193&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?fit=586%2C377&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654.jpg?resize=586%2C377\" alt=\"\" class=\"wp-image-422\" srcset=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?resize=1024%2C658&amp;ssl=1 1024w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?resize=300%2C193&amp;ssl=1 300w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?resize=768%2C494&amp;ssl=1 768w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?resize=1536%2C987&amp;ssl=1 1536w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?resize=2048%2C1316&amp;ssl=1 2048w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?resize=280%2C180&amp;ssl=1 280w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?w=1172 1172w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200226_233654-scaled.jpg?w=1758 1758w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><figcaption>Sensor platform mounted inside a 1.5 inch PVC pipe<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"255\" data-attachment-id=\"424\" data-permalink=\"https:\/\/skyfun.space\/?attachment_id=424\" data-orig-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?fit=2560%2C1112&amp;ssl=1\" data-orig-size=\"2560,1112\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;1.5&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;SM-G965U&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1581881800&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.3&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.058823529411765&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"20200216_193640\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?fit=300%2C130&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?fit=586%2C255&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640.jpg?resize=586%2C255\" alt=\"\" class=\"wp-image-424\" srcset=\"https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?resize=1024%2C445&amp;ssl=1 1024w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?resize=300%2C130&amp;ssl=1 300w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?resize=768%2C334&amp;ssl=1 768w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?resize=1536%2C667&amp;ssl=1 1536w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?resize=2048%2C889&amp;ssl=1 2048w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?w=1172 1172w, https:\/\/i0.wp.com\/skyfun.space\/wp-content\/uploads\/2020\/02\/20200216_193640-scaled.jpg?w=1758 1758w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><figcaption>The naked sensor setup.  The photo shows the magnetometer that hasn&#8217;t been mounted yet<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Parts List:<\/h2>\n\n\n\n<p>Wemos D1 Mini 8266 Microcontroller with built-in WiFi and battery charge circuit.  Note that these are available under a lot of different names and slightly different configurations.  The one pictured here has a battery socket pre-mounted and pre-soldered to the board.  The final build could be slimmer by placing the battery in front or behind the other sensors.  The battery clip is extremely stiff so I&#8217;m not worried about it falling out.<\/p>\n\n\n\n<p>Adafruit BNO055 9 DOF orientation sensor.  This sensor also has a magnetometer but it is not accurate enough (see magnetometer listed below).  BADASP only uses the orientation and acceleration axes.<\/p>\n\n\n\n<p>Adafruit BMP388 air pressure sensor.  This provides outside air pressure necessary to calculate correct pressure altitude.  After limited testing, the accuracy has been within about 2 or 3 feet.<\/p>\n\n\n\n<p>PNI RM3100 Magnetometer sensor.  The sensor I used has an SPI interface instead of I2C like the others but it is very small.  They offer an I2C version but it looks to be a fair bit larger.  You&#8217;ll need to make modifications to the software if you plan to use the I2C version.<\/p>\n\n\n\n<p>3D Robotics 4525DO pitot-static sensor.  This was the most accurate with the highest rated airspeed I could find and it is also digital.  Many of the ones available for models are analog.  There is no getting around the fact that you&#8217;ll need to calibrate this for each individual aircraft.  Stratofier has an entry in the settings for calibrating the speed for your aircraft.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Software<\/h2>\n\n\n\n<p>The currently working software is available on GitHub <a href=\"https:\/\/github.com\/UnexplodedMinds\/WingThing2\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Data Stream Format<\/h2>\n\n\n\n<p>The data sent from BADASP is a simple UDP stream sent to 192.168.10.255, port 45678.  Stratux is only acting as a WiFi access point.  The data is actually combined in the Stratofier app.  The Stratux software could be modified to use the data directly but that wasn&#8217;t the goal of this specific project.  The data is sent as (without any carriage returns or line feeds):<\/p>\n\n\n\n<p style=\"font-family: monospace;\">&lt;Firmware Version&gt;,<br>\n&lt;Airspeed&gt;,<br>\n&lt;Altitude&gt;,<br>\n&lt;Temperature&gt;,<br>\n&lt;Magetic X Axis&gt;,<br>\n&lt;Magetic Y Axis&gt;,<br>\n&lt;Magetic Z Axis&gt;,<br>\n&lt;Orientation X Axis&gt;,<br>\n&lt;Orientation Y Axis&gt;,<br>\n&lt;Orientation Z Axis&gt;,<br>\n&lt;Acceleration X Axis&gt;,<br>\n&lt;Acceleration Y Axis&gt;,<br>\n&lt;Acceleration Z Axis&gt;<\/p>\n\n\n\n<p><em>This page is in the process of being updated as time allows.  The small bit of information here should be enough for you to build one if you&#8217;re familiar with microcontrollers and the hobby type sensors used in the project.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backup Air Data And Sensor Platform BADASP isn&#8217;t a product name it&#8217;s just easier to say than &#8220;microcontroller based sensor platform&#8221;. I had to come up with something. The logo would be awesome though \ud83d\ude42 This sensor platform integrates easily available inexpensive sensors into a small enough package to mount under your wing as a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-413","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P7BBwh-6F","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/skyfun.space\/index.php?rest_route=\/wp\/v2\/pages\/413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skyfun.space\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/skyfun.space\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/skyfun.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skyfun.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=413"}],"version-history":[{"count":4,"href":"https:\/\/skyfun.space\/index.php?rest_route=\/wp\/v2\/pages\/413\/revisions"}],"predecessor-version":[{"id":427,"href":"https:\/\/skyfun.space\/index.php?rest_route=\/wp\/v2\/pages\/413\/revisions\/427"}],"wp:attachment":[{"href":"https:\/\/skyfun.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}