1 Design Task Requirements
Use edge JK trigger (74LS112), D trigger (74LS74) and 3-8 line decoder (74LS138) to form a running light circuit. The system is required to have a total of 8 lights, and the effect is always 7 bright and 1 dark, and the 1 dark light moves down or up in a cycle.
2 Design ideas and circuit composition block diagram
First, use the three triggers in 74LS112 and 74LS74 to form an asynchronous octal addition or subtraction counter; then connect the output terminals Q2Q1Q0 to the address code input terminals A2A1A0 of 74LS138 (3-8 decoder) respectively, so that the decoder can decode successively. The circuit composition block diagram is shown in Figure 1.
3 Circuit working principle
3.1
Circuit principle The circuit principle diagram is shown in Figure 2. The system is an 8-way water light controller. Its control form is 7 bright and 1 dark, and this 1 dark always moves from top to bottom, and repeats this cycle to form a flow effect. The circuit consists of five parts: power supply, clock pulse generation circuit, adder counter, decoding and LED display system.
3.2 Functions of each circuit
3.2.1 Power
supply circuit In the power supply circuit, the 220 V mains voltage is stepped down to 12 V AC through a transformer, then rectified by a bridge rectifier circuit composed of VD1~VD4 and filtered by Ct, and then stabilized by 7805 to 5 V DC voltage as the power supply for the clock pulse generation circuit, counter and decoding display circuit.
3.2.2 Clock pulse generation
circuit The clock pulse generation circuit mainly provides clock pulses for the counter. It is a multivibrator composed of a 555 timer, as shown in Figure 2.
Among them, R1, R2 and C3 are external timing components. When the power is turned on, the capacitor C3 has no time to charge, resulting in a low voltage across the capacitor C3, that is, the potential of the 2nd and 6th pins of the 555 is less than 1/3 of the power supply voltage, so the output of the 3rd pin of the 555 is high, and the discharge tube VT is cut off. At this time, the power supply charges the capacitor C3 through R1 and R2, so that the potential of the 2nd and 6th pins rises exponentially. When the potential of the 2nd and 6th pins rises to 2/3 of the power supply voltage, the output of the 3rd pin turns to a low level, and the discharge tube VT is turned on. At this time, the charging of the capacitor C3 is completed and it begins to discharge through R2 and the discharge tube. As the discharge of the capacitor C2 continues, the voltage across it gradually decreases. When it drops to 1/3 of the power supply voltage, the output becomes a high level again, the discharge tube VT is cut off, and the power supply charges the capacitor C3 again. In this way, after the continuous charging and discharging of the capacitor C3, a series of rectangular pulses can be obtained at the output end. From the above analysis, it can be seen that the charging process of the capacitor is essentially the period of time when the voltage across the capacitor rises from 1/3Vcc to 2/3Vcc, so the charging time is: Tcharging = 0.7(R1+R2)C3, and the discharge of the capacitor refers to the period of time when the voltage across the capacitor drops from 2/3Vcc to 1/3Vcc, and the discharge time is: Tdischarging = 0.7R2C3. It can be seen that once the circuit starts to oscillate, the voltage across the capacitor always changes between (1/3~2/3)Vcc, and its oscillation period is: T=Tcharge+Tdischarge=0.7(R1+2R2)
3.2.3 Adder counter circuit
Figure 3 shows an asynchronous 3-bit binary adder counter composed of two falling edge JK flip-flops and one rising edge D flip-flop. Each flip-flop is connected to the counting state, which is implemented by 74LS112 dual JK flip-flops and 74LS74 dual D flip-flops. Assume that before counting, a negative pulse is given to the reset terminal RD to make each flip-flop in the 0 state. Starting from the initial state 000, each time a counting pulse is input, the state of the counter increases in binary (adds 1). After the 8th counting pulse is input, the counter returns to the 000 state. The counting rules are shown in Table 1.
3.2.4 Decoding and display circuit
As shown in Figure 2, the decoding and display circuit is composed of a 3-8 decoder 74LS138 and 8-way light-emitting diodes. Before starting to count, first press the reset button S to make the counter output 000, which is decoded into a decimal number "0" by the 3-8 decoder, so the corresponding output is low level, LED0 is not lit, and the other 7 output terminals are all high level, so LED1 to LED7 are all lit. Then, when the first CP is sent to the counter, the counter output is 001, which is decoded into a decimal number "1" by the 3-8 decoder, so the corresponding output is low level, LED1 is not lit, and the other 7 output terminals are all high level, so LED0, LED2 to LED7 are all lit. If the second and third pulses are sent, LED2 and LED3 are not lit in turn, and when the seventh pulse is sent, LED 7 is not lit. This completes the movement of the dark from top to bottom, and when the eighth pulse comes again, the next cycle begins. Since the clock generation cycle of this circuit is 0.1 s, the running light can complete 5 cycles within 4 s. The effect of repeated cycles is like the flow of water. Therefore, it is called "advertising running light".
4 Component selection
Since the power consumption of this circuit is relatively low, the power transformer uses a small transformer with a secondary voltage of 12 V and 3 to 5 W. VD1 to VD4 all use 1N4007 silicon rectifier diodes. LED0 to LED7 use φ5 mm high-brightness red light-emitting diodes. C1 can use an aluminum electrolytic capacitor with a withstand voltage of 25 V, C2 and C3 can use aluminum electrolytic capacitors with a withstand voltage of 10 V, and C4 is a disc capacitor. 5.1 kΩ, 220 Ω resistors use 1/8 W metal film or carbon film resistors. The reset switch S uses a 6×6 touch switch. The models of the remaining integrated circuits are selected according to the markings in the circuit diagram.
5 Function expansion
(1) If the counter in Figure 3 is designed as a subtraction counter, the 7 bright and 1 dark can be moved from bottom to top in a cycle. In addition, if the 8-way LEDs are connected in reverse, 7 are dark and 1 is bright.
(2) If several LEDs are connected in parallel in each way, a simple Chinese sentence or English sentence can be formed.
6 Conclusion
This design has the advantages of stable performance, long life, low cost, simple circuit, and strong practicality. It introduces the production method of common running lights in a relatively complete way. It is a classic, interesting and reproducible design process in the process of learning digital circuits. It can effectively improve the learning interest, hands-on ability and ability to solve practical problems of digital circuit beginners.
Previous article:Design of intelligent digital switching power supply based on 68HC908SR12
Next article:Benefits of Digital Feedback Loops in Power Conversion Applications
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- [Qinheng Trial] Suggestions and Getting Started for the First Time
- Tesla Robot Optimus Prime Conference Uncut 4K HD Episode 3
- Communication Level Translation Guidelines
- micropython update: 2021.6
- Application Note (AN4866) Waterproof Function
- Sugar Glider Health Management System Based on RSL10 - Work Submission
- [ST MEMS waterproof pressure sensor LPS27HHW review] + First impression of LPS27HHW
- Average current control mode
- 【Perf-V Evaluation】+ Functional Test and Hardware Configuration Requirements
- Apply for ART-Pi for free: high-performance H7 chip, DIY tool