CN101738211B - Device and method for measuring rotation angle of engine crankshaft - Google Patents

Device and method for measuring rotation angle of engine crankshaft Download PDF

Info

Publication number
CN101738211B
CN101738211B CN 200810227084 CN200810227084A CN101738211B CN 101738211 B CN101738211 B CN 101738211B CN 200810227084 CN200810227084 CN 200810227084 CN 200810227084 A CN200810227084 A CN 200810227084A CN 101738211 B CN101738211 B CN 101738211B
Authority
CN
China
Prior art keywords
signal
pulse
low level
electric impulse
impulse signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200810227084
Other languages
Chinese (zh)
Other versions
CN101738211A (en
Inventor
刘少勇
王世友
沈强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN 200810227084 priority Critical patent/CN101738211B/en
Publication of CN101738211A publication Critical patent/CN101738211A/en
Application granted granted Critical
Publication of CN101738211B publication Critical patent/CN101738211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

本发明公开了一种发动机曲轴转角的测量装置,包括:编码盘,与发动机曲轴一起旋转并产生光脉冲信号;光电传感器,用于感应所述编码盘与发动机曲轴一起旋转过程中产生的光脉冲信号,并将所述光脉冲信号转换为电脉冲信号;信号采集器,用于采集所述电脉冲信号的高和/或低电平脉冲数量;以及信号处理器,根据所述高和/或低电平脉冲数量获得发动机曲轴旋转的角度。本发明能够提供高精度的发动机曲轴转角测量。本发明还公开一种发动机曲轴转角的测量方法。

Figure 200810227084

The invention discloses a measuring device for the rotation angle of the engine crankshaft, which comprises: an encoding disk, which rotates together with the engine crankshaft and generates an optical pulse signal; signal, and convert the optical pulse signal into an electric pulse signal; the signal collector is used to collect the high and/or low level pulse quantity of the electric pulse signal; and the signal processor, according to the high and/or The number of low level pulses obtains the angle of rotation of the engine crankshaft. The invention can provide high-precision measurement of the crank angle of the engine. The invention also discloses a method for measuring the crank angle of the engine.

Figure 200810227084

Description

发动机曲轴转角的测量装置及方法Measuring device and method for engine crankshaft angle

技术领域 technical field

本发明涉及测量技术,尤其涉及一种发动机曲轴转角的测量装置和方法。The invention relates to measurement technology, in particular to a measurement device and method for engine crank angle.

背景技术 Background technique

随着汽车技术的发展和国家排放标准的提高,对发动机的控制要求越来越高,要实现对发动机的精确控制,首先就必须要实现发动机各种数据的精确测量和采集。在发动机的众多数据中,其曲轴转角就是一个重要的数据。With the development of automobile technology and the improvement of national emission standards, the requirements for engine control are getting higher and higher. To achieve precise control of the engine, it is first necessary to achieve accurate measurement and collection of various engine data. Among the many data of the engine, its crankshaft angle is an important data.

发动机的曲轴转角是通过曲轴在旋转一周的过程中所经过的不同位置对应的角度来确定的,通过曲轴转角获得相应的活塞位置,从而决定发动机的点火时间。发动机的点火时间是否正确直接关系到发动机的动力输出和燃料的燃烧情况(排放是否达标)。发动机的点火时间不正确时带来的主要危害有:1、发动机的点火时间太早则会导致爆震,从而损坏发动机或减小其寿命。2、如果发动机的点火时间太晚则会使燃油燃烧不充分就被排出,造成大气污染,从而使排放严重的不达标。3、无论是发动机的点火时间提前或者太晚都会使发动机的动力输出不足。The crankshaft angle of the engine is determined by the angles corresponding to the different positions passed by the crankshaft during one revolution, and the corresponding piston position is obtained through the crankshaft angle, thereby determining the ignition time of the engine. Whether the ignition time of the engine is correct is directly related to the power output of the engine and the combustion of fuel (whether the emission is up to standard). The main hazards brought when the ignition time of the engine is incorrect are: 1. Too early ignition time of the engine will cause knocking, thereby damaging the engine or reducing its life. 2. If the ignition time of the engine is too late, the fuel will be discharged due to insufficient combustion, causing air pollution, so that the emission is seriously not up to standard. 3. Whether the ignition time of the engine is advanced or too late, the power output of the engine will be insufficient.

目前,常用的曲轴转角检测装置为电磁式传感器,即在发动机的曲轴一端上安装有一定齿数的齿盘,然后电磁感应元件(例如霍尔元件)相对于齿盘固定安装在一定位置。这样,在发动机转动时,安装在曲轴一端的齿盘上的齿牙就会依次接近电磁感应元件,从而在电磁感应元件的信号输出端产生对应齿数的近似于正弦波的波形。该电磁式传感器的输出波形为差分信号,通过转换处理使其成为具有相同频率的方波,因此根据这些方波来确定曲轴旋转一周的具体位置。At present, the commonly used crank angle detection device is an electromagnetic sensor, that is, a gear plate with a certain number of teeth is installed on one end of the crankshaft of the engine, and then an electromagnetic induction element (such as a Hall element) is fixedly installed at a certain position relative to the gear plate. In this way, when the engine rotates, the teeth installed on the chainring at one end of the crankshaft will approach the electromagnetic induction element successively, thereby generating a waveform similar to a sine wave corresponding to the number of teeth at the signal output end of the electromagnetic induction element. The output waveform of the electromagnetic sensor is a differential signal, which is transformed into a square wave with the same frequency through conversion processing, so the specific position of the crankshaft one revolution is determined according to these square waves.

但是,现有的电磁式传感器具有以下缺点:(1)齿盘的齿数较少,传感器的精度较低;(2)电磁传感器的产生的波形受转速的影响很大,在低速和高速时产生的电压信号的波峰值变化很大,近似波形对比如图3所示。如图所示,低速时电压很小(一般只有几伏),而高速时电压就很大(可以达到几十伏),这样对处理该信号的芯片的电压冲击就很大,造成对芯片的很大伤害;(3)在进行方波转化的过程中,会因传感器随转速高低不同产生幅值不同而致使方波的脉宽不同,从而产生误差,造成此类传感器产生的测试误差较大;(4)此类传感器的安装要求比较高,主要是指齿盘与电磁感应元件的相对位置必须一样大,否则产生的波形的误差将会更大。However, the existing electromagnetic sensors have the following disadvantages: (1) the number of teeth of the tooth plate is small, and the accuracy of the sensor is low; The peak value of the voltage signal varies greatly, and the approximate waveform comparison is shown in Figure 3. As shown in the figure, the voltage at low speed is very small (generally only a few volts), and at high speed the voltage is very large (can reach tens of volts), so the voltage impact on the chip processing the signal is very large, causing damage to the chip (3) In the process of square wave conversion, the pulse width of the square wave will be different due to the difference in the amplitude of the sensor with the speed of the speed, resulting in errors, resulting in a large test error generated by this type of sensor ; (4) The installation requirements of this type of sensor are relatively high, mainly referring to that the relative position of the gear plate and the electromagnetic induction element must be the same, otherwise the error of the generated waveform will be greater.

因此,现有技术的发动机曲轴转角测量装置不能够提供精确的转角测量。Therefore, the engine crank angle measurement device in the prior art cannot provide accurate rotation angle measurement.

发明内容 Contents of the invention

本发明的目的旨在至少解决现有技术中的上述问题之一。The object of the present invention is to solve at least one of the above-mentioned problems in the prior art.

为此,本发明提出一种发动机曲轴转角的测量方法和装置,从而提供精确的曲轴转角测量。Therefore, the present invention proposes a method and device for measuring the crank angle of an engine, thereby providing accurate measurement of the crank angle.

根据本发明一个方面,本发明实施例提供的发动机曲轴转角的测量装置包括:编码盘,与发动机曲轴一起旋转并产生光脉冲信号;光电传感器,用于感应所述编码盘与发动机曲轴一起旋转过程中产生的光脉冲信号,并将所述光脉冲信号转换为电脉冲信号;信号采集器,用于采集所述电脉冲信号的高和/或低电平脉冲数量;以及信号处理器,根据所述高和/或低电平脉冲数量获得发动机曲轴旋转的角度。According to one aspect of the present invention, the device for measuring the crank angle of the engine crankshaft provided by the embodiment of the present invention includes: an encoder disc, which rotates together with the engine crankshaft and generates an optical pulse signal; a photoelectric sensor, which is used to sense the rotation process of the encoder disc and the engine crankshaft The optical pulse signal generated in the optical pulse signal, and convert the optical pulse signal into an electrical pulse signal; the signal collector is used to collect the high and/or low level pulse quantity of the electrical pulse signal; and the signal processor, according to the The number of high and/or low level pulses to obtain the angle of rotation of the engine crankshaft.

根据本发明的另一方面,本发明的实施例提出一种发动机曲轴转角的测量方法,包括以下步骤:设置与发动机曲轴一起旋转的编码盘;在所述编码盘与发动机曲轴一起旋转过程中,向所述编码盘发射光线以产生光脉冲信号;采集所述光脉冲信号并转换为电脉冲信号;将所述电脉冲信号的高和/或低电平脉冲数量进行计数;和根据所述高和/或低电平脉冲计数获得发动机曲轴的旋转角度。According to another aspect of the present invention, an embodiment of the present invention proposes a method for measuring the crankshaft angle of an engine, comprising the following steps: setting an encoder disc that rotates together with the crankshaft of the engine; during the process that the encoder disc rotates with the crankshaft of the engine, Emitting light to the code disc to generate an optical pulse signal; collecting the optical pulse signal and converting it into an electrical pulse signal; counting the number of high and/or low level pulses of the electrical pulse signal; and according to the high and/or low-level pulse counts to obtain the rotation angle of the engine crankshaft.

本发明将光电传感器和光电编码盘应用于发动机曲轴的转角测量中,可以大大提高转角的测量精度,从而为精确控制发动机的点火时间提供依据,并从整体上提高发动机的总体性能,减小发动机的排放污染物。并且,光电传感器不仅输出的电脉冲信号波形不受发动机转速的影响,并且在发动机高速和低速时其波形的电压幅值保持不变。这样可以避免对处理光电传感器信号的芯片的电压冲击,提高整个测量装置的可靠性。The invention applies the photoelectric sensor and the photoelectric encoder disk to the measurement of the rotation angle of the engine crankshaft, which can greatly improve the measurement accuracy of the rotation angle, thereby providing a basis for accurately controlling the ignition time of the engine, and improving the overall performance of the engine as a whole, reducing the emissions of pollutants. Moreover, not only the electrical pulse signal waveform output by the photoelectric sensor is not affected by the engine speed, but also the voltage amplitude of the waveform remains unchanged at high and low engine speeds. In this way, the voltage impact on the chip processing the photoelectric sensor signal can be avoided, and the reliability of the entire measuring device can be improved.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明 Description of drawings

本发明的上述和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1为本发明实施例的发动机曲轴转角测量装置的结构方框图;Fig. 1 is the structural block diagram of the engine crank angle measuring device of the embodiment of the present invention;

图2为本发明实施例的编码盘和光电传感器的安装结构俯视图和正视图;Fig. 2 is a top view and a front view of the installation structure of the code disc and the photoelectric sensor of the embodiment of the present invention;

图3为本发明光电传感器输出的电脉冲信号波形图示例;Fig. 3 is the example of the electrical pulse signal waveform figure that photoelectric sensor of the present invention outputs;

图4为本发明光电传感器输出的电脉冲信号经过波形转换和放大后的波形图示例;Fig. 4 is the electric pulse signal that the photoelectric sensor of the present invention outputs after waveform conversion and amplified waveform diagram example;

图5为本发明发动机曲轴转角测量方法步骤流程图;和Fig. 5 is a flow chart of the steps of the method for measuring engine crankshaft angle of the present invention; and

图6为本发明实施例的结合脉宽计时获得曲轴转角的步骤流程图。Fig. 6 is a flow chart of the steps of obtaining the crank angle by combining the pulse width timing according to the embodiment of the present invention.

具体实施方式 Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

首先,请参考图1,该图为本发明实施例的发动机曲轴转角测量装置的结构方框图。First, please refer to FIG. 1 , which is a structural block diagram of an engine crank angle measuring device according to an embodiment of the present invention.

如图所示,本发明的测量装置包括编码盘12、光电传感器14、信号采集器16和信号处理器18。编码盘12与发动机曲轴一起旋转,并通过接收由光电传感器14的光线发射器(图中未显示)发射的光线,来产生光脉冲信号。光电传感器14还包括光线接收器(图中未显示),用于接收编码盘12产生的光脉冲信号。光电传感器14根据光线接收器的接收光信号,感应编码盘12与发动机曲轴一起旋转过程中产生的光脉冲信号,并将光脉冲信号转换为电脉冲信号。As shown in the figure, the measuring device of the present invention includes a code disc 12 , a photoelectric sensor 14 , a signal collector 16 and a signal processor 18 . The encoder disc 12 rotates together with the crankshaft of the engine, and generates light pulse signals by receiving the light emitted by the light emitter (not shown in the figure) of the photoelectric sensor 14 . The photoelectric sensor 14 also includes a light receiver (not shown in the figure) for receiving the light pulse signal generated by the encoder disc 12 . The photoelectric sensor 14 senses the light pulse signal generated during the rotation of the encoder disk 12 and the crankshaft of the engine according to the received light signal of the light receiver, and converts the light pulse signal into an electric pulse signal.

信号采集器16与光电传感器14的输出端连接,从而对光电传感器14转换的电脉冲信号进行采集,并进行电脉冲信号高和/或低电平脉冲数量计数。信号采集器16将计时结果输入到信号处理器18中,信号处理器18则根据高和/或低电平脉冲数量获得发动机曲轴旋转的角度。The signal collector 16 is connected to the output end of the photoelectric sensor 14, so as to collect the electric pulse signal converted by the photoelectric sensor 14, and count the number of high and/or low level pulses of the electric pulse signal. The signal collector 16 inputs the timing result into the signal processor 18, and the signal processor 18 obtains the rotation angle of the engine crankshaft according to the number of high and/or low level pulses.

另外,信号采集器16采集发动机曲轴旋转一周的脉冲数,即测量精度与光电传感器14的分辨率有关。例如,当光电传感器14的分辨率是20KHz,即采用的光电传感器14在1秒里最多可以处理的脉冲数为20K时,若发动机曲轴在1秒钟内旋转100圈,那么在曲轴旋转一圈的过程中,光电传感器14最多可以处理曲轴输出的转角脉冲是200个。也就是说,和发动机曲轴一起旋转一周的过程中,编码盘12产生的光信号脉冲最多可达200个。因此,在发动机最高转速一定的情况下,光电传感器14的分辨率越高,每个光信号脉冲对应的曲轴转角越小,这样就能够大大提高曲轴转角的测量精度。但是,由于信号采集器16的数据处理能力是有限的,因此测量精度也不能设置的太高。在实际应用中,光电传感器14的分辨率可以基于信号采集器16处理电脉冲信号的数量设定适当的大小。In addition, the signal collector 16 collects the number of pulses for one rotation of the engine crankshaft, that is, the measurement accuracy is related to the resolution of the photoelectric sensor 14 . For example, when the resolution of the photoelectric sensor 14 is 20KHz, that is, the maximum number of pulses that the photoelectric sensor 14 can handle in 1 second is 20K, if the crankshaft of the engine rotates 100 circles in 1 second, then the crankshaft rotates once During the process, the photoelectric sensor 14 can handle up to 200 rotation angle pulses output by the crankshaft. That is to say, during one rotation with the crankshaft of the engine, the encoder disk 12 generates up to 200 optical signal pulses. Therefore, when the maximum engine speed is constant, the higher the resolution of the photoelectric sensor 14, the smaller the crank angle corresponding to each optical signal pulse, which can greatly improve the measurement accuracy of the crank angle. However, since the data processing capability of the signal collector 16 is limited, the measurement accuracy cannot be set too high. In practical applications, the resolution of the photoelectric sensor 14 can be set to an appropriate size based on the number of electrical pulse signals processed by the signal collector 16 .

编码盘12和光电传感器14的安装结构图如图2所示,图2从俯视和正视角度显示了编码盘12和光电传感器14的一种安装配置关系实施例。如图所示,编码盘12上均匀环形设置有彼此相间的明纹编码刻度g1和暗纹编码刻度g2,明纹编码刻度g1和暗纹编码刻度g2分别用来阻挡或者通过光线发射器发出光线。光电传感器14的光轴中心(图2中h表示光轴的中心线)与编码刻度g1、g2的中心孔对应,从而编码盘12可以更灵敏地接收光线并产生精确的光脉冲信号。The installation structure diagram of the code disk 12 and the photoelectric sensor 14 is shown in FIG. 2 , and FIG. 2 shows an embodiment of an installation configuration relationship of the code disk 12 and the photoelectric sensor 14 from the top view and the front view. As shown in the figure, the coding disc 12 is uniformly provided with alternate bright pattern coding scales g1 and dark pattern coding scales g2, which are respectively used to block or emit light through the light emitter . The center of the optical axis of the photoelectric sensor 14 (h represents the centerline of the optical axis in FIG. 2 ) corresponds to the central holes of the encoding scales g1 and g2, so that the encoding disc 12 can receive light more sensitively and generate accurate optical pulse signals.

需要指出的是,图2的实施例仅用于示例目的,不在于限制本发明。例如,编码盘12为编码齿盘,其外缘均匀设置有齿牙和齿缺,以分别用于阻挡或者通过来自光电传感器14的光线发射器发射的光线。It should be pointed out that the embodiment in FIG. 2 is only for the purpose of illustration, and is not intended to limit the present invention. For example, the code disk 12 is a code tooth disk, and its outer edge is uniformly provided with teeth and tooth gaps, which are respectively used to block or pass the light emitted from the light emitter of the photoelectric sensor 14 .

现在,返回参考图1,将结合编码盘的不同结构对本发明实施例的发动机曲轴转角测量装置进行详细说明。Now, referring back to FIG. 1 , the engine crank angle measuring device according to the embodiment of the present invention will be described in detail in combination with different structures of the code disc.

对具有图2所示明纹和暗纹编码刻度g1和g2的编码盘12,在编码盘12和发动机曲轴旋转的过程中,光电传感器14的光线发射器发射到编码盘12明纹编码刻度g1上的光线会从其中穿过,发射到暗纹编码刻度g2上的光线会发生反射,并传输到光电传感器14的光线接收器上。因此,光电传感器14感应到该编码盘对应产生的光脉冲信号,并通过光电转换将曲轴旋转角位移转换成电脉冲信号。这里,光电传感器14将暗纹编码刻度g2对应产生的光脉冲信号转换为低电平的电脉冲信号,将明纹编码刻度g1对应产生的光脉冲信号转换为高电平的电脉冲信号。For the code disc 12 with bright pattern and dark pattern coding scales g1 and g2 shown in Fig. 2, during the rotation process of the code disc 12 and the crankshaft of the engine, the light emitter of the photoelectric sensor 14 emits to the code disc 12 bright pattern coding scale g1 The light on the top will pass through it, and the light emitted to the dark pattern coding scale g2 will be reflected and transmitted to the light receiver of the photoelectric sensor 14. Therefore, the photoelectric sensor 14 senses the corresponding optical pulse signal generated by the encoder disc, and converts the rotational angular displacement of the crankshaft into an electrical pulse signal through photoelectric conversion. Here, the photoelectric sensor 14 converts the light pulse signal generated corresponding to the dark pattern coding scale g2 into a low-level electric pulse signal, and converts the light pulse signal generated corresponding to the bright pattern coding scale g1 into a high-level electric pulse signal.

同样地,对具有齿牙和齿缺的编码盘12,光电传感器14将编码盘12的齿牙产生的光脉冲信号转换为低电平的电脉冲信号,将齿缺产生的光信号脉冲转换为高电平的电脉冲信号。Similarly, for the encoder disc 12 with teeth and tooth gaps, the photoelectric sensor 14 converts the optical pulse signal generated by the teeth of the encoder disc 12 into a low-level electrical pulse signal, and converts the optical signal pulse generated by the tooth gap into High level electric pulse signal.

光电传感器14输出的电脉冲信号波形例如图3的实施例所示,该输出电脉冲近似为矩形脉冲。此外,由于光电传感器信号输出波形电压不受发动机曲轴转速的影响,因此其高速和低速时波形的电压幅值可保持不变。The waveform of the electrical pulse signal output by the photoelectric sensor 14 is shown in the embodiment of FIG. 3 , and the output electrical pulse is approximately a rectangular pulse. In addition, since the output waveform voltage of the photoelectric sensor signal is not affected by the crankshaft speed of the engine, the voltage amplitude of the waveform can remain unchanged at high speed and low speed.

信号采集器16可以根据光电传感器14输出的电脉冲信号,以单个高/低电平脉冲为单位,分别依次对高电平和低电平脉冲计数;或者以高电平和低电平脉冲总和为单位,仅对高电平或低电平进行计数。设定信号采集器16对单个高或低电平脉冲计数,可以减少信号采集器16执行计数处理的复杂度和处理时间。当然,计数的电平脉冲单位越小,每个计数脉冲对应的旋转角度越小,对应的转角测量的精度越高。所以,信号采集器16的脉冲计数单位可以根据实际需要适当设定。The signal collector 16 can count the high-level and low-level pulses in sequence according to the electrical pulse signal output by the photoelectric sensor 14 in units of a single high-level/low-level pulse; or the sum of high-level and low-level pulses as a unit , count only high or low levels. Setting the signal collector 16 to count a single high-level or low-level pulse can reduce the complexity and processing time of the counting process performed by the signal collector 16 . Of course, the smaller the level pulse unit counted, the smaller the rotation angle corresponding to each count pulse, and the higher the precision of the corresponding rotation angle measurement. Therefore, the pulse counting unit of the signal collector 16 can be appropriately set according to actual needs.

信号处理器18根据信号采集器16输出的电平脉冲数量以及单个脉冲计数对应的编码盘转角,例如,在只对高/低电平脉冲进行计数时,若编码盘上均匀设置有120个相同大小的齿牙,则相邻一个齿牙和齿缺对应的转角为3度,相应的一个高/低电平脉冲计数对应的角度为3度。因此,信号处理器18通过将脉冲数量进行转换,从而可获得曲轴已旋转过的角度。The signal processor 18 counts the corresponding encoding disc rotation angle according to the level pulse quantity output by the signal collector 16 and a single pulse, for example, when only high/low level pulses are counted, if there are 120 identical If the teeth are large or small, the corresponding rotation angle between an adjacent tooth and the missing tooth is 3 degrees, and the corresponding angle corresponding to a high/low level pulse count is 3 degrees. Therefore, the signal processor 18 can obtain the angle by which the crankshaft has rotated by converting the number of pulses.

另外,在一个实施例中,本发明的曲轴转角测量装置可以进一步包括波形转换器20和放大器22。如图2虚线对应部分所示,波形转换器20将光电传感器14输出的电脉冲信号转换为标准的矩形波,例如波形转换器20为一个非门电路,通过对电脉冲信号进行非门的简单处理,即能得到矩形波。当然,本发明的波形转换器20不局限于该具体实施例,现有技术中任何可用于矩形波转换的设备均适用于本发明。放大器22则用于进一步对波形转换器20输出的矩形波电压进行放大,例如所得的电脉冲信号波形如图4所示。通过波形转换器20输出的矩形波,可以方便信号采集器16对电脉冲信号的精确计数,并且通过放大器20对矩形波电压值的放大,使电脉冲信号的强度电压值达到对应采用的信号采集器16的识别范围内,例如高电平放大为5V,低电平放大为1V,从而可以进一步提高信号采集器16的信号采集精度。In addition, in one embodiment, the crank angle measuring device of the present invention may further include a waveform converter 20 and an amplifier 22 . As shown in the corresponding part of the dotted line in Figure 2, the waveform converter 20 converts the electrical pulse signal output by the photoelectric sensor 14 into a standard rectangular wave. For example, the waveform converter 20 is a NOT gate circuit. After processing, a rectangular wave can be obtained. Of course, the waveform converter 20 of the present invention is not limited to this specific embodiment, and any device that can be used for rectangular wave conversion in the prior art is applicable to the present invention. The amplifier 22 is used to further amplify the rectangular wave voltage output by the waveform converter 20 , for example, the obtained electric pulse signal waveform is shown in FIG. 4 . The rectangular wave output by the waveform converter 20 can facilitate the accurate counting of the electric pulse signal by the signal collector 16, and through the amplification of the voltage value of the rectangular wave by the amplifier 20, the intensity voltage value of the electric pulse signal can reach the corresponding signal acquisition. Within the identification range of the signal collector 16, for example, the high level is amplified to 5V, and the low level is amplified to 1V, so that the signal collection accuracy of the signal collector 16 can be further improved.

在一个实施例中,信号采集器16还可以包括脉冲宽度计时单元(图中未显示),脉冲宽度计时单元用于根据所述电脉冲信号的高/低电平脉冲宽度进行计时。并且,信号处理器18还包括脉冲宽度处理单元(图中未显示),以根据脉冲宽度计时单元对高/低电平脉冲的宽度计时,确定单个高/低电平脉冲的一定宽度对应的发动机曲轴的旋转角度。设置脉冲宽度计时单元和脉冲宽度处理单元是为了进一步提高曲轴转角的检测精度,并满足点火位置对应的曲轴转角位于两个脉冲中间的需要,即为了解决当需要点火的角度刚好落在两个脉冲之间而无法实现精确点火的问题。In one embodiment, the signal collector 16 may further include a pulse width timing unit (not shown in the figure), and the pulse width timing unit is used for timing according to the high/low level pulse width of the electric pulse signal. And, the signal processor 18 also includes a pulse width processing unit (not shown in the figure), to determine the motor corresponding to a certain width of a single high/low level pulse according to the timing of the width of the high/low level pulse by the pulse width timing unit. The angle of rotation of the crankshaft. The purpose of setting the pulse width timing unit and pulse width processing unit is to further improve the detection accuracy of the crank angle, and to meet the requirement that the crank angle corresponding to the ignition position is located in the middle of the two pulses, that is, to solve the problem when the required ignition angle just falls between the two pulses. The problem of precise ignition cannot be achieved.

下面,将结合图3和图4实施例,分别对脉冲宽度计时单元和脉冲宽度处理单元的工作原理说明如下。In the following, the working principles of the pulse width timing unit and the pulse width processing unit will be described respectively with reference to the embodiments of FIG. 3 and FIG. 4 .

脉冲宽度计时单元用于在信号采集器16对电脉冲信号的脉冲个数计数的同时对脉冲的宽度进行计时,脉冲宽度计时单元是从电脉冲信号每个高/低电平脉冲的宽度起点开始计时。在一个实施例中,对于高电平脉冲,其宽度起点与每个高电平脉冲上第一预定阈值电压对应;对于低电平脉冲,其宽度起点与每个低电平脉冲上第二预定阈值电压对应。详细来说,高电平脉冲的宽度起点和终点与该脉冲上升沿和下降沿的第一预定阈值电压值分别对应,低电平脉冲的宽度起点和终点与该脉冲下降沿和上升沿的第二预定阈值电压分别对应。也就是说,脉冲宽度计时单元可以根据划分电脉冲信号高、低电平的电压值点,来确定其开始宽度计时的起点。由于编码盘均匀设置有齿牙和齿缺或者明、暗编码刻度,在曲轴速度变化的情况下,它们对应产生的相邻高电平脉冲和低电平脉冲的宽度仍近似相同的。The pulse width timing unit is used to time the width of the pulse while the signal collector 16 counts the number of pulses of the electrical pulse signal, and the pulse width timing unit starts from the starting point of each high/low level pulse width of the electrical pulse signal timing. In one embodiment, for a high-level pulse, the starting point of its width corresponds to the first predetermined threshold voltage on each high-level pulse; for a low-level pulse, its width starting point corresponds to the second predetermined threshold voltage on each low-level pulse. threshold voltage corresponds to. In detail, the starting point and ending point of the width of the high-level pulse correspond to the first predetermined threshold voltage value of the rising edge and the falling edge of the pulse, respectively, and the starting point and ending point of the width of the low-level pulse correspond to the first predetermined threshold voltage value of the falling edge and the rising edge of the pulse. The two predetermined threshold voltages correspond respectively. That is to say, the pulse width timing unit can determine the starting point for starting width timing according to the voltage value points that divide the high and low levels of the electric pulse signal. Since the code disc is evenly provided with teeth and tooth gaps or bright and dark coding scales, the widths of the corresponding adjacent high-level pulses and low-level pulses generated by them are still approximately the same when the crankshaft speed changes.

脉冲宽度计时单元可以连续计时或者以预定的时间间隔进行计时,并相应输出计时数值到信号采集器16的脉冲宽度处理单元中。当然,计时的时间间隔越小,脉冲宽度计时单元对当前脉冲宽度的计时精度越高。相应地。脉冲宽度处理单元处理该计时得到的角度越精确。The pulse width timing unit can perform timing continuously or at predetermined time intervals, and correspondingly output the timing value to the pulse width processing unit of the signal collector 16 . Of course, the shorter the timing interval, the higher the timing accuracy of the current pulse width by the pulse width timing unit. Correspondingly. The angle obtained by the pulse width processing unit processing the timing is more accurate.

例如图3所示电脉冲信号,脉冲宽度计时单元可以从上升沿的第一预定阈值电压2.4V的对应点作为宽度起点开始进行一个高电平脉冲宽度计时,并从下降沿的第二预定阈值电压0.4V的对应点作为宽度起点开始一个低电平脉冲的宽度计时。这样,通过对上升沿和下降沿的2.4V电压之间的脉冲宽度计时,可以得到对应高电平脉冲上一定宽度及整个宽度的计时时间。同理,可以得到对应低电平脉冲上一定宽度及整个宽度的计时时间。当然,本发明的第一预定阈值电压和第二预定阈值电压不局限于具体实施例,脉冲宽度计时单元可以从任意划分高、低电平的对应电压值点进行对应的高电平、低电平脉冲的宽度计时。对于图4所示电脉冲信号,每个高、低电平脉冲的宽度起点分别为其上升沿和下降沿的对应点。这里,脉冲宽度计时单元只针对每个当前高/低电平脉冲的宽度进行计时,若对整个脉冲宽度计时完毕,则从下一个电平脉冲的宽度起点重新进行计时。For example, for the electrical pulse signal shown in Figure 3, the pulse width timing unit can start a high-level pulse width timing from the corresponding point of the first predetermined threshold voltage 2.4V on the rising edge as the width starting point, and start from the second predetermined threshold voltage on the falling edge The corresponding point of the voltage 0.4V is used as the starting point of the width to start timing the width of a low-level pulse. In this way, by timing the pulse width between the rising edge and the falling edge of the 2.4V voltage, the timing time corresponding to a certain width and the entire width of the high-level pulse can be obtained. In the same way, the timing time corresponding to a certain width and the entire width of the low-level pulse can be obtained. Certainly, the first predetermined threshold voltage and the second predetermined threshold voltage of the present invention are not limited to the specific embodiment, and the pulse width timing unit can perform corresponding high level and low level voltage points from the corresponding voltage value point of arbitrarily dividing high level and low level. The width of the flat pulse is timed. For the electrical pulse signal shown in FIG. 4 , the starting point of the width of each high and low level pulse is the corresponding point of its rising edge and falling edge respectively. Here, the pulse width timing unit only counts the width of each current high/low level pulse, and restarts timing from the starting point of the width of the next level pulse if the entire pulse width is timed.

如图3实施例所示,脉冲宽度计时单元通过脉宽计时,可以获得单个高/低电平脉冲整个宽度对应的计时时间t1及其相邻的当前单个高/低电平脉冲一定宽度对应的时间t2。脉冲宽度处理单元则根据当前高/低电平脉冲宽度的计时时间t2与前一个高/低电平脉冲整个宽度对应的计时时间t1的比值,计算出它们的比值,从而根据该比值及t1时间的单个高/低电平脉冲对应的曲轴转角确定t2时间的电平脉冲宽度对应的曲轴转角。由于曲轴实际运行时速度会不断变化,因此为了更精确地获得当前电平脉冲宽度对应的曲轴转角,在本发明实施例中,以该当前电平脉冲相邻的前一个脉冲整个宽度计时时间为基础进行对应的转角计算。As shown in the embodiment of Figure 3, the pulse width timing unit can obtain the timing time t1 corresponding to the entire width of a single high/low level pulse and the timing time t1 corresponding to a certain width of the adjacent current single high/low level pulse through pulse width timing. time t2. The pulse width processing unit calculates their ratio according to the ratio of the timing time t2 of the current high/low level pulse width to the timing time t1 corresponding to the entire width of the previous high/low level pulse, and then calculates their ratio according to the ratio and t1 time The crank angle corresponding to the single high/low level pulse determines the crank angle corresponding to the level pulse width at time t2. Since the speed of the crankshaft will constantly change during actual operation, in order to obtain the crank angle corresponding to the current level pulse width more accurately, in the embodiment of the present invention, the timing time of the entire width of the previous pulse adjacent to the current level pulse is Based on the corresponding calculation of the rotation angle.

下面,结合具体实施例作出详细说明。假设编码盘12上均匀设置有120个齿牙,即每个齿牙对应的转角是3°,并且通过该结构设置的编码盘12,光电传感器14输出并经波形转换器20和放大器22的电脉冲信号波形图如图4所示。以图4中0点位置为基准点,在编码盘12随发动机曲轴转动的过程中,当前信号采集器16例如只对电脉冲信号的高/低电平进行计数,且脉冲计数为3个,即存在3个高电平脉冲或低电平脉冲,每计数一个高/低电平脉冲表示曲轴旋转过的角度为3°。并且,脉冲宽度计时单元当前脉冲的宽度计时时间为t0,其前一个脉冲整个宽度对应的计时时间为t0。因此,脉冲宽度处理单元根据这两个宽度时间得到它们的比值为

Figure G2008102270847D0008171033QIETU
。信号处理器18根据当前的3个脉冲计数、单个高/低电平脉冲对应的曲轴转角
Figure G2008102270847D0008171046QIETU
、脉冲宽度处理单元确定的计时比值
Figure G2008102270847D0008171053QIETU
,可以确定当前曲轴旋转过的角度为
Figure G2008102270847D0008171103QIETU
。Below, a detailed description will be made in conjunction with specific embodiments. Assuming that 120 teeth are evenly arranged on the code disc 12, that is, the corresponding rotation angle of each tooth is 3°, and the code disc 12 provided with this structure, the output of the photoelectric sensor 14 and the electric current of the waveform converter 20 and the amplifier 22 The waveform diagram of the pulse signal is shown in Figure 4. Taking the 0 o'clock position in Fig. 4 as the reference point, in the process of the encoder disc 12 rotating with the crankshaft of the engine, the current signal collector 16 only counts the high/low level of the electric pulse signal, and the pulse count is 3, That is, there are 3 high-level pulses or low-level pulses, and each count of a high/low-level pulse indicates that the crankshaft has rotated an angle of 3°. And, the timing time of the current pulse width of the pulse width timing unit is t0, the timing time corresponding to the entire width of the previous pulse is t0. Therefore, the pulse width processing unit obtains their ratio according to these two width times as
Figure G2008102270847D0008171033QIETU
. The signal processor 18 counts according to the current 3 pulses, and the crank angle corresponding to a single high/low level pulse
Figure G2008102270847D0008171046QIETU
, the timing ratio determined by the pulse width processing unit
Figure G2008102270847D0008171053QIETU
, it can be determined that the current rotation angle of the crankshaft is
Figure G2008102270847D0008171103QIETU
.

在测量的角度用于发动机点火时,若设定的发动机的点火提前角为10°,则当曲轴转过该角度大小时,通过信号处理器18将对应的测量角度值发送到发动机控制单元(ECU),从而在此位置ECU可以控制发动机开始点火。When the measured angle is used for engine ignition, if the ignition advance angle of the set engine is 10°, then when the crankshaft rotates through the angle size, the corresponding measured angle value is sent to the engine control unit (ECU) by the signal processor 18 ECU), so that in this position the ECU can control the engine to start ignition.

