Next Article in Journal
Estimation of Driving Direction of Traffic Accident Vehicles for Improving Traffic Safety
Previous Article in Journal
Joint Radar-Communication Optimization of Distributed Airborne Radar for AOA Localization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Identification of the Physical Dependencies of Accurate Oil Level Measurement for Automotive Applications

Department of Cybernetics and Biomedical Engineering, Faculty of Electrical Engineering and Computer Science, VSB-Technical University of Ostrava, 17. Listopadu 2172/15, 70800 Ostrava, Czech Republic
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Appl. Sci. 2023, 13(13), 7707; https://doi.org/10.3390/app13137707
Submission received: 25 April 2023 / Revised: 24 June 2023 / Accepted: 24 June 2023 / Published: 29 June 2023
(This article belongs to the Section Applied Physics General)

Abstract

:
The presented research addresses the problem of dependency analysis of the ultrasonic signal measured by a sensor in an engine oil bath. The dependency analysis is performed on a selected ultrasonic signal sensor solution containing its own generator and an ultrasonic signal receiver detecting the level of the oil in which it is immersed. The influence of the resulting amplitude of the received ultrasonic signal is mainly due to the level of the measured oil level and the oil temperature, as shown by the regression analysis and ANOVA (Analysis of Variance) testing performed. The analyzed dependence of the time determination of the length of the generated ultrasonic signal envelope is given by a set threshold value, which can be dynamically adjusted based on the backtracking evaluation. The analysis results in the form of approximation by the dependency algorithm confirm the assumption of possible standardization of the envelope parameters with the achievement of accuracy up to 99.02%. The analyzed parameters approximated by the temperature and oil level dependence algorithms include the amplitude of the measured signal, steepness of the rising edge, duration of the envelope, and the digitally processed amplitude value.

1. Introduction

In technical practice, precise liquid level measurement is often necessary [1]. One common method for such measurement is the ultrasonic signal measurement, which has various applications beyond level measurement, including determining the composition of multiphase flow of oil, water, and gas in pipelines [2], monitoring pipeline corrosion in oil and gas [3], measuring the three-phase flow of oil, gas, and water in the oil production and transportation process [4], measuring the density of liquids [5,6], and determining the concentration of emulsion liquids [7].
The automotive industry deploys a wide range of sensors and sensor systems in its solutions, and one of the purposes is to measure oil levels. In general, for the purpose of liquid level measurement, for example, ultrasonic [1,8,9,10], optical [11,12,13], or capacitive [14,15,16] principles can be used [17]. However, not all of them are suitable for measuring the oil level as there are constant changes in the oil properties and even the environment of the engine itself [18]. The most commonly used oil level sensors are ultrasonic-based [17] thanks to their lower price and good properties for measuring an oil level. There is pressure from the automotive industry to keep costs as low as possible, but this is not compatible with the high accuracy and quality of the sensors used.
This study focuses specifically on improving the accuracy of oil level measurement with an ultrasonic level sensor that gives measurement range and temperature range, where the design and materials used in the sensor can affect the signal generated and analyzed [19,20]. A major challenge in using ultrasonic signal measurement for oil level measurement is the significant dependence of the ultrasonic signal response on temperature and viscosity [19,21,22,23]) describing physical phenomena and possible elimination-type methods.
Results of measurements of this study are based on an MCU Renesas RL78/F13 processor, which controls the ultrasonic measurement with the implemented algorithm of ultrasonic signal generation and processing, while a comparison of other processors for controlling the measurement processes can be found in a separate study by Shan et al. [24]. Unlike existing and described methods, the novelty of this work lies in the use of statistical methods of ANOVA and regression analysis to improve the accuracy of oil level measurements without changing the hardware configuration. By analyzing and correcting ultrasonic signal measurements, this study provides a precise and computationally validated method of level detection [21].
The content of this study is divided into two parts. The first part focuses on determining the dependence of the amplitude value of the measured signal on the reference value and temperature level for three different engine oil levels. The second part presents the objective of the study, which is to determine the time coefficient  Δ t (µs), defined as the difference between the PulseStart value (µs) and the AmplitudeStart value (µs), where AmplitudeStart can be described as the beginning of the signal envelope when the threshold value of the received signal is exceeded. The sensor under test is controlled by a processor with an implemented experimental electrical circuit, which is described in the text by the circuit’s broken-down functional elements. The experimental workstation allows the level and temperature of the engine oil to be fixed, enabling precise measurement and analysis of parameter dependencies. The synthetic engine oil used in the research study is Shell Helix Ultra Professional AF 5W-30 with given physical parameters that are important for the definition of acoustic properties. Its basic physical parameters include a kinematic viscosity of 9.5 cm 2 /s at 100 °C, a kinematic viscosity of 57.4 cm 2 /s at 40 °C, and a density of 857 kg/m 3  at 35 °C.
In conclusion, this study shows a strong dependence of the envelope of the reflected signal on the level and temperature of the oil, as demonstrated through performed regression analysis. The significance and value of this study lie in the compensation of measurement precision without knowledge of other parameters, improving the accuracy of oil level measurements.

2. Factors Influencing Ultrasonic Signals

