{"id":158,"date":"2016-05-27T17:02:48","date_gmt":"2016-05-27T23:02:48","guid":{"rendered":"http:\/\/www.blog.jay-greco.com\/wp\/?p=158"},"modified":"2016-05-27T17:02:48","modified_gmt":"2016-05-27T23:02:48","slug":"adding-a-buzzer-beeper-to-the-illuminati32tarot-naze-32-flight-controller","status":"publish","type":"post","link":"http:\/\/www.blog.jay-greco.com\/wp\/?p=158","title":{"rendered":"Adding a buzzer beeper to the Illuminati32\/Tarot Naze 32 Flight Controller"},"content":{"rendered":"<p>My buddy just bought an Illuminati32 FC board from Hobbyking for his new ZMR180 miniquad. The board is pretty sweet: Naze32, MWOSD, 35x35mm form factor, and only 20 bucks (on sale). It was really easy to set up, especially with the ZMR180 PDB that Diatone is shipping.\u00a0The biggest problem is that\u00a0<strong>t<\/strong><strong>here&#8217;s no buzzer output!<\/strong> A buzzer driver is one basic necessity every flight controller should come with. Low battery, lost models, and mode change beeps are pretty crucial to the operation of these miniquads. Luckily, it&#8217;s relatively simple and very cheap to add one onto this board. You&#8217;ll need:<\/p>\n<ul>\n<li><strong>High gauge (&gt;30) wire<\/strong><\/li>\n<li><strong>Fine solder and a fine-tipped soldering iron<\/strong><\/li>\n<li><strong>An NPN BJT (2N3904, BC557, etc)<\/strong><\/li>\n<li><strong>A 100\u03a9 resistor<\/strong><\/li>\n<li><strong>Heatshrink tubing or tape<\/strong><\/li>\n<\/ul>\n<p>The built-in Naze32 (rev5 or greater) buzzer driver is a NPN\u00a0transistor used in an open-collector configuration. There is a base resistor on the order of 100\u03a9 used to set the drive current. PA12, or Pin 33 of the STM32 is used to drive\u00a0the BJT.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"162\" data-permalink=\"http:\/\/www.blog.jay-greco.com\/wp\/?attachment_id=162\" data-orig-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?fit=1178%2C611\" data-orig-size=\"1178,611\" data-comments-opened=\"1\" 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=\"buzz\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?fit=300%2C156\" data-large-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?fit=525%2C272\" class=\"alignnone size-full wp-image-162\" src=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?resize=525%2C272\" alt=\"buzz\" width=\"525\" height=\"272\" srcset=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?w=1178 1178w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?resize=300%2C156 300w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?resize=768%2C398 768w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz.png?resize=1024%2C531 1024w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>It&#8217;s possible to do this BEAM style, with\u00a0SMT components and a small piece of protoboard, or even a with small PCB (perhaps from OSHPark). We chose to do it with a little PCB that&#8217;s also got an ATTiny84 on it which controls some RGB led strip.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"164\" data-permalink=\"http:\/\/www.blog.jay-greco.com\/wp\/?attachment_id=164\" data-orig-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png?fit=656%2C548\" data-orig-size=\"656,548\" data-comments-opened=\"1\" 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=\"buzz2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png?fit=300%2C251\" data-large-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png?fit=525%2C439\" class=\"alignnone size-full wp-image-164\" src=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png?resize=525%2C439\" alt=\"buzz2\" width=\"525\" height=\"439\" srcset=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png?w=656 656w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/buzz2.png?resize=300%2C251 300w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><\/p>\n<p>The hardest part of this is soldering onto the STM32, since PA12 isn&#8217;t broken out or used for anything else. See the below image to find the pin you need to solder to. Note that the text on the STM32 isn&#8217;t guaranteed to be upright, so look for\u00a0the pin 1 marker!!!<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"165\" data-permalink=\"http:\/\/www.blog.jay-greco.com\/wp\/?attachment_id=165\" data-orig-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?fit=1105%2C602\" data-orig-size=\"1105,602\" data-comments-opened=\"1\" 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=\"stm\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?fit=300%2C163\" data-large-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?fit=525%2C286\" class=\"alignnone size-full wp-image-165\" src=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?resize=525%2C286\" alt=\"stm\" width=\"525\" height=\"286\" srcset=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?w=1105 1105w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?resize=300%2C163 300w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?resize=768%2C418 768w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/stm.png?resize=1024%2C558 1024w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>You&#8217;ll need some fine gauge wire (30 gauge wire wrap wire worked well), a fine-tipped soldering iron, and a steady hand.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"163\" data-permalink=\"http:\/\/www.blog.jay-greco.com\/wp\/?attachment_id=163\" data-orig-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?fit=1633%2C1433\" data-orig-size=\"1633,1433\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1464361861&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;64&quot;,&quot;shutter_speed&quot;:&quot;0.0333333333333&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"IMG_0593\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?fit=300%2C263\" data-large-file=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?fit=525%2C461\" class=\"alignnone size-full wp-image-163\" src=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?resize=525%2C461\" alt=\"IMG_0593\" width=\"525\" height=\"461\" srcset=\"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?w=1633 1633w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?resize=300%2C263 300w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?resize=768%2C674 768w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?resize=1024%2C899 1024w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?resize=1200%2C1053 1200w, https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/IMG_0593.jpg?w=1575 1575w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Once the solder connection is made, don&#8217;t hesitate to dump some hot glue onto the connection to keep it from being broken loose. Once you&#8217;ve got the connection to PA12, solder one end of the\u00a0100\u03a9 resistor to the PA12 wire, and the other to the base of the BJT. Solder the positive lead of your buzzer to the flight controller&#8217;s 5V input, and the negative lead of the buzzer to the collector of the BJT. Finally, solder the emitter of the BJT to ground. Be sure to wrap everything in heatshrink or tape so that you don&#8217;t accidentally short anything out.<\/p>\n<p>That&#8217;s all there is to it! Just plug in a battery without turning on the transmitter and the FC should issue the &#8220;no connection&#8221; beep if everything worked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My buddy just bought an Illuminati32 FC board from Hobbyking for his new ZMR180 miniquad. The board is pretty sweet: Naze32, MWOSD, 35x35mm form factor, and only 20 bucks (on sale). It was really easy to set up, especially with the ZMR180 PDB that Diatone is shipping.\u00a0The biggest problem is that\u00a0there&#8217;s no buzzer output! A &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.blog.jay-greco.com\/wp\/?p=158\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Adding a buzzer beeper to the Illuminati32\/Tarot Naze 32 Flight Controller&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":160,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[20,1],"tags":[59,54,55,53,58,57,56,50,49,52,51],"class_list":["post-158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electrical-engineering","category-uncategorized","tag-baseflight","tag-beeper","tag-bjt","tag-buzzer","tag-cleanflight","tag-drone","tag-engineering","tag-illuminati-32","tag-illuminati32","tag-naze-32","tag-naze32"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.blog.jay-greco.com\/wp\/wp-content\/uploads\/2016\/05\/84790_2_High.jpg?fit=565%2C414","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p755Zm-2y","jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/158"}],"collection":[{"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":4,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":167,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions\/167"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=\/wp\/v2\/media\/160"}],"wp:attachment":[{"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blog.jay-greco.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}