当然,本发明的脉冲计数和宽度计时不局限于该具体实施例,例如信号处理器的计数可以单个高、低电平脉冲为单位,并且脉冲宽度计时单元同样以单个电平脉冲的宽度进行计时,或者,以一个高电平和低电平脉冲为单位进行计数以及相应单位的脉冲宽度计时等等类似方式均适用于本发明的脉冲计数和宽度计时。Of course, the pulse counting and width timing of the present invention are not limited to this specific embodiment, for example, the counting of the signal processor can be a single high and low level pulse as a unit, and the pulse width timing unit is also clocked with the width of a single level pulse , or, counting in units of a high-level pulse and a low-level pulse, and pulse width timing in corresponding units, etc., are all applicable to the pulse counting and width timing of the present invention.

另外,本发明的测量系统还可以包括显示单元,用来将信号处理器18输出的发动机曲轴旋转的角度数据进行显示。In addition, the measurement system of the present invention may further include a display unit, which is used to display the rotation angle data of the engine crankshaft output by the signal processor 18 .

通过本发明的发动机曲轴转角的测量装置,可以精确测量出当前曲轴旋转过的角度,从而可以为发动机控制单元(ECU)提供精确的曲轴转角信号,以用于控制发动机的点火时间。此外,本发明通过对电信号脉冲计数的同时也对单个脉冲的宽度进行计时,从而能够进一步提高转角测量的精度。在发动机点火位置对应的旋转角度处于计数的两个脉冲之间时,通过脉冲宽度计时可以将测量转角的脉冲计数进行进一步的细分,从而获得更高精度的测量转角,并且采用这种方式对于发动机转速波动很大时也能够获得准确的测量数据。Through the engine crank angle measuring device of the present invention, the current crank angle can be accurately measured, thereby providing an accurate crank angle signal for an engine control unit (ECU) for controlling the ignition time of the engine. In addition, the present invention can further improve the precision of the rotation angle measurement by counting the pulse width of a single pulse while counting the electrical signal pulses. When the rotation angle corresponding to the ignition position of the engine is between the two counted pulses, the pulse count of the measured rotation angle can be further subdivided by the pulse width timer, so as to obtain a higher precision measurement of the rotation angle, and this method is used for Accurate measurement data can be obtained even when the engine speed fluctuates widely.