There are two basic principles of realizing an ultrasonic sensor for measuring the level in liquids [1,25], namely at the edge of the vessel, where the distance from the surface is measured, or at the bottom of the vessel, where the measurement is made directly in the liquid. The bottom-of-vessel measurement method is more technically challenging due to the presence of the sensor directly in the liquid but is more precise. The propagation of the ultrasonic signal in liquid is faster (approximately 1500 m/s in water) compared to the speed of propagation of ultrasound in the air (approximately 330 m/s).
Liquids with higher density have a lower damping coefficient, which affects the magnitude of the measured signal, as described in [6]. The temperature and pressure of the liquid have a significant effect on the accuracy of the ultrasonic measurement [21,22], and they are the parameters we investigated and whose interdependence we analyzed. The aim of the proposed analysis is to standardize the received envelope of the ultrasound signal so that the measurement is as independent as possible of the temperature and pressure of the liquid, as experimentally verified in the works of [21,26]. Statistical correlation and regression analysis are also used in other fields, for example in the analysis of motor bearings [27], the working conditions of photovoltaic panels [28], or in predictions [29].
The principle of ultrasonic measurement itself is to measure the time it takes for an ultrasonic pulse to travel from the transmitter to the surface and back to the receiver. Based on this time, the height of the liquid level is then calculated. This is called the Time of Flight (ToF). This principle is commonly used by scientists [30,31,32,33,34]. Support Vector Machine (SVM) can be also used for signal processing [35]. However, this solution is more challenging in terms of implementation and evaluation of results. Yang et al. [36], in their publication, compared different methods for ToF echo signal processing based on Defect Peaks Tracking Model (DPTM) and were able to reduce the auto-diagnostics error to 0.25%.
The most important property that affects the behavior of waves is the principle of superposition—the resulting state is the weighted average of all partial states. The deviation at any place (and time) is given by the sum of the deviations of all occurring waves at that place (and time). The result is interference phenomena, for example, in [37].
Mechanical waves can be divided according to several criteria. When a wave propagates gradually from its source, it is referred to as a progressive wave. A special case is standing waves, where the composition of the wave is a gradual combination of forward and reflected waves. Then there are places where the middle one does not oscillate at all (nodes) and places where it oscillates with maximum amplitude (oscillations) [38].
Another important wave character is the direction types of motion of the oscillating particles. If they oscillate perpendicular to the direction of wave propagation, we call them transverse waves. If the waves oscillate in the direction of movement, they are longitudinal waves [37,38].
The last important factor is the coherence of the waves—coherent waves are characterized by a perfect course (still the same frequency, speed, phase, amplitude, and direction)—their deviation and phase are not affected by any random influences. In this case, we know the parameters of the wave anywhere, we can determine them anywhere. By contrast, incoherent waves retain their regular character for only a short time. From the parameters of a wave in a certain place, we can determine its behavior only near this place. In practice, completely coherent waves do not occur. However, at short distances, they approximate the real case well [37].

3. Methods

The ultrasonic measurement method is based on the principle of measuring the time of propagation of the ultrasonic signal on the surface and in the reverse direction. This includes knowledge of ultrasonic signal reflection, refraction and transition [37]. Based on this time, the height of the oil (liquid) level is calculated with the knowledge of the propagation velocity of the ultrasonic signal. Since the propagation velocity of the ultrasonic signal depends on the liquid type, temperature, and pressure, an auxiliary reference surface is used, which is located at a precisely defined distance from the source of the ultrasonic signal. The method of precise measurement consists in sending one ultrasonic pulse (burst) and measuring the time in which this pulse bounces off the reference surface and onto the surface. Based on the knowledge of the reflection time from the reference surface and its exact distance from the ultrasonic signal source, we can precisely calculate the propagation velocity of the ultrasonic signal. This calculated velocity already includes the effects of temperature, density, pressure, and more. The used principle of ultrasonic signal generation and measurement is shown in Figure 1.
Now, it is possible to define the reflection and transmission coefficients for impacts at different angles—the essence is the vector nature of phase velocity. A Huygens principle is used, represented by Figure 2.

3.1. Sound Intensity Level and Sound Pressure

Due to the periodic nature of the acoustic pressure and speed of sound, we introduce the mean values  p e f v e f :
p e f = p A 1 π π 2 π 2 cos 2 t d t = 1 π 1 2 t + 1 4 sin 2 t π 2 π 2 = p A 1 2 v e f = v A 2
Assuming that the amplitude of the sound pressure is  p A = c ρ ω A , then the intensity is given as:
I = 1 2 p A 2 c ρ = p e f 2 c ρ = c ρ v e f 2 = p e f v e f
We also introduce acoustic levels—they are not frequency-dependent, and therefore also apply in the field of ultrasound. The following applies to the sound intensity level and is given as:
d L 1 = g d I I L I = g ln I I 0 = g log e log I I 0 = 10 log I I 0 ,
where k is an unspecified constant, so we can express  g log e  determined as 10, and solve everything by determining  I 0 = 10 12 W · m 2 , which is the intensity reference value at 1000 Hz.
We can determine the sound pressure level as:
L p = 20 log p e f p 0 ,
where  p 0 = 2 × 10 5 Pa  is the reference value of the sound acoustic pressure. The sound power level is then defined as:  I = P S  and  I 0 = P 0 S , and is given as:
L P = 10 log P e f P 0 ,
where  P 0 = 10 12  W is the reference value of acoustic power.
However, in a real environment, the measurement is never stable and the measurement values fluctuate depending on the characteristics of the environment and the physical behavior of the liquid in the vessel.

3.2. ANOVA Testing Method

One-way analysis of variance (ANOVA) [39] compares the means of two or more groups for one dependent variable. One-way ANOVA is necessary when a study involves more than two groups. For nominal groups, interval-dependent variables are required. The assumption of a normal distribution is not required [40].
The implemented ANOVA method on the measured data was chosen mainly due to the detection of significant differences between the variables representing the physical values of the received ultrasound signal with the set parameters of the environment.

4. Measurement

