The circuit diagram of the buzzer on the development board schematic is as follows. According to the video, we know that it is a passive buzzer.
You can see that one end of the buzzer is connected to the resistor, and the other end is connected to pin BZ. Note that this BZ is not the name of Yuanqi. As you can see from the picture, Yuanqi names are all blue, while this BZ is red.
BZ pin. We found that there is a BZ pin on the ULN2003D chip, so we put the buzzer diagram and the ULN2003D diagram on one diagram, and connected the pins they should be connected to.
As can be seen from the figure, the BZ pin of the BZ1 buzzer is connected to the 12th pin of the ULN2003 pin, which is an output pin, and the corresponding input pin is the 5th pin. As can be seen from the figure, the P15 pin of the STC89C52 microcontroller is connected to the 5th pin of the ULN2003.
So the buzzer can be controlled by a single-chip microcomputer. That’s how it works.
ULN2003
I can't understand the chip schematic diagram. To be continued
The above is the information I have compiled. I still don't understand why the Darlington tube has a reverse effect? Doesn't the Darlington tube amplify current? Why does it have a reverse effect? I don't understand the freewheeling diode either.
I think I understand one question, why can't the P15 of the microcontroller be directly connected to the BZ pin of BZ1? Because a certain current is required to make the buzzer sound, and the current output by the microcontroller pin is very small, so the current output by the microcontroller pin must be amplified. We can use transistors to amplify the current. In fact, many examples of using transistors to drive buzzers can be found on the Internet.
For example, the following figure:
For example, the following figure:
But why is ULN2003 used to drive the buzzer in STC89C52? Because there is no separate transistor on the board for us to use, and ULN2003 also has the function of amplifying current, and it is also for the purpose of getting familiar with the ULN2003 chip.
Think about why the light-emitting diode is directly connected to the pin of the microcontroller. Doesn't the LED need a driving current to work? I guess the current of the microcontroller pin is just enough to drive the LED.
In fact, there is a very simple truth. Any electrical appliance needs a working voltage, such as a buzzer or an LED lamp. This voltage is called the rated voltage, and some are called the driving voltage. The driving current is the same thing. If you know the rated voltage, you can know the rated current. Take the buzzer as an example. The rated voltage is 5V, so the rated current can be calculated. If P15 is directly connected to the buzzer, the current flowing into the buzzer will not meet the rated current. What should I do? Let the current be amplified until it meets the rated current. What should I use to amplify the current? Transistors or ULN2003, that's the idea, it's clear.
Previous article:Keil new project and project settings
Next article:Some questions about the delay function
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Port the STM32F407 keil version program to IAR for ARM (the last picture cannot be flashed)
- Part 3: A Preliminary Look at RISC-V
- LCD screen
- Radio Frequency Identification Technology and Its Application Development Trend
- What is mathematics?
- GD32L233C-START Development Board Study Notes (IV)
- I would like to ask if there is a difference between ISE calling Modelsim post-simulation and Modelsim post-simulation alone. Which one should be used?
- [In-depth] Design of a low-cost transceiver system for multi-function radar
- 【Goodbye 2021, Hello 2022】After a long journey, I feel younger
- How to judge whether the operational amplifier of this circuit is in the amplification state