下面,请参考图5,该图为本发明发动机曲轴转角测量方法步骤流程图。Next, please refer to FIG. 5 , which is a flow chart of the steps of the method for measuring the crankshaft angle of the engine according to the present invention.

如图所示,该方法包括以下步骤:首先,设置与发动机曲轴一起旋转的编码盘(步骤102)。在一个实施例中,编码盘上可以均匀环形设置有彼此相间的明纹和暗纹编码刻度,明纹编码刻度和暗纹编码刻度分别用来阻挡或者通过光线。或者,编码盘为编码齿盘,其外缘均匀设置有齿牙和齿缺,以同样分别用于阻挡或者通过光线。但是需要指出的是,本发明编码盘不局限于这些实施例,任何现有技术的光电编码盘均适用本发明。As shown, the method includes the following steps: First, an encoder disc is set to rotate with the crankshaft of the engine (step 102). In one embodiment, the encoding disc can be uniformly provided with alternate bright pattern coding scales and dark pattern coding scales in a ring shape, and the bright pattern coding scales and the dark pattern coding scales are used to block or pass light respectively. Alternatively, the code disc is a code tooth disc, and its outer edge is evenly provided with teeth and tooth gaps, which are also used to block or pass light respectively. However, it should be pointed out that the encoder disk of the present invention is not limited to these embodiments, and any photoelectric encoder disk in the prior art is applicable to the present invention.

