Complete circuit diagram of 51 single chip running water lamp

Publisher:asd123yuiLatest update time:2023-10-10 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  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.

Complete circuit diagram of 51 single chip running water lamp

  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.

Complete circuit diagram of 51 single chip running water lamp

  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.

Complete circuit diagram of 51 single chip running water lamp
Complete circuit diagram of 51 single chip 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

Complete circuit diagram of 51 single chip running water lamp
Complete circuit diagram of 51 single chip running 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.

Complete circuit diagram of 51 single chip running water lamp

  51 single chip running water lamp circuit diagram (6)

  Sixteen-channel running water lamp circuit schematic diagram based on single-chip microcomputer design

Complete circuit diagram of 51 single chip running water lamp


Reference address:Complete circuit diagram of 51 single chip running water lamp

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

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号