Specific implementation functions
The system consists of STC89C51/52 single chip microcomputer + button module + LED light module + power supply.
Specific functions:
(1) At least 10 light-emitting tubes with 4 patterns automatically changing in a cycle;
(2) The speed of the light pattern change can be controlled manually or automatically. The manual control button changes once; the automatic control mode changes every 15 seconds and cycles once in 1 minute.
(3) System reset switch.
design background
Neon lights are the beauticians of the city. Whenever night falls and the lights come on, the colorful neon lights make the city look particularly beautiful. LED digital light strips use a brand-new structure and proprietary technology. The main body is connected by high-brightness light-emitting diodes (LEDs for short) through a special patented structure, and is formed by using unique optical technology and proprietary coating design. The main features are energy saving, environmental protection, shockproof, and waterproof. Its biggest feature is uniform light emission, 360-degree full-body light emission, and the light point of the LED cannot be seen from the outside when it is working, which is exactly the same as the light effect of traditional neon lights. Therefore, it is a good choice to design colored neon lights using LED light-emitting diodes.
This design uses the color light control system of STC89C51 single chip microcomputer to realize the control of LED color lights. According to the needs of users, several lighting modes can be programmed, and manual control and automatic control are realized. Different lighting times can output the control signal of light on or light off at different times to drive lights of various colors to turn on or off. There are many lighting modes, and users can adjust the lighting frequency and lighting time according to different occasions and time. Color light control system has been widely used.
hardware design
The figure shows the hardware design of this system. Specifically, the hardware circuit consists of the following modules:
(1) Single-chip microcomputer minimum system. It is used to drive and control other modules to achieve the overall function. It uses the STC89C51 single-chip microcomputer as the core chip, supplemented by a reset circuit and a crystal oscillator circuit.
(2) Button module: Used to realize automatic mode and manual mode.
(4) LED light module. Heart-shaped arrangement to realize various circuit patterns;
(5) Power module: Used to supply power to the entire system.
software design
According to the design requirements of this article, on the basis of hardware circuit design, the specific functions that need to be implemented through software programming are:
(1) Drive each module to work and light up the LED lamp;
(2) Button setting function. It can realize manual and automatic control of the speed of the light pattern change; the manual control button changes once; the automatic control mode changes every 15 seconds and cycles once in 1 minute;
(3) Pattern light realization: At least 10 light-emitting tubes can automatically change into 4 patterns in a cycle.
The specific design process is shown in the figure.
Schematic
The schematic diagram of this system was designed using Altium Designer19, as shown in the figure.
program
This design uses KEIL5 software to implement program design, as shown in the figure.
Simulation Implementation
This design uses protues8.7 software to implement simulation design, as shown in the figure.
Previous article:17-Low frequency signal generator based on 51 single chip microcomputer
Next article:15-Design of digital frequency meter based on 51 single chip microcomputer
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
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
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- What will happen if the servo motor inertia is insufficient?
- How to select parameters for servo motor inertia size
- The difference between the servo motor moment of inertia and the load moment of inertia
- How to calculate the inertia of servo motor and reducer
- What is the difference between a servo press and a normal press?
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- 【Development and application based on NUCLEO-F746ZG motor】11. Parameter configuration - ADC configuration
- [Solved] Why can’t I change my profile picture?
- The STM32F103VBT6 resets with a button. After releasing the button, it takes three or four seconds for the microcontroller to execute the program.
- [Xianji HPM6750 Review] + Unboxing
- C2000 combines capacitive touch and host controller functions
- 7660 chip common mode inductor manufacturer
- "【TGF4042 Signal Generator】" High-frequency distortion measurement
- About MSP430 watchdog settings
- Compilation warnings
- Detailed explanation of FPGA - the driving engine of the artificial intelligence era