然后,在编码盘与发动机曲轴一起旋转过程中,向编码盘发射光线以产生光脉冲信号(步骤104)。例如,对具有上述具有明纹和暗纹编码刻度的编码盘,在编码盘和发动机曲轴旋转的过程中,发射到编码盘的明纹编码刻度上的光线会从其中穿过,发射到暗纹编码刻度上的光线会发生反射。同样地,对具有齿牙和齿缺的编码盘,光线从齿缺处透射,并在齿牙处被反射。Then, during the process of the encoder disc rotating together with the crankshaft of the engine, light is emitted to the encoder disc to generate a light pulse signal (step 104 ). For example, for the code disc with the above-mentioned coded scale with bright and dark patterns, during the rotation of the code disc and the engine crankshaft, the light emitted to the coded scale of the code disc will pass through it and be emitted to the dark pattern. The light on the coded scale is reflected. Likewise, for a disc with teeth and gaps, light is transmitted through the gaps and reflected at the teeth.

接着,根据编码盘产生的光脉冲信号进行采集,并转换为电脉冲信号(步骤106)。对编码盘对应产生的光脉冲信号,通过光电转换从而将曲轴旋转角位移转换成电脉冲信号。在一个实施例中,可以将编码盘暗纹编码刻度对应产生的光脉冲信号转换为低电平的电脉冲信号,将明纹编码刻度对应产生的光脉冲信号转换为高电平的电脉冲信号。或者,对具有齿牙和齿缺的编码盘,将齿牙产生的光脉冲信号转换为低电平的电脉冲信号,将齿缺产生的光信号脉冲转换为高电平的电脉冲信号。Next, collect according to the optical pulse signal generated by the encoder disc, and convert it into an electrical pulse signal (step 106). The optical pulse signal corresponding to the encoder disc is converted into an electrical pulse signal through photoelectric conversion. In one embodiment, the light pulse signal generated corresponding to the coded scale of the dark pattern of the code disk can be converted into a low-level electric pulse signal, and the light pulse signal generated corresponding to the coded scale of the bright pattern can be converted into a high-level electric pulse signal . Alternatively, for an encoder disc with teeth and tooth gaps, the optical pulse signal generated by the teeth is converted into a low-level electrical pulse signal, and the optical signal pulse generated by the tooth gap is converted into a high-level electrical pulse signal.

