User Tools

Site Tools


adding_a_buzzer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
adding_a_buzzer [2016/10/14 12:47]
lostmyquad [Building your own using]
adding_a_buzzer [2017/04/21 22:15] (current)
jonnyphenomenon [Building your own using]
Line 13: Line 13:
 </code> </code>
  
-There are 3 other defines related to the buzzer functionality +There are 3 other defines related to the buzzer functionality found in ''hardware.h''
 <code> <code>
 //#define BUZZER_PIN       GPIO_PIN_13 // SWDAT //#define BUZZER_PIN       GPIO_PIN_13 // SWDAT
Line 27: Line 26:
  
 **Note:** the value you choose for the ''BUZZER_PIN'' will define how you'll connect your buzzer to the quad. The current options allow you to choose between either the ''SWCLK'' or the ''SWDAT'' port for the signal connection. (this will become more clear once you're becoming familiar with the hardware and wiring explained below). **Note:** the value you choose for the ''BUZZER_PIN'' will define how you'll connect your buzzer to the quad. The current options allow you to choose between either the ''SWCLK'' or the ''SWDAT'' port for the signal connection. (this will become more clear once you're becoming familiar with the hardware and wiring explained below).
 +
 +
 ===== Hardware ===== ===== Hardware =====
  
Line 53: Line 54:
 The diagram below shows the location of the three components you need to salvage. This example shows the location inside a Flourean H101 TX. Click on the image for a larger version to see detail. The diagram below shows the location of the three components you need to salvage. This example shows the location inside a Flourean H101 TX. Click on the image for a larger version to see detail.
  
-{{:h101-tx-salvage-parts-locations.jpg?direct&400x300}}+{{:h101-tx-salvage-parts-locations.jpg?direct&400x300|h101-tx-salvage-parts-locations.jpg}}
  
 === Assembly === === Assembly ===
Line 61: Line 62:
 The finished item we're describing here will look something like: The finished item we're describing here will look something like:
  
-{{:salvaged_parts_buzzer.jpg?direct&400x400}}+{{:salvaged_parts_buzzer.jpg?direct&400x400|salvaged_parts_buzzer.jpg}}
  
 == Overview == == Overview ==
Line 73: Line 74:
 == Circuit diagram == == Circuit diagram ==
  
-[add circuit diagram here]+{{:buzzer1.jpg?direct&|When the signal from BUZZER_PIN is sent to the Base pin of the transistor, power from BAT+ is allowed to flow through the speaker(+ to -) into the transistors Collector pin and out of the Emitter to GND.}} 
 + 
 +{{:buzzer2.jpg?direct&|The signal line for BUZZER_PIN is defined in config.h and can be either SWCLK or SWDAT depending on your setup.  Note that H8 Blue boards have their CLK and DAT pins reversed.}}
  
 \\ \\
adding_a_buzzer.1476442060.txt.gz · Last modified: 2016/10/14 12:47 by lostmyquad