In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about the single-chip microcomputer and 555 how to achieve LED flicker circuit, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
To design a flicker circuit, the flicker frequency is 2Hz, that is, 500ms turns off alternately. This circuit is relatively simple to realize, if this function is added to the single-chip microcomputer circuit, it is necessary to design a LED driver circuit and use a timer to realize the 500ms timing flipping of GPIO; if only a flash circuit is designed, 555 chip can be used to achieve it. 1 flicker circuit principle if the high level represents that the lamp is lit, and the low level represents that the lamp is off. Then the flicker of the lamp can be realized by using square waves. Then the speed of the flicker is determined by the frequency of the square wave. Suppose the lights alternate according to the 500ms, that is, turn on the 500ms and then turn off the 500ms, then the cycle of the light is 1s and the frequency is 1Hz. The principle is shown in the following figure.
(2) the scintillation circuit of the single-chip microcomputer assumes that the light-emitting device used is the ordinary LED, and the transistor is used as the driving device to make it work in the saturation / cut-off state. The base of the transistor is connected to the GPIO port of the single-chip microcomputer. The designed circuit is shown in the following figure.
Single-chip microcomputer output high voltage, transistor turn on LED light; single-chip microcomputer output low voltage, transistor off, LED off. The single chip microcomputer can realize the flicker of LED by continuously outputting the square wave with the frequency of 2Hz. High-precision flicker frequency can be achieved by using the timer of single-chip microcomputer. 3555 realizes the scintillation circuit 555 to exist as a god in the semiconductor world, and it is easy to output a PWM. The 555 can output square wave when it works in multi-harmonic oscillation mode. the designed circuit is shown in the following figure.
The output frequency can be set by resistor R365, R366 and capacitor C141. Through calculation, the square wave of 1Hz can be output when the capacitance is 10uF and the sum of resistors is 72K. However, it should be noted that the output accuracy of 555 depends on the accuracy of RC, and there is a certain error. 555 can be used if the precision is not high. If high precision is required, the first scheme is recommended. After reading the above, do you have any further understanding of the single-chip microcomputer and how to realize the LED flicker circuit? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 244
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.