The measurement was performed with an ultrasonic level sensor with a measurement range of 20–100 mm and a temperature range of 0–150 °C. The measurement frequency of the sensor is 10 measurements per second. The transverse resonant frequency of the piezo element, which has a value of 10 MHz, is used to excite the ultrasonic signal.
Ultrasonic measurement was driven by a Renesas RL78/F13 CPU. The sensor that was tested was driven by a CPU with the experimental circuit described later on, and was mounted inside the test machine for level measurement accuracy testing. The test machine allows to fix the motor oil level and temperature, so it is a proper instrument for the requested experiment. In this study, the synthetic motor oil Shell Helix Ultra Professional AF 5W-30 was used. The measurement was performed by following motor oil levels and temperatures; see Table 1.
The test machine was used only for modification of the temperature and motor oil level. The sensor was connected to the oscilloscope and via an oscilloscope to the PC that was equipped with the developed measurement software. Measurement data contained 3000 rows, so every row represented an individual measurement under defined conditions. All measurement data had a CSV format.
The maximum height of the reference surface is given by the requirements for the construction of the sensor and the minimum measurable height of the oil level. The sensor is placed at the bottom of the oil pan. It must be ensured that the reference surface is always immersed in oil. From the point of view of accuracy, it is advantageous to have the reference surface as far as possible from the source of the ultrasonic signal, i.e., the piezo element.
The ultrasonic sensor is designed to measure the motor oil level. It has a reference height to determine the exact value of the speed of sound. The measurement principle is based on ultrasonic reflection from the reference surface and level surface. The reason why the reference level measurement supplements the oil level measurement is mainly related to the actual physical and chemical parameters in the measured oil bath, where the response rate directly depends on these parameters. The speed of sound is changing rapidly based on the temperature of oil and its quality. For that reason, we are using the reference for precise sound measurement speed as we cannot predict the quality changes inside oil during its lifetime. The ultrasonic sensor construction and measurement principle are shown in Figure 3.
Ultrasonic pulse handling is driven by the CPU. The electronics for ultrasonic pulse handling contain an experimental circuit that is based on ultrasonic pulse energy saturation, which creates a logical value for the CPU. The principal solution for this circuit is shown in Figure 4 and it consists of:
  • MCU —Generates a PWM signal, five pulses in total. The MCU output switches a transistor, the signal is in the range of 0–V c c  and V c c –0.
  • Duplexer and Resonator—The circuit contains a filter with coils that provide resonance at 4 MHz.
  • Amplifier—A simple transistor amplifier with variable gain.
  • Detector—Detects the 4 MHz envelopes of the ECHO signal.
  • Low-pass filter—Eliminates high frequencies from the signal for better readability of ECHO signals.
  • Shaper—Detects ECHO signals using a transistor and threshold and connects V c c  to the output at that moment.
  • MCU—The MCU detects the signal from the shaper, measures the length of the pulses and their number, and sends the data via UART to the LabView application.
For this study, measurement was performed using the oscilloscope Keysight MSO-X 2024A. The resolution setting of the oscilloscope was 10  μ S/particle and 100 mV/particle in the amplitude region. The oscilloscope was connected with a USB interface to a PC that was running a proprietary LabView application. Measured data were processed by the application and then stored in a CSV file. Each of the four channels of this oscilloscope was used:
  • CH1: Amplified echo signal; these data were used for further offline analysis of the echo signal (statistical analysis);
  • CH2: The pulse of HW electronic detection from the echo signal, which is used as the input of MCU echo detection; these data were used for further comparison of correct MCU detection (in comparison with UART data outputs);
  • CH3: UART data (output of MCU measurements);
  • CH4: NTC signal (detection of ambient temperature).
The schema of the whole measurement system is shown in Figure 4. In the middle part is the block diagram of the measurement chain. First, an initial pulse is generated in the CPU unit for the excitation of the piezo element. Echo signals detected by this piezo element are then amplified (at this point CH1 is connected), electronically detected, filtered, and shaped (at this point CH2 is connected). A shaped echo signal (ECHO pulse) is detected by the CPU unit and the processed data are transferred to a UART (Universal Asynchronous Receiver–Transmitter) communication interface (at this point CH3 is connected). CH4 is connected to the output of the NTC (Negative Temperature Coefficient) sensor. In Figure 4 can be seen the part of the electronic schema used for echo signal processing at the upper part and the demonstration of each signal involved in the whole measurement chain in the lower part.

5. Results

Measurements of the reflected ultrasonic signal were made at different oil heights and references. These measurements were compiled depending on the variable oil temperature and the selected oil type. The measured data shaped into an envelope of the received ultrasonic signal with specific amplitude were subjected to regression analysis and ANOVA analysis of inter-dependencies. The obtained dependency algorithms can be used to significantly refine and understand the envelope shaping of the received ultrasonic signal. Physically, it was assumed that the amplitude of the envelope of the received ultrasonic signal and its steepness are directly dependent on the height and temperature of the oil, but the selected analyses helped to pinpoint the inter-dependencies and thus enable more precise detection of the edge location of the received ultrasonic envelope. Below is a selected dataset on which the inter-dependencies and the resulting analyses by regression analysis and ANOVA analysis are presented.
If the motor oil level of 30 mm is mentioned, it is clear that there is almost no dependence between the amplitude of the reference and the temperature. On the other hand, the amplitudes of the level can be well described by the second-degree polynomials; see Figure 5a. In the case of the motor oil level of 60 mm, it can be said that temperature does not have a significant influence on the amplitude of reference. On the contrary, there is a clearly visible trend for the amplitude of the motor oil level that can be described by the second-degree polynomials; see Figure 5b. Measurement data analysis revealed very low amplitudes for both reference and level signals for temperatures that are close to zero. In the case of the reference signal, the amplitude is relatively stable. The amplitude of the level signal is constantly increasing up to a temperature of 100 °C. Amplitudes related to the motor oil level might be described quite well by the second-degree polynomials; see Figure 5c. In the given representation, the amplitude (mV) is denoted by the variable Y, while the temperature (°C) is represented by the variable X.
Experimental data related to  Δ t, amplitude starting from the level, slope of the level amplitude, and amplitude from the reference were selected according to the motor oil level in the level measurement device. Data were tested by one-way ANOVA (equal variances were not assumed). As can be seen, there is no statistically significant difference among the  Δ t groups. Amplitude start from the oil level revealed a statistically significant difference for the two pairs of 30–90 mm and 30–60 mm. Moreover, the slope exhibited a significantly different pair of variables (30–90 mm). Finally, the amplitude of reference did not show any statistically significant difference among all three groups.
In this way, selected data of variables representing the physical values of the received ultrasonic signal were analyzed to confirm the significant oil height-dependent differences in the variable temperature settings.