通过光电转换输出电脉冲近似为矩形脉冲,下面则需要根据转换的电脉冲信号对其电平脉冲数量进行计数(步骤108)。这里,电脉冲信号的电平脉冲数量计数可以单个高/低电平脉冲为单位,分别依次对高电平和低电平脉冲计数;或者以高电平和低电平总和为单位,只对高电平或低电平进行计数。The electrical pulses output by the photoelectric conversion are approximately rectangular pulses, and the number of level pulses needs to be counted according to the converted electrical pulse signal (step 108 ). Here, the number of level pulses of the electrical pulse signal can be counted in units of a single high/low level pulse, respectively counting high level and low level pulses in turn; or taking the sum of high level and low level as a unit, only counting high level pulses Level or low level to count.

接着,根据高和/或低电平脉冲计数进行角度转换,从而获得发动机曲轴的旋转角度(步骤110)。根据电平脉冲数量的计数以及单个脉冲计数对应的编码盘转角,例如,在只对高/低电平脉冲进行计数时,若编码盘上均匀设置有120个相同大小的齿牙,则相邻一个齿牙和齿缺对应的转角为3度,相应的一个高/低电平脉冲计数对应的角度为3度。因此,通过将脉冲数量进行转换,从而可获得曲轴已旋转过的角度。Next, an angle conversion is performed according to the high and/or low level pulse counts to obtain the rotation angle of the engine crankshaft (step 110). According to the counting of the number of level pulses and the encoder disc rotation angle corresponding to a single pulse count, for example, when only high/low level pulses are counted, if 120 teeth of the same size are uniformly arranged on the encoder disc, the adjacent The rotation angle corresponding to a tooth and tooth gap is 3 degrees, and the corresponding angle corresponding to a high/low level pulse count is 3 degrees. Therefore, by converting the number of pulses, the angle by which the crankshaft has rotated can be obtained.

