16-Heart-shaped water lamp based on single chip microcomputer

Publisher:静静思索Latest update time:2021-09-18 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Reference address:16-Heart-shaped water lamp based on single chip microcomputer

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

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号