Regression Analysis Results

Regression analysis is a statistical method by which we estimate the value of some random variable called the dependent variable, also called the target variable, regressand, or explanatory variable, based on knowledge of other independent variables, regressors, covariates, or explanatory variables.
A typical mathematical method used to solve problems of this type is Pearson linear discriminant analysis, which is used in this case study.
Pearson correlation coefficient and relevant significance levels were calculated in Minitab 17 for the most important measurement variables. These experimental variables were motor oil level, amplitude related to the oil level, amplitude start value (determined manually), amplitude slope (shape of the level signal envelope), UART amplitude start value, pulse, and  Δ t. The correlation matrix revealed that there are very strong correlations among the following pairs: pulse–UART amplitude start, pulse–amplitude start, slope–amplitude level, pulse–level, and UART amplitude start–level. There are also statistically significant correlations between the pairs: amplitude level–level, slope–level, and UART amplitude start–amplitude level; see Table 2.
For the descriptive statistics, we chose 18 data rows (each of them representing 30 fractional measurements). Low-temperature raw data were eliminated from the statistics due to outliers (90 mm; −0.1 °C) and/or incomplete data ensembles (58.5 mm and 80 mm; −5 °C and −10 °C). The descriptive statistics revealed that the average value of  Δ t is 1.5 ± 0.27 µs. In terms of oil level measurement accuracy, it was ±0.41 mm; see Table 3.
Another step was multiple linear regression analysis. This type of analysis allowed us to determine the functional dependency of the crucial variables on motor oil level and temperature. The multiple linear regression model consists of the following information: statistical significance, the percentage of variation that might be explained by the model, and the final model equation. In the case of the multiple regression for amplitude level, it can be seen that the explanation strength of the model is very high; see Figure 6—top/right.
On the contrary,  Δ t cannot be explained by the regression model at all. Meanwhile, the explanation strength of the regression model for  Δ t was equal to zero, and the Pulse start variable might be completely described by the following regression model; see Figure 6, Figure 7 and Figure 8 and Figure 9A. Good explanation strength of the regression model was achieved for the Amplitude Slope; see Figure 6, Figure 7 and Figure 8 and Figure 9B.
Both the Amplitude Start and UART Amplitude Start variables showed very high explanation strength in terms of multiple regression models; see Figure 6, Figure 7 and Figure 8 and Figure 9C,D. On the contrary, the offset value, typically 0.007 mV for most of the experimental conditions, revealed that there was no statistically significant relation between the offset value and the input variables (motor oil level and temperature). Detailed information about the measured values can be found in Table 4.
Experimental data related to the  Δ t, amplitude starts from the level, slope of the level amplitude, and amplitude from the reference were selected according to the motor oil level in the level measurement device. Data were tested by one-way ANOVA (equal variances were not assumed). There are no statistically significant differences among the  Δ t groups. Amplitude start from the oil level revealed statistically significant differences for the two pairs 30–90 mm and 30–60 mm. Moreover, the slope exhibited a significantly different pair of variables (30–90 mm). Finally, amplitude from the reference did not show any statistically significant difference among all three groups.
Multiple regression model results can be seen in Equation (6).
( A ) : P u l s e ( μ s ) = 10.21 + 1.2511 · X 1 0.0247 · X 2 + 0.00483 · X 1 X 2 ( B ) : S l o p e ( mV / μ s ) = 0.05147 0.000599 · X 1 + 0.000333 · X 2 + 0.000003 · X 2 2 + 0.000004 · X 1 X 2 ( C ) : A m p S t a r t ( μ s ) = 7.96 + 1.2010 · X 1 0.0211 · X 2 + 0.004659 · X 1 X 2 ( D ) : U A R T A m p S t a r t ( ) = 9.06 + 1.2283 · X 1 0.0263 · X 2 + 0.004745 · X 1 X 2 X 1 : Oil Level X 2 : Oil Temperature

6. Discussion

The present study aimed to investigate the relationship between external conditions, such as motor oil level and temperature, and the amplitude of the reference and oil surface signals in ultrasonic measurements. The results show that the amplitude of the reference signal was not affected by external conditions, while the amplitude of the oil surface signal was weak when the oil temperature was around −10 °C. Temperatures within the range of −5 °C to 140 °C should not pose any problem in terms of detection and evaluation. When very low temperatures are mentioned (−10 °C), the signal from the piezo element was strongly dimmed due to the motor oil’s physical properties, but the signal from the reference was still detected.
Furthermore, the amplitude of the ultrasonic echo signal was found to be related not only to the liquid level height and temperature but also to the characteristics of the probe. Specifically, in low temperatures, the probe’s characteristics were found to change greatly, which directly affected the strength of the received ultrasonic signal. Regression analysis demonstrated that the amplitude measured by the ultrasonic signal electronics could accurately describe the physical state of the oil level and its temperature, with an accuracy of 99.02% compared to the amplitude measured directly on the piezo element of the ultrasonic signal receiver, where the agreement was only 97.94%.
The discrepancy in accuracy was attributed to the ultrasonic signal being preprocessed by an active envelope detector with variable gain before actual measurement by the sensor electronics, which was further filtered by a low pass filter and a shaper. Overall, the present study suggests that the tested type and sensor design can perform measurements with higher than 99% accuracy, as the envelope of the ultrasonic signal accurately reflects the relationship with the level and temperature of the oil.
However, it must be mentioned that only raw data were used in the study, and automatic filter usage may further improve the already good raw data results. Moreover, at room temperature or higher, the amplitude of the oil surface signal was found to increase up to 100 °C, after which it slightly decreased. The amplitude of the oil surface behavior was also well-predicted by second-degree polynomials. Regression analysis, correlation, and one-way ANOVA testing contributed to a better understanding of these relationships and can be utilized in future research.
Temperature changes in the oil impact its physical properties, including density and viscosity. These changes affect the propagation characteristics of the signal, potentially leading to variations in the measured amplitude.
One aspect affected by temperature is the speed of sound in the oil medium. Generally, as temperature increases, the speed of sound in a material tends to increase as well. This change in speed influences the amplitude of the signal received during ToF measurements. However, it is worth noting that the amplitude is not directly proportional to temperature but rather influenced by the changes in the medium’s properties caused by temperature.
Moreover, temperature fluctuations can also introduce additional noise or interference to the signal, which can impact the accuracy of ToF measurements. Proper compensation or calibration techniques may be required to account for temperature-related effects and ensure accurate oil level measurements.
Time of flight is a measured parameter that represents the time interval from the emission of the initial burst until the reception of the leading edge of the corresponding echo signal.
Precise measurement of oil level is critical to maintain the requisite tolerance bands in a real-world setting, particularly under degraded measurement conditions. When measuring oil level in the engine compartment, an accurate level measurement is especially advantageous when the vehicle is parked on an inclined surface with a level inclination, such as a hill, as a more sensitive measurement system can significantly improve the accuracy of oil level determination. In cases where the oil level measurement is non-functional during engine start-up, or during prolonged uphill or downhill driving, incorrect measurement can cause the engine to switch to emergency mode and limit its performance to avoid damage.
The findings of oil level measurement can also be applied in verification and calibration measurements, as well as other specialized applications, across different domains.

