1 Introduction
The injection advance angle refers to the crankshaft angle from the moment the injector starts to spray fuel into the cylinder during engine operation (marked by the rise of the injector needle valve) to the moment the piston reaches the top dead center. It is replaced by the fuel supply advance angle during use. The advance angle will change due to the wear of the diesel engine injection pump cam drive. In addition, the engine cylinder liner, piston wear, or the crankshaft and connecting rod bearings are bored or replaced, which will also cause the advance angle to deviate from the value required for normal combustion. Therefore, the injection advance angle needs to be checked or adjusted frequently during engine use. High-precision measurement of the advance angle value is the key to accurate adjustment. The method of measuring the advance angle using a single-chip microcomputer introduced in this article has the characteristics of high measurement accuracy, wide range, and simplicity.
2 Measurement principle
A photoelectric sensor is fixed on the main shaft of the test bench motor and the injection pump respectively. The light pulse is converted into an electrical pulse by the photoelectric circuit, which is represented by N1 and N2 respectively. The 8051 single-chip microcomputer timer/counter 0 is set to working mode 2, that is, the 8-bit timer/counter with the initial value is automatically reloaded, and the TMOD gate bit GATE=1 and TRO=1 are set to make the timer/counter 0 work under the control of INT0. The spindle speed is calculated by the results measured by the measurement circuit shown in Figure 1. The advance time measurement circuit shown in Figure 3 measures the time difference T between pulse N1 and pulse N2 when the oil pump is operating normally at a certain speed, and calculates the advance angle. Since the absolute error of measuring the time of one spindle rotation is only one reference pulse cycle (1s), the relative measurement error of the speed is very small.
(1) Measurement of spindle speed
The oil pump runs at a certain speed. The pulse signal NO from the optical encoder disk that measures the spindle speed reaches the P3.4 pin of 8051. The microcontroller detects the pulse signal at the P3.4 pin and sets the P1.0 pin to a high level. The D flip-flop arrives at the next rising edge of the NO pulse, and Q outputs a high level. INT0 starts the timer T0 and uses R0 and R1 to record the number of timer interrupts. Timer T0 is set for a period of time t (the time should be less than the interval between the two rising edges of the NO pulse). When the time is up, the CPU is requested to set the P1.0 pin to a low level. Timer T0 continues to work and starts recording the time Δt. The D flip-flop waits for the next rising edge of the NO pulse to arrive, and the Q terminal outputs a low level. INTO stops the timer T0. The CPU calculates the total time T between the two consecutive rising edges of the NO pulse. This time is the time for the spindle to rotate once, so the spindle speed is 1/T.
(2) Measurement of advance angle
The oil pump runs at a certain speed. The pulse signal NO from the optical encoder disk that measures the spindle speed reaches the P3.4 pin of 8051. The microcontroller detects the pulse signal at the P3.4 pin and sets the P1.0 pin to a high level. The D flip-flop arrives at the rising edge of the next pulse (N1 pulse) of S, and Q outputs a high level. INT0 starts the timer T0 and uses R0 and R1 to record the number of timer interrupts. Timer T0 is timed for a period of time t (the time should be less than the interval U between the two adjacent rising edges of NO and N1 pulses). When the time is up, the CPU is requested to set the P1.0 pin to a low level. Timer 0 continues to work and starts recording the time Δt. The D flip-flop waits for the next pulse of S to rise, and the Q terminal outputs a low level. INT0 stops the timer T0. The CPU calculates the total time T (t+Δt), which is the time that NO is ahead of N1. According to the speed measurement method, the time A required for the spindle to rotate once is measured, and then the advance angle is calculated using the formula: advance angle = T/A.
3 Measurement subroutine flow chart
The following is the spindle speed measurement subroutine flow chart. The measurement of the advance angle can refer to this flow chart.
4 Conclusion
The method introduced in this paper has been applied to more than 30 oil pump test benches produced by two oil pump test bench manufacturers. The system has reliable operation and accurate measurement, which fully meets the test requirements. This system has certain reference value for high-precision measurement of speed and time of other systems.
5 References
[1] Single-Chip Microcomputer Principles and Applications [M]. Edited by Ding Yuanjie, China Machine Press. 1996, 10.
[2] Microcomputer Technology and Applications [M]. Dai Mei'e, Shi Jiaquan, Tsinghua University Press. 1996, 5.
Previous article:Prevention of Program Out of Control Based on MCS-96 Single Chip Microcomputer Control System
Next article:Design of controllable digital frequency source by single chip microcomputer controlled DDS chip
- Popular Resources
- Popular amplifiers
- Evaluating Roadside Perception for Autonomous Vehicles: Insights from Field Testing
- Signal Integrity and Power Integrity Analysis (Eric Bogatin)
- Chip Manufacturing: A Practical Tutorial on Semiconductor Process Technology (Sixth Edition)
- J1752™/3-SEP2017-Measurement of Radiated Emissions from Integrated Circuits—TEM/Wideband TEM (GTEM)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- 【DIY】Make a 5V input car light controller
- Linux self-study notes (II) Linux disk partition
- EEWORLD University Hall ---- Intelligent Information Processing Peking University Tan Ying
- 【Gravity:AS7341 Review】+Received Color Sensor
- Xunwei IMX6Q development board AndroidStudio-calendar test
- Do you repair Mitsubishi PLC, Siemens PLC, servo drive boards, etc.?
- 6U VPX signal processing card based on C6678+XC7V690T
- How to design PCB safety spacing?
- Timer capture
- Demystifying Medical Alarm Design, Part 1: IEC60601-1-8 Standard Requirements