51 single chip running water lamp circuit diagram (1)
This schematic diagram uses the STC89S52 microcontroller to control 8 LED lights. The negative poles of the 8 LED lights are connected to the P1 port of the microcontroller, and the positive poles are connected to the power supply through a 1KΩ resistor. The schematic diagram also shows the crystal oscillator and reset terminal to ensure the stable operation of the controller.
51 single chip running water lamp circuit diagram (2)
This running water lamp is actually a minimum application system of a single-chip microcomputer with eight light-emitting diodes, which is a single single-chip computer composed of light-emitting diodes, crystal oscillator, reset, power supply and other circuits and necessary software. As can be seen from the schematic diagram, if you want LED1 connected to P1.0 port to light up, then you only need to change the level of P1.0 port to low level; on the contrary, if you want to connect it to P1.0 port If LED1 of the port goes out, the level of the P1.0 port must be changed to high level; similarly, the other seven LEDs connected to the P1.1~P1.7 ports are lit and extinguished in the same way as LED1. Therefore, to realize the running water lamp function, we only need to light up and extinguish the light-emitting diodes LED1~LED8 in sequence, and the 8 LED lights will turn on and off as a running water lamp. We should also note here that due to the visual persistence effect of the human eye and the short time it takes for the microcontroller to execute each instruction, we should delay for a period of time when controlling the diode to turn on and off, otherwise we will not see the "flowing water" It worked.
51 single chip running water lamp circuit diagram (3)
The picture below is the schematic diagram of the main control chip and the running water lamp module. The running water lamp module is connected to the P1 port of the microcontroller. From the schematic diagram, we can know that the LED light can be lit by giving a low level to the P1 port. On the contrary, if you want the LED light to go out, you need to change the level of P1 port to high level. To realize the running water lamp function, we only need to turn on and off LED1~LED8 in sequence, and so on. The 8 LEDs will turn on and off as a running water lamp.
The program to realize 8 LED running lights is expressed in Chinese as: P1.0 low, delay, P1.0 high, P1.1 low, delay, P1.1 high, P1.2 low, delay, P1.2 high , P1.3 low, delay, P1.3 high, P1.4 low, delay, P1.4 high, P1.5 low, delay, P1.5 high, P1.6 low, delay, P1. 6 high, P1.7 low, delay, P1.7 high, return to the start, program end.
51 single chip running water lamp circuit diagram (4)
Principle and production of 51 microcontroller loving water lamp
51 single chip running water lamp circuit diagram (5)
The lantern control circuit as shown in the figure has x outputs. It can control 30 lights to perform water movement through an external taming circuit. It can be used as a large decorative lantern controller. The circuit composition is as shown in the figure. The circuit consists of a control pulse generator, a control pulse distributor and a light control output electrical appliance.
51 single chip running water lamp circuit diagram (6)
Sixteen-channel running water lamp circuit schematic diagram based on single-chip microcomputer design
Previous article:51 Basic concepts of microcontroller serial communication
Next article:Design of dormitory fire-proof and anti-theft intelligent alarm system using 51 microcontroller
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- 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
- 【ST NUCLEO-H743ZI Review】——by supermiao123
- How to Reduce the Temperature in Your Car's Fuse Box
- STM32 supports VCP+MSC+HID mode
- How does AD20 perform multi-person collaboration? (Multiple picture warning
- 13. [Learning LPC1768 library functions] ADC experiment
- Application of RPA in the customer service industry
- Efficiency Programming of Single Chip Microcomputer Active Buzzer Driver
- Today at 10:00 AM, live broadcast with prizes: ams projection lighting (MLA) enhances communication between cars and roads
- MSP430F5529 clock multiplier setting is effective
- MSP430F5538A watchdog