另外,在一个实施例中,在进行步骤108的电脉冲信号电平脉冲数量计数之前还可以包括以下步骤:将步骤106输出的电脉冲信号转换为标准的矩形波,并对该矩形波进行放大。例如,通过对电脉冲信号进行非门的简单处理,即能够将电脉冲信号转换为标准的矩形波。转换为矩形波可易于步骤108对该波形的电脉冲信号进行精确计数。当然,本发明的波形转换步骤不局限于该具体实施例,现有技术中任何可用于矩形波转换的方法均适用于本发明。In addition, in one embodiment, the following steps may be included before counting the number of electrical pulse signal levels in step 108: converting the electrical pulse signal output in step 106 into a standard rectangular wave, and amplifying the rectangular wave . For example, the electrical pulse signal can be converted into a standard rectangular wave by simply processing the electrical pulse signal with a NOT gate. Converting to a rectangular wave can facilitate accurate counting of electrical pulse signals of the waveform in step 108 . Certainly, the waveform conversion step of the present invention is not limited to this specific embodiment, and any method in the prior art that can be used for rectangular wave conversion is applicable to the present invention.

对矩形波进行放大是为了使得其高、低电平对应的电压值位于电平脉冲采集可识别的范围内,以进一步提高脉冲数量计数的精度。The purpose of amplifying the rectangular wave is to make the voltage values corresponding to its high and low levels within the recognizable range of level pulse acquisition, so as to further improve the accuracy of counting the number of pulses.

另外,本发明的发动机曲轴转角的测量方法还可以包括对每个脉冲宽度进行计时的步骤。进行脉冲宽度计时是为了进一步提高曲轴转角的检测精度,并满足点火位置对应的曲轴转角位于两个脉冲中间的需要,即为了解决当需要点火的角度刚好落在两个脉冲之间而无法实现精确点火的问题。In addition, the method for measuring the crank angle of the engine according to the present invention may further include the step of timing each pulse width. The purpose of pulse width timing is to further improve the detection accuracy of the crank angle, and to meet the requirement that the crank angle corresponding to the ignition position is located in the middle of the two pulses, that is, to solve the problem that the required ignition angle just falls between the two pulses and cannot achieve accurate Ignition problem.

关于该步骤的具体实施例请参考图6,图6为本发明实施例的结合脉宽计时获得曲轴转角的步骤流程图。Please refer to FIG. 6 for a specific embodiment of this step. FIG. 6 is a flow chart of steps for obtaining the crankshaft angle in combination with pulse width timing according to an embodiment of the present invention.

在对电脉冲信号高/低电平脉冲数量计数的同时,从电脉冲信号每个高/低电平脉冲的宽度起点开始计时(步骤202)。但是,本发明不局限于该具体实施例,例如脉宽计时也可以相邻的一个高电平脉冲和低电平脉冲为单位进行宽度计时,当然,这种情况下计时的精度会有所降低。While counting the number of high/low level pulses of the electric pulse signal, counting is started from the width starting point of each high/low level pulse of the electric pulse signal (step 202). However, the present invention is not limited to this specific embodiment. For example, pulse width timing can also be performed in units of adjacent high-level pulses and low-level pulses. Of course, in this case, the accuracy of timing will be reduced. .

在一个实施例中,对于高电平脉冲,其宽度起点可与每个高电平脉冲上第一预定阈值电压对应;对于低电平脉冲,其宽度起点可与每个低电平脉冲上第二预定阈值电压对应。高电平脉冲的宽度起点和终点与该脉冲上升沿和下降沿的第一预定阈值电压值分别对应,低电平脉冲的宽度起点和终点与该脉冲下降沿和上升沿的第二预定阈值电压分别对应。即,可以根据划分电脉冲信号高、低电平的电压值点来确定开始单个脉冲宽度计时的起点。由于编码盘均匀设置有相同大小的齿牙和齿缺或者明、暗编码刻度,在曲轴速度变化的情况下,它们对应产生的相邻高电平脉冲和低电平脉冲的宽度近似相等。In one embodiment, for a high-level pulse, the starting point of its width may correspond to the first predetermined threshold voltage on each high-level pulse; for a low-level pulse, its width starting point may correspond to the first predetermined threshold voltage on each low-level pulse. The two predetermined threshold voltages correspond. The starting point and end point of the width of the high-level pulse correspond to the first predetermined threshold voltage value of the rising edge and the falling edge of the pulse respectively, and the starting point and end point of the width of the low-level pulse correspond to the second predetermined threshold voltage value of the falling edge and the rising edge of the pulse. correspond respectively. That is, the starting point for starting single pulse width timing can be determined according to the voltage value points that divide the high and low levels of the electric pulse signal. Since the code disc is uniformly provided with the same size teeth and tooth gaps or bright and dark coding scales, when the crankshaft speed changes, the widths of the corresponding adjacent high-level pulses and low-level pulses generated by them are approximately equal.

这里,例如可结合图3的实施例,对电脉冲信号的第一预定阈值电压和第二预定阈值电压设定作出示例性说明,如图3所示,可以设置上升沿的2.4V为第一预定阈值电压,与一个高电平脉冲宽度计时的宽度起点对应,并设置下降沿的0.4V为第二预定阈值电压,与一个低电平脉冲的宽度计时的宽度起点对应。这样,通过对上升沿和下降沿的2.4V电压之间的脉冲宽度计时,可以得到对应高电平脉冲上一定宽度及整个宽度的计时时间。同理,可以得到对应低电平脉冲上一定宽度及整个宽度的计时时间。但是,需要指出的是,本发明的高、低电平脉冲的宽度起点对应的阈值电压设置不局限于该具体实施例。例如对于图3,根据电脉冲信号高、低电平划分的电压值,第一预定阈值电压和第二预定阈值电压可以设置在0.4V和2.4V之间任意合适电压位置处。Here, for example, in combination with the embodiment of FIG. 3 , an exemplary description can be made on the setting of the first predetermined threshold voltage and the second predetermined threshold voltage of the electric pulse signal. As shown in FIG. 3 , the 2.4V of the rising edge can be set as the first The predetermined threshold voltage corresponds to the width starting point of a high-level pulse width timing, and 0.4V of the falling edge is set as the second predetermined threshold voltage, corresponding to the width starting point of a low-level pulse width timing. In this way, by timing the pulse width between the rising edge and the falling edge of the 2.4V voltage, the timing time corresponding to a certain width and the entire width of the high-level pulse can be obtained. In the same way, the timing time corresponding to a certain width and the entire width of the low-level pulse can be obtained. However, it should be pointed out that the setting of the threshold voltage corresponding to the starting point of the width of the high and low level pulses of the present invention is not limited to this specific embodiment. For example, as shown in FIG. 3 , according to the voltage value divided by the high and low levels of the electric pulse signal, the first predetermined threshold voltage and the second predetermined threshold voltage can be set at any suitable voltage position between 0.4V and 2.4V.

