{"id":834,"date":"2022-02-12T16:46:39","date_gmt":"2022-02-12T05:46:39","guid":{"rendered":"https:\/\/www.reefwing.com.au\/?p=834"},"modified":"2022-02-12T16:46:41","modified_gmt":"2022-02-12T05:46:41","slug":"nexgentimer-arduino-library","status":"publish","type":"post","link":"https:\/\/www.reefwing.com.au\/?p=834","title":{"rendered":"NexgenTimer Arduino Library"},"content":{"rendered":"\n<p>LiPo batteries are great for drones but you don&#8217;t want to over discharge them. To allow our Flight Controller to monitor battery capacity we used a non blocking scheduler and packaged our requirements up as an Arduino Library, NexgenTimer.<\/p>\n\n\n\n<p>Our library is an amalgamation of the&nbsp;MillisTimer&nbsp;and&nbsp;ElapsedTimer&nbsp;libraries with some application specific examples and an extra&nbsp;Timeout&nbsp;class. It only uses functions from the Arduino core API and hence should work on all Arduino boards.<\/p>\n\n\n\n<p>It can be downloaded using the Arduino Library Manager and you can read all about it in our latest article on Medium &#8211;<\/p>\n\n\n\n<p><a href=\"https:\/\/reefwing.medium.com\/how-to-write-your-own-flight-controller-software-part-6-7ce0fa3e8008\">https:\/\/reefwing.medium.com\/how-to-write-your-own-flight-controller-software-part-6-7ce0fa3e8008<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LiPo batteries are great for drones but you don&#8217;t want to over discharge them. To allow our Flight Controller to monitor battery capacity we used a non blocking scheduler and packaged our requirements up as an Arduino Library, NexgenTimer. Our library is an amalgamation of the&nbsp;MillisTimer&nbsp;and&nbsp;ElapsedTimer&nbsp;libraries with some application specific examples and an extra&nbsp;Timeout&nbsp;class. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"footnotes":""},"categories":[47,45,46,43],"tags":[],"class_list":{"0":"post-834","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-drones","7":"category-embedded","8":"category-iot","9":"category-robotics","10":"entry"},"_links":{"self":[{"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=\/wp\/v2\/posts\/834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=834"}],"version-history":[{"count":1,"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=\/wp\/v2\/posts\/834\/revisions"}],"predecessor-version":[{"id":835,"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=\/wp\/v2\/posts\/834\/revisions\/835"}],"wp:attachment":[{"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reefwing.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}