A kind of U.S. sound buzzer circuit
Technical field
The utility model relates to the buzzer circuit field, more specifically, relates to a kind of circuit that adopts the U.S. sound hummer of Single-chip Controlling.
Background technology
Hummer, it mainly plays prompting, alarm function, extensively uses in various small household appliances.Common buzzer circuit, buzzer only have a kind of frequency, and are not fade-in gradually, sound is more stiff, sound melodious not, in some expensive goods, requirement can be sent musical sound, or melodious ding-dong sound, derives thus U.S. sound buzzer circuit this branch.
U.S. sound is by the square wave to the hummer different frequency, makes hummer send different sound, and it is combined, and by the discharge of electric capacity, reaches the purpose that sound fades out.
Summary of the invention
The purpose of this utility model is to provide a kind of U.S. sound buzzer circuit simple in structure, with low cost.
The purpose of this utility model can reach by the following technical programs:
A kind of U.S. sound buzzer circuit comprises processor and hummer BUZ1, also comprises: low frequency driving circuit and high frequency drive circuit; The I/O mouth of described processor is connected with high frequency drive circuit by the low frequency driving circuit, and the PWM delivery outlet of processor connects high frequency drive circuit, the output termination hummer BUZ1 of high frequency drive circuit.
Wherein said processor is single-chip microcomputer.
Further, described low frequency driving circuit comprises resistance R 1, R3, R4, R5, triode Q1, Q2 and capacitor C 1, the I/O mouth of described single-chip microcomputer is connected to the base stage of triode Q2 by resistance R 1, the collector of Q2 is connected to the base stage of triode Q1 by resistance R 3, the emitter of Q1 is connected to+the 12V DC voltage, the collector of Q1 is connected to the positive pole of capacitor C 1 by resistance R 4, the negative pole of capacitor C 1 is connected to the emitter of triode Q2, and being connected to GND, the Q1 collector is connected to high frequency drive circuit by resistance R 5.Wherein the I/O mouth of single-chip microcomputer is common I/O mouth, requires to recommend output function.
Further, described high frequency drive circuit comprises resistance R 2, R6 and triode Q3, the PWM delivery outlet of single-chip microcomputer is connected to the base stage of triode Q3 by resistance R 2, hummer BUZ1 and resistance R 6 parallel connections, one end is connected to the collector of Q3, the other end is connected to resistance R 5, and the emitter of Q3 is linked GND.
Further, described triode Q2, Q3 are NPN type triode, and described triode Q1 is the positive-negative-positive triode, and described hummer BUZ1 is the separate excitation piezo buzzer, and described capacitor C 1 is electrochemical capacitor.The PWM mouth is the PWM delivery outlet of single-chip microcomputer, requires the square wave frequency of output adjustable, and described hummer BUZ1 is the separated exciting piezo buzzer, requires to have wider frequency range.
Compared with prior art, the beneficial effects of the utility model:
1, the utility model circuit is simple, and is with low cost.
2, the utility model can easily by the adjusting of software and hardware, be regulated the parameters such as tone.
Description of drawings
Fig. 1 is structural representation of the present utility model.
Fig. 2 is circuit theory diagrams of the present utility model.
Embodiment
Below in conjunction with accompanying drawing, the utility model is further described, but embodiment of the present utility model is not limited to this.
As shown in Figure 1, a kind of U.S. sound buzzer circuit comprises single-chip microcomputer, hummer BUZ1, low frequency driving circuit 1 and high frequency drive circuit 2; The I/O mouth of single-chip microcomputer is connected with high frequency drive circuit 2 by low frequency driving circuit 1, and the PWM delivery outlet of single-chip microcomputer connects high frequency drive circuit 2, the output termination hummer BUZ1 of high frequency drive circuit 2.
As shown in Figure 2, low frequency driving circuit 1 comprises resistance R 1, R3, R4, R5, triode Q1, Q2 and capacitor C 1, the I/O mouth of described single-chip microcomputer is connected to the base stage of triode Q2 by resistance R 1, the collector of Q2 is connected to the base stage of triode Q1 by resistance R 3, the emitter of Q1 is connected to+the 12V DC voltage, the collector of Q1 is connected to the positive pole of capacitor C 1 by resistance R 4, the negative pole of capacitor C 1 is connected to the emitter of triode Q2, and being connected to GND, the Q1 collector is connected to high frequency drive circuit 2 by resistance R 5.
High frequency drive circuit 2 comprises resistance R 2, R6 and triode Q3, the PWM delivery outlet of single-chip microcomputer is connected to the base stage of triode Q3 by resistance R 2, hummer BUZ1 and resistance R 6 parallel connections, and an end is connected to the collector of Q3, the other end is connected to resistance R 5, and the emitter of Q3 is linked GND.
Wherein triode Q2, Q3 are NPN type triode, and triode Q1 is the positive-negative-positive triode, and described hummer BUZ1 is the separate excitation piezo buzzer, and capacitor C 1 is electrochemical capacitor.
The principle of work of the present embodiment:
With reference to Fig. 1,2, when BUZL output high level, triode Q2 conducting, the base stage of triode Q1 drags down, the Q1 conducting, this moment, C1 began charging, and the collector voltage-to-ground of Q1 is 12V, and this moment is at the square wave of BUZH port output corresponding frequencies, the continuous conducting of Q3 is turn-offed, collector forming frequency at Q3 is identical, the square wave that phase place and BUZH are opposite, and hummer BUZ1 begins buzzing.When the BUZL output low level, triode Q2 turn-offs, Q1 also turn-offs, this moment is because BUZH is also exporting square wave, and the voltage of C1 is 12V, and C1 discharges over the ground by R4, R5, R6, and this moment, the sound of hummer can reduce gradually along with the decline of C1 voltage, produce the sound of a diminuendo, U.S. sound comes therefrom.The length of opening turn-off time control buzzing sound of BUZL, the frequency of BUZH is controlled the scale of sound, can regulate in the program the inside.The size of the size of capacitor C 1 and resistance R 4, R5, R6 is being controlled the time of discharge, the namely duration of last or end syllable.
Above-described embodiment of the present utility model does not consist of the restriction to the utility model protection domain.Any modification of having done within spiritual principles of the present utility model, be equal to and replace and improvement etc., within all should being included in claim protection domain of the present utility model.