7. Conclusions

This work brings a better understanding of the behavior of the ultrasonic signal inside the sensor and the factors that affect its behavior. At the same time, this work describes the relationships of individual physical quantities (amplitude, runtime, etc.). Based on this, the system of sensor validation and setting of some calibration parameters was modified, which ultimately led to an increase in the reliability of measurement by the sensor, which is used in cars. The measurement accuracy of the oil level was improved by adaptation of the setting of the measurement’s parameters, specifically the amplification of receiving echo based on oil temperature. which increases the accuracy of the measurement across the whole temperature range.
One significant improvement achieved through this research is the enhanced accuracy of oil level measurements. By adapting the measurement parameters, particularly by amplifying the received echo based on oil temperature, the measurement accuracy is improved across the entire temperature range. Statistical methods such as ANOVA and regression analysis were employed to adjust the amplitude of the envelope, leading to increased sensitivity in detecting the envelope height threshold. By utilizing this approach, the researchers were able to precisely describe the temperature dependence and effectively minimize it in the measurements.
In addition to the improvements made to the measurement accuracy, the study also investigated the possibility of reducing the effects of temperature on the signal envelope. The researchers found that the signal envelope is strongly affected by temperature, which can lead to errors in the measurement. However, by using statistical methods to modify the appearance of the detected envelope, it was possible to reduce this dependence to a negligible minimum.
The study also found that the characteristics of the probe used can have a significant impact on the accuracy of the measurement. The researchers suggest that further improvements can be achieved by developing more sophisticated probes, or by optimizing the existing probes to reduce the effects of environmental factors such as temperature and humidity.
Overall, the study provides valuable insights into the behavior of ultrasonic signals and their application in automotive sensors. By improving the reliability and accuracy of these sensors, it is possible to enhance the safety and efficiency of automobiles, and to provide better feedback to drivers about the status of their vehicles.
The significance and value of this study also is that measurement precision can be compensated for without knowledge of other parameters. The performed regression analysis shows a strong dependence on the temperature and level of the oil, and the envelope of the reflected signal depends on the level and temperature of the oil.
In conclusion, this research holds important implications for the automotive industry, serving as a foundation for further advancements in the field of oil level measurement. By continually refining the technology employed in automotive sensors, vehicles can become safer, more efficient, and more reliable.
Through the optimization process, the accuracy of the sensor has been significantly improved, surpassing 99%. This optimization has effectively addressed the sensor’s issues related to inclination. The improvements made have successfully eliminated any problems or inaccuracies associated with the sensor’s performance under inclined conditions. As a result, the sensor now provides highly accurate measurements even in situations where inclination was previously a challenge.

8. Patents

The presented results are covered by a registration with the Industrial Patent Office of the Czech Republic under application number 2019-35923 entitled: “A device for measuring the level and concentration of liquids”.

Author Contributions

Conceptualization, R.H. and Z.M.; methodology, R.H.; software, Z.M.; validation, R.B., Z.M. and R.H.; formal analysis, R.B.; investigation, R.B.; resources, R.H.; data curation, Z.M.; writing—original draft preparation, R.H.; writing—review and editing, R.B.; visualization, R.B.; supervision, J.K.; project administration, J.K.; funding acquisition, J.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the European Union’s Horizon 2020 research and innovation program under grant agreement Nº 856670. This work was also supported by the project SP2023/009, “Development of algorithms and systems for control, measurement and safety applications IX” of the Student Grant System, VSB-TU Ostrava.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The measured data cannot be freely handled or published due to the confidentiality clause between VSB-TU Ostrava and Continental Automotive Czech Republic s.r.o., Division of Powertrain.

Acknowledgments

We would like to express our sincere gratitude to the Continental Automotive Czech Republic s.r.o, Division of Powertrain for their invaluable assistance and cooperation during this research project.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ANOVAOne-way Analysis Of Variance
ToFTime of Flight
CPUCentral Processing Unit
PWMPulse Width Modulation
MCUMicro-Controller Unit
NTCNegative Temperature Coefficient
PCPersonal Computer
HWHardware
UARTUniversal Asynchronous ReceiverTransmitter
CHxChannel x

