Tilt angle measurement in dynamic systems is problematic because the rotation of the measured platform is coupled with translation. Therefore, when some sensors are applied in dynamic systems, their output signals are often submerged in the noise signals generated by translation. To enhance the ability of tilt sensors to resist translational noise, a dynamic tilt sensor is proposed based on the principle of variable reluctance from the perspective of sensor structure. The eccentric structure of the sensor constructed with a shell, liquid, and internal damping plate was designed according to the principles of mechanics. The characteristic of translational acceleration restraint determined by the sensor structure was established theoretically. In addition, the magnetic circuit of the sensor was analyzed to illustrate the sensor's working principles. A Clapp oscillator circuit was designed to convert mechanical motion into a measureable electrical signal. A method to determine the sensor's direction of rotation is proposed. A waveform conversion circuit was designed to convert the sine wave output of the Clapp oscillator to a square wave, and a square-wave frequency measurement circuit was designed based on the C8051 micro-control unit. A translation-rotation experimental hardware platform was constructed. The data acquisition program was designed on a PC platform, and the translation-rotation experiments were conducted with an MTi attitude measurement unit as a reference. The validity of the tilt angle measurements and the effect of the translational acceleration restraint of the sensor were verified by the experimental data. The theoretical results obtained were consistent with the experimental data, verifying the validity of the theoretical analysis and experimental devices employed. A measurement range of -180 to 180° was achieved.
Tilt angle measurement in dynamic systems is problematic because the rotation of the measured platform is coupled with translation. Therefore, when some sensors are applied in dynamic systems, their output signals are often submerged in the noise signals generated by translation. To enhance the ability of tilt sensors to resist translational noise, a dynamic tilt sensor is proposed based on the principle of variable reluctance from the perspective of sensor structure. The eccentric structure of the sensor constructed with a shell, liquid, and internal damping plate was designed according to the principles of mechanics. The characteristic of translational acceleration restraint determined by the sensor structure was established theoretically. In addition, the magnetic circuit of the sensor was analyzed to illustrate the sensor's working principles. A Clapp oscillator circuit was designed to convert mechanical motion into a measureable electrical signal. A method to determine the sensor's direction of rotation is proposed. A waveform conversion circuit was designed to convert the sine wave output of the Clapp oscillator to a square wave, and a square-wave frequency measurement circuit was designed based on the C8051 micro-control unit. A translation-rotation experimental hardware platform was constructed. The data acquisition program was designed on a PC platform, and the translation-rotation experiments were conducted with an MTi attitude measurement unit as a reference. The validity of the tilt angle measurements and the effect of the translational acceleration restraint of the sensor were verified by the experimental data. The theoretical results obtained were consistent with the experimental data, verifying the validity of the theoretical analysis and experimental devices employed. A measurement range of -180 to 180° was achieved.
In all kinds of feedback control systems, the importance of the sensor as the main component of the feedback link is self-evident. Its output signal is often the important basis for the control system to make decisions. Distortion of the feedback signal can bring disastrous consequences. In the research of robot balance control, we need to measure the roll angle of the robot as the feedback signal of the control system in order to keep the robot’s posture balanced in the process of motion. However, we find that translational motion seriously interferes with the output value of the sensor. One existing dip sensor is based on the principle of capacitance [1]. After a thorough investigation of all major nonlinear effects, researchers designed an accurate system-level model of the sensor, which is capable of handling signal offset and amplitude variations. A high–accuracy, easy–to–fabricate capacitive angle transducer that provides digital output linearly proportional to the angle being sensed in the range 0 to 360° is presented in [2]. Ha et al. presented design optimization and validation of a two-axis cylindrical capacitive tilt angle sensor. The proposed sensor includes five electrodes symmetrically arranged surrounding an air–liquid two–phase cylindrical tube, forming two pairs of electrodes for roll and pitch angle measurement [3]. Chen et al. adopted differential capacitance detection and made use of the approximately proportional relationship between the capacitance difference and the rotor deflection angle to construct a new angle sensor [4].Another type of inclination sensor was designed based on the principle of a gas pendulum. Zhang proposed that the natural convention gas in the closed cavity has the characteristics of a pendulum. Compared with solid and liquid pendulum inertial sensors, gas pendulum inertial sensors have the advantages of strong shock resistance and short response time [5,6]. In [7], the pendulum characteristic of natural convection gas within a 3D spherical closed cavity is discussed. By using the finite element method, the flow and temperature field caused by the heat source within the 3D spherical closed cavity under different tilted conditions were calculated.Some tilt sensors are designed based on acceleration sensors. An inclination sensor based on a micro-electromechanical system (MEMS) accelerometer had high accuracy is high but was affected by vibration, impact, temperature and other factors [8]. In [9], the authors designed and implemented a novel algorithm for an embedded microcontroller such that the system was capable of transferring the raw data of the accelerometer from the motion domain to the angular domain in-line, in order to provide the inclination or tilt angle information alone in real time. However, the angle calculation was very complicated [9]. In another paper, a new type of digital inclination meter was studied. The signal processing of a MEMS accelerometer was divided into adjustment, sampling, conversion, and temperature compensation, and then the tilt angle was calculated [10].Many kinds of tilt sensors designed based on optical principles have been developed in recent years. For a fiber Bragg grating inclination sensor (FBG), the experiment showed that although its measurement accuracy was very high, it had high requirements in terms of the temperature of the measurement environment [11,12,13,14], and the measurement range was usually relatively small [15].The absence of a torque state has been established for an ideal liquid in a ball cavity [16,17], and a tilt sensor making use of the effect of liquid damping was presented [18], although the sensor had a major drawback in that its measurement range was very small.We can make the following summary: Some sensors are only suitable for static environments and are sensitive to both rotation and translational motion. For some sensors, their measurement range is limited. For example, the CXTA-01 sensor can only maintain good measurement accuracy within a limited range. Temperature drift has a big effect on some sensors, such as the MPU6050 sensor. Some tilt sensors, such as fiber optic gyroscopes, can be applied in dynamic systems, but they are relatively expensive. Therefore, designing a low-cost dynamic angle sensor is urgent for practical applications. Thus we propose a new type of dynamic inclination sensor with an eccentric structure based on the principle of solid pendulum with liquid damping to improve the characteristics of the sensor.This paper presents a sensor with an eccentric structure built with a shell, liquid, and internal damping plate. The sensor’s measurement range covers a full 360°. Owing to the sensor’s eccentric structure, when it rotates to a certain angle, the reluctance is changed, and the inductance of an inductance coil is correspondingly varied, which is used to convert the mechanical motion of the sensor into a measurable electrical signal. Experimental studies on an experimental platform were performed to verify the validity of the proposed sensor.This paper makes several contributions to the literature:It is the first time the novel structure of a sensor with a measurement range of 360° is presented. According to the requirement, sensors with this structure can be made very large or very small.In order to reduce the influence of translation noise, the sensor is filled with oil. A damping board fixed in the sensor, with the structure of a buoyancy center moving up from the geometric center and the gravity center moving down from the geometric center is proposed.A scheme of non-electricity conversion is proposed. Mechanical motion such as roll angle is transformed into the variation of reluctance. The variation of reluctance causes the change of inductance value of the sensor coil. The change of inductance leads to the change of output frequency of the clapper oscillator circuit.
2. Sensor Structure Design
Illustrations of the sensor designed in the present study are shown in Figure 1 and Figure 2. To overcome the limited measurement range discussed with regard to the tilt sensor in [18], the following two improvements were adopted: First, the I-type ferrite core that was fixed on the internal damping plate of the sensor in [18] was replaced by a ferrite ring. Second, the axis of the ferrite ring does not coincide with the rotational axis of the internal damping plate, although the two axes are parallel.
Figure 1
Illustration of proposed sensor.
Figure 2
Assembly and exploded diagram of proposed sensor.
Figure 3 presents a cross-sectional view of the sensor perpendicular to the ferrite ring and the internal damping plate rotational axes. The circle with O1 as its center represents the shell of the sensor, and the circle with O2 as its center represents the ferrite ring. The distance between O1 and O2 is denoted by δ. When the sensor has a certain tilt angle α, the E-type ferrite core is fixed at point A. The cross point of radius O1A0 with circle O2 is at B0. Point A will rotate with the shell from A to A0, and the cross point of radius O1A with circle O2 is at B. Therefore, the distance between the ferrite ring and the shell can be expressed with angle α.
Figure 3
Cross-sectional view of sensor perpendicular to ferrite ring and internal damping plate rotational axes.
3. Theoretical Analysis
3.1. Sensor Analysis of Gas Gap in the Sensor
The structure of the sensor has the following characteristics. Its performance is associated with distance O1O2, which is the linear eccentricity, as shown in Figure 3. This indicates that the value of O1A0 or O2B0 has no bearing on the performance of the sensor. Therefore, this structure allows the sensor to be as large or small as desired.Let d denote the distance of the gas gap AB shown in Figure 3. Let R denote the cylindrical cavity radius of the sensor, and let r denote the outer radius of the ferrite ring.As such, it is shown in Figure 3 that R = O1A, r = O2B, and δ = O1O2.Let x denote the distance O. According to the law of cosines for the triangle O1O2B, we can propose the following equation:This equation can be represented as follows:When δ, r, and re known variables, the above equation is a quadratic equation, and its solution is as follows:In the design of the sensor, we assume a small eccentricity δ, which provides the following relationship, as shown in Figure 3:The following relationship obviously follows:Moreover, .As such, the following relationship is obtained:It is proved that Equation (2) has two distinct real roots given by Equation (3). Some circumstances were considered to check the above two roots. It is not difficult to determine that the following is a reasonable root:Then, the distance of the gas gap AB shown in Figure 3 can be presented as follows:Therefore, d can be presented as follows:
3.2. Reluctance Analysis of the Sensor
As shown in Figure 4, the middle core element of the E-type ferrite core has N turns. Three gaps of the same distance d lie between the ends of the E-type ferrite core and the ferrite ring. The cross-sectional areas of gap 1 and gap 3 are equivalent, and are denoted by S. Similarly, the cross-sectional area of gap 2 is denoted as 2S according to the characteristics of the E-type ferrite core. Finally, it is assumed that the permeability of the ferrite is infinite. As such, an equivalent magnetic circuit of Figure 4 can be presented, as shown in Figure 5. Here, R, R, and R denote the reluctance values of the ferrite core elements in the E-type core, and R1, R2, and R3 denote the reluctance of gaps 1, 2, and 3, respectively. The geometric parameters of the E-type ferrite core are shown in Figure 6, where l1 and l2 denote the length of the magnetic circuit. According to the characteristics of the E-type ferrite core, the flux of a magnet of length l1 is half that of a magnetic with length l2.
Figure 4
Reluctance analysis of sensor.
Figure 5
Equivalent magnetic circuit.
Figure 6
Geometric parameters of magnetic circuit of E-type ferrite core.
From the above considerations, the following relationship can be obtained:Let the permeability of a vacuum be defined as . Without regard for the magnetic field boundary conditions, the following relationship can be obtained:Because , the following relationship can be obtained:Therefore, the equivalent magnetic circuit shown in Figure 5 can be simplified as given in Figure 7.
Figure 7
Simplified equivalent magnetic circuit.
Denoting the flux through the middle core element as and the total magnetic reluctance as , the flux through the main magnet can be presented as follows:The inductance of the coil with N turns on the middle core element of the E-type ferrite core is proposed as follows:Equation (13) can be substituted into Equation (14), and the following relationship obtained:In addition, R can be presented as follows, according to Figure 7:However, Equation (16) is too idealized to describe the gap reluctance precisely, and a more accurate expression is required. The geometric parameters of the gap between the E-type ferrite core and the ferrite ring are shown in Figure 8. Because r is much larger than thickness b of the E-type ferrite core, the following inequality holds:
Figure 8
Geometric parameters of gaps between E-type ferrite core and ferrite ring.
Accordingly, we can reasonably approximate that the outer cylindrical surface of the ring-type ferrite core is a plane with respect to the E-type ferrite core element surfaces. Considering the edge effects of the magnetic field in the gap, the distribution of reluctance in the gaps between the E-type ferrite and ferrite ring cores can be illustrated as shown in Figure 9. The permeance of all portions of the gaps shown in Figure 9 is presented in Table A1 in Appendix A.
Figure 9
Analysis of gap reluctance between E-type ferrite and ferrite ring cores.
Table A1
Permeance of all portions of gaps shown in Figure 9.
Number
Portion of Gap
Permeance of Portion
1
Λ1=2μ0Ad=2μ0abd
2
Λ2=μ0Ad=μ0abd
3
Λ3=μ0a
4
Λ4=0.5μ0b
5
Λ5=0.5μ0a
6
Λ6=0.308μ0d
7
Λ7=4μ0aπln(1+md)→m=d4μ0aπln(2)
8
Λ8=2μ0bπln(1+md)→m=d2μ0bπln(2)
9
Λ9=2μ0aπln(1+md)→m=d2μ0aπln(2)
10
Λ10=μ0m2=μ0d2
The total reluctance of the gaps can be represented as follows, for which the derivation processes of reluctance , , and are shown in Appendix A.Here, ,, and .Substituting Equation (18) into Equation (15) provides the following relationship:Function indicates that exact values of L are determined by d.Substituting Equation (9) into Equation (19) yields the following relationship:Function indicates that exact values of L are determined by . Therefore, measurements of L can provide the value of to convert the mechanical motion into a measureable electrical signal.
3.3. Design of the Clapp Oscillator
To measure the values of L, we designed the sine wave oscillator circuit shown in Figure 10, known as a Clapp oscillator. The design is based on the expectation of low oscillation frequency (3–10 kHz) and the measurement of fairly large inductor values (30–67 mH). Therefore, it may be appropriate to assume large capacitance values for capacitors and , such as 220 nF, and the capacitance of was set as 10 nF. As shown in Figure 10, is an adjustable resistance for obtaining the appropriate quiescent operating point of the BJT ZTX869 transistor.
Figure 10
Design of the Clapp oscillator.
The variable inductance shown in Figure 10 is an abstraction of the inductance of the middle core element of the E-type ferrite core with N turns, reflecting that when the sensor is rotated to a certain angle, the inductance value of the coil is changed according to Equation (20). The function of the circuit is to transform the values of L into an oscillation frequency for measurement with a digital system according to the well-known frequency relationship for the Clapp oscillator presented as follows:Substituting Equation (20) into Equation (21), the following relationship can be proposed.Function indicates that exact values of are determined by .
3.4. Design of the Waveform Conversion Circuit
To achieve the goal of measuring for the sine wave output of the Clapp oscillator with the C8051 micro-control unit (MCU), a waveform conversion circuit was designed, as shown in Figure 11. The first LM324 operational amplifier (at left) constitutes a voltage follower to obtain the sinusoidal signal. The second LM324 constitutes a single threshold voltage comparator for converting the sinusoidal signal to a square wave signal with an amplitude of 12 V. The third LM324 is also a single comparator threshold voltage comparator, but its supply voltage is 5 V to convert its input to a square wave signal of 5 V. Finally, after shaping this square wave with the 74LS132 Schmitt trigger, a perfect square wave is obtained. This square wave is used as an input signal of the frequency meter to obtain an accurate measurement of .
Figure 11
Design of the waveform conversion circuit.
3.5. Analysis of the Sensor’s Direction of Rotation
As a result of the symmetric structure of the sensor, the frequency of the wave measured from the coil is the same whether the sensor rotates to an angle in a clockwise or counterclockwise direction. To judge the direction of rotation, a second coil must be fixed on the sensor at an interval of 90° from the first, where the first coil is defined as the main coil and the second is defined as the assistant coil. The direction of rotation can be determined by comparing the frequencies of the waves measured from the two coils under the known condition of a 90° interval between the two coils. The counterclockwise direction is defined as the positive direction, making the clockwise direction negative. When the two-coil sensor rotates to an arbitrary angle , the frequency of the wave measured from the main coil is given as follows:Simultaneously, the frequency of the wave measured from the assistant coil is defined as follows:The rotation angle of the sensor can be obtained from Equation (23), but its inverse function is difficult to express. To simplify the rotational direction evaluation process, the angle can be determined according to two steps: (1) measure and , and (2) evaluate the angles of rotation corresponding to the frequencies by searching a table containing the theoretical calculation results of Equations (23) and (24). For example, the sensor rotation angle can be determined by the following steps. First, construct a 1 × 361 array that begins from −180° and ends at 180° with steps of 1°. Second, two 1 × 361 arrays for the dependent variables and by computing Equations (23) and (24) with every member of the array in the first step. Third, construct an array and an array with the degrees and frequencies of the main coil and assistant coil corresponding to each degree, respectively. Finally, plot two frequency-degree curves in MATLAB with the arrays constructed in step 3. The curves of the sensor rotation simulation in Figure 12 were obtained for N = 1070 for both the main and assistant coils. The blue frequency-degree curve in the figure was obtained using array to represent the relationship between the frequencies and degrees of the main coil, and the red curve was obtained using array to represent that relationship of the assistant coil.
Figure 12
Analysis of sensor’s direction of rotation.
When the sensor is rotated to an arbitrary angle, the frequencies and are measured from the main and assistant coils separately. We drew a horizontal dotted green line in Figure 12 whose ordinate is the frequency . Two intersection points are observed where the green line crosses the red theoretical curve in the figure. We define the two intersection points as and . Obviously, and have the same ordinate, but the abscissas of the two points reflect the relationship . The actual rotation angle, which may be either abscissa or , can be determined from the frequency . We drew vertical dotted yellow and violet lines passing through the points and , respectively. Two points of intersection with the blue theoretical curve are observed, which we define as points and , respectively. Obviously, and have different ordinates. To determine the direction of the actual rotation angle, we compared the ordinates of and with the frequency , and chose the ordinate of or (i.e., or ) lying closest to the frequency to determine the rotation angle of the sensor. The closest one was chosen because of errors in the measurement. For example, if the frequency is closer to the frequency , the sensor rotation angle is . Similarly, if the frequency is closer to the frequency , the sensor rotation angle is .The method for determining the direction of sensor rotation can be summarized as follows:Step 1. Search for angles and in the frequency-degree theoretical table according to the frequency , which is measured from the main coil.Step 2. Search for the frequencies and in the degree-frequency table according to angles and , respectively.Step 3. Choose the frequency closest to the frequency .
3.6. Theoretical Analysis of the Sensor’s Dynamic Characteristics
The area represented by the green line in Figure 13 is the hollow cavity in the damping board. For that reason, the density of the damping plate is not uniform. Also, the center of gravity (COG) of the damping board will be moved down from its geometric center. By adding the symmetrical red low-density materials on the damping board, its floating center can be moved up from the geometric center.
Figure 13
Analysis of forces on the damping board.
Figure 13 presents an analysis of the forces on the damping board when the angle between the damping board and the vertical direction is and the translational acceleration of the sensor is given as . In the figure, point G is the center of gravity the damping board, point denotes the fixed center of the board, and point is the buoyancy center of the board. The distance between G and is defined as , and the distance between and is . is the density of the oil filled in the sensor, denotes the acceleration due to gravity, and V1 indicates the volume of the damping board. V2 indicates the volume of the ferrite ring. The volume of the sensor’s rotor is V = V1 + V2. When the translational acceleration of the sensor is , the inertial force on the damping board is . The forces of gravity and buoyancy on the damping board are given as and , respectively. The inner diameter of the ferrite ring is defined as , and the length of the damping board is defined as l. We define the mass of the damping board and the ferrite ring as and , respectively, indicating that the mass of the sensor’s rotor is (kg). The area represented by the green line in Figure 13 is the hollow cavity in the damping board. For that reason, the density of the damping plate is not uniform, and the center of gravity of the damping board will move down from the geometric center. By adding the symmetrical red low-density materials on the damping board, its floating center can be moved up from the geometric center.Based on those definitions, the torque produced by buoyancy force is:The torque owing to gravity is:The torque produced by the translational acceleration is:Therefore, the equation reflecting the conservation of angular momentum can be represented as:In which, the sum of the rotational inertia of the damping boardand the ferrite ringis .In the Equation (28), the translational acceleration is presented as follows:For initial conditions and , the numerical solution of the above differential equation shown in Figure 14 can be computed using MATLAB.
Figure 14
Numerical solution of Equation (28).
In Figure 14, the blue curve (with blue markers) represents the sensor rotational degree, and the green curve (with green markers) represents the angular velocity of the damping board. The figure indicates that the maximum rotational degree and angular velocity of the damping board are 4 × 10−4 rad (0.0458°) and 3 × 10−4 rad/s (0.0344°/s), respectively. However, the dynamical model employed ignored the viscous resistance of the lubricating oil that fills the sensor chamber. Therefore, when accounting for viscous resistance, the rotation angle and angular velocity would be smaller and attenuate more rapidly than indicated in Figure 14. The preceding analysis verifies that translational acceleration has little influence on sensor rotation angle measurement.
3.7. Design of the Frequency Meter
The frequency of the square wave can be measured using the C8051 MCU. Prior to initiating the MCU, the environment must first be initialized. The initialization includes turning off the watch-dog, enabling the programmable counter array (PCA), setting the clock source of the PCA, and so on. The system clock is then established as the PCA counter’s clock, and the PCA module is set to function under the square wave positive edge-triggered capture mode.Frequency is measured by a mode of inquiry that introduces error into the measurement. To reduce the error of a single measurement, we choose the mean filtering method to process the frequency of the square wave, which is counted by system clock cycles (the range of mean filtering is K, which is set to 20 in the experiment). The cycle of the system clock is measured by the PCA module. We set a cyclic sampling counter i in the program for mean filtering, which is initialized with a value of 1. Each time we obtain a cycle T of the square wave, T is accumulated to avg_T. When i = K, the mean of the square wave’s cycle is calculated as avg_T/K. If we suppose avg_T = , T can be represented as:
where is the pending measured frequency, which can be presented as follows:By the preceding equations, we can convert avg_T to frequency avg_F, convert avg_F to ASCII code, and output the data by a serial port.The operations for converting the float-type variables to ASCII and sending data through the serial port would require several machine cycles, so the first and second cycles measured would be inaccurate. To omit the first two cycles, i is initialized as −2, and we provide that, if i < 0, the cycle data are abandoned. Figure 15 represents the workflow of the MCU. The Equation (31) can be considered as a function whose independent and dependent variables are and , respectively. When the machine cycle changes to , the dependent variable would change to . The relationship can be represented as follows:
Figure 15
Workflow of frequency meter. PCA, programmable counter array.
The derivation of Equation (31) is as follows:This can also be represented as:When and ms we obtain the following equationsWe find that, if is larger, would be smaller. That means that, if is lower (the signal cycle is longer), the output frequency error of the program caused by measurement error would be reduced.
4. Experimental Section
4.1. Design of the Experimental Hardware Platform
The hardware structure of the experimental platform is shown in Figure 16. Changes in the sensor rotation angle cause changes of inductance that are measured as variations in the frequency of the oscillator circuit, as measured by the C8051 MCU and sent to the upper computer by the serial port. The program on the upper computer saves the frequency and the angle corresponding to the frequency. Here, we define the angle corresponding to the minimum frequency as 0°. Simultaneously, we correct the angle of the place where the MTi-28A sensor is fixed to make the roll angle measured by the MTi sensor output 0°. The rotation of the sensor is controlled by a DC motor. The speed of the DC motor is controlled by the upper computer through a driver. The sensor is fixed on the slider of a linear guide that controls the translational motion of the sensor. The slider’s moving direction and speed are controlled by another DC motor, which is controlled by a signal input by the upper computer through a driver. The specific settings of DC motors are shown in Appendix B.
Figure 16
Hardware structure of the experimental platform.
The parameters of the tilt sensor are shown in Table 1, and we take the permeability of a vacuum for N/A2.
Table 1
Parameters of the tilt sensor.
System Parameter
Specification
Number of turns(rotation)
1070
Number of turns(rotation)Number of turns(rotation)Number of turns(rotation & translation)Capacitance parameter C1Capacitance parameter C2Capacitance parameter C3Radius RRadius rab
8786571030220 nF220 nF10 nF32 mm31.5 mm6 mm3 mm
δ(rotation)δ(rotation & translation)
0.18 mm0.44 mm
4.2. Design of Experimental Software Platform
A frequency–roll angle synchronous collection program running on the upper computer is required to obtain the data from the sensor and the MTi-28A sensor. The program can be operated on a multithreading operating system. The collection program in this experiment was developed with C# and runs on the Microsoft. NET Framework platform. Figure 17 presents a unified modeling language (UML) activity diagram of the synchronous collection program. After program initiation, the program is divided into a master thread and a slave thread.
Figure 17
Activity diagram of frequency–roll angle synchronous collection program.
The main functions of the master thread concern interaction. These functions include the following: Create and open the frequency-roll angle record file after receiving the order to begin capture. Enable the serial port, create and start the slave thread. When the collection task of the slave thread starts to work, the master thread waits for the stop order. After receiving the order to stop data capture, the master thread stops setting the flag and waits for the slave thread to stop working. The serial port is then stopped and the record file closed.The slave thread’s main function is synchronous data collection. After initiation, the slave thread progresses though a loop. In this loop, first, a request for data is sent to the MTi sensor, and the MTi sensor returns the rotation direction. The frequency data from both the main coil and the assistant coil are then separately obtained from the C8051 MCU via two serial ports, and the first valid piece of data in this sample period is selected. The direction returned from the MTi sensor is employed to verify the frequencies obtained from the MCU. If data are missing or the verification fails, the slave thread returns to the loop to obtain fresh data. If all data are correct, the frequencies of the main coil and the assistant coil are input to the module to determine the direction of rotation, and the result is displayed on the interface. The frequency and MTi sensor data are then written to the record file for analysis. At the end of the loop, if the end flag is set in reset mode, the slave thread continues to collect and record fresh data. If the flag is set to stop, the loop is broken, and the slave thread ceases operation.Because the slave thread reads the MTi sensor data prior to reading the frequencies, the reading operations are not strictly synchronous. However, the time between the two operations is negligible, and we can consider the MTi sensor and frequency data as being synchronous. It is noteworthy that, if the delay of the slave thread loop is shorter than the time interval between the frequency return operations of the MCU, the returned frequency may be invalid.The previous section introduced the method of determining the sensor’s angle of rotation direction using the assistant coil. This section describes the program for determining the direction of the sensor’s rotation in the experiment.When the main coil is at an angle of ±180° the method discussed is not available. However, if the sensor rotates sufficiently slowly, the rotation direction would be roughly equivalent to that obtained at the previous sampling period.The UML activity diagram in Figure 18 represents how the rotation direction determination module functions.
Figure 18
Unified modeling language (UML) activity diagram of rotation direction determination module.
Figure 19 provides a screenshot of the graphical interface of the frequency-roll angle synchronous collection program, which represents the process of determining the rotation direction under the circumstance where the number of the coil turns is 1070, the frequency of the main coil is 7611 Hz, the frequency of the assistant coil is 7800 Hz, and the angle of the MTi sensor is 35.93°. Furthermore, = 7639 Hz, = 7798 Hz, , and is more approximate to , so that the sign of the direction is positive (+).
Figure 19
Graphical interface of frequency–roll angle synchronous collection program.
5. Results and Discussion
5.1. Experiments of the Sensor in Pure Rotation
We let the MTi sensor and our sensor be fixed together. While rotating these sensors, we let them do reciprocating translation along the horizontal line (translational motion is the interference of the experiments). In the process of motion, the output data of the MTi sensor and the frequency data of our sensor can be sampled. The output data of the MTi is the tilt angle. The data of the MTi are used as a benchmark. The output data of the MTi are taken as the x-axis and the primary frequency data of our sensor are taken as the y-axis. Then their corresponding relationships were plotted to compare and analyze the theoretical and experimental data.Using four different numbers of turns of the inductor coil to obtain four inductors that have different values, sensor experiments were conducted to verify the above theoretical analysis. The sensor data with 1070-turn, 878-turn and 657-turn coils were compared with the theoretical calculation data, respectively. As they are separately shown in Figure 20a–c, respectively.
Figure 20
Comparison of theoretical results and experimental data: (a) 1070 turns, (b) 878 turns, (c) 657 turns.
The output frequency of the sensor varies with the number of turns of the coil. On the one hand, we find that the experimental data of sensors with different turns of coils are basically consistent with the theoretical data. On the other hand, there is some error between the theoretical and experimental data due to the influence of sensor size parameters error and noise.Since the MTi sensor has excellent performance in both range and precision, we regard it as the calibration reference sensor of our sensor. In this way, we can get a comparison between the experimental curve and the theoretical calculation curve, as shown in Figure 20. The blue curve in Figure 20 is the theoretical curve drawn according to Equation (22). The red curve in Figure 20 is the curve drawn by the frequency and angle data of the sensor we designed based on the experimental measurement.We can offer several explanations for the difference between experimental and theoretical results in Figure 20. For example, the coaxiality of the rotor inside the sensor will cause deformation of the experimental data curve. The buoyancy torque and gravity moment are not enough to balance the translational acceleration disturbance. That is the cause of the oscillation of sensor data when the sensor has translational motion. Because the coil is manually wound, there is an error in the number of turns of the coil. This causes deviation of the experimental data and theoretical curves in the y-axis direction.
5.2. Experiments of the Sensor in Rotation with Translational Interference
For the sensor fixed with 878-turn and 1070-turn coils, the data are sampled under static and translational motion conditions, respectively. A comparison of static and translational data is separately shown in Figure 21a,b.
Figure 21
Comparison of static and translational data: (a) 1070 turns, (b) 878 turns.
As can be observed from the figure, the frequency measurement error with the 1070-turn coil is within about 3 Hz, and the translational impact on the frequency error is less than about 5 Hz. The frequency measurement error with the 878-turn coil is within about 4 Hz, and the translational impact on the frequency error is less than about 8 Hz. In conclusion, the impact of the translational motion on sensor performance is relatively small. According to the results of the experiments, we find that the frequency of the coil with 1077 turns fluctuates within 5 Hz under the influence of translational noise and a zero tilt angle. Similarly, the output frequency of this coil with 1077 turns fluctuates within 8 Hz. According to the theoretical calculation based on Equation (22), under the condition of given frequency variation, the corresponding angle variation is calculated. Then we can get that the effect of 8 Hz frequency fluctuation on the output angle of the sensor is less than 1°. These results indicate that a measurement range of −180° to 180° was achieved, with an accuracy of 1°.The experiments of the tilt sensor with rotation under the disturbance of translational motion with varying amplitude and frequency of the translational acceleration were achieved. The experimental parameters to describe the variations in amplitude and frequency of translational acceleration are shown in Table 2. The results of the experiments are shown in Figure 22a–f.
Table 2
Experimental parameters of tilt sensor in translational motion with various amplitude and frequency of translational acceleration.
Note: f = 3.2546 Hz, a = a = 0.1053 m/s2, V5000 = 0.0088 m/s.
Figure 22
Comparison of theoretical results and experimental data with various amplitude and frequency of translational acceleration.
The experimental results show that translational noise had little effect on the characteristics of our sensor.
5.3. Experiments of the Sensor Compared with Three Other Sensors
We achieved some experiments of our sensor compared with three other sensors that are at the mature product level: MTi-28A, CXTA-01, and MPU6050. The four sensors were fixed together on the test platform, and the experiments were carried out in the condition of reciprocating translational motion with various amplitudes and frequencies of translational acceleration.The experimental parameters to describe the variations in amplitude and frequency of translational acceleration are shown in Table 2. The results of the experiments are shown in Figure 23a–f.
Figure 23
Comparison of the sensor and three other sensors.
As the MTi sensor was the best in the measurement range and accuracy, we used it as the benchmark for comparison. Figure 23 shows the results of the comparative experiments, with MTi sensor data as the abscissa and angle data of the sensors as the ordinate under different amplitudes and frequencies of translational acceleration, where the data curve of the MTi sensor is the green curve whose equation is y = x.It is shown that the other three sensors had some errors in addition to the MTi sensor as the benchmark. The experimental results show that the performance of our sensor was close to that of the three comparison sensors. It can be found that our sensor has some deviation from the experimental results. We can offer several explanations as to why the error exists. First of all, the manufacturing process of the sensor principle prototype made in our laboratory is not as good as that of the commercial sensors. Second, our sensor outputs raw data, which are not processed by algorithms such as the Kalman filter. In this case, the performance of our sensor can be close to or consistent with that of other sensors for comparison. It shows the effectiveness of our sensor.As for the phenomenon that the data curve of our sensor has a small protrusion near the zero point in the figure, we can give the following two explanations.On the one hand, the change rate of the experimental data at the zero point is the smallest. The slope of the zero point of the theoretical curve is zero. The maximum value of the slope is obtained at about ±60°. As a result, the ability of our sensor to measure the dynamic tilt angle is the best at about ±60°. However, this ability is relatively poor at 0° and ±180°.On the other hand, in the experiments of this section, our sensor and the three other sensors started to rotate from zero at the same time. When the rotational acceleration applied to the sensor is large enough, the torque of inertia acting on the damping board of the sensor will pull it away from the plumb direction. Especially when the buoyancy torque and gravity torque applied to the damping plate are not enough to offset the inertia torque, it will cause the damping plate to deviate from the plumb direction, resulting in a large error in the output data. Similarly, when the sensor is turned to ±180°, there will be rotational acceleration, first slowing down and then accelerating, which will make the damping plate oscillate away from the direction of the plumb. It is worth mentioning that the small bulge near the zero point in the curve of our sensor in the figure is mainly due to the applied rotational acceleration. The translational acceleration only plays a minor role.
5.4. Key Influencing Factors
The key influencing factors are presented as follows:The larger the volume of the damping plate is within the allowable range of the structure, the greater the buoyancy obtained.The density distribution of the damping plate also affects the dynamic characteristics of the sensor. It determines both distance lG and lB, which affect the gravity torque and the buoyancy torque of the damping board, respectively. The larger the values of those two distances, the better the anti-interference ability of the sensor for translational noise.The density of liquid damping inside the sensor also affects the dynamic characteristics of the sensor.The system frequency fosc and 16-bit PCA register of the C8051 single-chip microcomputer that was used to measure the oscillation frequency value of the sensor determine the accuracy of the sensor.Equation (28) has no analytical solution, it only has numerical solution. The coefficients of the differential equation affect the maximum value of the numerical solution. If we take the coefficients of the differential equation as the independent variables and the absolute value of the maximum value of the angle in the numerical solution obtained by the differential equation after each set of coefficients is given as a dependent variable, then we can get a multivariate function as following:The coefficients of the Equation (28) are the parameters of the sensor. They affect the characteristics of our sensors. In order to show the influence of the parameters on sensor performance more intuitively, we give the other six fixed values of the independent variables. The function P is reduced to a univariate function:First, we analyzed the influence of parameter l on the dynamic characteristics of the sensor. All the parameters except parameter l were set to a fixed value respectively. We can get an unary function as shown in the Figure 24a below.
Figure 24
Key influencing factors of the sensor.
Similarly, the influence of parameter l on the dynamic performance of the sensor is shown in the Figure 24b below.The influence of the mass m1 of the damping board on the sensor is shown in the Figure 24c below.The effect of the density of the liquid damping on the characteristics of the sensor is shown in the Figure 24d.The effect of damper plate volume V1 on sensor characteristics is shown in the Figure 24e.The influence of translational acceleration a amplitude on sensor characteristics is shown in the Figure 24f.Obviously, this is a multi-parameter optimization problem. In future work, we will carry out the optimization design of the parameters of the sensor.Remark 1: This paper provides the first results on the design and implementation of a novel inclination sensor. This sensor can effectively reduce the influence of translation noise, and the measurement range of the sensor is larger than that of the sensor in [18].Remark 2: Compared with the excellent commercial MTi sensor, the measurement error of the sensor comes from the fabrication process. The principle prototype in the laboratory is not elaborate enough.Remark 3: The sensor designed in this paper, according to the needs of different scenarios, can be made not only very large, but also very small. However, sensors with this structure can only measure the tilting angle of a single axis.
6. Conclusions
A new dynamic tilt sensor is proposed in this paper. The measuring principle of the sensor is presented, and the design of its mechanical structure is described. In addition, a theoretical analysis of the sensor characteristics is provided. A physical prototype of the sensor was fabricated, and experiments of its performance were conducted on a test platform that provided both rotational and translational motion. The experimental data verified the validity of the theoretical analysis and the effectiveness of the designed sensor.This study provides the following innovations:The structure of the dynamic tilt sensor is designed based on an eccentric principle, which has the advantage of a wide measuring range.The translational noise of the sensor is reduced by the internal damping effect of the liquid with which the sensor is filled.The translational noise of the sensor is also reduced by a design that places the center of gravity and the center of buoyancy at non-coinciding points.Future work is as follows.We will carry out the multi-parameter optimization to refine the parameters of the sensor.The machining accuracy of sensor structure components needs to be further improved.The assembly accuracy of sensor structure parts needs to be further improved.Filtering algorithms should be developed for the sensor to process its output raw data.Research on the influence of viscosity coefficient on the characteristics of the sensor is needed in the future.Our own sensor calibration platform is not precise enough, there are calibration errors.