因此,本发明的第一预定阈值电压和第二预定阈值电压可以从任意划分高、低电平的电压值点进行对应高、低电平脉冲的宽度计时,当然,在曲轴匀速旋转时,对应划分的各个高、低电平的脉宽相同。对于经过矩形波转换和电压放大的电脉冲信号,每个高、低电平脉冲的宽度起点分别为其上升沿和下降沿的对应点。Therefore, the first predetermined threshold voltage and the second predetermined threshold voltage of the present invention can carry out timing corresponding to the width of the high and low level pulses from the voltage point of arbitrarily dividing the high and low levels. Of course, when the crankshaft rotates at a constant speed, the corresponding The divided high and low pulse widths are the same. For the electrical pulse signal that has undergone rectangular wave conversion and voltage amplification, the starting point of the width of each high-level and low-level pulse is the corresponding point of its rising edge and falling edge, respectively.

另外,脉冲宽度计时可只针对每个当前高/低电平脉冲的宽度进行计时,若对整个脉冲宽度计时完毕,则从下一个电平脉冲的宽度起点重新进行计时。In addition, the pulse width timing can only be timed for the width of each current high/low level pulse. If the entire pulse width is timed, the timing will be restarted from the starting point of the width of the next level pulse.

因此,通过脉宽计时,可以获得当前单个高/低电平脉冲一定宽度对应的时间t2(步骤204)。计时时间t2可以根据当前电平脉冲宽度变化连续或者以预定的时间间隔进行计时并输出。计时的时间间隔越小,当前脉冲宽度的计时精度越高。接着,根据当前高/低电平脉冲宽度的计时时间t2与前一个高/低电平脉冲整个宽度对应的计时时间t1,计算出它们的比值t2/t1(步骤206)。计时时间t1是该前一个高/低电平脉冲宽度起点到终点之间的计时。从而,根据该比值及t1时间的单个高/低电平脉冲对应的曲轴转角,可确定t2时间的当前电平脉冲宽度对应的曲轴转角(步骤208)。Therefore, through pulse width timing, the time t2 corresponding to a certain width of the current single high/low level pulse can be obtained (step 204 ). The counting time t2 can be counted and output continuously or at predetermined time intervals according to the change of the pulse width of the current level. The smaller the timing interval, the higher the timing accuracy of the current pulse width. Next, according to the timing time t2 of the current high/low level pulse width and the timing time t1 corresponding to the entire width of the previous high/low level pulse, their ratio t2/t1 is calculated (step 206). Timing time t1 is the timing between the start point and the end point of the previous high/low level pulse width. Therefore, according to the ratio and the crank angle corresponding to the single high/low level pulse at time t1, the crank angle corresponding to the current level pulse width at time t2 can be determined (step 208).

在本发明实施例中,以该当前电平脉冲相邻的前一个脉冲整个宽度计时时间为基础进行对应的转角计算,是因为曲轴实际运行时速度会不断变化,但是相邻两个电平脉冲对应的速度变化较小,相邻两个电平脉冲对应的宽度近似相同。因此为了更精确地获得当前电平脉冲宽度对应的曲轴转角,本发明实施例利用前一个脉冲整个宽度计时时间来计算当前电平脉冲宽度的转角。In the embodiment of the present invention, the calculation of the corresponding rotation angle is performed on the basis of the timing time of the entire width of the previous pulse adjacent to the current level pulse, because the speed of the crankshaft will continue to change during actual operation, but two adjacent level pulses The corresponding speed change is small, and the corresponding widths of two adjacent level pulses are approximately the same. Therefore, in order to obtain the crank angle corresponding to the pulse width of the current level more accurately, the embodiment of the present invention uses the timing time of the entire width of the previous pulse to calculate the rotation angle of the pulse width of the current level.

最后,根据高/低电平脉冲计数对应的曲轴转角和当前宽度对应的曲轴转角,进行相加可获得曲轴当前旋转过的角度(步骤210)。因此,在发动机点火位置对应的旋转角度处于计数的两个脉冲之间时,通过脉冲宽度计时可以将测量转角的脉冲计数进行进一步的细分,从而获得更为精确的测量转角,并且采用这种方式对于发动机转速波动很大时也能够获得准确的测量数据。通过本发明的发动机曲轴转角的测量方法,可以精确测量出当前曲轴旋转过的角度,从而可以为发动机控制单元(ECU)提供精确的曲轴转角信号,以用于控制发动机的点火时间。Finally, add the crank angle corresponding to the high/low level pulse count and the crank angle corresponding to the current width to obtain the current rotated angle of the crank shaft (step 210 ). Therefore, when the rotation angle corresponding to the ignition position of the engine is between the two counted pulses, the pulse count of the measured rotation angle can be further subdivided by the pulse width timer, so as to obtain a more accurate measurement of the rotation angle, and this The method can also obtain accurate measurement data when the engine speed fluctuates greatly. Through the method for measuring the engine crank angle of the present invention, the angle that the current crankshaft has rotated can be accurately measured, thereby providing an accurate crank angle signal for an engine control unit (ECU) for controlling the ignition time of the engine.

另外,本发明的测量方法还可以包括将发动机曲轴旋转的角度数据进行显示的步骤,以提供给相关人员以实时、直接的测量数据。In addition, the measurement method of the present invention may also include a step of displaying the rotation angle data of the engine crankshaft, so as to provide relevant personnel with real-time and direct measurement data.

尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. and modifications, the scope of the invention is defined by the appended claims and their equivalents.

Claims (11)

1. the measurement mechanism of an engine crankshaft corner comprises:
Code-wheel rotates and produces light pulse signal with engine crankshaft;
Photoelectric sensor is used for responding to the light pulse signal that described code-wheel produces with the engine crankshaft rotary course, and described light pulse signal is converted to electric impulse signal;
Signal picker is for the height and/or the low level pulse quantity that gather described electric impulse signal; And
Signal processor obtains the angle that engine crankshaft rotates according to described height and/or low level pulse quantity, wherein,
Described signal picker also comprises the pulse width timing unit, described pulse width timing unit is used at signal picker to described electric impulse signal in the high/low level pulse number count, begins timing from the width starting point of described each high/low level pulse of electric impulse signal; And obtain current single time corresponding to high/low level pulse widths; And
Described signal processor also comprises the pulse width processing unit, and described pulse width processing unit is for the ratio of the timing time that the calculates described current high/low level pulse widths timing time corresponding with the whole width of previous high/low level pulse; With determine crank angle corresponding to described current single high/low level pulse widths according to this ratio and crank angle corresponding to single high/low level pulse.
2. measurement mechanism as claimed in claim 1 is characterized in that, described photoelectric sensor comprises:
Light emitters is used for to described code-wheel emission of light to produce described light pulse signal; And
Light receiver is used for receiving described light pulse signal.
3. measurement mechanism as claimed in claim 2, it is characterized in that, the outer rim of described code-wheel evenly is provided with teeth and tooth lacks to be used for stopping or passing through described light, described photoelectric sensor is converted to low level electric impulse signal with the light pulse signal that described teeth produce, and described tooth is lacked the electric impulse signal that the optical signal pulses that produces is converted to high level.
4. measurement mechanism as claimed in claim 2, it is characterized in that, evenly be provided with alternate each other bright line and dark line coding scale on the described code-wheel to be used for stopping or passing through described light, described photoelectric sensor is converted to low level electric impulse signal with the light pulse signal that described dark line coding scale produces, and the light pulse signal of stating clearly line coding scale generation is converted to the electric impulse signal of high level.
5. measurement mechanism as claimed in claim 1, it is characterized in that, also comprise waver and amplifier, described waver is converted to the described electric impulse signal of described photoelectric sensor output the electric impulse signal of square wave, and described amplifier carries out voltage amplification with the described electric impulse signal of square wave.
6. measurement mechanism as claimed in claim 1 is characterized in that, the quantity that the resolution of described photoelectric sensor is processed described electric impulse signal based on described signal picker is set.
7. the measuring method of an engine crankshaft corner is characterized in that, may further comprise the steps:
The code-wheel that setting is rotated with engine crankshaft;
At described code-wheel in the engine crankshaft rotary course, to described code-wheel emission of light to produce light pulse signal;
Gather described light pulse signal and be converted to electric impulse signal;
Height and/or the low level pulse quantity of described electric impulse signal are counted;
In the high/low level pulse number count to described electric impulse signal, begin timing from the width starting point of described each high/low level pulse of electric impulse signal;
Obtain current single time corresponding to high/low level pulse widths;
Calculate the ratio of the timing time of the described current high/low level pulse widths timing time corresponding with the whole width of previous high/low level pulse; With
Determine crank angle corresponding to described current single high/low level pulse widths according to this ratio and crank angle corresponding to single high/low level pulse.
8. measuring method as claimed in claim 7, it is characterized in that, the outer rim of described code-wheel evenly is provided with teeth and tooth lacks to be used for stopping or passing through described light, the light pulse signal that in described electric impulse signal switch process described teeth is produced is converted to low level electric impulse signal, and described tooth is lacked the electric impulse signal that the light pulse signal that produces is converted to high level.
9. measuring method as claimed in claim 7, it is characterized in that, evenly be provided with alternate each other bright line and dark line coding scale on the described code-wheel to be used for stopping or passing through described light, the light pulse signal that in described electric impulse signal switch process described dark line coding scale is produced is converted to low level electric impulse signal, the light pulse signal of stating clearly line coding scale generation is converted to the electric impulse signal of high level.
10. measuring method as claimed in claim 7 is characterized in that, and is further comprising the steps of before the height that carries out described electric impulse signal and/or low level pulse number count:
Described electric impulse signal is converted to square wave; With
Amplify the voltage of the described electric impulse signal of square wave.
11. measuring method as claimed in claim 7, it is characterized in that, the width starting point of described high level pulse is corresponding with the first predetermined threshold voltage on each high level pulse, and the width starting point of described low level pulse is corresponding with the second predetermined threshold voltage on each low level pulse.
CN 200810227084 2008-11-21 2008-11-21 Device and method for measuring rotation angle of engine crankshaft Active CN101738211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810227084 CN101738211B (en) 2008-11-21 2008-11-21 Device and method for measuring rotation angle of engine crankshaft

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810227084 CN101738211B (en) 2008-11-21 2008-11-21 Device and method for measuring rotation angle of engine crankshaft

Publications (2)

Publication Number Publication Date
CN101738211A CN101738211A (en) 2010-06-16
CN101738211B true CN101738211B (en) 2013-01-02

Family

ID=42461988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810227084 Active CN101738211B (en) 2008-11-21 2008-11-21 Device and method for measuring rotation angle of engine crankshaft

Country Status (1)

Country Link
CN (1) CN101738211B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103174532A (en) * 2013-04-12 2013-06-26 南岳电控(衡阳)工业技术有限公司 Method and device for processing crankshaft signals of electronically controlled fuel system of diesel engine

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102720150B (en) * 2012-06-28 2015-03-18 艾斯特国际安全技术(深圳)有限公司 Gateway closing device
CN103278332B (en) * 2013-05-29 2016-08-10 长城汽车股份有限公司 The engine startup detection method to cylinder misfire
CN104655161B (en) * 2013-11-21 2017-05-10 科沃斯机器人股份有限公司 Distance measuring device and method of distance measuring device to find distance measuring initial point
CN104880207B (en) * 2014-02-27 2018-03-09 长城汽车股份有限公司 The crank position detecting system of engine and there is its automobile
CN104296788A (en) * 2014-10-29 2015-01-21 长城汽车股份有限公司 Phase detection system
CN104965099A (en) * 2015-06-30 2015-10-07 深圳乐行天下科技有限公司 Velocity measurement method and device
CN105737750B (en) * 2016-04-18 2018-05-29 天津理工大学 A kind of marine diesel horn based on photoelectric encoder and laser range sensor is away from value measurement method and device
CN105911555B (en) * 2016-04-18 2018-05-29 天津理工大学 A kind of boat diesel engine difference crank spread detection method and device based on photoelectric encoder and laser range sensor
NO345480B1 (en) * 2019-06-28 2021-02-22 Kongsberg Maritime As Drive shaft monitoring system
CN111562463A (en) * 2020-05-11 2020-08-21 云南电网有限责任公司电力科学研究院 A GIL fault location system and method based on optical fiber communication
CN112113769B (en) * 2020-09-04 2023-02-07 广西玉柴机器股份有限公司 Conversion method of engine crankshaft angle mark signal
CN114778878A (en) * 2022-03-22 2022-07-22 深圳市吉毅创能源科技有限公司 Motor speed measurement device, motor speed measurement method and motor
CN114526916B (en) * 2022-04-21 2022-07-26 武汉理工大学 Stirling engine cylinder pressure detection system and detection method
CN115681599A (en) * 2022-08-26 2023-02-03 睿科集团(厦门)股份有限公司 Control system and method for automatically offsetting out-of-step during selection valve positioning movement

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87211212U (en) * 1987-09-22 1988-08-24 中国科学院上海光学精密机械研究所 Intelligent digital collar instrument
CN1162990A (en) * 1994-09-26 1997-10-22 弗朗茨·卡斯坦·史密斯 Device for torque measurement of rotating shafts

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61112921A (en) * 1984-11-07 1986-05-30 Honda Motor Co Ltd Rotation angle detection device
JPH0230993A (en) * 1988-07-20 1990-02-01 Fuji Electric Co Ltd Fixed quantity syrup feed pump of cup-type drink automatic vending machine
JPH0378550A (en) * 1989-08-18 1991-04-03 Hitachi Ltd Crank angle sensor for control at each cylinder of internal combustion engine
JPH0599696A (en) * 1991-10-07 1993-04-23 Daikin Ind Ltd Position detector
JPH1122539A (en) * 1997-07-02 1999-01-26 Hitachi Ltd Control device for internal combustion engine
JP2008111763A (en) * 2006-10-31 2008-05-15 Nissan Diesel Motor Co Ltd Rotation direction discrimination device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87211212U (en) * 1987-09-22 1988-08-24 中国科学院上海光学精密机械研究所 Intelligent digital collar instrument
CN1162990A (en) * 1994-09-26 1997-10-22 弗朗茨·卡斯坦·史密斯 Device for torque measurement of rotating shafts

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
JP平2-30993A 1990.02.01
JP平3-78550A 1991.04.03
JP昭61-112921A 1986.05.30
JP特开2008-111763A 2008.05.15
JP特开平11-22539A 1999.01.26
JP特开平5-99696A 1993.04.23

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103174532A (en) * 2013-04-12 2013-06-26 南岳电控(衡阳)工业技术有限公司 Method and device for processing crankshaft signals of electronically controlled fuel system of diesel engine

Also Published As

Publication number Publication date
CN101738211A (en) 2010-06-16

Similar Documents

Publication Publication Date Title
CN101738211B (en) Device and method for measuring rotation angle of engine crankshaft
CN102998482B (en) Measuring method for errors of rotating speed sensor
CN104567787B (en) Method for calibrating measurement accuracy of dynamic angle measuring system
CN201645321U (en) Grinding wheel dynamic balance measurement and control device
CN201107325Y (en) A photoelectric speed measuring device
CN105305755A (en) Detection method for rotor position of permanent-magnet synchronous motor
CN104458762B (en) Digital optical fiber sensor-based detection method for quality of ABS gear ring
CN101358858A (en) A detection device and method for a crankshaft position sensor
CN100480636C (en) Digital capacitance corner sensor calibrating system and calibrating method
CN105547130A (en) Method and device for detecting pitch error of ABS ring gear
CN205301352U (en) Speed meter for hall sensor
CN102608348B (en) Method for measuring rotating speed for irregular pulse signals
CN110617784A (en) Turntable eccentricity error measuring method for photoelectrically detecting modulation period variable quantity and accumulated value
CN106089598A (en) A kind of wind power generator rotor detection method and system
CN104655161A (en) Distance measuring device and method of distance measuring device to find distance measuring initial point
CN203811190U (en) Distance-measuring device
EP2161547A1 (en) Control unit and method for determining the angular position of a drive shaft of an internal combustion engine
CN100339684C (en) Four-sensor style coding device
CN106053872A (en) Speed measuring instrument based on infrared rays
CN214669138U (en) Novel non-contact rotating shaft rotating speed measuring device
CN110412350B (en) Camshaft phase detection device, engine, motor vehicle and method
CN209841901U (en) Speed measuring device of centrifugal pump
CN100351612C (en) Six-sensor style coding device
CN113279856A (en) Engine valve timing phase measuring method
CN101936751A (en) Method and Circuit for Improving Encoder Resolution Using Two-Level Subdivision

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant