WO2019051815A1 - Control circuit for buzzer, and buzzer - Google Patents

Control circuit for buzzer, and buzzer Download PDF

Info

Publication number
WO2019051815A1
WO2019051815A1 PCT/CN2017/101968 CN2017101968W WO2019051815A1 WO 2019051815 A1 WO2019051815 A1 WO 2019051815A1 CN 2017101968 W CN2017101968 W CN 2017101968W WO 2019051815 A1 WO2019051815 A1 WO 2019051815A1
Authority
WO
WIPO (PCT)
Prior art keywords
resistor
buzzer
transistor
supply voltage
control signal
Prior art date
Application number
PCT/CN2017/101968
Other languages
French (fr)
Chinese (zh)
Inventor
刘光林
吴志明
沈礼胜
Original Assignee
深圳和而泰智能控制股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳和而泰智能控制股份有限公司 filed Critical 深圳和而泰智能控制股份有限公司
Priority to PCT/CN2017/101968 priority Critical patent/WO2019051815A1/en
Priority to CN201780008994.3A priority patent/CN108780636A/en
Publication of WO2019051815A1 publication Critical patent/WO2019051815A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K9/00Devices in which sound is produced by vibrating a diaphragm or analogous element, e.g. fog horns, vehicle hooters or buzzers
    • G10K9/12Devices in which sound is produced by vibrating a diaphragm or analogous element, e.g. fog horns, vehicle hooters or buzzers electrically operated
    • G10K9/122Devices in which sound is produced by vibrating a diaphragm or analogous element, e.g. fog horns, vehicle hooters or buzzers electrically operated using piezoelectric driving means

Definitions

  • the present application relates to the field of signal control technologies, and in particular, to a buzzer control circuit and a buzzer.
  • the buzzer is a commonly used device that is widely used in various household appliances to provide reminders in human-computer interaction, such as button operation response, function completion reminder, function start reminder, etc. .
  • the buzzer that can be provided has only one frequency, and the sound of the buzzer does not gradually fade out, the sound is relatively stiff, and it sounds unsatisfactory.
  • the buzzer is required to emit a musical sound, or a pleasant hum, thereby deriving the branch of the beautiful buzzer circuit.
  • the inventors have found that the related art has the following problems: in the above technical solution for realizing the effect of the sound, it is necessary to select a high-quality discharge electrolytic capacitor, and the capacitance will decrease as the use time elapses, resulting in a discharge time. Variety. Moreover, by means of capacitor discharge, the discharge time is fixed, and the time of the American sound cannot be adjusted.
  • the technical problem to be solved by the embodiment of the present application is to provide a buzzer control circuit and a buzzer, which can solve the problem that the effect of the US sound is poor in the prior art and is affected by the capacitance capacity attenuation.
  • the control circuit includes: a first input for inputting a first PWM control signal; a first PWM control signal input, a voltage adjustment circuit for adjusting a supply voltage of the buzzer;
  • the voltage adjustment circuit has a first supply voltage connection end connected to the first port of the buzzer and a second supply voltage connection end connected to the second port of the buzzer;
  • a second input terminal for inputting a second PWM control signal
  • an alternate control unit coupled to the first supply voltage connection terminal and the second supply voltage connection terminal; the alternate control unit according to the second PWM control signal The level changes to change the direction of the current flowing through the buzzer.
  • the voltage adjustment circuit includes: at least one operational amplifier; the operational amplifier outputs a corresponding supply voltage of the buzzer at an output thereof according to the first PWM control signal input to the forward input terminal thereof; An output of the operational amplifier is coupled to the first supply voltage connection and the second supply voltage connection.
  • the voltage adjustment circuit includes: the voltage adjustment circuit includes: a thirteenth resistor, a fourteenth resistor, a second capacitor, a fifteenth resistor, a sixteenth resistor, a seventeenth resistor, and an operational amplifier;
  • the first input terminal inputting the first PWM control signal is connected to one end of the sixteenth resistor, the other end of the sixteenth resistor is grounded through the thirteenth resistor, and the seventh input resistor is connected to the positive input terminal of the operational amplifier
  • the inverting input of the operational amplifier is grounded through a fourteenth resistor, and is also connected to the output of the operational amplifier through a fifteenth resistor.
  • the voltage adjustment circuit includes: an adjustment unit that outputs a corresponding control current according to the input first PWM control signal, where the control current changes according to a duty ratio change of the first PWM control signal; A signal amplifying unit that controls the current and adjusts the supply voltage of the buzzer.
  • the adjusting unit includes: a switch circuit that is turned on when the first PWM control signal is at a high level, and is turned off when the first PWM control signal is at a low level;
  • control circuit further includes: a DC power supply that provides an operating voltage of the control circuit.
  • the switch circuit includes: a first triode, a second triode, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor;
  • the first input terminal is connected to the base of the first triode through a second resistor, and is further connected Passing through a third resistor; the collector of the first transistor is connected to the base of the second transistor through a fifth resistor, and is further connected to the anode of the DC power source through a fourth resistor; The emitter of the pole tube is connected to the anode of the DC power source, and the collector of the second transistor is grounded through a sixth resistor and forms an output of the switching circuit.
  • the switch circuit includes: a sixth triode, a seventh triode, an eighth triode, a second resistor, a third resistor, and a fourth resistor;
  • a first input terminal inputting the first PWM control signal is connected to a base of the sixth transistor through a second resistor, and is also grounded through a third resistor; a collector of the sixth transistor and a seventh three-pole a base connection of the tube is further connected to the anode of the DC power source through a fourth resistor; a collector of the seventh transistor is connected to an anode of the DC power source, and an emitter of the seventh transistor An emitter of the eighth triode is connected and forms an output end of the switching circuit;
  • the base of the eighth transistor is also connected to the base of the seventh transistor, and the collector of the eighth transistor is grounded.
  • one end of the first resistor is connected to an output end of the switch circuit, and the other end of the first resistor is grounded through a first capacitor; a connection end of the first capacitor and the first resistor forms the control current Output.
  • the signal amplifying unit includes: a third triode and a seventh resistor;
  • the base of the third transistor is connected to the output end of the control current, and is also grounded through a seventh resistor; the collector of the third transistor is connected to the anode of the DC power source; The emitter voltage of the triode is the supply voltage of the buzzer.
  • an emitter of the third transistor of the signal amplifying unit is connected to the first supply voltage connection end and the second supply voltage connection end.
  • the alternate control unit includes: a first ground loop that is alternately turned on and off, and a second ground loop;
  • the first ground loop is connected to the first supply voltage connection end; the second ground loop is connected to the second supply voltage connection end;
  • the alternate control unit includes: a fourth triode, a fifth triode, an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, and a twelfth resistor;
  • the second input end is connected to one end of the eighth resistor, the other end of the eighth resistor is grounded through a ninth resistor, and is also connected to a base of the fourth triode; the fourth transistor is emitted a pole is grounded, a collector of the fourth triode is connected to a base of the fifth triode through a twelfth resistor, and an emitter of the fifth triode is grounded;
  • the collector of the fourth transistor is connected to the first supply voltage connection terminal through a tenth resistor, and is also connected to the first port of the buzzer;
  • the collector of the fifth transistor is connected to the second supply voltage connection through an eleventh resistor, and is also connected to the second port of the buzzer.
  • the buzzer includes: a sounding device, a PWM signal generating device, and a buzzer control circuit as described above; the PWM signal generating device is connected to the buzzer control circuit, and outputs a predetermined PWM control signal to the bee a buzzer control circuit connected to the sounding device to output a corresponding voltage signal to the sounding device.
  • the control circuit provided in the embodiment of the present application controls the supply voltage of the buzzer through the PWM control signal, thereby realizing a beautiful sound effect such as volume adjustment and volume gradation.
  • the control circuit does not need to use electrolytic capacitors, and the effects of the melody time and the fade or gradation of the volume can be controlled by the PWM control signal, and the adjustment range is flexible.
  • the positive and negative alternate control of the buzzer is performed based on the PWM control signal, which can have a better sound effect than the general semi-positive wave control.
  • FIG. 1 is a functional block diagram of a buzzer control circuit according to an embodiment of the present application.
  • FIG. 2 is a functional block diagram of a buzzer control circuit according to another embodiment of the present application.
  • FIG. 3 is a circuit schematic diagram of a buzzer control circuit according to an embodiment of the present application.
  • FIG. 4 is a circuit schematic diagram of a buzzer control circuit according to another embodiment of the present application.
  • FIG. 5 is a schematic circuit diagram of a voltage adjustment circuit according to an embodiment of the present application.
  • FIG. 6 is a schematic circuit diagram of an alternate control unit according to an embodiment of the present application.
  • the buzzer control circuit of the embodiment of the present application can be applied to various suitable types of buzzers, such as a patch buzzer, a pin buzzer or a piezoelectric buzzer.
  • the embodiment of the present application may also be used in combination with a PWM signal generating device that provides a PWM (Pulse Width Modulation) control signal.
  • the PWM signal generating means may be any suitable electronic computing device, such as a microcontroller or other device, to provide a specific PWM control signal to the buzzer control circuit of the embodiment of the present application.
  • the PWM signal generating device can be connected to the buzzer control circuit provided by the embodiment of the present application by a suitable communication method to provide a corresponding PWM control signal.
  • the PWM output device can also function as a built-in function module of the buzzer control circuit, and a PWM control signal is generated to implement control of the buzzer.
  • additional devices may be additionally added, such as an interaction device that interacts with the user, receives an adjustment command for the PWM control signal, or a suitable wireless communication module, and establishes a communication connection between the different functional units for transmission. Command or control signal or voltage signal.
  • the above equipment can also be reduced according to the actual situation.
  • the PWM control signal is a pulse waveform with a variable duty cycle and an equal amplitude, and a specific control command can be realized by adjusting a duty ratio in a pulse waveform.
  • PWM control signal is a control method suitable for digital control circuit, suitable for electronic computing equipment to perform soft The program is completely adjusted, such as a personal computer or a computer. In the actual use process, the user can conveniently adjust the PWM control signal through a suitable interactive device to realize the control of the buzzer supply voltage. Compared with the American sound formed by using electrolytic capacitors, the PWM control signal can more flexibly control the sound effect and is not affected by the capacity of the electrolytic capacitor.
  • the buzzer control circuit provided in the embodiment of the present application may be integrated into some buzzer, such as a passive buzzer, and the passive buzzer is used as a receiving voltage signal to emit a corresponding sound.
  • the control circuit provides a voltage signal having a specific waveform thereto according to the input first and/or second PWM control signals.
  • a buzzer can conveniently control the input first and/or second PWM control signals through software to control the waveform of the output voltage signal, thereby realizing the effect of the beautiful sound, such as the buzzer volume change, the buzzer sound. The gradual and progressive effect.
  • FIG. 1 is a functional block diagram of a buzzer control circuit according to an embodiment of the present application.
  • the signal input side of the buzzer control circuit is a first input terminal 11 and receives a first PWM control signal. After the received first PWM control signal is processed, a buzzer supply voltage V supply capable of following the change of the first PWM control signal is outputted on the signal output side of the buzzer control circuit.
  • the volume of the buzzer (such as the piezoelectric buzzer) will change accordingly. That is, when the supply voltage is high, a higher volume is emitted. When the supply voltage is low, the volume is reduced.
  • an adjustment unit 100 for outputting a control current according to the first PWM control signal and a signal amplifying unit 200 are included.
  • the adjusting unit 100 may output a corresponding control current according to a change in the duty ratio, that is, a control current that follows a duty cycle change.
  • a control current that follows a duty cycle change.
  • the control current outputted in the adjustment unit 100 is a signal having a small amount of change. Therefore, during actual use, the control current cannot be directly output to drive the change in the supply voltage.
  • the adjusting unit 100 may specifically adopt any suitable function circuit for converting a duty cycle change into a current change, such as a conversion circuit formed by a combination of a switching circuit composed of a plurality of semiconductor devices and other discrete components; or A chip device that is integrally packaged on a substrate, such as a chip that provides corresponding input and output pins.
  • the signal amplifying unit 200 adjusts the supply voltage according to a change in the control current Amplify the effect of controlling the change in current.
  • the signal amplifying unit 200 can adjust the supply voltage indirectly by the control current, thereby realizing the target of controlling the final supply voltage by the PWM control signal.
  • the signal amplifying unit 200 may specifically adopt any suitable function circuit capable of realizing signal amplification, such as a simple triode, an added bias circuit, an improved triode amplifying circuit, and may be added according to actual conditions. Or delete some discrete components.
  • buzzers typically have two input ports, one of which is the signal input (ie, the supply voltage is applied) and the other end is grounded. As shown in FIG. 1, the first port B1 and the second port B2 are respectively.
  • the output side of the signal amplifying unit 200 may include a first supply voltage connection 21 connected to the first port B1 of the buzzer and a second supply connected to the second port B2 of the buzzer. Voltage connection terminal 22. That is, the supply voltage can be applied to either the first port or the second port; it can be grounded through the first port or grounded through the second port to change the direction of the current flowing through the buzzer. .
  • the buzzer can be controlled in various suitable ways to make corresponding, variable sounds, such as positive half-wave control to achieve the sound effect; or through the positive between the two ports Negative alternate control, changing the current direction of the buzzer (ie, changing the application port of the supply voltage) to achieve the beautiful sound effect.
  • FIG. 2 is a functional block diagram of a buzzer control circuit according to another embodiment of the present application.
  • an alternate control method based on the PWM control signal is provided.
  • the control circuit in addition to the adjustment unit 100 and the signal amplification unit 200 shown in FIG. 1, the control circuit further includes an alternate control unit 300.
  • the input side of the alternate control unit 300 is a second input 12 that acquires a second PWM control signal.
  • the output side includes two connection ends respectively connected to the first supply voltage connection end and the second supply voltage connection end to realize control of the buzzer current direction.
  • the second PWM control signal and the first PWM control signal may be generated and adjusted by the same device, or may be generated or adjusted by two separate devices.
  • the second PWM control signal is also a pulse signal of equal amplitude and adjustable pulse width.
  • the alternate control unit 300 can be based on the high and low level changes of the second PWM control signal
  • the current direction of the buzzer is controlled (ie, the port to which the supply voltage is applied) is controlled.
  • the second PWM control signal is at a high level
  • the second port is made a ground port, and current flows from the first port.
  • the switching function can be implemented using a plurality of suitable functional circuits or a combination thereof, such as a function circuit based on a switching function of the semiconductor device, an action circuit constructed based on an electromagnetic action mechanism, or the like.
  • the alternating control unit 300 provided by the above embodiment can perform positive and negative alternate control on both ends of the buzzer (ie, change the current direction of the buzzer), and can have better control than the general semi-positive wave control. effect.
  • the buzzer in the process of controlling the sounding of the buzzer, can be controlled by inputting a specific second PWM control signal to form a corresponding sound frequency and adjusting the supply voltage by controlling the input first PWM control signal.
  • the volume of the device the volume can be adjusted to 0, that is, the state of no sound.
  • FIG. 3 is a schematic circuit diagram of an adjustment unit 100 according to an embodiment of the present application.
  • a DC power source V1 for providing a control circuit operating voltage may be included.
  • the operating voltage provided by the DC power source can be determined according to the buzzer used, and is related to the maximum supply voltage of the buzzer.
  • the operating voltage provided by the DC power source is V 1 , and the variable voltage of the supply voltage ranges from 0 to (V 1 -V CE ), and V CE is the voltage drop of the signal amplifying unit.
  • the adjusting unit 100 includes: a first transistor Q1, a second transistor Q2, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, and a fifth resistor R5.
  • the first transistor Q1, the second transistor Q2, the second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 constitute a switching circuit 110.
  • the first input terminal 11 inputting the first PWM control signal is connected to the base of the first transistor Q1 through the second resistor R2, and is also grounded through the third resistor R3.
  • the collector of the first transistor Q1 is connected to the base of the second three-stage tube Q2 through the fifth resistor R5, and is also connected to the anode of the DC power source V1 through the fourth resistor R4.
  • the emitter of the second tertiary tube Q2 is connected to the anode of the DC power source V1, and the collector of the second transistor Q2 is grounded through the sixth resistor R6, and forms an output end of the switch circuit (and The first resistor R1 is connected).
  • the second transistor Q2 is turned on when the first PWM control signal is at a high level, thereby charging the first capacitor C1 through the first resistor R1.
  • FIG. 4 is a schematic circuit diagram of an adjustment unit 100 according to another embodiment of the present application.
  • the adjusting unit 100 includes a sixth transistor Q6, a seventh transistor Q7, an eighth transistor Q8, a first resistor R1, a second resistor R2, and a third resistor R3.
  • the sixth transistor Q6, the seventh transistor Q7, the eighth transistor Q8, the second resistor R2, the third resistor R3, and the fourth resistor R4 constitute a switching circuit 110.
  • a first input terminal of the second resistor R2 and the sixth base of the transistor Q6 is connected, through a third resistor R3 is grounded through.
  • the collector of the sixth transistor Q6 is connected to the base of the seventh transistor Q7, and is also connected to the anode of the DC power source V1 via the fourth resistor R4.
  • the collector of the seventh transistor Q7 is connected to the anode of the DC power source V1, the emitter of the seventh transistor Q7 is connected to the emitter of the eighth transistor Q8, and the switching circuit is formed.
  • Output (connected to the first resistor R1).
  • the base of the eighth transistor Q8 is also connected to the base of the seventh transistor Q7, and the collector of the eighth transistor Q8 is grounded.
  • the PNP-type second triode in the switching circuit shown in FIG. 3 is replaced with the NPN-type seventh triode in FIG.
  • the five resistor R5 is replaced by the eighth transistor Q8.
  • the switching circuit 110 shown in FIG. 4 also implements a function similar to that of FIG. 3 (the output control current is changed by changing the voltage of the first capacitor C1).
  • the control current will decrease.
  • the switching circuit 110 shown in FIG. 3 or FIG. 4 can realize the control of the on-time of the switching circuit according to the duty ratio of the PWM control signal, thereby adjusting the voltage on the first capacitor C1.
  • the frequency of the first PWM control signal is related to the first capacitor C1, that is, for a specific capacitance capacity, an excessively low PWM frequency may not be able to satisfy normal use.
  • the capacitance value of the first capacitor C1 is 100 nf
  • the frequency of the PWM is greater than 20 KHz, which satisfies the requirement.
  • other functional circuits similar to the switching circuit shown in FIG. 3 or FIG. 4 may be employed, including a plurality of switching elements that switch between the on or off states as the level of the PWM control signal changes, such as As shown in Figures 3 and 4, one or more of the semiconductor switching elements are equivalently replaced to change the direction of control.
  • discrete components or functional circuits may also be added or subtracted, or replaced, depending on the actual situation.
  • the technical solutions for replacing, adjusting or improving the switching circuit by other commonly used triode connection methods or common switching circuit types are well known to those skilled in the art and can be obtained without creative labor.
  • an output end of the switch circuit is connected to one end of the first resistor R1 .
  • the other end of the first resistor R1 is grounded through a first capacitor C1; the connection end of the first capacitor C1 and the first resistor R1 forms an output end of the control current I control .
  • the second transistor Q2 lengthens the conduction time as the duty ratio of the input first PWM control signal increases.
  • the second transistor Q2 When the second transistor Q2 is turned on, the first capacitor C1 is charged through the first resistor R1; when the second transistor Q2 is turned off, the first capacitor C1 is discharged.
  • the magnitude of the control current I control can be adjusted according to the on-time of the second transistor Q2.
  • the second transistor Q2 of the PNP type is replaced with the seventh transistor Q7 of the NPN type. The conduction and the cutoff between the seventh transistor Q7 and the second tertiary tube Q2 are reversed.
  • the signal amplifying unit 200 is composed of a third transistor Q3 and a seventh resistor R7.
  • the base of the third transistor Q3 is connected to the output terminal of the control current, and is also grounded through the seventh resistor R7. Further, the collector of the third transistor Q3 is connected to the anode of the DC power source V1, and the emitter voltage of the third transistor Q3 is the supply voltage of the buzzer.
  • the emitter voltage of the third transistor Q3 ie, the supply voltage of the buzzer
  • the supply voltage of the buzzer can be adjusted by the signal amplifying unit by the magnitude of the control current.
  • other suitable signal amplifying units capable of driving large current/voltage changes with small current/voltage variations can be used.
  • the resistive discrete components in the circuit can be adjusted, added, subtracted, or replaced as needed.
  • the adjustment unit 100 when the adjustment unit 100 is capable of directly outputting a signal that can be used, as the adjustment unit 100 directly changes according to the duty ratio of the first PWM control signal, the output follows the duty ratio on the output side.
  • the signal amplifying unit 200 can also be reduced by the varying supply voltage.
  • the "voltage adjustment circuit" can be used to indicate that the adjustment unit 100 in the embodiment of the signal amplification unit 200 is reduced to distinguish the adjustment unit 100 in other embodiments.
  • FIG. 5 is a circuit schematic diagram of a voltage adjustment circuit capable of directly outputting a supply voltage following a duty cycle change according to an embodiment of the present application.
  • the voltage adjustment circuit includes: a thirteenth resistor R51, a fourteenth resistor R52, a second capacitor C51, a fifteenth resistor R53, a sixteenth resistor R54, a seventeenth resistor R55, and an operational amplifier. (ie operational amplifier) U1.
  • the first input terminal 11 of the first PWM control signal is connected to one end of the sixteenth resistor R54, the other end of the sixteenth resistor R54 is grounded through the thirteenth resistor R51, and the seventeenth resistor R55 and the operational amplifier are also passed.
  • the positive input of U1 is connected.
  • the inverting input terminal of the operational amplifier U1 is grounded through the fourteenth resistor R52, and is also connected to the output end of the operational amplifier U1 through the fifteenth resistor R53.
  • the output end of the operational amplifier U1 forms the signal output side, and the output The supply voltage follows the duty cycle change.
  • a circuit structure not including a switching element is employed, and the op amp is directly amplified according to a change in the duty ratio of the first PWM control signal input from the first input terminal 11, at the output.
  • the terminal forms a supply voltage that varies in accordance with a duty cycle change.
  • the op amp may specifically select a suitable integrated operational amplifier (such as a specific type of integrated operational amplifier chip) or a functional circuit having the same function, which is composed of discrete components.
  • the op amp can be an integrated op amp.
  • FIG. 6 is a schematic circuit diagram of an alternate control unit according to an embodiment of the present application.
  • the alternate control unit is respectively connected to the first port B1 and the second port B2 of the buzzer, and changes the current direction of the buzzer according to the level change of the second PWM control signal. That is, change the grounded buzzer port.
  • the alternate control unit 300 includes: a fourth transistor Q4, a fifth three The transistor Q5, the eighth resistor R8, the ninth resistor R9, the tenth resistor R10, the eleventh resistor R11, and the twelfth resistor R12.
  • the second input terminal 12 is connected to one end of the eighth resistor R8, and inputs a second PWM control signal.
  • the other end of the eighth resistor R8 is grounded through the ninth resistor R9 and also connected to the base of the fourth transistor Q4.
  • the emitter of the fourth transistor Q4 is grounded, and the collector of the fourth transistor Q4 is connected to the base of the fifth transistor Q5 through the twelfth resistor R12, the fifth transistor Q5 The emitter is grounded.
  • the collector of the fourth transistor Q4 is connected to the first supply voltage connection terminal through a tenth resistor R10, and is also connected to the first port B1 of the buzzer; the collector of the fifth transistor Q5 It is connected to the second supply voltage connection terminal through the eleventh resistor R11, and is also connected to the second port B2 of the buzzer.
  • the ground loops of the first port and the second port of the buzzer are provided by the fourth transistor Q4 and the fifth transistor Q5, respectively. Thereby, the direction of the current changing the buzzer can be changed by controlling the operating states (off/on) of the fourth transistor Q4 and the fifth transistor Q5.
  • the fourth transistor Q4 when the second PWM control signal is at a high level, the fourth transistor Q4 is turned on and the fifth transistor Q5 is turned off, the buzzer supply current is passed through the eleventh resistor R11, and the second from the buzzer Port B2 flows into the buzzer and flows out from the first port B1 of the buzzer and through the fourth transistor Q4 to the ground.
  • the second PWM control signal is low, the fourth transistor Q4 is turned off and the fifth transistor Q5 is turned on, and the buzzer is supplied with current through the tenth resistor R10 from the first port B1 of the buzzer. It flows into the buzzer and flows out from the second port B2 through the fifth transistor Q5 to the ground.
  • the circuit can provide two independent ground loops (such as a first ground loop and a second ground loop) for the first port B1 and the second port B2, respectively, and the two ground loops have corresponding components that function as switches.
  • Such switching-acting components are associated with each other, and one of the grounding loops is turned on while the other grounding loop is closed while operating.
  • the on/off condition of the ground loop can be switched.
  • a second PWM control signal corresponding to the desired sound frequency may be input at the second input, and the buzzer may be changed by controlling the duty ratio of the first PWM control signal input at the first input terminal.
  • the volume of the device, or, when it is necessary to form a sound fade-in effect, a second PWM control signal corresponding to the desired sound frequency may be input at the second input terminal, and may be determined according to actual conditions within a certain period of time.
  • a second PWM control signal corresponding to the desired sound frequency may be input, and the duty ratio of the first PWM control signal is linearly reduced to 0 to realize the sound of the buzzer within a certain time. Gradually effect.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Amplifiers (AREA)

Abstract

A control circuit for a buzzer, and a buzzer. The control circuit comprises: a first input end (11) for a first PWM control signal; a voltage adjustment circuit for adjusting a supply voltage of a buzzer according to an inputted first PWM control signal, the voltage adjustment circuit having a first supply voltage connection end (21) connected to a first port (B1) of the buzzer and a second supply voltage connection end (22) connected to a second port (B2) of the buzzer; a second input end (12) for a second PWM control signal; and an alternating control unit (300) connected to the first supply voltage connection end (21) and the second supply voltage connection end (22), the alternating control unit (300) changing the direction of a current flowing through the buzzer according to a change in the level of the second PWM control signal. The sweet sound effect of the control circuit can be controlled by PWM control signals within a flexible range of adjustment; in addition, positive-negative alternating control is further performed on either end of a buzzer based on the PWM control signals to achieve a better sweet sound effect.

Description

蜂鸣器控制电路及蜂鸣器Buzzer control circuit and buzzer 技术领域Technical field
本申请涉及信号控制技术领域,特别是涉及一种蜂鸣器控制电路及蜂鸣器。The present application relates to the field of signal control technologies, and in particular, to a buzzer control circuit and a buzzer.
背景技术Background technique
作为一种人机交流的提醒,蜂鸣器是一种广泛应用于各种家用电器中,在人机交互中起到提醒,例如按键操作响应,功能完成提醒,功能开始提醒等作用的常用设备。As a reminder of human-machine communication, the buzzer is a commonly used device that is widely used in various household appliances to provide reminders in human-computer interaction, such as button operation response, function completion reminder, function start reminder, etc. .
常用的蜂鸣器电路中,能够提供的蜂鸣声只有一种频率,并且蜂鸣器的声响没有渐入渐出,声音比较生硬,听上去不够悦耳。而在一些高档产品中,基于用户的需求,要求蜂鸣器能够发出音乐声,或者是悦耳的叮咚声,由此衍生出美音蜂鸣器电路这一分支。In the commonly used buzzer circuit, the buzzer that can be provided has only one frequency, and the sound of the buzzer does not gradually fade out, the sound is relatively stiff, and it sounds unsatisfactory. In some high-end products, based on the user's needs, the buzzer is required to emit a musical sound, or a pleasant hum, thereby deriving the branch of the beautiful buzzer circuit.
现有多种的方法来实现美音蜂鸣器的目标。其中有一种美音蜂鸣器电路,其通过引入电容,使压电式蜂鸣器的电压不是立即失去而是在一定时间内下降,进而形成蜂鸣器发出余音而且余音音量逐渐变小的效果,能够产生一定的音阶,音质较为优美。There are a variety of methods available to achieve the goal of the American sound buzzer. There is a U.S. buzzer circuit, which introduces a capacitor, so that the voltage of the piezoelectric buzzer is not immediately lost but falls within a certain period of time, thereby forming an effect that the buzzer emits a residual sound and the residual sound volume gradually becomes smaller. Can produce a certain scale, the sound quality is more beautiful.
在实现本申请过程中,发明人发现相关技术存在以下问题:上述实现美音效果的技术方案中,需要选用优质的放电电解电容,随着使用时间的推移,电容量会减小而导致放电时间的变化。而且,采用电容放电的方式,放电的时间是固定的,美音的时间无法调整。In the process of implementing the present application, the inventors have found that the related art has the following problems: in the above technical solution for realizing the effect of the sound, it is necessary to select a high-quality discharge electrolytic capacitor, and the capacitance will decrease as the use time elapses, resulting in a discharge time. Variety. Moreover, by means of capacitor discharge, the discharge time is fixed, and the time of the American sound cannot be adjusted.
发明内容Summary of the invention
本申请实施例主要解决的技术问题是提供一种蜂鸣器控制电路及蜂鸣器,能够解决现有技术中美音效果不佳,受电容容量衰减影响的问题。The technical problem to be solved by the embodiment of the present application is to provide a buzzer control circuit and a buzzer, which can solve the problem that the effect of the US sound is poor in the prior art and is affected by the capacitance capacity attenuation.
为解决上述技术问题,本申请的一些实施例提供一种蜂鸣器控制电路。该控制电路包括:用于输入第一PWM控制信号的第一输入端;根据 输入的第一PWM控制信号,调整蜂鸣器的供给电压的电压调整电路;In order to solve the above technical problems, some embodiments of the present application provide a buzzer control circuit. The control circuit includes: a first input for inputting a first PWM control signal; a first PWM control signal input, a voltage adjustment circuit for adjusting a supply voltage of the buzzer;
所述电压调整电路具有与蜂鸣器的第一端口连接的第一供给电压连接端以及与蜂鸣器的第二端口连接的第二供给电压连接端;The voltage adjustment circuit has a first supply voltage connection end connected to the first port of the buzzer and a second supply voltage connection end connected to the second port of the buzzer;
用于输入第二PWM控制信号的第二输入端;与所述第一供给电压连接端以及第二供给电压连接端连接的交替控制单元;所述交替控制单元根据所述第二PWM控制信号的电平变化,改变流经蜂鸣器的电流方向。a second input terminal for inputting a second PWM control signal; an alternate control unit coupled to the first supply voltage connection terminal and the second supply voltage connection terminal; the alternate control unit according to the second PWM control signal The level changes to change the direction of the current flowing through the buzzer.
可选地,所述电压调整电路包括:至少一个运算放大器;所述运算放大器根据其正向输入端输入的第一PWM控制信号,在其输出端输出对应的蜂鸣器的供给电压;所述运算放大器的输出端连接所述第一供给电压连接端以及第二供给电压连接端。Optionally, the voltage adjustment circuit includes: at least one operational amplifier; the operational amplifier outputs a corresponding supply voltage of the buzzer at an output thereof according to the first PWM control signal input to the forward input terminal thereof; An output of the operational amplifier is coupled to the first supply voltage connection and the second supply voltage connection.
可选地,所述电压调整电路包括:所述电压调整电路包括:第十三电阻、第十四电阻、第二电容、第十五电阻、第十六电阻、第十七电阻以及运算放大器;输入第一PWM控制信号的第一输入端与第十六电阻的一端连接,第十六电阻的另一端通过所述第十三电阻接地,还通过第十七电阻与运算放大器的正向输入端连接;所述运算放大器的反向输入端通过第十四电阻接地,还通过第十五电阻与运算放大器的输出端连接。Optionally, the voltage adjustment circuit includes: the voltage adjustment circuit includes: a thirteenth resistor, a fourteenth resistor, a second capacitor, a fifteenth resistor, a sixteenth resistor, a seventeenth resistor, and an operational amplifier; The first input terminal inputting the first PWM control signal is connected to one end of the sixteenth resistor, the other end of the sixteenth resistor is grounded through the thirteenth resistor, and the seventh input resistor is connected to the positive input terminal of the operational amplifier The inverting input of the operational amplifier is grounded through a fourteenth resistor, and is also connected to the output of the operational amplifier through a fifteenth resistor.
可选地,所述电压调整电路包括:根据输入的第一PWM控制信号,输出对应的控制电流的调整单元,所述控制电流跟随第一PWM控制信号的占空比改变而变化;以及根据所述控制电流,调整蜂鸣器的供给电压的信号放大单元。Optionally, the voltage adjustment circuit includes: an adjustment unit that outputs a corresponding control current according to the input first PWM control signal, where the control current changes according to a duty ratio change of the first PWM control signal; A signal amplifying unit that controls the current and adjusts the supply voltage of the buzzer.
可选地,所述调整单元包括:在所述第一PWM控制信号为高电平时导通,第一PWM控制信号为低电平时截止的开关电路;Optionally, the adjusting unit includes: a switch circuit that is turned on when the first PWM control signal is at a high level, and is turned off when the first PWM control signal is at a low level;
与所述开关电路的输出端连接的第一电阻;以及a first resistor coupled to an output of the switching circuit;
在所述开关电路导通时,通过所述第一电阻充电的第一电容,其中,所述第一电容上的电压决定所述控制电流。And a first capacitor charged by the first resistor when the switch circuit is turned on, wherein a voltage on the first capacitor determines the control current.
可选地,所述控制电路还包括:提供控制电路工作电压的直流电源。Optionally, the control circuit further includes: a DC power supply that provides an operating voltage of the control circuit.
可选地,所述开关电路包括:第一三极管、第二三极管、第二电阻、第三电阻、第四电阻、第五电阻以及第六电阻;Optionally, the switch circuit includes: a first triode, a second triode, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor;
所述第一输入端通过第二电阻与所述第一三极管的基极连接,还通 过第三电阻接地;所述第一三极管的集电极通过第五电阻与第二三极管的基极连接,还通过第四电阻与所述直流电源的正极连接;所述第二三极管的发射极与所述直流电源的正极连接,所述第二三极管的集电极通过第六电阻接地,并形成所述开关电路的输出端。The first input terminal is connected to the base of the first triode through a second resistor, and is further connected Passing through a third resistor; the collector of the first transistor is connected to the base of the second transistor through a fifth resistor, and is further connected to the anode of the DC power source through a fourth resistor; The emitter of the pole tube is connected to the anode of the DC power source, and the collector of the second transistor is grounded through a sixth resistor and forms an output of the switching circuit.
可选地,所述开关电路包括:第六三极管、第七三极管、第八三极管、第二电阻、第三电阻、第四电阻;Optionally, the switch circuit includes: a sixth triode, a seventh triode, an eighth triode, a second resistor, a third resistor, and a fourth resistor;
输入第一PWM控制信号的第一输入端通过第二电阻与所述第六三极管的基极连接,还通过第三电阻接地;所述第六三极管的集电极与第七三极管的基极连接,还通过第四电阻与所述直流电源的正极连接;所述第七三极管的集电极与所述直流电源的正极连接,所述第七三极管的发射极与第八三极管的发射极连接,并形成所述开关电路的输出端;a first input terminal inputting the first PWM control signal is connected to a base of the sixth transistor through a second resistor, and is also grounded through a third resistor; a collector of the sixth transistor and a seventh three-pole a base connection of the tube is further connected to the anode of the DC power source through a fourth resistor; a collector of the seventh transistor is connected to an anode of the DC power source, and an emitter of the seventh transistor An emitter of the eighth triode is connected and forms an output end of the switching circuit;
所述第八三极管的基极还与所述第七三极管的基极连接,所述第八三极管的集电极接地。The base of the eighth transistor is also connected to the base of the seventh transistor, and the collector of the eighth transistor is grounded.
可选地,所述第一电阻一端与所述开关电路的输出端连接,第一电阻的另一端通过第一电容接地;所述第一电容与第一电阻的连接端形成所述控制电流的输出端。Optionally, one end of the first resistor is connected to an output end of the switch circuit, and the other end of the first resistor is grounded through a first capacitor; a connection end of the first capacitor and the first resistor forms the control current Output.
可选地,所述信号放大单元包括:第三三极管以及第七电阻;Optionally, the signal amplifying unit includes: a third triode and a seventh resistor;
所述第三三极管的基极与所述控制电流的输出端连接,还通过第七电阻接地;所述第三三极管的集电极与所述直流电源的正极连接;所述第三三极管的发射极电压为蜂鸣器的供给电压。The base of the third transistor is connected to the output end of the control current, and is also grounded through a seventh resistor; the collector of the third transistor is connected to the anode of the DC power source; The emitter voltage of the triode is the supply voltage of the buzzer.
可选地,所述信号放大单元的第三三极管的发射极连接所述第一供给电压连接端以及第二供给电压连接端。Optionally, an emitter of the third transistor of the signal amplifying unit is connected to the first supply voltage connection end and the second supply voltage connection end.
可选地,所述交替控制单元包括:交替导通和截止的第一接地回路以及第二接地回路;Optionally, the alternate control unit includes: a first ground loop that is alternately turned on and off, and a second ground loop;
所述第一接地回路与所述第一供给电压连接端连接;所述第二接地回路与所述第二供给电压连接端连接;The first ground loop is connected to the first supply voltage connection end; the second ground loop is connected to the second supply voltage connection end;
在所述第二PWM控制信号为高电平时,第一接地回路导通并且第二接地回路截止,所述供给电压施加在蜂鸣器的第一端口;When the second PWM control signal is at a high level, the first ground loop is turned on and the second ground loop is turned off, and the supply voltage is applied to the first port of the buzzer;
在所述第二PWM控制信号为低电平时,第一接地回路截止并且第二 接地回路导通,所述供给电压施加在蜂鸣器的第二端口。When the second PWM control signal is low, the first ground loop is turned off and the second The ground loop is turned on and the supply voltage is applied to the second port of the buzzer.
可选地,所述交替控制单元包括:第四三极管、第五三极管、第八电阻、第九电阻、第十电阻、第十一电阻以及第十二电阻;Optionally, the alternate control unit includes: a fourth triode, a fifth triode, an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, and a twelfth resistor;
所述第二输入端与所述第八电阻一端连接,所述第八电阻的另一端通过第九电阻接地,还与第四三极管的基极连接;所述第四三极管的发射极接地,所述第四三极管的集电极通过第十二电阻与第五三极管的基极连接,所述第五三极管的发射极接地;The second input end is connected to one end of the eighth resistor, the other end of the eighth resistor is grounded through a ninth resistor, and is also connected to a base of the fourth triode; the fourth transistor is emitted a pole is grounded, a collector of the fourth triode is connected to a base of the fifth triode through a twelfth resistor, and an emitter of the fifth triode is grounded;
所述第四三极管的集电极通过第十电阻与所述第一供给电压连接端连接,还与蜂鸣器的第一端口连接;The collector of the fourth transistor is connected to the first supply voltage connection terminal through a tenth resistor, and is also connected to the first port of the buzzer;
所述第五三极管的集电极通过第十一电阻与所述第二供给电压连接端连接,还与蜂鸣器的第二端口连接。The collector of the fifth transistor is connected to the second supply voltage connection through an eleventh resistor, and is also connected to the second port of the buzzer.
为解决上述技术问题,本申请又一实施例提供了一种蜂鸣器。该蜂鸣器包括:发声装置、PWM信号生成装置以及如上所述的蜂鸣器控制电路;所述PWM信号生成装置与所述蜂鸣器控制电路连接,输出预定的PWM控制信号至所述蜂鸣器控制电路;所述蜂鸣器控制电路与所述发声装置连接,输出对应的电压信号至所述发声装置。In order to solve the above technical problem, another embodiment of the present application provides a buzzer. The buzzer includes: a sounding device, a PWM signal generating device, and a buzzer control circuit as described above; the PWM signal generating device is connected to the buzzer control circuit, and outputs a predetermined PWM control signal to the bee a buzzer control circuit connected to the sounding device to output a corresponding voltage signal to the sounding device.
本申请实施例中提供的控制电路通过PWM控制信号控制蜂鸣器的供给电压,从而实现音量调整以及音量渐变等美音效果。该控制电路无需使用电解电容,其美音时间以及音量的淡出或者渐变等效果均可以由PWM控制信号进行控制,可调整范围灵活。而且还基于PWM控制信号对蜂鸣器两端进行正负交替控制,与一般的半正波控制相比,能够具有更好的美音效果。The control circuit provided in the embodiment of the present application controls the supply voltage of the buzzer through the PWM control signal, thereby realizing a beautiful sound effect such as volume adjustment and volume gradation. The control circuit does not need to use electrolytic capacitors, and the effects of the melody time and the fade or gradation of the volume can be controlled by the PWM control signal, and the adjustment range is flexible. Moreover, the positive and negative alternate control of the buzzer is performed based on the PWM control signal, which can have a better sound effect than the general semi-positive wave control.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1为本申请实施例提供的蜂鸣器控制电路的功能框图; 1 is a functional block diagram of a buzzer control circuit according to an embodiment of the present application;
图2为本申请另一实施例提供的蜂鸣器控制电路的功能框图;2 is a functional block diagram of a buzzer control circuit according to another embodiment of the present application;
图3为本申请实施例提供的蜂鸣器控制电路的电路原理图;3 is a circuit schematic diagram of a buzzer control circuit according to an embodiment of the present application;
图4为本申请另一实施例提供的蜂鸣器控制电路的电路原理图;4 is a circuit schematic diagram of a buzzer control circuit according to another embodiment of the present application;
图5为本申请实施例提供的电压调整电路的电路原理图;FIG. 5 is a schematic circuit diagram of a voltage adjustment circuit according to an embodiment of the present application;
图6为本申请实施例提供的交替控制单元的电路原理图。FIG. 6 is a schematic circuit diagram of an alternate control unit according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请实施例的蜂鸣器控制电路可以应用于各种合适类型的蜂鸣器,如贴片式蜂鸣器、插针式蜂鸣器或者压电式蜂鸣器等。在实际应用过程中,本申请实施例还可以与提供PWM(Pulse width modulation,脉冲宽度调制)控制信号的PWM信号生成装置配合使用。该PWM信号生成装置可以是任何合适的电子计算设备,如单片机或者其它器件组成的PWM信号发生器,用以提供输出特定的PWM控制信号提供给本申请实施例的蜂鸣器控制电路。The buzzer control circuit of the embodiment of the present application can be applied to various suitable types of buzzers, such as a patch buzzer, a pin buzzer or a piezoelectric buzzer. In an actual application process, the embodiment of the present application may also be used in combination with a PWM signal generating device that provides a PWM (Pulse Width Modulation) control signal. The PWM signal generating means may be any suitable electronic computing device, such as a microcontroller or other device, to provide a specific PWM control signal to the buzzer control circuit of the embodiment of the present application.
该PWM信号生成装置可以作为独立设置的模块,通过合适的通信方式与本申请实施例提供的蜂鸣器控制电路连接,提供相应的PWM控制信号。该PWM输出设备还可以作为蜂鸣器控制电路的内置的功能模块,发生PWM控制信号以实现对蜂鸣器的控制。在一些实施例中,还可以额外增设一些设备,例如与用户进行交互,接收对PWM控制信号的调整指令的交互设备或者合适的无线通信模块,建立不同功能单元之间的通信连接,用以传输指令或者控制信号或者电压信号。上述的设备也可以根据实际情况予以减省。The PWM signal generating device can be connected to the buzzer control circuit provided by the embodiment of the present application by a suitable communication method to provide a corresponding PWM control signal. The PWM output device can also function as a built-in function module of the buzzer control circuit, and a PWM control signal is generated to implement control of the buzzer. In some embodiments, additional devices may be additionally added, such as an interaction device that interacts with the user, receives an adjustment command for the PWM control signal, or a suitable wireless communication module, and establishes a communication connection between the different functional units for transmission. Command or control signal or voltage signal. The above equipment can also be reduced according to the actual situation.
所述PWM控制信号是一种占空比可变、幅值相等的脉冲波形,可以通过调整脉冲波形中的占空比以实现特定的控制指令。PWM控制信号是一种比较适应于数字控制电路的控制方式,适用于电子运算设备执行软 件程序完成调整,如个人电脑、计算机进行控制。在实际使用过程中,用户可以方便的通过合适的交互设备,调节PWM控制信号从而实现对于蜂鸣器供给电压的控制。与使用电解电容形成的美音相比,通过PWM控制信号能够更灵活的控制美音效果并且不受电解电容的容量影响。The PWM control signal is a pulse waveform with a variable duty cycle and an equal amplitude, and a specific control command can be realized by adjusting a duty ratio in a pulse waveform. PWM control signal is a control method suitable for digital control circuit, suitable for electronic computing equipment to perform soft The program is completely adjusted, such as a personal computer or a computer. In the actual use process, the user can conveniently adjust the PWM control signal through a suitable interactive device to realize the control of the buzzer supply voltage. Compared with the American sound formed by using electrolytic capacitors, the PWM control signal can more flexibly control the sound effect and is not affected by the capacity of the electrolytic capacitor.
在一些实施例中,在本申请实施例提供的蜂鸣器控制电路还可以整合在一些蜂鸣器如无源蜂鸣器内部,将无源蜂鸣器作为接收电压信号,发出对应声音的发声装置,并由所述控制电路根据输入的第一和/或第二PWM控制信号向其提供具有特定波形的电压信号。这样的蜂鸣器能够方便的通过软件控制输入的第一和/或第二PWM控制信号,控制输出的电压信号的波形,从而实现美音的效果,如蜂鸣器音量的变化、蜂鸣器声音的渐出和渐入效果。In some embodiments, the buzzer control circuit provided in the embodiment of the present application may be integrated into some buzzer, such as a passive buzzer, and the passive buzzer is used as a receiving voltage signal to emit a corresponding sound. Means, and the control circuit provides a voltage signal having a specific waveform thereto according to the input first and/or second PWM control signals. Such a buzzer can conveniently control the input first and/or second PWM control signals through software to control the waveform of the output voltage signal, thereby realizing the effect of the beautiful sound, such as the buzzer volume change, the buzzer sound. The gradual and progressive effect.
图1为本申请实施例提供的蜂鸣器控制电路的功能框图。如图1所示,该蜂鸣器控制电路的信号输入侧为第一输入端11,接收第一PWM控制信号。接收的第一PWM控制信号经过处理后,在蜂鸣器控制电路的信号输出侧输出能够跟随第一PWM控制信号变化的蜂鸣器供给电压VsupplyFIG. 1 is a functional block diagram of a buzzer control circuit according to an embodiment of the present application. As shown in FIG. 1, the signal input side of the buzzer control circuit is a first input terminal 11 and receives a first PWM control signal. After the received first PWM control signal is processed, a buzzer supply voltage V supply capable of following the change of the first PWM control signal is outputted on the signal output side of the buzzer control circuit.
随着该供给电压的变化,蜂鸣器的音量(如压电式蜂鸣器)将随之发生变化。即在供给电压高时,发出较高的音量。而在供给电压低时,音量随之降低。As the supply voltage changes, the volume of the buzzer (such as the piezoelectric buzzer) will change accordingly. That is, when the supply voltage is high, a higher volume is emitted. When the supply voltage is low, the volume is reduced.
在该蜂鸣器控制电路内部,包括有用于根据第一PWM控制信号,输出控制电流的调整单元100以及信号放大单元200。Inside the buzzer control circuit, an adjustment unit 100 for outputting a control current according to the first PWM control signal and a signal amplifying unit 200 are included.
所述调整单元100可以根据占空比的变化,输出相对应的控制电流,即跟随占空比变化的控制电流。当然,在调整单元100中输出的控制电流是一个变化量较小的信号。因此,在实际使用过程中,无法直接输出该控制电流以驱动供给电压的变化。The adjusting unit 100 may output a corresponding control current according to a change in the duty ratio, that is, a control current that follows a duty cycle change. Of course, the control current outputted in the adjustment unit 100 is a signal having a small amount of change. Therefore, during actual use, the control current cannot be directly output to drive the change in the supply voltage.
该调整单元100具体可以采用现有技术中任何合适的,将占空比变化转换为电流变化的功能电路,如由多个半导体器件组成的开关电路与其它分立元件的结合形成的转换电路;或者整体封装在一个基底上的贴片式器件,如提供相应输入和输出引脚的芯片。The adjusting unit 100 may specifically adopt any suitable function circuit for converting a duty cycle change into a current change, such as a conversion circuit formed by a combination of a switching circuit composed of a plurality of semiconductor devices and other discrete components; or A chip device that is integrally packaged on a substrate, such as a chip that provides corresponding input and output pins.
信号放大单元200根据控制电流的变化以调整所述供给电压,起到 放大控制电流的变化的作用。通过该信号放大单元200可以令控制电流间接的调整供给电压,实现了通过PWM控制信号控制最终供给电压的目标。该信号放大单元200具体可以采用任何合适的,能够实现信号放大的功能电路,如可以是简单的三极管,也可以是增加了偏置电路的,改进的三极管放大电路,还可以根据实际情况,添加或者删减一些分立元件。The signal amplifying unit 200 adjusts the supply voltage according to a change in the control current Amplify the effect of controlling the change in current. The signal amplifying unit 200 can adjust the supply voltage indirectly by the control current, thereby realizing the target of controlling the final supply voltage by the PWM control signal. The signal amplifying unit 200 may specifically adopt any suitable function circuit capable of realizing signal amplification, such as a simple triode, an added bias circuit, an improved triode amplifying circuit, and may be added according to actual conditions. Or delete some discrete components.
惯常的,蜂鸣器一般具有两个输入端口,其中一个为信号输入端(即施加供给电压),另一端接地。如图1所示,分别为第一端口B1以及第二端口B2。Conventionally, buzzers typically have two input ports, one of which is the signal input (ie, the supply voltage is applied) and the other end is grounded. As shown in FIG. 1, the first port B1 and the second port B2 are respectively.
在一些实施例中,所述信号放大单元200的输出侧可以包括与蜂鸣器的第一端口B1连接的第一供给电压连接端21以及与蜂鸣器的第二端口B2连接的第二供给电压连接端22。亦即,该供给电压既可以施加在第一端口上,也可以施加在第二端口上;既可以通过第一端口接地,也可以通过第二端口接地,从而改变流经蜂鸣器的电流方向。实际应用过程中,可以通过多种合适的方式对蜂鸣器进行控制,使其发出对应的,可变的声音,如正半波控制的方式实现美音效果;或者通过两个端口之间的正负交替控制,改变蜂鸣器的电流方向(即改变供给电压的施加端口)来实现美音效果。In some embodiments, the output side of the signal amplifying unit 200 may include a first supply voltage connection 21 connected to the first port B1 of the buzzer and a second supply connected to the second port B2 of the buzzer. Voltage connection terminal 22. That is, the supply voltage can be applied to either the first port or the second port; it can be grounded through the first port or grounded through the second port to change the direction of the current flowing through the buzzer. . In the actual application process, the buzzer can be controlled in various suitable ways to make corresponding, variable sounds, such as positive half-wave control to achieve the sound effect; or through the positive between the two ports Negative alternate control, changing the current direction of the buzzer (ie, changing the application port of the supply voltage) to achieve the beautiful sound effect.
图2为本申请另一实施例提供的蜂鸣器控制电路的功能框图。在本实施例中,提供了基于PWM控制信号的交替控制方式。如图2所示,除图1所示的调整单元100以及信号放大单元200外,该控制电路还包括交替控制单元300。FIG. 2 is a functional block diagram of a buzzer control circuit according to another embodiment of the present application. In the present embodiment, an alternate control method based on the PWM control signal is provided. As shown in FIG. 2, in addition to the adjustment unit 100 and the signal amplification unit 200 shown in FIG. 1, the control circuit further includes an alternate control unit 300.
该交替控制单元300的输入侧为获取第二PWM控制信号的第二输入端12。其输出侧包括两个连接端,分别与所述第一供给电压连接端以及第二供给电压连接端连接,以实现对于蜂鸣器电流方向的控制。The input side of the alternate control unit 300 is a second input 12 that acquires a second PWM control signal. The output side includes two connection ends respectively connected to the first supply voltage connection end and the second supply voltage connection end to realize control of the buzzer current direction.
该第二PWM控制信号与第一PWM控制信号可以由同一个设备生成和调节,也可以由分立的两个设备生成或者调节。同样的,第二PWM控制信号也是一种幅值相等、脉宽可调的脉冲信号。The second PWM control signal and the first PWM control signal may be generated and adjusted by the same device, or may be generated or adjusted by two separate devices. Similarly, the second PWM control signal is also a pulse signal of equal amplitude and adjustable pulse width.
该交替控制单元300能够基于第二PWM控制信号的高低电平变化实 现对于蜂鸣器的电流方向的控制(即控制施加供给电压的端口)。例如,在第二PWM控制信号为高电平时,使第二端口为接地端口,电流从第一端口流入。而在第二PWM控制信号为低电平时,电流从第二端口流入,第一端口变为接地端口。具体可以使用多种合适的功能电路或者其组合来实现该切换功能,如,基于半导体器件的开关作用,构建的功能电路或者基于电磁动作机构实现切换功能的动作电路等。The alternate control unit 300 can be based on the high and low level changes of the second PWM control signal The current direction of the buzzer is controlled (ie, the port to which the supply voltage is applied) is controlled. For example, when the second PWM control signal is at a high level, the second port is made a ground port, and current flows from the first port. When the second PWM control signal is low, current flows from the second port, and the first port becomes a ground port. Specifically, the switching function can be implemented using a plurality of suitable functional circuits or a combination thereof, such as a function circuit based on a switching function of the semiconductor device, an action circuit constructed based on an electromagnetic action mechanism, or the like.
通过上述实施例提供的交替控制单元300对蜂鸣器两端进行正负交替控制(即改变蜂鸣器的电流方向)的方式,与一般的半正波控制相比,能够具有更好的控制效果。The alternating control unit 300 provided by the above embodiment can perform positive and negative alternate control on both ends of the buzzer (ie, change the current direction of the buzzer), and can have better control than the general semi-positive wave control. effect.
在本实施例中,在控制蜂鸣器发声的过程中,可以通过输入特定的第二PWM控制信号以形成相应的声音频率并通过控制输入的第一PWM控制信号,调整供给电压从而控制蜂鸣器的音量,该音量最低可以调整至0,即不发声的状态。In this embodiment, in the process of controlling the sounding of the buzzer, the buzzer can be controlled by inputting a specific second PWM control signal to form a corresponding sound frequency and adjusting the supply voltage by controlling the input first PWM control signal. The volume of the device, the volume can be adjusted to 0, that is, the state of no sound.
图3为本申请实施例提供的调整单元100的电路原理图。在本实施例中,可以包括一个用于提供控制电路工作电压的直流电源V1。该直流电源提供的工作电压具体可以根据使用的蜂鸣器所确定,与蜂鸣器的最大供给电压相关。设该直流电源提供的工作电压为V1,所述供给电压的可变范围为0至(V1-VCE),VCE为信号放大单元的压降。FIG. 3 is a schematic circuit diagram of an adjustment unit 100 according to an embodiment of the present application. In this embodiment, a DC power source V1 for providing a control circuit operating voltage may be included. The operating voltage provided by the DC power source can be determined according to the buzzer used, and is related to the maximum supply voltage of the buzzer. The operating voltage provided by the DC power source is V 1 , and the variable voltage of the supply voltage ranges from 0 to (V 1 -V CE ), and V CE is the voltage drop of the signal amplifying unit.
如图3所示,该调整单元100包括:第一三极管Q1、第二三极管Q2、第一电阻R1、第二电阻R2、第三电阻R3、第四电阻R4、第五电阻R5、第六电阻R6以及第一电容C1。As shown in FIG. 3, the adjusting unit 100 includes: a first transistor Q1, a second transistor Q2, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, and a fifth resistor R5. The sixth resistor R6 and the first capacitor C1.
其中,第一三极管Q1、第二三极管Q2、第二电阻R2、第三电阻R3、第四电阻R4、第五电阻R5以及第六电阻R6组成一开关电路110。The first transistor Q1, the second transistor Q2, the second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 constitute a switching circuit 110.
输入第一PWM控制信号的第一输入端11通过第二电阻R2与所述第一三极管Q1的基极连接,还通过第三电阻R3接地。所述第一三极管Q1的集电极通过第五电阻R5与第二三级管Q2的基极连接,还通过第四电阻R4与所述直流电源V1的正极连接。所述第二三级管Q2的发射极与所述直流电源V1的正极连接,所述第二三极管Q2的集电极通过第六电阻R6接地,并形成所述开关电路的输出端(与所述第一电阻R1连接)。 The first input terminal 11 inputting the first PWM control signal is connected to the base of the first transistor Q1 through the second resistor R2, and is also grounded through the third resistor R3. The collector of the first transistor Q1 is connected to the base of the second three-stage tube Q2 through the fifth resistor R5, and is also connected to the anode of the DC power source V1 through the fourth resistor R4. The emitter of the second tertiary tube Q2 is connected to the anode of the DC power source V1, and the collector of the second transistor Q2 is grounded through the sixth resistor R6, and forms an output end of the switch circuit (and The first resistor R1 is connected).
所述开关电路110接收所述第一PWM控制信号后,在第一PWM控制信号为高电平时第二三极管Q2导通,从而通过第一电阻R1为第一电容C1充电。After the switch circuit 110 receives the first PWM control signal, the second transistor Q2 is turned on when the first PWM control signal is at a high level, thereby charging the first capacitor C1 through the first resistor R1.
图4为本申请另一实施例提供的调整单元100的电路原理图。如图4所示,所述调整单元100包括:第六三极管Q6、第七三极管Q7、第八三极管Q8、第一电阻R1、第二电阻R2、第三电阻R3、第四电阻R4以及第一电容C1。FIG. 4 is a schematic circuit diagram of an adjustment unit 100 according to another embodiment of the present application. As shown in FIG. 4, the adjusting unit 100 includes a sixth transistor Q6, a seventh transistor Q7, an eighth transistor Q8, a first resistor R1, a second resistor R2, and a third resistor R3. The fourth resistor R4 and the first capacitor C1.
其中,第六三极管Q6、第七三极管Q7、第八三极管Q8、第二电阻R2、第三电阻R3、第四电阻R4组成一开关电路110。The sixth transistor Q6, the seventh transistor Q7, the eighth transistor Q8, the second resistor R2, the third resistor R3, and the fourth resistor R4 constitute a switching circuit 110.
输入第一PWM控制信号的第一输入端PWM1通过第二电阻R2与所述第六三极管Q6的基极连接,还通过第三电阻R3接地。所述第六三极管Q6的集电极与第七三极管Q7的基极连接,还通过第四电阻R4与所述直流电源V1的正极连接。所述第七三极管Q7的集电极与所述直流电源V1的正极连接,所述第七三极管Q7的发射极与第八三极管Q8的发射极连接,并形成所述开关电路的输出端(与所述第一电阻R1连接)。所述第八三极管Q8的基极还与所述第七三极管Q7的基极连接,所述第八三极管Q8的集电极接地。Input to the first PWM control signal PWM. 1 a first input terminal of the second resistor R2 and the sixth base of the transistor Q6 is connected, through a third resistor R3 is grounded through. The collector of the sixth transistor Q6 is connected to the base of the seventh transistor Q7, and is also connected to the anode of the DC power source V1 via the fourth resistor R4. The collector of the seventh transistor Q7 is connected to the anode of the DC power source V1, the emitter of the seventh transistor Q7 is connected to the emitter of the eighth transistor Q8, and the switching circuit is formed. Output (connected to the first resistor R1). The base of the eighth transistor Q8 is also connected to the base of the seventh transistor Q7, and the collector of the eighth transistor Q8 is grounded.
如图3和图4所示,在本实施例中,将图3所示的开关电路中的PNP型的第二三极管替换为图4中NPN型的第七三极管,并且将第五电阻R5替换为第八三极管Q8。进行这样的改变以后,图4所示的开关电路110也实现与图3相类似的功能(通过改变第一电容C1的电压来改变输出的控制电流)。但与图3所示的调节单元不相同的是,在本实施例中,随着第一PWM控制信号占空比的增加,控制电流将减少。As shown in FIG. 3 and FIG. 4, in the present embodiment, the PNP-type second triode in the switching circuit shown in FIG. 3 is replaced with the NPN-type seventh triode in FIG. The five resistor R5 is replaced by the eighth transistor Q8. After such a change is made, the switching circuit 110 shown in FIG. 4 also implements a function similar to that of FIG. 3 (the output control current is changed by changing the voltage of the first capacitor C1). However, unlike the adjustment unit shown in FIG. 3, in the present embodiment, as the duty ratio of the first PWM control signal increases, the control current will decrease.
在图3或图4所示的开关电路110均可以根据PWM控制信号的占空比来实现对于开关电路的导通时间的控制,从而调整第一电容C1上的电压。其中,第一PWM控制信号的频率与所述第一电容C1相关,即对于特定的电容容量而言,过低的PWM频率可能无法满足正常的使用。一般的,在第一电容C1的电容值为100nf时,PWM的频率大于20KHz即可满足要求。 The switching circuit 110 shown in FIG. 3 or FIG. 4 can realize the control of the on-time of the switching circuit according to the duty ratio of the PWM control signal, thereby adjusting the voltage on the first capacitor C1. Wherein, the frequency of the first PWM control signal is related to the first capacitor C1, that is, for a specific capacitance capacity, an excessively low PWM frequency may not be able to satisfy normal use. Generally, when the capacitance value of the first capacitor C1 is 100 nf, the frequency of the PWM is greater than 20 KHz, which satisfies the requirement.
在一些实施例中,也可以采用其它与图3或者图4所示的开关电路相类似的,包括若干随PWM控制信号的电平变化而切换导通或者截止状态的开关元件的功能电路,如图3和图4所示的,等效替换其中的一个或者多个半导体开关元件以改变控制的方向。在另一些实施例中,还可以根据实际情况添加或者减省、或者替换一些分立的元件或者功能电路。采用其它常用的三极管连接方式或者常用的开关电路类型,对所述开关电路进行替换、调整或者改进的技术方案均是本领域技术人员所熟知的,不需要付出创造性劳动即可获得。In some embodiments, other functional circuits similar to the switching circuit shown in FIG. 3 or FIG. 4 may be employed, including a plurality of switching elements that switch between the on or off states as the level of the PWM control signal changes, such as As shown in Figures 3 and 4, one or more of the semiconductor switching elements are equivalently replaced to change the direction of control. In other embodiments, discrete components or functional circuits may also be added or subtracted, or replaced, depending on the actual situation. The technical solutions for replacing, adjusting or improving the switching circuit by other commonly used triode connection methods or common switching circuit types are well known to those skilled in the art and can be obtained without creative labor.
请继续参阅图3和图4,在本申请实施例中,所述开关电路的输出端与所述第一电阻R1一端连接。所述第一电阻R1的另一端通过第一电容C1接地;所述第一电容C1与第一电阻R1的连接端形成所述控制电流Icontrol的输出端。Referring to FIG. 3 and FIG. 4 , in the embodiment of the present application, an output end of the switch circuit is connected to one end of the first resistor R1 . The other end of the first resistor R1 is grounded through a first capacitor C1; the connection end of the first capacitor C1 and the first resistor R1 forms an output end of the control current I control .
其中,在图3所示的实施例中,第二三极管Q2随着输入的第一PWM控制信号的占空比增加而延长了导通的时间。在第二三极管Q2导通时,通过第一电阻R1向第一电容C1充电;在第二三极管Q2截止时,所述第一电容C1放电。由此,可以根据第二三极管Q2的导通时间调整控制电流Icontrol大小。而在图4所示的实施例中,将PNP型的第二三极管Q2更换为NPN型的第七三极管Q7。所述第七三极管Q7与所述第二三级管Q2之间的导通和截止情况相反。Wherein, in the embodiment shown in FIG. 3, the second transistor Q2 lengthens the conduction time as the duty ratio of the input first PWM control signal increases. When the second transistor Q2 is turned on, the first capacitor C1 is charged through the first resistor R1; when the second transistor Q2 is turned off, the first capacitor C1 is discharged. Thereby, the magnitude of the control current I control can be adjusted according to the on-time of the second transistor Q2. In the embodiment shown in FIG. 4, the second transistor Q2 of the PNP type is replaced with the seventh transistor Q7 of the NPN type. The conduction and the cutoff between the seventh transistor Q7 and the second tertiary tube Q2 are reversed.
在一些实施例中,由第三三极管Q3以及第七电阻R7组成所述信号放大单元200。所述第三三极管Q3的基极与所述控制电流的输出端连接,还通过第七电阻R7接地。并且,所述第三三极管Q3的集电极与所述直流电源V1的正极连接,所述第三三极管Q3的发射极电压为蜂鸣器的供给电压。In some embodiments, the signal amplifying unit 200 is composed of a third transistor Q3 and a seventh resistor R7. The base of the third transistor Q3 is connected to the output terminal of the control current, and is also grounded through the seventh resistor R7. Further, the collector of the third transistor Q3 is connected to the anode of the DC power source V1, and the emitter voltage of the third transistor Q3 is the supply voltage of the buzzer.
如图3和图4所示,所述第三三极管Q3的发射极电压(即蜂鸣器的供给电压)随着其基极上的电流(即控制电流)而变化。由此,通过该信号放大单元,可以通过所述控制电流的大小,调节所述蜂鸣器的供给电压。具体还可以使用其它合适的,能够通过小的电流/电压变化驱动大幅度的电流/电压变化的信号放大单元。本领域技术人员所熟知的 是,可以根据实际情况的需要,调整、添加、减省或者替换电路中的电阻性分立元件。As shown in FIGS. 3 and 4, the emitter voltage of the third transistor Q3 (ie, the supply voltage of the buzzer) varies with the current at its base (ie, the control current). Thereby, the supply voltage of the buzzer can be adjusted by the signal amplifying unit by the magnitude of the control current. In particular, other suitable signal amplifying units capable of driving large current/voltage changes with small current/voltage variations can be used. Well known to those skilled in the art Yes, the resistive discrete components in the circuit can be adjusted, added, subtracted, or replaced as needed.
在一些实施例中,当所述调整单元100能够直接输出能够使用的信号的情况下,如所述调整单元100直接根据第一PWM控制信号的占空比变化,在输出侧输出跟随占空比变化的供给电压,也可以减省所述信号放大单元200。可以“电压调整电路”表示该减省了信号放大单元200的实施例中的调整单元100,用以区别其它实施例中的调整单元100。In some embodiments, when the adjustment unit 100 is capable of directly outputting a signal that can be used, as the adjustment unit 100 directly changes according to the duty ratio of the first PWM control signal, the output follows the duty ratio on the output side. The signal amplifying unit 200 can also be reduced by the varying supply voltage. The "voltage adjustment circuit" can be used to indicate that the adjustment unit 100 in the embodiment of the signal amplification unit 200 is reduced to distinguish the adjustment unit 100 in other embodiments.
图5为本申请实施例提供的,能够直接输出跟随占空比变化的供给电压的电压调整电路的电路原理图。FIG. 5 is a circuit schematic diagram of a voltage adjustment circuit capable of directly outputting a supply voltage following a duty cycle change according to an embodiment of the present application.
如图5所示,所述电压调整电路包括:第十三电阻R51、第十四电阻R52、第二电容C51、第十五电阻R53、第十六电阻R54、第十七电阻R55以及运放(即运算放大器)U1。As shown in FIG. 5, the voltage adjustment circuit includes: a thirteenth resistor R51, a fourteenth resistor R52, a second capacitor C51, a fifteenth resistor R53, a sixteenth resistor R54, a seventeenth resistor R55, and an operational amplifier. (ie operational amplifier) U1.
输入第一PWM控制信号的第一输入端11与第十六电阻R54的一端连接,第十六电阻R54的另一端通过所述第十三电阻R51接地,还通过第十七电阻R55与运放U1的正向输入端连接。所述运放U1的反向输入端通过第十四电阻R52接地,还通过第十五电阻R53与运放U1的输出端连接,所述运放U1的输出端形成所述信号输出侧,输出跟随占空比变化的供给电压。The first input terminal 11 of the first PWM control signal is connected to one end of the sixteenth resistor R54, the other end of the sixteenth resistor R54 is grounded through the thirteenth resistor R51, and the seventeenth resistor R55 and the operational amplifier are also passed. The positive input of U1 is connected. The inverting input terminal of the operational amplifier U1 is grounded through the fourteenth resistor R52, and is also connected to the output end of the operational amplifier U1 through the fifteenth resistor R53. The output end of the operational amplifier U1 forms the signal output side, and the output The supply voltage follows the duty cycle change.
在图5所示的实施例中,采用了不含有开关元件的电路结构,由所述运放直接根据第一输入端11输入的第一PWM控制信号的占空比的变化进行放大,在输出端形成跟随占空比变化而变化的供给电压。In the embodiment shown in FIG. 5, a circuit structure not including a switching element is employed, and the op amp is directly amplified according to a change in the duty ratio of the first PWM control signal input from the first input terminal 11, at the output. The terminal forms a supply voltage that varies in accordance with a duty cycle change.
所述运放具体可以根据实际情况选择合适的集成运放(如特定型号的集成运放芯片)或者由分立元件构成的,具有相同功能的功能电路。在一些实施例中,该运放可以为集成运放。The op amp may specifically select a suitable integrated operational amplifier (such as a specific type of integrated operational amplifier chip) or a functional circuit having the same function, which is composed of discrete components. In some embodiments, the op amp can be an integrated op amp.
图6为本申请实施例提供的交替控制单元的电路原理图。该交替控制单元分别与蜂鸣器的第一端口B1和第二端口B2连接,根据第二PWM控制信号的电平变化情况而改变蜂鸣器的电流方向。即改变接地的蜂鸣器端口。FIG. 6 is a schematic circuit diagram of an alternate control unit according to an embodiment of the present application. The alternate control unit is respectively connected to the first port B1 and the second port B2 of the buzzer, and changes the current direction of the buzzer according to the level change of the second PWM control signal. That is, change the grounded buzzer port.
如图6所示,所述交替控制单元300包括:第四三极管Q4、第五三 极管Q5、第八电阻R8、第九电阻R9、第十电阻R10、第十一电阻R11以及第十二电阻R12。As shown in FIG. 6, the alternate control unit 300 includes: a fourth transistor Q4, a fifth three The transistor Q5, the eighth resistor R8, the ninth resistor R9, the tenth resistor R10, the eleventh resistor R11, and the twelfth resistor R12.
其中,所述第二输入端12与所述第八电阻R8一端连接,输入第二PWM控制信号。所述第八电阻R8的另一端通过第九电阻R9接地,还与第四三极管Q4的基极连接。所述第四三极管Q4的发射极接地,所述第四三极管Q4的集电极通过第十二电阻R12与第五三极管Q5的基极连接,所述第五三极管Q5的发射极接地。The second input terminal 12 is connected to one end of the eighth resistor R8, and inputs a second PWM control signal. The other end of the eighth resistor R8 is grounded through the ninth resistor R9 and also connected to the base of the fourth transistor Q4. The emitter of the fourth transistor Q4 is grounded, and the collector of the fourth transistor Q4 is connected to the base of the fifth transistor Q5 through the twelfth resistor R12, the fifth transistor Q5 The emitter is grounded.
所述第四三极管Q4的集电极通过第十电阻R10与所述第一供给电压连接端连接,还与蜂鸣器的第一端口B1连接;所述第五三极管Q5的集电极通过第十一电阻R11与所述第二供给电压连接端连接,还与蜂鸣器的第二端口B2连接。The collector of the fourth transistor Q4 is connected to the first supply voltage connection terminal through a tenth resistor R10, and is also connected to the first port B1 of the buzzer; the collector of the fifth transistor Q5 It is connected to the second supply voltage connection terminal through the eleventh resistor R11, and is also connected to the second port B2 of the buzzer.
在本实施例中,分别由第四三极管Q4和第五三极管Q5提供了蜂鸣器第一端口和第二端口的接地回路。由此,可以通过控制第四三极管Q4和第五三极管Q5的工作状态(截止/导通)来改变改变蜂鸣器的电流方向。In the present embodiment, the ground loops of the first port and the second port of the buzzer are provided by the fourth transistor Q4 and the fifth transistor Q5, respectively. Thereby, the direction of the current changing the buzzer can be changed by controlling the operating states (off/on) of the fourth transistor Q4 and the fifth transistor Q5.
例如,当第二PWM控制信号为高电平时,第四三极管Q4导通并且第五三极管Q5截止,蜂鸣器的供给电流通过第十一电阻R11,从蜂鸣器的第二端口B2流入蜂鸣器,并从蜂鸣器的第一端口B1流出,通过第四三极管Q4到地。而当第二PWM控制信号为低电平时,第四三极管Q4截止并且第五三极管Q5导通,蜂鸣器的供给电流通过第十电阻R10,从蜂鸣器的第一端口B1流入蜂鸣器,并从第二端口B2流出,通过第五三极管Q5到地。For example, when the second PWM control signal is at a high level, the fourth transistor Q4 is turned on and the fifth transistor Q5 is turned off, the buzzer supply current is passed through the eleventh resistor R11, and the second from the buzzer Port B2 flows into the buzzer and flows out from the first port B1 of the buzzer and through the fourth transistor Q4 to the ground. When the second PWM control signal is low, the fourth transistor Q4 is turned off and the fifth transistor Q5 is turned on, and the buzzer is supplied with current through the tenth resistor R10 from the first port B1 of the buzzer. It flows into the buzzer and flows out from the second port B2 through the fifth transistor Q5 to the ground.
基于第四三极管Q4和第五三极管Q5的开关作用,在输入第二PWM控制信号时,可以实现蜂鸣器的正负交替控制,具有更好的美音效果。Based on the switching action of the fourth triode Q4 and the fifth triode Q5, when the second PWM control signal is input, the positive and negative alternate control of the buzzer can be realized, and the sound effect is better.
具体还可以使用其它合适的,具有开关作用的元件来实现上述交替控制单元300的功能。即该电路能够分别为第一端口B1和第二端口B2提供两个独立的接地回路(如第一接地回路、第二接地回路),两个接地回路上具有相应的起开关作用的元件。这样的起开关作用的元件相互关联,运行时保持其中一个接地回路导通的同时另一个接地回路闭合, 并且根据能够根据PWM控制信号的变化而切换接地回路的导通/截止情况。当然,在一些实施例中,也可以是使用一个开关元件,同时控制两个接地回路的导通/截止。In particular, other suitable switching elements can be used to implement the functions of the alternating control unit 300 described above. That is, the circuit can provide two independent ground loops (such as a first ground loop and a second ground loop) for the first port B1 and the second port B2, respectively, and the two ground loops have corresponding components that function as switches. Such switching-acting components are associated with each other, and one of the grounding loops is turned on while the other grounding loop is closed while operating. And according to the change of the PWM control signal, the on/off condition of the ground loop can be switched. Of course, in some embodiments, it is also possible to use one switching element while controlling the on/off of the two ground loops.
在应用如上实施例提供的蜂鸣器控制电路时,具体可以通过如下方法实现各种不同美音效果。例如,在调整音量时,可以在第二输入端输入与需要的声音频率对应的第二PWM控制信号,并通过控制在第一输入端输入的第一PWM控制信号的占空比以改变蜂鸣器的音量大小,或者是,在需要形成声音渐入的效果时,可以在第二输入端输入与需要的声音频率对应的第二PWM控制信号,并在一定的时间内(可以根据实际情况确定或者调整),将第一PWM控制信号的占空比从最小线性增大至目标音量对应的占空比以实现蜂鸣器的声音渐入效果,又或者是,在需要形成声音渐出的效果时,可以在第二输入端输入与需要的声音频率对应的第二PWM控制信号,并在一定的时间内,将第一PWM控制信号的占空比线性减少至0以实现蜂鸣器的声音渐出效果。When the buzzer control circuit provided in the above embodiment is applied, various different sound effects can be realized by the following methods. For example, when adjusting the volume, a second PWM control signal corresponding to the desired sound frequency may be input at the second input, and the buzzer may be changed by controlling the duty ratio of the first PWM control signal input at the first input terminal. The volume of the device, or, when it is necessary to form a sound fade-in effect, a second PWM control signal corresponding to the desired sound frequency may be input at the second input terminal, and may be determined according to actual conditions within a certain period of time. Or adjusting), increasing the duty ratio of the first PWM control signal from a minimum linearity to a duty ratio corresponding to the target volume to achieve a sound fade-in effect of the buzzer, or an effect of gradually forming a sound in need of formation At the second input, a second PWM control signal corresponding to the desired sound frequency may be input, and the duty ratio of the first PWM control signal is linearly reduced to 0 to realize the sound of the buzzer within a certain time. Gradually effect.
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above description is only the embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation of the specification and the drawings of the present application, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of this application.

Claims (14)

  1. 一种蜂鸣器控制电路,其特征在于,包括:A buzzer control circuit, comprising:
    用于输入第一PWM控制信号的第一输入端;a first input for inputting a first PWM control signal;
    根据输入的第一PWM控制信号,调整蜂鸣器的供给电压的电压调整电路;a voltage adjustment circuit for adjusting a supply voltage of the buzzer according to the input first PWM control signal;
    所述电压调整电路具有与蜂鸣器的第一端口连接的第一供给电压连接端以及与蜂鸣器的第二端口连接的第二供给电压连接端;The voltage adjustment circuit has a first supply voltage connection end connected to the first port of the buzzer and a second supply voltage connection end connected to the second port of the buzzer;
    用于输入第二PWM控制信号的第二输入端;a second input for inputting a second PWM control signal;
    与所述第一供给电压连接端以及第二供给电压连接端连接的交替控制单元;所述交替控制单元根据所述第二PWM控制信号的电平变化,改变流经蜂鸣器的电流方向。An alternate control unit coupled to the first supply voltage connection terminal and the second supply voltage connection terminal; the alternate control unit changes a direction of current flowing through the buzzer according to a level change of the second PWM control signal.
  2. 根据权利要求1所述的控制电路,其特征在于,所述电压调整电路包括:至少一个运算放大器;The control circuit according to claim 1, wherein said voltage adjustment circuit comprises: at least one operational amplifier;
    所述运算放大器根据其正向输入端输入的第一PWM控制信号,在其输出端输出对应的蜂鸣器的供给电压;The operational amplifier outputs a corresponding buzzer supply voltage at its output according to a first PWM control signal input to its forward input terminal;
    所述运算放大器的输出端连接所述第一供给电压连接端以及第二供给电压连接端。An output of the operational amplifier is coupled to the first supply voltage connection terminal and the second supply voltage connection terminal.
  3. 根据权利要求2所述的控制电路,其特征在于,所述电压调整电路包括:第十三电阻、第十四电阻、第二电容、第十五电阻、第十六电阻、第十七电阻以及运算放大器;The control circuit according to claim 2, wherein the voltage adjustment circuit comprises: a thirteenth resistor, a fourteenth resistor, a second capacitor, a fifteenth resistor, a sixteenth resistor, a seventeenth resistor, and Operational Amplifier;
    输入第一PWM控制信号的第一输入端与第十六电阻的一端连接,第十六电阻的另一端通过所述第十三电阻接地,还通过第十七电阻与所述运算放大器的正向输入端连接;a first input terminal inputting the first PWM control signal is connected to one end of the sixteenth resistor, and the other end of the sixteenth resistor is grounded through the thirteenth resistor, and further through the seventeenth resistor and the forward direction of the operational amplifier Input connection
    所述运算放大器的反向输入端通过第十四电阻接地,还通过第十五电阻与所述运算放大器的输出端连接。The inverting input of the operational amplifier is grounded through a fourteenth resistor and is also coupled to the output of the operational amplifier via a fifteenth resistor.
  4. 根据权利要求1所述的控制电路,其特征在于,所述电压调整电路包括:The control circuit of claim 1 wherein said voltage adjustment circuit comprises:
    根据输入的第一PWM控制信号,输出对应的控制电流的调整单元, 所述控制电流跟随第一PWM控制信号的占空比改变而变化;以及根据所述控制电流,调整蜂鸣器的供给电压的信号放大单元。Outputting an adjustment unit corresponding to the control current according to the input first PWM control signal, The control current changes in accordance with a duty ratio change of the first PWM control signal; and a signal amplifying unit that adjusts a supply voltage of the buzzer according to the control current.
  5. 根据权利要求4所述的控制电路,其特征在于,所述调整单元包括:The control circuit according to claim 4, wherein the adjustment unit comprises:
    在所述第一PWM控制信号为高电平时导通,在所述第一PWM控制信号为低电平时截止的开关电路;a switching circuit that is turned on when the first PWM control signal is at a high level, and turned off when the first PWM control signal is at a low level;
    与所述开关电路的输出端连接的第一电阻;以及a first resistor coupled to an output of the switching circuit;
    在所述开关电路导通时,通过所述第一电阻充电的第一电容,其中,所述第一电容上的电压决定所述控制电流。And a first capacitor charged by the first resistor when the switch circuit is turned on, wherein a voltage on the first capacitor determines the control current.
  6. 根据权利要求4所述的控制电路,其特征在于,所述控制电路还包括:提供控制电路工作电压的直流电源。The control circuit of claim 4 wherein said control circuit further comprises: a DC power supply that provides an operating voltage of the control circuit.
  7. 根据权利要求6所述的控制电路,其特征在于,所述开关电路包括:第一三极管、第二三极管、第二电阻、第三电阻、第四电阻、第五电阻以及第六电阻;The control circuit according to claim 6, wherein the switching circuit comprises: a first triode, a second triode, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a sixth resistance;
    所述第一输入端通过第二电阻与所述第一三极管的基极连接,还通过第三电阻接地;所述第一三极管的集电极通过第五电阻与所述第二三极管的基极连接,还通过第四电阻与所述直流电源的正极连接;所述第二三极管的发射极与所述直流电源的正极连接,所述第二三极管的集电极通过第六电阻接地,并形成所述开关电路的输出端。The first input terminal is connected to the base of the first transistor through a second resistor, and is also grounded through a third resistor; the collector of the first transistor passes through the fifth resistor and the second third The base of the pole tube is connected to the anode of the DC power source through a fourth resistor; the emitter of the second transistor is connected to the anode of the DC power source, and the collector of the second transistor Grounding through a sixth resistor and forming an output of the switching circuit.
  8. 根据权利要求6所述的控制电路,其特征在于,所述开关电路包括:第六三极管、第七三极管、第八三极管、第二电阻、第三电阻、第四电阻;The control circuit according to claim 6, wherein the switching circuit comprises: a sixth triode, a seventh triode, an eighth triode, a second resistor, a third resistor, and a fourth resistor;
    输入第一PWM控制信号的第一输入端通过第二电阻与所述第六三极管的基极连接,还通过第三电阻接地;所述第六三极管的集电极与所述第七三极管的基极连接,还通过第四电阻与所述直流电源的正极连接;所述第七三极管的集电极与所述直流电源的正极连接,所述第七三极管的发射极与第八三极管的发射极连接,并形成所述开关电路的输出端;a first input terminal inputting the first PWM control signal is connected to a base of the sixth transistor through a second resistor, and is also grounded through a third resistor; a collector of the sixth transistor and the seventh a base connection of the triode is further connected to the anode of the DC power source through a fourth resistor; a collector of the seventh transistor is connected to an anode of the DC power source, and an emission of the seventh transistor a pole connected to the emitter of the eighth transistor and forming an output of the switching circuit;
    所述第八三极管的基极还与所述第七三极管的基极连接,所述第八三极管的集电极接地。 The base of the eighth transistor is also connected to the base of the seventh transistor, and the collector of the eighth transistor is grounded.
  9. 根据权利要求5-8任一所述的控制电路,其特征在于,所述第一电阻一端与所述开关电路的输出端连接,第一电阻的另一端通过第一电容接地;所述第一电容与所述第一电阻的连接端形成所述控制电流的输出端。The control circuit according to any one of claims 5-8, wherein one end of the first resistor is connected to an output end of the switch circuit, and the other end of the first resistor is grounded through a first capacitor; A connection end of the capacitor and the first resistor forms an output of the control current.
  10. 根据权利要求6所述的控制电路,其特征在于,所述信号放大单元包括:第三三极管以及第七电阻;The control circuit according to claim 6, wherein the signal amplifying unit comprises: a third triode and a seventh resistor;
    所述第三三极管的基极与所述控制电流的输出端连接,还通过第七电阻接地;所述第三三极管的集电极与所述直流电源的正极连接;所述第三三极管的发射极电压为蜂鸣器的供给电压。The base of the third transistor is connected to the output end of the control current, and is also grounded through a seventh resistor; the collector of the third transistor is connected to the anode of the DC power source; The emitter voltage of the triode is the supply voltage of the buzzer.
  11. 根据权利要求10所述的控制电路,其特征在于,所述信号放大单元的第三三极管的发射极连接所述第一供给电压连接端以及第二供给电压连接端。The control circuit according to claim 10, wherein the emitter of the third transistor of the signal amplifying unit is connected to the first supply voltage connection terminal and the second supply voltage connection terminal.
  12. 根据权利要求1-8任一所述的控制电路,其特征在于,所述交替控制单元包括:交替导通和截止的第一接地回路以及第二接地回路;The control circuit according to any one of claims 1-8, wherein the alternate control unit comprises: a first ground loop and a second ground loop that are alternately turned on and off;
    所述第一接地回路与所述第一供给电压连接端连接;所述第二接地回路与所述第二供给电压连接端连接;The first ground loop is connected to the first supply voltage connection end; the second ground loop is connected to the second supply voltage connection end;
    在所述第二PWM控制信号为高电平时,第一接地回路导通并且第二接地回路截止,所述供给电压施加在蜂鸣器的第一端口;When the second PWM control signal is at a high level, the first ground loop is turned on and the second ground loop is turned off, and the supply voltage is applied to the first port of the buzzer;
    在所述第二PWM控制信号为低电平时,第一接地回路截止并且第二接地回路导通,所述供给电压施加在蜂鸣器的第二端口。When the second PWM control signal is low, the first ground loop is turned off and the second ground loop is turned on, and the supply voltage is applied to the second port of the buzzer.
  13. 根据权利要求1-8任一所述的控制电路,其特征在于,所述交替控制单元包括:第四三极管、第五三极管、第八电阻、第九电阻、第十电阻、第十一电阻以及第十二电阻;The control circuit according to any one of claims 1-8, wherein the alternating control unit comprises: a fourth triode, a fifth triode, an eighth resistor, a ninth resistor, a tenth resistor, and a Eleven resistors and twelfth resistors;
    所述第二输入端与所述第八电阻一端连接,所述第八电阻的另一端通过第九电阻接地,还与第四三极管的基极连接;所述第四三极管的发射极接地,所述第四三极管的集电极通过第十二电阻与第五三极管的基极连接,所述第五三极管的发射极接地;The second input end is connected to one end of the eighth resistor, the other end of the eighth resistor is grounded through a ninth resistor, and is also connected to a base of the fourth triode; the fourth transistor is emitted a pole is grounded, a collector of the fourth triode is connected to a base of the fifth triode through a twelfth resistor, and an emitter of the fifth triode is grounded;
    所述第四三极管的集电极通过第十电阻与所述第一供给电压连接端连接,还与蜂鸣器的第一端口连接; The collector of the fourth transistor is connected to the first supply voltage connection terminal through a tenth resistor, and is also connected to the first port of the buzzer;
    所述第五三极管的集电极通过第十一电阻与所述第二供给电压连接端连接,还与蜂鸣器的第二端口连接。The collector of the fifth transistor is connected to the second supply voltage connection through an eleventh resistor, and is also connected to the second port of the buzzer.
  14. 一种蜂鸣器,其特征在于,包括发声装置、PWM信号生成装置以及如权利要求1-13任一所述的蜂鸣器控制电路;A buzzer comprising: a sounding device, a PWM signal generating device, and a buzzer control circuit according to any one of claims 1-13;
    所述PWM信号生成装置与所述蜂鸣器控制电路连接,输出预定的PWM控制信号至所述蜂鸣器控制电路;所述蜂鸣器控制电路与所述发声装置连接,输出对应的电压信号至所述发声装置。 The PWM signal generating device is connected to the buzzer control circuit, and outputs a predetermined PWM control signal to the buzzer control circuit; the buzzer control circuit is connected to the sounding device to output a corresponding voltage signal To the sounding device.
PCT/CN2017/101968 2017-09-15 2017-09-15 Control circuit for buzzer, and buzzer WO2019051815A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/101968 WO2019051815A1 (en) 2017-09-15 2017-09-15 Control circuit for buzzer, and buzzer
CN201780008994.3A CN108780636A (en) 2017-09-15 2017-09-15 Buzzer control circuit and buzzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/101968 WO2019051815A1 (en) 2017-09-15 2017-09-15 Control circuit for buzzer, and buzzer

Publications (1)

Publication Number Publication Date
WO2019051815A1 true WO2019051815A1 (en) 2019-03-21

Family

ID=64034070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101968 WO2019051815A1 (en) 2017-09-15 2017-09-15 Control circuit for buzzer, and buzzer

Country Status (2)

Country Link
CN (1) CN108780636A (en)
WO (1) WO2019051815A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021048733A1 (en) 2019-09-12 2021-03-18 3M Innovative Properties Company Apparatus, system, method of post-curing an article, and post-cured article
WO2021126741A1 (en) * 2019-12-18 2021-06-24 Texas Instruments Incorporated Duty cycle tuning in self-resonant piezo buzzer
US11402265B2 (en) 2019-11-05 2022-08-02 Texas Instruments Incorporated Apparatus for integrated offset voltage for photodiode current amplifier
US11468756B2 (en) 2020-04-02 2022-10-11 Texas Instruments Incorporated Integrated circuit for smoke detector having compatibility with multiple power supplies

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111710323B (en) * 2020-05-19 2023-07-11 深圳南云微电子有限公司 Buzzer control method and control circuit thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291646A (en) * 2011-07-01 2011-12-21 上海富士施乐有限公司 Volume control circuit of piezoelectric buzzer
CN202996285U (en) * 2012-12-29 2013-06-12 佛山市顺德区瑞德电子实业有限公司 Sweet sound buzzer circuit
CN103281652A (en) * 2013-04-22 2013-09-04 无锡艾柯威科技有限公司 Buzzer drive circuit
US20150317971A1 (en) * 2012-12-26 2015-11-05 Calsonic Kansei Corporation Buzzer output control device and buzzer output control method
CN206163119U (en) * 2016-10-20 2017-05-10 广州视源电子科技股份有限公司 Buzzer control circuit , buzzing device and smoke ventilator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291646A (en) * 2011-07-01 2011-12-21 上海富士施乐有限公司 Volume control circuit of piezoelectric buzzer
US20150317971A1 (en) * 2012-12-26 2015-11-05 Calsonic Kansei Corporation Buzzer output control device and buzzer output control method
CN202996285U (en) * 2012-12-29 2013-06-12 佛山市顺德区瑞德电子实业有限公司 Sweet sound buzzer circuit
CN103281652A (en) * 2013-04-22 2013-09-04 无锡艾柯威科技有限公司 Buzzer drive circuit
CN206163119U (en) * 2016-10-20 2017-05-10 广州视源电子科技股份有限公司 Buzzer control circuit , buzzing device and smoke ventilator

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021048733A1 (en) 2019-09-12 2021-03-18 3M Innovative Properties Company Apparatus, system, method of post-curing an article, and post-cured article
US11402265B2 (en) 2019-11-05 2022-08-02 Texas Instruments Incorporated Apparatus for integrated offset voltage for photodiode current amplifier
WO2021126741A1 (en) * 2019-12-18 2021-06-24 Texas Instruments Incorporated Duty cycle tuning in self-resonant piezo buzzer
US11361644B2 (en) 2019-12-18 2022-06-14 Texas Instruments Incorporated Duty cycle tuning in self-resonant piezo buzzer
US11468756B2 (en) 2020-04-02 2022-10-11 Texas Instruments Incorporated Integrated circuit for smoke detector having compatibility with multiple power supplies

Also Published As

Publication number Publication date
CN108780636A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
WO2019051815A1 (en) Control circuit for buzzer, and buzzer
US10749488B2 (en) Programmably configured switchmode audio amplifier
WO2018133155A1 (en) Audio output circuit, and audio apparatus
US8433078B2 (en) High perceived audio quality class D amplifier
TW201225494A (en) Synchronous buck converter
US20120014536A1 (en) Mute control circuit and electronic device using same
TWI418129B (en) Charge pump apparatus and regulation method thereof
TW200503412A (en) Audio amplifier circuit and audio IC having the same
CN207690234U (en) Buzzer control circuit and buzzer
US7046727B2 (en) Method and apparatus for self-oscillating differential feedback class-D amplifier
JP2006507746A (en) PWM generator
CN210202074U (en) Analog buzzer circuit and electronic equipment
CN110677778B (en) Audio mute control circuit and electronic equipment
KR20220082048A (en) Digital Audio Power Amplifiers and Power Amplifier Loops
CN104880980B (en) A kind of sound control circuit
JP6425799B2 (en) Buzzer ringer
CN220155173U (en) Buzzer control circuit and electronic equipment
CN204667560U (en) Music doorbell with massage function
KR100459848B1 (en) A multi-channel low frequency curent therapy circuit
TWI716763B (en) Class-g amplifier and a control method for a class-g amplifier
TW201342000A (en) Power source circuit
CN101867854A (en) Mute control circuit
CN216700291U (en) Magnetic fluid drive circuit and magnetic fluid drive terminal equipment
JP2000278060A (en) Method for tone volume adjustment and tone source drive circuit
CN110531647B (en) Universal industrial alarm circuit and control method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17924827

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17924827

Country of ref document: EP

Kind code of ref document: A1