- freely available
Sensors 2014, 14(5), 9256-9270; doi:10.3390/s140309256
Published: 23 May 2014
Abstract: This paper proposes an approach for measuring the azimuth angle and tilt angle of underground drilling tools with a MEMS three-axis accelerometer and a three-axis fluxgate sensor. A mathematical model of well logging attitude angle is deduced based on combining space coordinate transformations and algebraic equations. In addition, a system implementation plan of the inclinometer is given in this paper, which features low cost, small volume and integration. Aiming at the sensor and assembly errors, this paper analyses the sources of errors, and establishes two mathematical models of errors and calculates related parameters to achieve sensor calibration. The results show that this scheme can obtain a stable and high precision azimuth angle and tilt angle of drilling tools, with the deviation of the former less than ±1.4° and the deviation of the latter less than ±0.1°.
In oil, gas or geological exploration well logging work, acquiring the posture and orientation of the drilling tool in real-time [1,2], and transmitting the related information to the decision-making control side to adjust the action of drill accurately, will efficiently improve the quality of drilling engineering. Inertial navigation has an explicit definition of the space attitude information which will be reflected by the tilt angle, the azimuth angle and the tool face angle specifically . Since the 1970s, inertial technology has developed rapidly and the corresponding tools, like dynamic debugging gyro inclinometers, optical fiber gyro inclinometers and so on have been implemented, but all these instruments have the shortcomings of high cost, large size and poor vibration resistance . At present, the commonly used logging inclinometers include inclinometers based on fiber optic gyro or magnetic sensors. The former, free from any external magnetic disturbance, is of large volume, and high cost with accumulative errors existing in the measurement while drilling; the latter, with small volume and low cost, acts instantly when measuring and has no accumulated error [5,6].However, the existing logging inclinometers based on magnetic sensor systems still have some disadvantages such as low systematic digitalization, low precision of the attitude results and incomprehensive error calibration or complex calibration methods. In the existing products used in the oil drilling industry, the general azimuth measuring accuracy is ±3° and the tilt angle one is ±0.3°.
Consequently this paper proposes a scheme to develop a measuring system for well logging attitude by using a MEMS three-axis accelerometer and a three-axis fluxgate sensor which has small size , light weight, low power consumption and no gyroscope. As there are various sensor errors which affect the accuracy of the calculated angle [8–11], it is particularly important to find a way to effectively reduce these errors. Traditionally, the inertial navigation sensor calibration algorithms described in many literatures includes the commonly used ferromagnetic effect calibration method as well as genetic algorithm and BP neural network methods and the least square method. The ferromagnetic effect algorithm is used to obtain the maximum and minimum output by rotating the magnetic sensor and thereby acquire the offset and scale factor of the magnetic sensor. This method with its simple principle is easy to operate and implement, but on the other hand, it only completes the calibrations of the hard iron interference errors and tri-axial sensitiveness errors and fails to realize the calibration of alignment errors which is an indispensible process to achieve the accord between two sensor axes and equipment axes. To obtain calibration parameters with a genetic algorithm or BP neural network in practice, which is theoretically feasible, involves a large amount of programming with computational complexity, so it is generally not used. In addition, many of the traditional navigation algorithms are not entirely suitable for well logging. On the basis of the traditional calibration method [12–15], a newly proposed calibration method can improve the accuracy.
2. Theory of Measurement
2.1. Systematic Design
For directional well logging attitude measurement, the guiding parts mainly include a sensor module, signal acquisition module, microcontroller module and communication interface (SPI, SCI). All these component are assembled in a probe casing with small size and diameter (φ35 mm × 260 mm), and a PC works as the remote control and display device. The mechanical configuration of a logging tool can be expressed as shown in Figure 1. It includes a variety of mechanical fittings and a guiding probe which is the core measurement device.
A picture of the designed measuring probe is shown in Figure 2. The measuring probe is used to measure and respond in real time to the posture information of the drilling tool, and it is also designed as an aluminum cylinder structure, so that the device is compact, nonmagnetic and especially convenient for other mechanical adaptations and subsequent turntable experiments.
The main function of the measuring probe based on accelerometers and fluxgate sensors designed in this paper is to measure the azimuth angle and tilt angle of the well logging tool. The system principle block diagram of the hardware for the measuring device is shown in Figure 3. The accelerometer uses an ADIS16210 which combines a high accuracy MEMS tri-axial acceleration sensor with ±1.7 g measurement range and ±0.061 mg sensitivity. The selected tri-axial fluxgate sensor measurement range is 0∼±100,000 nT and the resolution can reach 1 nT. The main microcontroller uses a MC9S12XEP100 Freescale MCU.
2.2. Mathematical Calculating of Attitude Angle
The equipment used for measuring the attitude of a directional well logging tool is usually called a well logging inclinometer. Acquiring the posture and orientation uses the gravity field and magnetic field which have relative stability characteristics. Under different orientations, the fluxgate sensor and acceleration sensor data output will have different values. By 3D coordinate rotation and transformation, the current attitude angle and azimuth angle of the equipment can be uniquely determined.
As shown in Figure 4, the navigation coordinates E/N/U are defined as east/north/up based on the right-hand rule, and the device body coordinates Xb/Yb/Zb are defined as forward/right/down based on the right-hand rule. H represents the horizontal plane; V the borehole bending plane; and P the drill cross section. The tilt angle (θ) is an angle between Zb axis and the vertical direction, and the azimuth angle (Ψ) is an angle between the horizontal projection of Zb axis and north.
A device can always transform a fixed location to the current location through a rotation matrix. As shown in Figure 5, the navigation coordinates ox0y0z0 (oENU) are used as a reference frame and clockwise rotation is positive. Firstly rotate an angle of ψ around oz0 to the coordinates ox1y1z1, then an angle of θ around oy1 to the coordinates ox2y2z2, finally an angle of T around oz2 to the coordinates oX′bY′bZ′b which are the device body coordinates.
Therefore the rotation matrix can be expressed as Equation (1) in which ψ is the azimuth angle, θ is the tilt angle, and T is the tool face angle. The relationship between X′bY′bZ′b and x0y0z0 is expressed by Equation (2):
Let Ax, Ay and Az be the normalized accelerometer output values after filtering and Mx, My and Mz the normalized fluxgate sensor output values after filtering. In the local horizontal plane, Ax0 = Ay0 = 0, Az0 = +1 g, then Equation (2) becomes:
Therefore, θ and T can be calculated as follows:
In the local horizontal plane, the values of the fluxgate sensor in the E/N/U direction can be calculated as Mx0 = 0, My0 = Mcosφ, Mz0 = Msinφ. Here M is the magnetic value of the local geomagnetic field and φ is the local latitude, so Equation (2) becomes:
And ψ can be calculated as follows:
Here Q = Mx × Ax + My × Ay + Mz × Az. Equation (7) shows that the value of daz is not related to φ or M.
3. The Proposed Calibration Method
The acceleration sensors and fluxgate sensors used in this paper have been strictly calibrated before they leave the factory, and their accuracy has a certain guarantee. However, in considering the overall measurement equipment, after the device is assembled in the mechanical aspects, this will cause new errors due to the inevitable mechanical installation axial misalignment, circuit effects, hard-iron interference, etc.
The actual device axis (Z-axis) is defined as the reference axis for calibration. Taking the errors of the sensors and the types of errors after completion of the sensors assembly into unified consideration and fusion processing, the errors of the system after assembly are mainly the result of four aspects: (1) Misalignment error is defined as the angles between the sensor sensing axes and the device body axes, caused by manufacturing and installation; (2) Hard-iron interference magnetic field is normally generated by ferromagnetic materials with permanent magnetic fields that are part of the device structure. These materials could be permanent magnets, magnetized iron or steel; (3) A soft-iron interference magnetic field is generated by the uncertain magnetically soft materials surrounding the device or the items inside current carrying traces on the PCB. For some platforms, hard-iron interference is the primary source of error and soft-iron distortion is minimal or non-existent; (4) The scale factor error is defined as the mismatch of the sensitivity of the sensor sensing axes. Ideally, the three-axis sensors that make up the triad are identical. In reality, however, this may not be the case. Each sensor channel may have different sensitivities. Calibration is designed to reduce these errors.
To calibrate these errors, the existing least square method is, through the establishment of multi-parameter equation, used to collect multiple samples to calculate the calibration parameters. However, they have the following shortcomings. First, some perform the error correction incompletely. For example, it only corrects two or three of the four errors. Second, the number of samples limits the accuracy of the parameters. Third, a variety of established equations are not simple and clear with complicated solving processes for the parameter equations. Additionally, the ellipsoidal model is also established in some papers to achieve the magnetic calibration, but it involves a complex parameter solving process and adopts a simplified approximation to replace the parameter values, which cannot fully represent the types of errors. This paper establishes a comprehensive error model based on the above four errors, and uses the least square method to calculate a calibration matrix. A simple and practical calibration process is thus designed.
3.1. Accelerometer Calibration Model
Here [Am]3×3 is a 3 × 3 misalignment matrix between the accelerometer sensing axes and the device body axes; ki(i = x,y,z) is the scale factor and ei(i = x,y,z) is the offset, a10∼a33 are the calibration parameters, Ax0, Ay0, Az0 are raw measurements and Ax, Ay, Az are normalized values. Equation (8) can then be rewritten as:or N = A·a where, Matrix a is composed of 12 calibration parameters that need to be determined. Matrix A is composed of sensor raw data collected at several stationary positions. Matrix N is the known normalized Earth gravity vector. The goal of the accelerometer calibration is to determine 12 parameters from a10 to a33, and with any given normalized values in a position, the raw measurements can be obtained. For example, at Zb down position where the tilt angle scale indicating on the standard turntable is zero, [Ax Ay Az] = [0 0 1] and a set of accelerometer raw data Ax0, Ay0 and Az0 can be collected. According to the standard turntable, we choose 10 positions with Xb down and up, Yb down and up Zb down and up, Ax = 0, Ay = ±0.707 g, Az = −0.707 g and Ax = ±0.707 g, Ay = 0, Az = −0.707 g and collect several a second set of accelerometer raw data at each position with known Ax0, Ay0 and Az0. The calibration parameter matrix a can be determined by the least square method as:
If the raw data of accelerometer is [Ax1 Ay1 Az1], the calibrated data which be used to calculate the attitude angle can be expressed as [Ax2 Ay2 Az2] = [Ax1 Ay1 Az1 1]·a.
The calculation process of the accelerometer calibration parameters is shown in Figure 6.
3.2. Fluxgate Sensor Calibration Model
Here [Mm] is a 3 × 3 misalignment matrix between the magnetic sensor sensing axes and the device body axes; kmi(i = x,y,z) is the scale factor and emi(i = x,y,z) is the offset caused by hard-iron distortion; [Ms] is a 3 × 3 matrix caused by soft-iron distortion. The goal of the magnetic sensor calibration is to determine the parameters from m10 to m33, and with any given raw measurements at arbitrary positions, the normalized values can be obtained. It is always good to know if the device has the above interference before choosing which model to use for the identification of the calibration parameters, tilted ellipsoid, or non-tilted ellipsoid. This can be done by performing 3D rotations in a clean environmental area. Then we plot the collected magnetic sensor raw data with MATLAB to check if there is any interference field inside the device. This set of data is not used for the subsequent magnetic sensor calibration. However in practical situations, three 2D full round rotations may not be easy to perform. Then an amount of 3D rotation data can be used for rough field calibration. If there is soft-iron distortion, the 3D rotations show a tilt ellipsoid which can be described by the following equation:
Here x0, y0, z0 are the offsets emi(i = x, y, z), x, y, z are magnetic sensor raw data, a, b, c, are the semi-axes lengths, d, e, f, are cross axis effect to make the ellipsoid tilted, R is a constant of the Earth's magnetic field strength. Actually, the designed device doesn't utilize any magnetically soft materials in the hardware design and mechanical assembles, and there are no soft materials in the application environment. The calibration parameters are acquired in the open field which has no magnetically soft materials. Additionally, the soft-iron interference magnetic field from the current on PCB is weak and fixed and it is calibrated together with the hard-iron interference. It is discovered that the model is a normal ellipsoidal without tilt described in Figure 9a when MATLAB is used to simulate and test the magnetic data of instruments, so the soft-iron interference is negligible and can be ignored. The ellipsoid can be simplified as the following equation:
Here x0,y0,z0 are the offsets emi(i = x, y, z) caused by hard-iron distortion. x,y,z are magnetic sensor raw data Mx, My and Mz a, b, c are the semi-axes lengths, R is a constant of the Earth's magnetic field strength. Equation (13) can be rewritten as:
The least square method can be applied to determine the parameters I vector as:
Then Equation (13) becomes:
Up to now, kmi(i = x, y, z) the scale factor, emi(i = x, y, z) the offset caused by hard-iron distortion, and the [Ms]3×3 matrix caused by soft-iron distortion have been determined.
Let Mm×3 = [x2z y2z z2z] be the Zb down rotation circle data after scale factor, hard-iron and soft-iron correction:
So the normalized rotation vector for Zb down rotation is:
Similarly, the normalized rotation vectors wx and wy for Xb down rotation and Yb down rotation can be determined. Then the final misalignment compensation matrix is:
4. Experiments and Analysis
For attitude measurement of exploring casinga in production and practice, a non-magnetic and omnibearing standard turntable, which can display and inspect the tilt angle (ranging 0 to ±90°) and the azimuth (ranging 0 to 360°), is often used as the test platform. Moreover the standard turntable is strictly adjusted by precise third party calibration instruments before the experiment, and then we can examine the resulting precision of the angle measurement based on the turntable. The adjusted turntable can guarantee the tilt angle is 0° and the azimuth is 0° when it is at the zero position, and the reading error of the turntable calibration is within ±0.1°; That is, the experimental turntable guarantees the tile angle scale indicates 0° with the exploring casing is vertically direct to the ground, and it also guarantees the azimuth scale indicates 0° with the exploring casing is directed to the magnetic north. The system adopts the output value of the final calculated measurement result by comparing the current value of the turntable calibration as the relative error for measurements, which is a conventional method for cylindrical, probe tubular underground inclinometer devices, this method is simple, easily used, and also able to test the measurement precision.
The test calibration and experiment platform is shown in Figure 8. The 3D movable platform is used to collect multiple sets of data by soft filtering. The more data are collected, the more accurate the calibration parameters that will be adopted in the least square method to calculate the 12 calibration parameters of the accelerometer and the fluxgate sensor separately. In the experiment, the calibration parameters of the fluxgate sensor are calculated by reading 360 datum of the fluxgate sensor under different spatial orientations.
There is a standard method to show the fluxgate calibration results. As shown in Figure 9, Figure 9a is an ellipsoid before fluxgate calibration and Figure 9b is a normal sphere, which proves that the fluxgate errors of the scale factor and center offset have been calibrated.
The turntable is use to test the designed inclinometer. The inclinometer needs keep the same center with the turntable. Taking eight tilt angles (3°, 15°, 30°, 60°, −3°, −15°, −30°, −60°), and rotating eight azimuth angles, respectively (0°, 45°, 90°, 135°, 180°, 225°, 270°, 315°) at each tilt angle, we then record and save the current measurement result values. Comparing these values with the standard tilt angle and azimuth angle, Table 1 shows that dev is the tilt angle calculated by this scheme, dev0 is the tilt angle calculated with no accelerometer calibration, v_err0 is the deviation between dev0 and the stander value of tilt and v_err is the deviation between dev and the standard tilt value.
Table 2 shows that daz is the azimuth angle calculated by this scheme, daz0 is the azimuth angle calculated after fluxgate sensor calibration using the traditional ellipse matching error compensation algorithm [12,13], z_err0 is the deviation between daz0 and the stander values of azimuth and z_err is the deviation between daz and the standard value of azimuth. dev0, dev, daz0 and daz are angles which have the biggest deviation compared with the standard values when recorded.
The two forms of data above show that the azimuth angle error with traditional compensation will reach ±4° and the tilt angle error with no calibration will reach ±0.4°. As for the errors of the accelerometer (scale factor error, misalignment error, external disturbance) and fluxgate sensor (hard-iron interference, soft-iron interference, scale factor error, misalignment error), the azimuth error is less than ±1.4° and tilt angle error is less than ±0.1° after calibration by the proposed method, so we can state that the calibration method improves the accuracy of the attitude angle and is proved to be effective, so it can be applied to actual well logging work.
Based on the design of a measuring system for well logging attitude, this paper proposes a concise formula for attitude angle calculation, and establishes mathematical models to calibrate errors. Taking the error of the sensor itself and the four main types of errors after completion of the sensor assembly into unified consideration and fusion processing, a comprehensive error model has been established. Based on this model, a simple and practical calibration process is designed, which can be completed using a standard test turntable. Furthermore, it can complete the calibration of equipment errors, including installation errors and sensor errors, so the measurement accuracy can then be improved. The test results show that these schemes are effective and highly precise. The designed measuring equipment has utility in engineering applications and has the characteristics of small size, high integration, low-cost and easy adaptation to other devices. The measuring deviation of azimuth angle and tilt angle of drilling tools are thus greatly reduced. The calibration parameters can be calculated in advance and be used in the soft system to acquire the attitude angle of directional well logging.
The authors would like to acknowledge the reviewers for their constructive and helpful suggestions. The authors thank the editor for English verification.
Conflict of Interest
The authors declare no conflict of interest.
- Xue, Q.L.; Wang, R.H.; Sun, F. Dynamic solution approach to inclination and azimuth of the strap-down rotary steerable system. J. China Univ. Pet. 2012, 36, 93–107. [Google Scholar]
- Zen, Z.Q.; Wang, Y.H.; Gao, J.H. Borehole inclinometer based on accelerometers and the fluxgate sensor. Pet Instrum. 2011, 25, 38–40. [Google Scholar]
- Xie, C.; He, L.L.; Lin, B. Research and Design of a Spatial Attitude Measurement System for Drilling Tools. Adv. Mater. Res. 2011. [Google Scholar]
- Ren, C.H.; Li, B.; Zhao, X.Z. Study on all-attitude fiber optic gyro well-hole trajectory continuous measuring instrument. Chin. J. Sci. Instrum. 2012, 33, 2703–2708. [Google Scholar]
- Luo, W.S.; Xu, T.; Du, L.B. Directional drilling attitude measurement and azimuth correction with accelerometers and magnetometers. J. Natl. Uni. Defense Technol. 2007, 29, 106–110. [Google Scholar]
- Xie, C. Clinometer for artesian well based on magnetometer and inclination angle sensor. Chin. J. Sci. Instrum. 2010, 31, 2357–2362. [Google Scholar]
- Djamal, M.; Sanjaya, E.; Yulkifli, R. Development of fluxgate sensors and its applications. Proceedings of the 2011 2nd International Conference on the Instrumentation, Communications, Information Technology, and Biomedical Engineering (ICICI-BME), Bandung, Indonesia, 8–9 November 2011; pp. 421–426.
- Yang, Y.H.; Huang, X.X. Method research of quick coarse orientation based on electronic box and needle. Comp. Meas. Control 2012, 20, 768–700. [Google Scholar]
- Wu, T.J.; Ma, L.H.; Li, Z.T. Application of the Strap down Inertial Navigation Systems Analysis; National Defense Industry Press: Beijing, China, 2011. [Google Scholar]
- Han, K.; Wang, H.; Xiang, T. Magnetometer Compensation Scheme and Experimental Results on ZDPS-1A Pico-satellite. Chin. J. Aeronaut. 2012, 5, 430–436. [Google Scholar]
- Ali, A.; Siddharth, S.; Syed, Z.; El-Sheimy, N. Swarm Optimization-Based Magnetometer Calibration for Personal Handheld Devices. Sensors 2012, 12, 12455–12472. [Google Scholar]
- Wang, Y.J.; Li, Z.; Li, X. Design and error calibration of three-axis electronic compass. Transducer Microsyst. Technol. 2010, 29, 110–112. [Google Scholar]
- Qing, Y.; Zhao, J.; Wang, X.Y. Digital magnetic compass based on ellipse matching error compensation algorithm. J. Jilin Univ. Eng. Technol. Ed. 2009, 39, 489–493. [Google Scholar]
- Huang, Y.; Sun, F.; Wu, L.H. Synchronous correction of two three-axis magnetometers using FLANN. Sens. Actuators A 2012, 179, 312–318. [Google Scholar]
- Xu, Y.; Shi, Z.Y.; Yang, Y.T. Geomagnetic sensor error compensation method based one llipsoid assumption. Sens. Technol. 2010, 24, 176–179. [Google Scholar]
- Pan, J.Y.; Zhang, C.X.; Cai, Q.Z. An accurate calibration method of accelerometer nonlinear scale factor on a low-cost three-axis turntable. Meas. Sci. Technol. 2014, 25. [Google Scholar] [CrossRef]
- Gokcen, A.A.; Afsar, S.L. Characterization and calibration of MEMS inertial sensors for state and parameter estimation applications. Measurement 2012, 45, 1210–1225. [Google Scholar]
- Koseki, T.; Takada, Y.; Obata, H.; Hayakeyama, Y. Measurement and modeling of nonlinear magnetic core characteristics of a fluxgate direct current sensor for wide-range current monitoring. Proceedings of the International Conference on Electrical Machines and Systems (ICEMS 2009), Tokyo, Japan, 15–18 November 2009; pp. 1–6.
|Table 1. The tilt angle measurement data.|
|Table 2. The azimuth angle measurement data.|
© 2014 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license ( http://creativecommons.org/licenses/by/3.0/).