{"id":4294,"date":"2015-09-06T10:09:56","date_gmt":"2015-09-06T15:09:56","guid":{"rendered":"http:\/\/www.plastibots.com\/?p=4294"},"modified":"2015-09-07T09:31:16","modified_gmt":"2015-09-07T14:31:16","slug":"configuring-lost-model-alarm-flip-32-and-cleanflight","status":"publish","type":"post","link":"https:\/\/www.plastibots.com\/index.php\/2015\/09\/06\/configuring-lost-model-alarm-flip-32-and-cleanflight\/","title":{"rendered":"Configuring Lost Model Alarm &#8211; Flip 32 and Cleanflight"},"content":{"rendered":"<p><a href=\"http:\/\/www.plastibots.com\/index.php\/2015\/01\/01\/quadcopter-enhanced-lost-model-alarm\/lomae_2\/\" rel=\"attachment wp-att-3525\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-3525\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/01\/LoMaE_2-150x150.jpg\" alt=\"LoMaE_2\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/01\/LoMaE_2-150x150.jpg 150w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/01\/LoMaE_2-64x64.jpg 64w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/01\/LoMaE_2-128x128.jpg 128w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/01\/LoMaE_2-320x320.jpg 320w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>Earlier, I created an <a href=\"http:\/\/www.plastibots.com\/index.php\/2015\/01\/01\/quadcopter-enhanced-lost-model-alarm\/\" target=\"_blank\">enhanced lost model alarm<\/a> using an ATTiny85 and some Arduino code. \u00a0I wanted to have different alarm modes that could be triggered depending on the position of the pitch trim pot. \u00a0I&#8217;ve since ditched that config for simplicity. \u00a0 The hardware and Arduino Sketch are still valid, so you can use those if you want to build one. \u00a0These instructions will show how to connect the hardware to a Flip32+ and configure it in Cleanflight.<br \/>\n<!--more--><\/p>\n<p><strong>Note about the Arduino code:<\/strong><\/p>\n<p>If you have a look at the code (link above), it&#8217;s pretty straight forward. \u00a0If the PWM value is &gt; 1700, then trigger the alarm and flash a LED. Else, do nothing. \u00a0The default state is off. \u00a0Also note that there are some tricks you have to pull to get the ATTiny to play well with the Tone() command (detail in the link).<\/p>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Configure\u00a0one of your transmitter Aux toggles in the Mixer settings. In my case, I am using the Gear switch to toggle Aux 2 LOW\/HIGH. Set as FULL and 100%.<\/li>\n<li>The Flip32+ has 6 motor ports. \u00a0In my set-up, I have the motors on 3, 4, 5 &amp; 6. \u00a0The reason for this is because I have SERVO_TILT enabled to control my FPV camera on Motor #1. This shifts the quad motors to 3-6.<\/li>\n<li>Connect the\u00a0alarm on motor port #2 (<a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/flip32.jpg\" target=\"_blank\">image<\/a>).<\/li>\n<li>In Cleanflight go to the Receiver tab and observe the values that are passed Aux 2 when you toggle the Aux switch. \u00a0If you don&#8217;t see them changing, the rest won&#8217;t work.<\/li>\n<li>In Cleanflight, enable the Servo Tilt option (<a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_1.jpg\" target=\"_blank\">image<\/a>)<\/li>\n<li>Go to the Servos tab and enable A2 on the Roll Servo with the settings as shown (<a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_2.jpg\" target=\"_blank\">image<\/a>)<\/li>\n<li>Power up your model with a battery and give it a try. \u00a0The alarm should trigger on\/off when you toggle the Aux switch.<\/li>\n<\/ol>\n<p>Note: \u00a0I also have the Beeper enabled on Aux 2, so, when the beeper triggers, it will also trigger the alarm. \u00a0This is useful if you have voltage warnings enabled.<\/p>\n<p style=\"text-align: center;\">\u00a0[ad name=&#8221;GoogleAS728x90ImgOnly&#8221;]<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/flip32.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4295\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/flip32-300x205.jpg\" alt=\"flip32\" width=\"300\" height=\"205\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/flip32-300x205.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/flip32.jpg 1002w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4297\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_1-300x239.jpg\" alt=\"LOMA_CF_1\" width=\"300\" height=\"239\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_1-300x239.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_1-1024x815.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_1.jpg 1071w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4298\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_2-300x122.jpg\" alt=\"LOMA_CF_2\" width=\"300\" height=\"122\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_2-300x122.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_2-1024x418.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/LOMA_CF_2.jpg 1071w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier, I created an enhanced lost model alarm using an ATTiny85 and some Arduino code. \u00a0I wanted to have different alarm modes that could be triggered depending on the position of the pitch trim pot. \u00a0I&#8217;ve since ditched that config for simplicity. \u00a0 The hardware and Arduino Sketch are still valid, so you can use those if you want to build one. \u00a0These instructions will show how to connect the hardware to a Flip32+ and &hellip; <a href=\"https:\/\/www.plastibots.com\/index.php\/2015\/09\/06\/configuring-lost-model-alarm-flip-32-and-cleanflight\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":4295,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[64,134,141,135],"class_list":["post-4294","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-remote-controlled","tag-arduino","tag-cleanflight","tag-diy-mods","tag-loma","has_thumb"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2015\/09\/flip32.jpg","jetpack_shortlink":"https:\/\/wp.me\/pK41j-17g","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/comments?post=4294"}],"version-history":[{"count":0,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4294\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media\/4295"}],"wp:attachment":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media?parent=4294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/categories?post=4294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/tags?post=4294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}