To move a single light left and right, the hardware circuit is shown in the figure. The eight light-emitting diodes L1 - L8 are respectively connected to the P1.0 - P1.7 interfaces of the single-chip computer. When the output is "0", the light-emitting diode lights up. At the beginning, P1.0 → P1.1 → P1.2 → P1.3 →┅→ P1.7 → P1.6 →┅→ P1.0 lights up, and the cycle repeats.
Use an 8-core cable to connect P1.0 - P1.7 in the "MCU System" area to the L1 - L8 ports in the "Eight-way LED Indicator Module" area. The requirements are: P1.0 corresponds to L1, P1.1 corresponds to L2, ... ... P1.7 corresponds to L8.
Figure 1. Circuit diagram of left and right movement of advertising light based on single chip microcomputer
Previous article:Schematic diagram of multi-way switch status display circuit based on C51 single chip microcomputer
Next article:Serial communication experimental circuit diagram of AT89 series single chip microcomputer and PC
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- [MM32 eMiniBoard Review] Part 5: ADC acquisition and host computer oscilloscope display
- [National Technology N32G430] 1. Unboxing
- CircuitPython 5.0.0 Beta 0 released
- MicroPython Newsletter Issue 8
- Contact information of forum administrator during the May Day holiday in 2021!
- Decoding infrared forehead thermometer: technical principles, disassembly analysis, design solutions, circuit solutions and other technical solutions
- 0R resistors, beads and inductors
- RVB2601 evaluation board trial 2 PWM use, that is, three-color small light drive
- GPIO register group in C6455
- I have never learned programming. Can I learn Python?