9. case 07 buzzer

9.1. Introduction


  • The buzzer is a kind of integrated electroic sounder which be widely used in computers, printers, photocopiers, announciators, electronic toys, automotive electronics, telephones and timers. In this case, we are going to use the micro:bit driving the buzzer to make it voice in different frequency, just like an alarm song.

9.2. Hardware Connect


../../_images/4EceRG6.png

  • Connect circuit as above picture and put 2 AAA batteries into batteries pack.

9.3. Principles of Circuits


../../_images/kl4b2QE.png

  • The GND of slot on micro:bit is into innards of batteries’ GND to generate current loop.

  • P0 port of the micro:bit outputs a square wave, and it be amplified when it through the audion to drive the buzzer.

9.4. Introduction of Components


Buzzer

  • The buzzer a kind of voice device which consists of vibration device and resonance device. Sorting it by control method, the buzzer contains active and passive.

  • Principle of active:The buzzer has integrated vibration system and sampling amplifier circuit. It generates voice when DC electrical source is getting through it. You can refer the picture as below:

../../_images/spNnKiB1.jpg

  • Principle of passive:Turn the square signal to voice.You can refer the picture as below:

../../_images/kNHyjjl1.jpg

  • The experiment box included a passive buzzer.

../../_images/xyNlKjk.jpg

Mos Tube###

  • Audion is a semiconductor device to control the current. It is used to amplify the feeble signal to electronic signal with large amplitudes. The buzzer will in a feeble voice when it directly received PWM signal by micro:bit. This is because the currents of I/O port is usually weak which can’t directly drive buzzer. Now we need a transistor to amplify the currents of PMW signal for buzzer can alarm properly.

  • The experiment box included a mos tube.

../../_images/NnmYwRp.jpg

- Note: Please note the positive and the negative when you are connecting.

9.5. Software


Step 1

../../_images/t34k5Zb.png

Step 2

../../_images/vyb4j8a.png

  • Snap the ring tone block and pause block into the forever in order to play the GRE sound.

Program

---

9.6. Result


  • The buzzer emits diffrent voices just like a alarm sound.

9.7. Think


9.8. Questions


9.9. More Informations