References

  1. Huang, S.; Long, W.; Liao, J.; Li, M.; Yu, Y.; Gou, H.; Gan, F. An Optimized Lightweight Ultrasonic Liquid Level Sensor Adapted to the Tilt of Liquid Level and Ripple. IEEE Sens. J. 2022, 22, 121–129. [Google Scholar] [CrossRef]
  2. Chillara, V.K.; Sturtevant, B.; Pantea, C.; Sinha, D.N. A Physics-Based Signal Processing Approach for Noninvasive Ultrasonic Characterization of Multiphase Oil-Water-Gas Flows in a Pipe. IEEE Trans. Ultrason. Ferroelectr. Freq. Control 2021, 68, 1328–1346. [Google Scholar] [CrossRef]
  3. Yang, B.; Li, M.; Li, Q.; Lu, Y. Ultrasonic monitoring system for oil and gas pipeline corrosion. In Proceedings of the 2012 Fourth International Conference on Multimedia Information Networking and Security (MINES 2012), Nanjing, China, 2–4 November 2012; pp. 381–383. [Google Scholar] [CrossRef]
  4. Tan, C.; Dong, X.; Dong, F. Continuous Wave Ultrasonic Doppler Modeling for Oil-Gas-Water Three-Phase Flow Velocity Measurement. IEEE Sens. J. 2018, 18, 3703–3713. [Google Scholar] [CrossRef]
  5. Alias, N.A.; Hamid, S.B.A.; Sophian, A. Effect of Temperature on Ultrasonic Signal Propagation for Extra Virgin Olive Oil Adulteration. In IOP Conference Series: Materials Science and Engineering, Proceedings of the 6th International Conference on Mechatronics (ICOM’17), Kuala Lumpur, Malaysia, 8–9 August 2017; Akmeliawati, R., Rashid, M.M., Hamid, S.B.A., Eds.; IOP Publishing Ltd.: Bristol, UK, 2018; Volume 260, p. 012036. ISSN 1757-8981. [Google Scholar] [CrossRef]
  6. Adamowski, J.C.; Buiochi, F.; Sigelmann, R.A. Ultrasonic measurement of density of liquids flowing in tubes. IEEE Trans. Ultrason. Ferroelectr. Freq. Control 1998, 45, 48–56. [Google Scholar] [CrossRef] [PubMed]
  7. Duran, A.L.; Franco, E.E.; Reyna, C.A.B.; Perez, N.; Tsuzuki, M.S.G.; Buiochi, F. Water Content Monitoring in Water-in-Crude-Oil Emulsions Using an Ultrasonic Multiple-Backscattering Sensor. Sensors 2021, 21, 5088. [Google Scholar] [CrossRef]
  8. Gillespie, A.B.; Deighton, M.O.; Pike, R.B.; Watkins, R.D. A new ultrasonic technique for the measurement of liquid level. Ultrasonics 1982, 20, 13–17. [Google Scholar] [CrossRef]
  9. Hao, H.-H.; Xiong, J.-Q. A method of liquid level measurement based on ultrasonic echo characteristics. In Proceedings of the 2010 International Conference on Computer Application and System Modeling (ICCASM 2010), Taiyuan, China, 22–24 October 2010; Volume 11, pp. V11-682–V11-684. [Google Scholar] [CrossRef]
  10. Sakharov, V.E.; Kuznetsov, S.A.; Zaitsev, B.D.; Kuznetsova, I.E.; Joshi, S.G. Liquid level sensor using ultrasonic Lamb waves. Ultrasonics 2003, 41, 319–322. [Google Scholar] [CrossRef]
  11. Melchionni, D.; Norgia, M. Optical system for liquid level measurements. Rev. Sci. Instrum. 2014, 85, 075113. [Google Scholar] [CrossRef]
  12. Díaz, C.A.R.; Leal-Junior, A.; Marques, C.; Frizera, A.; Pontes, M.J.; Antunes, P.F.C.; André, P.S.B.; Ribeiro, M.R.N. Optical Fiber Sensing for Sub-Millimeter Liquid-Level Monitoring: A Review. IEEE Sens. J. 2019, 19, 7179–7191. [Google Scholar] [CrossRef]
  13. He, R.; Teng, C.; Kumar, S.; Marques, C.; Min, R. Polymer Optical Fiber Liquid Level Sensor: A Review. IEEE Sens. J. 2022, 22, 1081–1091. [Google Scholar] [CrossRef]
  14. Gong, C.S.A.; Chiu, H.K.; Huang, L.R.; Lin, C.H.; Hsu, Z.D.; Tu, P.H. Low-Cost Comb-Electrode Capacitive Sensing Device for Liquid-Level Measurement. IEEE Sens. J. 2016, 16, 2896–2897. [Google Scholar] [CrossRef]
  15. Kumar, B.; Rajita, G.; Mandal, N. A Review on Capacitive-Type Sensor for Measurement of Height of Liquid Level. Meas. Control 2014, 47, 219–224. [Google Scholar] [CrossRef]
  16. Hanni, J.R.; Venkata, S.K. A novel helical electrode type capacitance level sensor for liquid level measurement. Sens. Actuators A Phys. 2020, 315, 112283. [Google Scholar] [CrossRef]
  17. Fleming, W. Overview of automotive sensors. IEEE Sens. J. 2001, 1, 296–308. [Google Scholar] [CrossRef] [Green Version]
  18. Kulkarni, A.; Karekar, R.N.; Aiyer, R.C. Liquid level sensor. Rev. Sci. Instrum. 2005, 76, 105108. [Google Scholar] [CrossRef]
  19. Wong, T.Y.; Tang, Y.; Zou, F.; Su, Z. An Ultra-High Accuracy Temperature Measurement Method Using Acoustic Waveguide. IEEE Sens. J. 2021, 21, 2618–2626. [Google Scholar] [CrossRef]
  20. Si, W.; Yao, W.; Guan, H.; Fu, C.; Yu, Y.; Su, S.; Yang, J. Numerical Study of Vibration Characteristics for Sensor Membrane in Transformer Oil. Energies 2021, 14, 1662. [Google Scholar] [CrossRef]
  21. Huang, J.; Cegla, F.; Wickenden, A.; Coomber, M. Simultaneous Measurements of Temperature and Viscosity for Viscous Fluids Using an Ultrasonic Waveguide. Sensors 2021, 21, 5543. [Google Scholar] [CrossRef]
  22. Sharma, S.; Mishra, U.K.; Saini, A.K.; Dubey, P.K. Accuracy Estimation of Propagation Velocity in Variable Path Ultrasonic Interferometer for Liquids. Mapan-J. Metrol. Soc. India 2020, 35, 19–24. [Google Scholar] [CrossRef]
  23. Wilkens, V.; Reimann, H.P. 5D-1 Measurement of Ultrasound Speed in Several Car Engine Oils as a Function of Temperature. In Proceedings of the 2007 IEEE Ultrasonics Symposium Proceedings, New York, NY, USA, 28–31 October 2007; pp. 369–372. [Google Scholar] [CrossRef]
  24. Shan, H. Study of Micro Power Ultrasonic Wave Flow Meter. In Proceedings of the 2013 Fourth International Conference on Digital Manufacturing and Automation (ICDMA), Qingdao, China, 29–30 June 2013; pp. 1245–1248. [Google Scholar] [CrossRef]
  25. Gao, W.; Liu, W.; Li, F.; Hu, Y. Analysis and Validation of Ultrasonic Probes in Liquid Level Monitoring Systems. Sensors 2021, 21, 1320. [Google Scholar] [CrossRef]
  26. Reyna, C.A.B.; Franco, E.E.; Duran, A.L.; Pereira, L.O.V.; Tsuzuki, M.S.G.; Buiochi, F. Water Content Monitoring in Water-in-Oil Emulsions Using a Piezoceramic Sensor. Machines 2021, 9, 335. [Google Scholar] [CrossRef]
  27. Mitrovic, R.M.; Miskovic, Z.Z.; Djukic, M.B.; Bakic, G.M. Statistical correlation between vibration characteristics, surface temperatures and service life of rolling bearings—Artificially contaminated by open pit coal mine debris particles. Procedia Struct. Integr. 2016, 2, 2338–2346. [Google Scholar] [CrossRef] [Green Version]
  28. Idzkowski, A.; Karasowska, K.; Walendziuk, W. Temperature Analysis of the Stand-Alone and Building Integrated Photovoltaic Systems Based on Simulation and Measurement Data. Energies 2020, 13, 4274. [Google Scholar] [CrossRef]
  29. Mendes, J.; Leitão, P.; Chambel Leitão, J.; Bartolomeu, S.; Rodrigues, J.; Dias, J.M. Improvement of an Operational Forecasting System for Extreme Tidal Events in Santos Estuary (Brazil). Geosciences 2019, 9, 511. [Google Scholar] [CrossRef] [Green Version]
  30. Marioli, D.; Narduzzi, C.; Offelli, C.; Petri, D.; Sardini, E.; Taroni, A. Digital time-of-flight measurement for ultrasonic sensors. IEEE Trans. Instrum. Meas. 1992, 41, 93–97. [Google Scholar] [CrossRef]
  31. Cai, C.; Regtien, P. Accurate digital time-of-flight measurement using self-interference. IEEE Trans. Instrum. Meas. 1993, 42, 990–994. [Google Scholar] [CrossRef]
  32. Gueuning, F.; Varlan, M.; Eugene, C.; Dupuis, P. Accurate distance measurement by an autonomous ultrasonic system combining time-of-flight and phase-shift methods. In Proceedings of the Quality Measurement: The Indispensable Bridge between Theory and Reality (No Measurements? No Science! Joint Conference—1996: IEEE Instrumentation and Measurement Technology Conference and IMEKO Tec, Brussels, Belgium, 4–6 June 1996; Volume 1, pp. 399–404. [Google Scholar] [CrossRef]
  33. Andria, G.; Attivissimo, F.; Lanzolla, A. Digital measuring techniques for high accuracy ultrasonic sensor application. In Proceedings of the IMTC/98 Conference Proceedings. IEEE Instrumentation and Measurement Technology Conference. Where Instrumentation is Going (Cat. No.98CH36222), St. Paul, MN, USA, 18–21 May 1998; Volume 2, pp. 1056–1061. [Google Scholar] [CrossRef]
  34. Carullo, A.; Ferraris, F.; Graziani, S.; Grimaldi, U.; Parvis, M. Ultrasonic distance sensor improvement using a two-level neural-network. IEEE Trans. Instrum. Meas. 1996, 45, 677–682. [Google Scholar] [CrossRef] [Green Version]
  35. Terzic, J.; Nagarajah, C.R.; Alamgir, M. Fluid level measurement in dynamic environments using a single ultrasonic sensor and Support Vector Machine (SVM). Sens. Actuators A Phys. 2010, 161, 278–287. [Google Scholar] [CrossRef]
  36. Yang, F.; Shi, D.; Lo, L.Y.; Mao, Q.; Zhang, J.; Lam, K.H. Auto-Diagnosis of Time-of-Flight for Ultrasonic Signal Based on Defect Peaks Tracking Model. Remote Sens. 2023, 15, 599. [Google Scholar] [CrossRef]
  37. Halliday, D.; Resnick, R.; Krane, K.S. Physics, Volume 2; John Wiley & Sons: Hoboken, NJ, USA, 2010. [Google Scholar]
  38. Noskievič, J. Fluid Mechanics, 1st ed.; SNTL—State Publishing Office of Technical Literature of the Czech Republic: Prague, Czech Republic, 1990. [Google Scholar]
  39. Heiberger, R.M.; Neuwirth, E. One-Way ANOVA. In R Through Excel: A Spreadsheet Interface for Statistics, Data Analysis, and Graphics; Heiberger, R.M., Neuwirth, E., Eds.; Springer: Berlin/Heidelberg, Germany, 2009; pp. 165–191. [Google Scholar] [CrossRef]
  40. Ross, A.; Willson, V.L. One-Way Anova. In Basic and Advanced Statistical Tests: Writing Results Sections and Creating Tables and Figures; Ross, A., Willson, V.L., Eds.; SensePublishers: Rotterdam, The Netherlands, 2017; pp. 21–24. [Google Scholar] [CrossRef]
Figure 1. Principle of ultrasonic signal generation and measurement.
Figure 1. Principle of ultrasonic signal generation and measurement.
Applsci 13 07707 g001
Figure 2. Longitudinal (L) wave and transverse (T) wave are formed during fracture, at the same time illustration of Huyghens principle, red colored lines are wavefronts.
Figure 2. Longitudinal (L) wave and transverse (T) wave are formed during fracture, at the same time illustration of Huyghens principle, red colored lines are wavefronts.
Applsci 13 07707 g002
Figure 3. Ultrasonic sensor construction and measurement principle. (a) The piezoelectric transducer emits an ultrasonic pulse; (b) part of a pulse is reflected, the other goes to the surface; (c) the oil surface reflects the pulse and the piezo receives the ToF echo.
Figure 3. Ultrasonic sensor construction and measurement principle. (a) The piezoelectric transducer emits an ultrasonic pulse; (b) part of a pulse is reflected, the other goes to the surface; (c) the oil surface reflects the pulse and the piezo receives the ToF echo.
Applsci 13 07707 g003
Figure 4. Ultrasonic sensor electronics and measurement principle.
Figure 4. Ultrasonic sensor electronics and measurement principle.
Applsci 13 07707 g004
Figure 5. Dependence of amplitude from reference and oil surface on temperature. (a) Oil surface: 30 mm. (b) Oil surface: 60 mm. (c) Oil surface: 90 mm.
Figure 5. Dependence of amplitude from reference and oil surface on temperature. (a) Oil surface: 30 mm. (b) Oil surface: 60 mm. (c) Oil surface: 90 mm.
Applsci 13 07707 g005
Figure 6. Relationships between X and Y variables. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Figure 6. Relationships between X and Y variables. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Applsci 13 07707 g006
Figure 7. Results of multiple regression models with X variables. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Figure 7. Results of multiple regression models with X variables. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Applsci 13 07707 g007
Figure 8. Model building sequence—order of adding or removing terms. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Figure 8. Model building sequence—order of adding or removing terms. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Applsci 13 07707 g008
Figure 9. Model building sequence—bars represent contribution. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Figure 9. Model building sequence—bars represent contribution. Pulse (A), Amplitude Slope (B), Amplitude Start (C), UART Amplitude Start (D).
Applsci 13 07707 g009
Table 1. Overview of measurement conditions.
Table 1. Overview of measurement conditions.
VariableUnitMeasurement Points
Motor oil levelmm20; 30; 40; 50; 60; 70; 80; 90; 100
Temperature°C−10; −5; 0; 35; 50; 70; 95; 130
Table 2. Correlation matrix of the most important experimental variables. All values in bold are significant ( p < 0.05 ).
Table 2. Correlation matrix of the most important experimental variables. All values in bold are significant ( p < 0.05 ).
NameUnitLevelAmplitudeLevAmpStartSlopeUARTAmpStartPulse
AmplitudeLevmm−0.736/0.000-----
AmpStart μ s0.967/0.000−0.622/0.006----
SlopemV/ μ s−0.596/0.0000.914/0.000−0.444/0.065---
UARTAmpStart μ s0.967/0.000−0.620/0.0061.000/0.000−0.444/0.065--
Pulse μ s0.967/0.000−0.622/0.0061.000/0.000−0.447/0.0630.999/0.000-
dt μ s−0.183/0.4680.036/0.887−0.128/0.613−0.266/0.286−0.131/0.603−0.121/0.632
Table 3. Descriptive statistics summary of the most important variables.
Table 3. Descriptive statistics summary of the most important variables.
VariableUnitTotal CountMeanStDevMinimumMedianMaximumRange
dt μ s181.50720.27631.01001.54001.95000.9400
OffsetmV180.006830.0007860.005000.007000.008000.00300
SlopemV/ μ s180.033660.014440.004550.036470.067760.06322
AmplitudeLevmV180.057890.028380.007000.055500.103000.09600
AmplitudeRefmV180.012830.0013830.011000.011000.016000.00500
Table 4. Description of measured parameters.
Table 4. Description of measured parameters.
SignalUnitMeaning
L e v e l mmThis is the actual level of the measured oil.
A m p l i t u d e L e v mVIt is an echo echo amplitude of the ultrasonic signal reflected from the oil surface. It is the maximum measured value on the receiving piezo element.
A m p S t a r t  (C) μ sThis is the time delay calculated from the moment the ultrasonic signal is sent from the exciter to its return. It is the time of flight of the ultrasonic signal that is measured by the oscilloscope.
S l o p e  (B)mV/ μ sThis is the steepness of the front of the reflected ultrasonic signal.
U A R T A m p S t a r t  (D) μ sThis is the time delay calculated from the moment the ultrasonic signal is sent from the exciter to its return. It is the time of flight of the ultrasonic signal, which is measured by the microprocessor from the discretized ultrasonic signal.
P u l s e  (A) μ sThis is the time length of the discretized received echo of the ultrasonic signal.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hercik, R.; Machacek, Z.; Byrtus, R.; Koziorek, J. Identification of the Physical Dependencies of Accurate Oil Level Measurement for Automotive Applications. Appl. Sci. 2023, 13, 7707. https://doi.org/10.3390/app13137707

AMA Style

Hercik R, Machacek Z, Byrtus R, Koziorek J. Identification of the Physical Dependencies of Accurate Oil Level Measurement for Automotive Applications. Applied Sciences. 2023; 13(13):7707. https://doi.org/10.3390/app13137707

Chicago/Turabian Style

Hercik, Radim, Zdenek Machacek, Radek Byrtus, and Jiri Koziorek. 2023. "Identification of the Physical Dependencies of Accurate Oil Level Measurement for Automotive Applications" Applied Sciences 13, no. 13: 7707. https://doi.org/10.3390/app13137707

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop