10. case 07 buzzer#

10.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.

10.3. Hardware Connect#

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

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

10.4. 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.

10.5. 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.

10.6. Software#

Step 1#

Click makecode https://makecode.microbit.org/#

Click on “New Project” and set a new Project.

../../_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#

Program link:https://makecode.microbit.org/_VdrFjUVzHgA1

You also could directly download program by visiting website as below:

10.7. Result#

The buzzer emits diffrent voices just like a alarm sound.

10.8. Think#

10.9. Questions#

10.10. More Informations#