Next Article in Journal
Design and Optimization of Intelligent High-Altitude Operation Safety System Based on Sensor Fusion
Previous Article in Journal
Investigation of Personalized Visual Stimuli via Checkerboard Patterns Using Flickering Circles for SSVEP-Based BCI System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Invasive Position Measurement of a Spatial Pendulum Using Infrared Distance Sensors

1
Grupo de Investigación en Interacción Robótica y Automática (GIIRA), Universidad Politécnica Salesiana, Calle Turuhuayco 3-69 y Calle Vieja, Cuenca 010105, Ecuador
2
Grupo de Investigación en Energias (GIE), Universidad Politécnica Salesiana, Calle Turuhuayco 3-69 y Calle Vieja, Cuenca 010105, Ecuador
3
Centro de Automática y Robótica, Universidad Politécnica de Madrid, C/José Gutiérrez Abascal 2, 28006 Madrid, Spain
4
Intelligent Robotics Lab, Rey Juan Carlos University Fuenlabrada, 28942 Fuenlabrada, Spain
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(15), 4624; https://doi.org/10.3390/s25154624
Submission received: 13 June 2025 / Revised: 15 July 2025 / Accepted: 22 July 2025 / Published: 25 July 2025
(This article belongs to the Section Physical Sensors)

Abstract

For the study and experimentation of physical systems, it is essential to measure the physical variables, which implies choosing the most convenient method that does not affect the natural behavior of the system. This work presents the modeling and sensing of the spherical pendulum, integrating a novel non-invasive measurement scheme based on infrared sensors arranged in a quadrature configuration. The proposed method enables the estimation of angles around two axes, leveraging light reflection on a perpendicular plane aligned with the pendulum bar. A mathematical model was developed to create simulations, and a prototype was constructed to perform experiments and validate the detection method. The values recorded by the sensors enable the reproduction of the pendulum’s trajectory, allowing for the correlation of real results with those of the simulations. The similarity of behavior between the simulations and the experimentation facilitates the validation of the proposal.

1. Introduction

Precise measurement of physical variables is a fundamental aspect in the study, modeling, and control of dynamic systems. Depending on the nature of the physical system under analysis, it is necessary to select a sensing method that does not alter its natural behavior. This is particularly important in nonlinear and oscillatory systems such as the spherical pendulum, where the interaction between forces and degrees of freedom can be complex [1,2]. Pendulum-based systems have been widely used as experimental platforms for validating control strategies and modeling the dynamic behavior of mechanical systems in both terrestrial and space environments [3,4]. However, conventional angle measurement techniques are often invasive or may influence system behavior due to mechanical contact, wiring, or the added mass of sensors [5,6]. Specifically, methods incorporating potentiometers and encoders have been widely used due to their simplicity and high accuracy in control and monitoring applications [7,8]. These devices present significant limitations in terms of invasiveness and long-term stability. In particular, potentiometers require direct physical contact, which makes them invasive solutions, especially problematic in biomedical or high-sensitivity applications, where contact may alter the system or compromise its integrity [9,10]. Additionally, both potentiometers and encoders are susceptible to mechanical wear, contaminant accumulation, and temperature fluctuations, which can impact accuracy and necessitate periodic maintenance or calibration to maintain optimal performance [8].
To address these limitations, alternative angular measurement approaches based on optical technologies and non-invasive sensors have emerged, demonstrating high precision in environments where minimal system disturbance is critical [11,12,13]. In particular, light-reflection-based methods have gained interest due to their ability to measure angular displacements without physical contact, which is advantageous for high-sensitivity systems such as space inertial sensors or experimental setups involving complex dynamic models [14,15]. These sensors, especially those based on infrared spectroscopy or proximity beams, have demonstrated high accuracy comparable to that of traditional methods, with the advantage of eliminating the physical wear and tear inherent to contact systems. However, their long-term stability can be affected by instrumental drift and environmental conditions, so the implementation of online calibration and dynamic compensation techniques, such as orthogonal projection, becomes essential to maintain their reliability in special applications [10,16].
This work presents a novel non-invasive measurement technique for a spatial pendulum, based on an orthogonal arrangement of infrared sensors along the X and Y axes. These sensors detect the distance to a circular plane attached perpendicularly to the pendulum rod. This configuration enables the capture of the three-dimensional motion of the pendulum tip via light reflection without interfering with its natural oscillation [17,18]. Based on these measurements, a forward and inverse kinematic procedure is employed using the Denavit–Hartenberg method [19,20], which is widely used in the modeling of robotic manipulators and multibody systems [21,22]. This allows real-time inference of the pendulum’s angular orientation relative to the principal axes.
The dynamic model of the system was developed using a Lagrangian approach, incorporating a damping term that aggregates real-world effects such as friction at the pivot, medium density, and geometric dissipation [23,24]. This term was experimentally calibrated by analyzing the amplitude decay during prolonged oscillation tests and subsequently incorporated into the simulation framework [18].
The experimental implementation was validated through a physical prototype, considering two motion scenarios: a planar oscillation and a circular-elliptical motion induced by specific initial conditions. In both cases, the comparison between simulation results and experimental recordings validated the proposed model, confirming the effectiveness of the sensing method and the relevance of the mathematical modeling [25,26].
While the proposed measurement system is functional, possible improvements in measurement quality have been identified, such as digital filtering of the signals, sensor positioning accuracy, and the use of industrial-grade components for future implementation in aerospace or robotic applications [27,28,29].

2. Mathematical Modeling of the Spatial Pendulum

The system is modeled in terms of the generalized coordinates ( θ , ϕ ), where θ represents the inclination angle relative to the vertical axis, and ϕ denotes the azimuthal angle, as illustrated in Figure 1.
The length of the pendulum is denoted by l and the mass by m. The position equations of the mass in Cartesian coordinates are given by:
x = l s i n θ c o s ϕ ,
y = l s i n θ s i n ϕ ,
z = l c o s θ ,
From the time derivative of the position vector, the magnitude of the velocity vector is obtained as:
v 2 = l 2 ( θ ˙ 2 + ϕ ˙ 2 s i n 2 θ ) ,
The kinetic and potential energies of the system are:
  • Kinetic energy
T = 1 2 m l 2 ( θ ˙ 2 + ϕ ˙ 2 s i n 2 θ ) ,
  • Potential energy
V = m g l c o s θ ,
The Lagrangian [23] is defined as:
L = 1 2 m l 2 ( θ ˙ 2 + ϕ ˙ 2 s i n 2 θ ) + m g l c o s θ ,
By applying the Lagrange equations [23], Equations (8) and (9) are obtained, which represent the dynamics of the spherical pendulum with conservative characteristics:
θ ¨ ϕ ˙ 2 s i n θ c o s θ + g l s i n θ = 0 ,
ϕ ¨ 2 θ ˙ ϕ ˙ t a n θ = 0 ,
It is important to note that the pendulum, in practical and real scenarios, operates within an environment other than a vacuum (in this case, air); therefore, it is subjected to a non-conservative force that progressively reduces its energy. This force primarily combines the effect of air friction acting on the pendulum’s geometry, influencing the inertial effects that produce ideal oscillation. To adjust the ideal mathematical model proposed by Equations (8) and (9), a new term dependent directly on the angular velocities and a damping coefficient β , representing the frictional effects of the medium, is introduced. Equations (10) and (11) represent the real-world pendulum dynamics:
θ ¨ = ϕ ˙ 2 s i n θ c o s θ g l s i n θ β θ ˙ ,
ϕ ¨ = 2 θ ˙ ϕ ˙ t a n θ β ϕ ˙ ,
To simulate the dynamic behavior of the pendulum, a state-space system is constructed from Equations (10) and (11), consisting of four first-order nonlinear differential equations represented by Equations (12) through (15). The state variables [ θ , ϕ , ω , ψ ] correspond to the angular positions and angular velocities for each axis of motion.
θ ˙ = ω ,
ϕ ˙ = ψ ,
ω ˙ = ψ 2 s i n θ c o s θ g l s i n θ β ω ,
ϕ ¨ = 2 ω ψ t a n θ β ψ ,
These equations encompass the pendulum’s dynamics, whose nonlinear characteristics can be calculated and simulated using mathematical software.

3. Simulations

The implementation of the differential equations of motion (12) to (15) is carried out in MATLAB software. By calculating the derived states [ θ , ϕ , ω , ψ ] through the numerical resolution method of Euler, the values of the states at each time interval are obtained consecutively, as described in Equations (16) to (19).
θ i = θ ˙ i Δ + θ i 1 ,
ϕ i = ϕ ˙ i Δ + ϕ i 1 ,
ω i = ω ˙ i Δ + ω i 1 ,
ψ i = ψ ˙ i Δ + ψ i 1 ,
Let Δ be the sampling interval, where i represents the current value of the variable and i−1 represents the previous value computed by the algorithm. For the simulation, the system parameters are considered as follows:
  • g = 9.8 m s 2 , gravitational acceleration;
  • l = 0.3 m, pendulum length;
  • m = 0.1 kg, pendulum mass;
  • β = 0.01 , damping coefficient;
  • Δ = 0.05 s, time step for numerical calculation.
The damping coefficient was estimated from experimental data and validated against simulation results to ensure equivalent dynamic behavior. A long-duration experiment was performed to measure the decay in oscillation amplitude from real measurements. Based on this, a damping factor β was sought such that when introduced into Equations (14) and (15), it yields similar results. This topic is addressed further in the experimental section.
Two cases are considered for simulation: Case 1 involves initial angular displacements in θ and ϕ , inducing oscillatory motion of the pendulum. Case 2 includes initial angular displacements in θ and ϕ plus an initial angular velocity ϕ ˙ . These conditions theoretically generate a conical oscillation, allowing the evaluation of the pendulum’s position component behaviors.

3.1. Case 1: Initial Angular Displacements Results

For an initial condition of [ θ , ϕ , ω , ψ ] = [10°, 45°, 0 rad/s, 0 rad/s], over 200 iterations, the components generating the pendular oscillatory motion in a plane defined by a 45-degree diagonal between the X Y base plane and the Z-axis (as shown in Figure 1) were calculated. In this case, the amplitude of the pendulum displacement along each axis exhibits oscillatory behavior with a sinusoidal character. These effects are illustrated in Figure 2, respectively.
Additionally, to provide a better spatial understanding of the pendulum’s trajectory, Figure 3 is presented.
It is noteworthy that due to the decay in oscillations, the pendulum’s tip progressively loses height, which begins to be noticeable in the final samples of Figure 2c, given that the damping effect on the pendulum is not very significant.
Observing Figure 3a, it can be noted that the pendulum generates oscillation in a plane formed by a diagonal in the base X Y plane and the Z axis. Regarding Figure 3b, which presents a top view of the base X Y plane, it can be seen that due to the absence of an initial angular velocity ϕ ˙ , the motion follows the 45-degree diagonal defined by the initial condition of the angle ϕ .

3.2. Case 2: Initial Angular and Velocity Displacements Results

Assuming the initial conditions [ θ , ϕ , ω , ψ ] = [10°, 45°, 0 rad/s, 2 rad/s] and a total of 1000 iterations, it is noteworthy that introducing an initial angular velocity of ϕ ˙ = 6 rad/s results in a helical concentric motion. This behavior arises as the displacement amplitudes along the X, Y, and Z axes vary according to sinusoidal functions and progressively attenuate due to damping effects. These dynamics are illustrated in Figure 4, respectively. As in the previous case, and to enhance spatial visualization of the pendulum’s trajectory, a three-dimensional representation is provided in Figure 5.
As observed in Figure 5a, which presents the oscillatory motion in the X Z plane, the pendulum exhibits a progressively decreasing oscillation due to frictional forces from the surrounding medium. This damping effect drives the system toward a steady-state condition, where the pendulum stabilizes in a vertical position associated with a lower height. In Figure 5b, it is evident that the introduction of an initial angular velocity ϕ ˙ results in a concentric motion in the X Y plane, which gradually attenuates over time as the number of samples increases. Finally, Figure 5c offers a spatial perspective of the pendulum’s behavior, where the oscillatory pattern reveals a conical motion with an elliptical tendency.

4. Non-Invasive Sensing Using Infrared Sensors

To accurately contrast the behavior of the pendulum, it is necessary to measure the angular positions of the pendulum directly or indirectly. For this reason, the method of sensing using infrared distance sensors will be employed, as described below.

4.1. Method of Sensing Justification

Conventional methods for measuring oscillation angles include potentiometers, optical encoders, and inertial sensors, each with inherent limitations, the most relevant being:
  • Potentiometers introduce mechanical friction and wear.
  • Optical encoders require direct contact with the pendulum shaft.
  • Inertial sensors (IMUs) face challenges related to power supply or data transmission and are prone to cumulative errors or reference drifts during extended measurements [13].
The proposed quadrature infrared sensing approach enables accurate and contactless angle measurement, thereby avoiding these drawbacks.

4.2. Sensing System Configuration

It is mainly based on the following guidelines:
  • Two infrared sensors are arranged in quadrature near the support point of the pendulum rod.
  • Each sensor provides an analog output proportional to the intensity of light reflected from a flat surface mounted perpendicularly to the pendulum rod.
Figure 6 illustrates the pendulum system and the integration of the sensing mechanism.
Based on Figure 6, it can be observed that the placement of sensors S y and S x , aligned along the Y-axis and X-axis, respectively, enables the measurement of the distance to the reflective plane P by emitting and receiving infrared light along the negative Z-axis. The reflective plane P is rigidly attached to the pendulum rod and moves freely with its motion. The measured distance allows for the estimation of the angular rotation around the corresponding axis. To establish the mathematical relationship between the distance measured by the sensors and the angular displacement, an analysis of the projected components onto the reflective plane is conducted, as illustrated in Figure 7. This figure considers an absolute rotation θ 1 about the fixed X-axis and a rotation θ 2 about the fixed Y-axis.
Figure 8 details the dimensions of segments that define the reflection points. In this way, the orthogonal segments l 1 and l 2 , together with the sensing plane distance l p from the pendulum’s rotation point, intersect the vector dz 1 , which corresponds to the distance measured by sensor S x . Similarly, the segments l 3 , l 4 , and l p intersect dz 2 , which corresponds to the distance measured by sensor S y .

4.2.1. Generating the Distance Measured by Sensor S x

The segments involved in generating the distance measured by sensor S x are detailed in Figure 9. In this figure, the coordinate axes are assigned starting from the pendulum’s anchor point, defined as the fixed reference frame ( X 0 , Y 0 , Z 0 ). Subsequently, a series of intermediate frames is implemented to register the successive rotations, culminating in the mobile reference frame ( X 4 , Y 4 , Z 4 ).
From the analysis presented in Figure 9, the Denavit–Hartenberg (DH) parameters are derived and summarized in Table 1. This DH formulation includes the transformation between intermediate frames as follows:
  • The rotation from frame { 2 } to frame { 3 } involves a transformation R ( X 2 , π / 2 ) , which corresponds to a rotation of π / 2 radians about the X 2 axis.
  • Similarly, the rotation from frame { 3 } to frame { 4 } involves a transformation R ( Z 3 , π / 2 ) , indicating a rotation of π / 2 radians about the Z 3 axis.
These transformations are explicitly depicted in Figure 9, forming the basis for the kinematic model used to relate sensor measurements to angular displacements.
It should be noted that each row of parameters allows for establishing the homogeneous transformation matrix between intermediate coordinate frames in the form i−1 A i , as presented in Equation (20) and [19,20], where i is the index of the coordinate system being analyzed. Thus, the first row of Table 1 corresponds to the transformation matrix analysis between coordinate frame zero and coordinate frame one, with the analysis subsequently extended for each parameter row in the table.
A i i 1 = r 11 r 12 r 13 p x r 21 r 22 r 23 p y r 31 r 32 r 33 p z 0 0 0 1 ,
where the coefficients r form the rotation matrix, while the vector [ p x , p y , p z ] represents the position of the coordinate system { i } relative to the coordinate system { i 1 } .

4.2.2. Generating the Distance Measured by Sensor S x

The segments that generate the distance measured by the sensor S y are detailed in Figure 7. In this figure, the axes are assigned starting from the pendulum’s pivot point, with fixed axes ( X 0 , Y 0 , Z 0 ). Subsequently, intermediate axes are implemented, registering the rotations performed until the mobile axes ( X 4 , Y 4 , Z 4 ) are reached.
The Denavit-Hartenberg parameter table resulting from the analysis of Figure 10 is shown in Table 2. The Denavit-Hartenberg analysis includes the rotation of the intermediate coordinate system from { 2 } to { 3 } considering R ( X 2 , π ) , which implies a rotation of π radians about the X 2 axis. Additionally, the rotation of the intermediate coordinate system from { 3 } to { 4 } considers R ( Z 3 ,– π / 2 ) , implying a rotation of – π / 2 radians about the Z 3 axis, as specified in Figure 10.
By substituting each row of parameters from Table 1 into the Denavit–Hartenberg transformation matrix in Equation (21), the matrices relating the position and orientation of the consecutive axes in Figure 9 are obtained. Subsequently, the product of these matrices yields a total transformation matrix between system zero and system four, as shown in Equation (22). Similarly, by using the information from Table 2 and the mathematical expression (21), and following the same procedure described, the total transformation matrix corresponding to the axis configuration shown in Figure 10 is obtained, as presented in Equation (23).
A = c o s θ s i n θ c o s α s i n θ s i n α a c o s θ s i n θ c o s θ c o s α c o s θ s i n α a s i n θ 0 s i n α c o s α d 0 0 0 1 ,
Based on the formulation in Equation (20), the vector [ p x , p y , p z ]’ from the matrix A 4 0 represents the position of the moving axes relative to the fixed axes ( X 0 , Y 0 , Z 0 ). It is essential to highlight that this vector is directly related to the position measured by each sensor. Therefore, for a given value of l p = 0.03 m, position vectors are obtained for each part of the Denavit–Hartenberg analysis previously performed, resulting in the mathematical expressions (22) and (23), respectively.
l p c o s ( θ 2 + p i 2 ) + l 2 s i n ( θ 2 + p i 2 ) l 2 c o s ( θ 1 + p i 2 ) c o s ( θ 2 + p i 2 ) l 1 s i n ( θ 1 + p i 2 ) l p c o s ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) l 1 c o s ( θ 1 + p i 2 ) l p s i n ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) + l 2 c o s ( θ 2 + p i 2 ) s i n ( θ 1 + p i 2 ) ,
l p c o s ( θ 2 + p i 2 ) + l 4 s i n ( θ 2 + p i 2 ) l 3 s i n ( θ 1 + p i 2 ) l p c o s ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) + l 4 c o s ( θ 1 + p i 2 ) c o s ( θ 2 + p i 2 ) l 4 c o s ( θ 2 + p i 2 ) s i n ( θ 1 + p i 2 ) l 3 c o s ( θ 1 + p i 2 ) l p s i n ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) ,
Equation (22) was obtained from the mathematical analysis of Figure 9, so each of its elements will be equivalent to each of the components of the vector [ d x 1 ,0,− d z 1 ] corresponding to the position of a point of reflection of infrared light from the sensor S x in the P plane, being its first element d x 1 representing the location of the sensor in the direction of the X 0 axis. Likewise, the second element corresponds to the component of the sensor position in the direction of the Y 0 axis, and the third element corresponds to the negative distance d z 1 in the direction of the Z 0 axis. The result of this mathematical procedure generates a system of three equations with six unknowns, which are the parameters [ θ 1 , θ 2 , l 1 , l 2 , l 3 , l 4 ].
Similarly, the procedure for the mathematical expression (23) referred to in Figure 10 is performed, relating each element to the measurements derived from the S y sensor, which are [0, d y 2 ,− d z 2 ], giving rise to a second system of three equations with the same six unknowns as in the previous case.
In such virtue and knowing the measurements of the sensors, the mathematics of each sensor (Equations (22) and (23)) can be associated with the measurement of the two sensors forming the following vector [ d x 1 ,0,− d z 1 ,0, d y 2 ,− d z 2 ]. Subsequently, a total set of six equations with six unknowns [ θ 1 , θ 2 , l 1 , l 2 , l 3 , l 4 ] can be structured in Equation (24), which represents the inverse kinematics approach as a method to determine the orientation angles θ 1 and θ 2 of the pendulum.
l p c o s ( θ 2 + p i 2 ) + l 2 s i n ( θ 2 + p i 2 ) l 2 c o s ( θ 1 + p i 2 ) c o s ( θ 2 + p i 2 ) l 1 s i n ( θ 1 + p i 2 ) l p c o s ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) l 1 c o s ( θ 1 + p i 2 ) l p s i n ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) + l 2 c o s ( θ 2 + p i 2 ) s i n ( θ 1 + p i 2 ) l p c o s ( θ 2 + p i 2 ) + l 4 s i n ( θ 2 + p i 2 ) l 3 s i n ( θ 1 + p i 2 ) l p c o s ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) + l 4 c o s ( θ 1 + p i 2 ) c o s ( θ 2 + p i 2 ) l 4 c o s ( θ 2 + p i 2 ) s i n ( θ 1 + p i 2 ) l 3 c o s ( θ 1 + p i 2 ) l p s i n ( θ 1 + p i 2 ) s i n ( θ 2 + p i 2 ) = d x 1 0 d z 1 0 d y 2 d z 2 ,
Among the six variables in Equation (24), focus will be placed on the first two, which correspond to the absolute angles θ 1 and θ 2 relative to the fixed axes X 0 and Y 0 . Referring to Figure 7, these angles enable the determination of the pendulum’s position components through Equations (25) to (27). These coordinates are equivalent to those described in Equations (1) to (3).
x = l s i n θ 1 ,
y = l s i n θ 2 ,
z = l c o s θ 1 c o s θ 2 ,

5. Experimental Results

The constructed prototype is shown in Figure 11, which consists of a pendulum rod with a mass at its lower end. Additionally, the sensors S x and S y , corresponding to those in Figure 6, were installed at a distance of 0.02 m from the pendulum’s rotation point. These sensors were positioned at a 90-degree angle relative to each other, aligning with the X and Y axes, respectively. The sensors used are the infrared position sensors (model TCRT5000 by Arduino). For data acquisition, the NI USB-6212 data acquisition device from National Instruments was employed and interfaced with MATLAB for data processing.
The collected data were processed using Equations (25) to (27), allowing for the calculation of each coordinate of the pendulum mass position.
The prototype measures 0.3 m in length, weighs 0.1 kg, and its circular plane of light reflection is 12 cm in diameter; this was located at a distance of 2 cm in the direction of the pendulum bar; the material used was of solid and light characteristic (for the case was cardboard paper), so as not to significantly affect the dynamics of the pendulum. Since the pendulum will have an equivalent oscillation period of T = 2 π ( l / g ) equivalent to 1.09 s, a sampling rate of 20 samples per second was adopted. Additionally, it was considered essential to include a filter in the signal acquired from the sensor to minimize noise. The filter used corresponds to the FIR filter coefficient of order 5, which yielded a very acceptable result in terms of noise cancellation for the signal from the TCRT5000 sensor. The code of the developed program is shown in Appendix A.
Two experimental cases are considered, corresponding to the cases developed in the simulations. Case 1 contemplates an initial displacement in the angle θ (Figure 1), which generates an oscillatory motion of the pendulum. Case 2 includes, in addition to an initial angle θ , an angular velocity in the other rotational axis corresponding to ϕ , aiming to produce a concentric helical response.

5.1. Experimental Results Case 1

For an initial condition [ θ , ϕ , ω , ψ ] = [10°,45°,0 rad/s,0 rad/s], the components generating the oscillatory motion along a diagonal trajectory between the X and Y axes have been calculated, where the amplitudes in the X and Y axes vary according to a sinusoidal function. Correspondingly, the amplitude along the Z axis shows an oscillatory negative displacement. These effects are observable in Figure 12a, Figure 12b and Figure 12c, respectively. For a better spatial appreciation of the pendulum trajectory, Figure 13 is presented.
Observing Figure 13a,b, it can be noted that the pendulum produces displacement along both the X and Y axes in a sinusoidal pattern. Given the initial condition of 45 degrees between the X Y plane, these oscillations maintain a phase relationship. Finally, Figure 13c shows the upward and downward oscillation occurring at the pendulum’s tip, with amplitude directly related to the pendulum rod length. It is worth highlighting that the minimum height point corresponds to the pendulum’s length along the negative Z direction.
It is worth noting that sensor samples were collected over 10 s of experimentation. Longer simulation times occasionally caused the pendulum to exhibit an elliptical motion tendency. This effect is likely influenced by factors such as medium damping and possible friction at the oscillation pivot point, among others.
Since this prototype aims to verify the dynamic behavior and compare it with the simulated mathematical model, as well as validate the measurement method, the implemented system adequately achieves the study’s objectives. However, for practical applications, efforts should be increased in design aspects, including precise sensor placement S x and S y and proper data processing, especially concerning acquisition systems, signal noise, and offset filtering techniques.
Another visible aspect during experimentation is the minor influence of the damping factor; the signal appears to be preserved over time. To practically quantify the damping factor β , an extended experiment was conducted to estimate the amplitude decay in real oscillation measurements. Based on this behavior, a β factor that, when applied to Equations (14) and (15), produces a similar result was sought. The determined value of β was 0.01 based on experimental calibration. Since determining this factor is not the main objective of this research, this topic is not further emphasized.

5.2. Experimental Results Case 2

An initial condition is adopted to produce a conical pendulum motion. Thus, the initial condition [ θ , ϕ , ω , ψ ] = [10°, 45°, 0 rad/s, 2 rad/s], implies that with an initial angular velocity of ϕ ˙ = 2 rad/s, a conical motion is generated (Figure 14 illustrates the initial instant of the movement). To fulfill this requirement, a mechanism based on a spring that has been adjusted to print a tangential linear velocity at the instant that includes a theta angle of 45 degrees was used (Figure 14). The required linear velocity corresponds to the value resulting from the product of ω and its perpendicular distance to the vertical axis of rotation, which is equivalent to a radius of r = l s i n ( 45 ) . This implies a velocity of 2 ( 0.3 s i n ( 45 ) ) , corresponding to approximately 0.42 m/s. It should be emphasized that this experiment aims to capture, using the sensors, an approximate movement similar to the simulations in case two and, in this way, to record the sensor readings for later analysis.
Consequently, the mass position behavior in the X, Y, and Z axes changes following a sinusoidal pattern. These effects can be observed in Figure 15a, Figure 15b and Figure 15c respectively. Similarly to the previous case, Figure 16 is shown to provide a better spatial appreciation of the pendulum’s trajectory.
The results shown in Figure 15a,b reveal that the amplitudes differ slightly, indicating that the motion at the pendulum’s tip is not perfectly circular but rather exhibits a slight elliptical tendency. This effect can be attributed to the manual application of velocity used to generate the conical motion required for data acquisition. Considering that the pendulum’s tip motion is elliptical rather than circular, this implies an oscillatory behavior in the vertical component of the pendulum’s tip position, which can be observed in Figure 15c.
Observing Figure 16a, which shows a lateral view, the pendulum’s behavior in the Y Z plane reveals a slight decrease in oscillation amplitude due to the natural damping of the surrounding medium. Regarding Figure 16b, representing a top view of the X Y plane, it can be highlighted that the oscillation develops as circular with an elliptical tendency; this behavior results from the inclusion of the initial transverse angular velocity ϕ ˙ . Finally, Figure 16c presents a spatial perspective of the pendulum’s motion, where small undulations in some sections of the trajectory can be observed, caused by the motion not being purely circular and by the gradual loss of height. Based on Equation (3), the dependence of the position on the Z-axis of the pendulum mass is a direct function of θ 1 and θ 2 ; therefore, the elliptical behavior is seen from a higher perspective (Figure 16b); this implies generating a result with a wavelike behavior in the Z-coordinate of the system position, which causes the pendulum to tend towards the stability point in the lower part in the direction of negative Z, corresponding to a vertical arrangement without motion.

6. Discussions

The present investigation has demonstrated that it is possible to estimate the angular orientation of a spatial pendulum by a non-invasive optical sensing method, using orthogonally arranged infrared distance sensors bouncing off an auxiliary plane fixed orthogonally to the pendulum bar. This approach, which avoids physical contact with the oscillating system, is consistent with modern approaches described in the literature [11,12,13], where the need to minimize disturbances induced by measurement mechanisms in nonlinear and sensitive dynamic systems, such as the spherical pendulum, is emphasized.
This research builds upon previous works that utilize mechanical sensors or sensors coupled to the rotation axis [5,6], offering an alternative that minimizes friction and wiring, aspects that have historically impacted the fidelity of the measured dynamic behavior. As indicated by [14,15], optical sensors are suitable for high-sensitivity systems, and the results presented here reinforce this statement by showing that the signals obtained reflect the three-dimensional oscillatory pattern of the pendulum with reasonable accuracy.
The orientation reconstruction strategy, using the Denavit–Hartenberg model, which is widely employed in robotic kinematics [19,20,21,22], proved effective in this case, as it enables the transformation of linear measurements into rotation angles. This aligns with research that applies matrix methods for modeling and control of multibody mechanisms, as shown in [25,26].
On the other hand, the implemented dynamic model incorporated a generalized damping term that lumps real physical effects, such as friction and dissipation in the environment. The inclusion of this factor, although empirically estimated ( β 0.01 ) , is in agreement with studies that highlight the importance of considering such losses to achieve more realistic simulations [18,23,24]. The ability to adjust this parameter after prolonged observations of amplitude decay was key to achieving a proper match between experimental data and simulation. However, some limitations were identified as consistent with previous observations in the literature [27,28,29]. The accuracy of the TCRT5000 sensors, although sufficient to validate the approach, can be improved by using industrial-grade optical sensors. Additionally, as noted by [17,18], digital signal filtering and proper data processing are crucial for obtaining robust measurements. Therefore, the use of more sophisticated filtering techniques (e.g., Kalman or weighted average) is a logical next step for future work.
Finally, although validation of the measurement model was achieved, opportunities for improvement in the design of the acquisition system are recognized, particularly in the exact location of the S x and S y sensors. This aspect, already discussed in [3,4], also directly impacts the quality of the result, especially when observing patterns such as elliptical trajectories induced by uncontrolled initial conditions.

7. Conclusions

The models describing the dynamic behavior of the spatial pendulum have been developed in the literature. However, when its motion is experimentally observed, several factors arise that cause the oscillation amplitude to decrease over time. Therefore, it is essential to incorporate into the model a damping factor that accounts for all relevant effects, such as medium density, pendulum geometry, and friction at the pivot point, among others. This damping factor can be approximately estimated through prolonged experimentation, where the decay of oscillation amplitude over time is recorded. This value can then be incorporated into the equations of motion, validated, and adjusted in simulations to ensure that the oscillation response under a given scenario closely matches the actual behavior.
The sensors are used to measure distance, providing an analog signal proportional to the distance. This signal must be digitally processed using noise filters to achieve a more reliable measurement. Despite this, the sensors proved helpful in this investigation. Being a main component, these could be improved with better performance sensors for industrial applications, considering that the TCRT5000 sensor has a limitation in terms of the detection reflection distance that goes from 1 mm to 25 mm, this implies that the reflection plane must be positioned at a distance less than 25 mm; therefore, those oscillations that exceed this distance will present inconsistencies.
After obtaining the light reflection measurement on the disk, it is necessary to infer the corresponding pendulum rotation angles. A matrix-based procedure was employed for this calculation, using the Denavit–Hartenberg method, which avoids making geometric deductions and instead adopts a matrix and vector technique based on the concept of homogeneous matrices. This involved defining segments generated on the plane and the sensor measurement through direct kinematics, resulting in a system of equations whose unknowns are the rotation angles on each axis. Subsequently, by solving the inverse kinematics problem, the rotation angles of the pendulum can be obtained. Experimental results were corroborated with simulations. Regarding initial conditions for the pendulum’s motion, accuracy can be improved for future purposes. In this study, the goal was to demonstrate that the sensing technique is functional, so exact initial conditions were not emphasized. Observing similarity and motion trends sufficed to conclude that the method is valid and can be refined in various aspects, including the generation of initial conditions for experiments and simulations.
Additionally, it is essential to highlight that, as a prototype intended to verify dynamic behavior and compare it with the simulated mathematical model, the implemented system successfully meets the study’s objectives by validating the measurement method. Nevertheless, for practical application, it is clear that further efforts must be directed toward design improvements, such as the precise positioning of sensors S x and S y and the proper processing of their data, including acquisition systems and noise filtering, and signal offset correction techniques.
Another noticeable aspect during experimentation is the minimal influence of the damping factor; the signal persists over time. To quantify the damping factor β practically, prolonged experimentation was performed. This allowed estimation of the amplitude decay in the real oscillation measurements. Considering this behavior, a value of β = 0.01 was adopted, which in simulations produces results closely matching the experimental responses. It is essential to note that the adoption of factor B will enable the observation of the damping tendency of the medium in which the movement develops. It is essential to note that the adoption of factor β will enable the observation of the damping tendency of the medium in which the movement develops. This aspect is not of primary interest. However, it is necessary to include it in the mathematical model for simulation purposes.
Finally, it is worth emphasizing that the exact difference between the experiments and the simulations that incorporate the theoretical calculation has not been quantified, as the generation of the initial conditions was not the primary purpose of this research. However, it is essential that the tendency of movement for each case remains dependent and allows for validation of the proposed sensing method. Although the effectiveness of the method can be verified by statically positioning the pendulum at different points, it is a very elementary approach; therefore, its validation in a moving environment and with the dynamics of the mechanism itself is considered enriching. In this sense, a new window of research is opened involving the performance of the pendulum system and its motion control.

Author Contributions

Conceptualization, M.C. and R.S.; methodology, M.C.; software, D.C.; validation, J.Z., J.C., and D.C.; investigation, D.C.; writing—review and editing, M.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors acknowledge the use of Scopus AI to support the literature review and search process. Additionally, ChatGPT (developed by OpenAI) was used to assist in refining the language and translating the manuscript into English. The authors affirm that they have thoroughly reviewed and verified all AI-assisted content to ensure its accuracy and appropriateness.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

MATLAB CODE FOR DATA ACQUISITION AND CALCULATION OF PENDULUM ANGLES\\
clear all;
close all;
clc;
DATA ACQUISITION
daq.getDevices                      % Card Search
s = daq.createSession(’ni’)
s.addAnalogInputChannel(’Dev1’, 0, ’Voltage’)
s.addAnalogInputChannel(’Dev1’, 1, ’Voltage’)
s.Rate = 20;                      % Samples per second
s.Channels(1,1).Range = [-10 10];
s.Channels(1,2).Range = [-10 10];
s.DurationInSeconds = 10                % Acquisition Duration Time\\
 Tot_muest= s.Rate*s.DurationInSeconds;           % Total samples acquired\\
 tic
 disp(’Star’)
 [data,t] = s.startForeground();            % Acquisicion\\
 ttot=toc;
 disp(’Stop’)
 % DATA VARIABLES
 D1=data(:,1);
 D2=data(:,2);
%SIGNAL FILTERING (FIR)
n=15; % Filter order
Wn=0.15; $%$frequency restrictions
ftype=’low’;
b=fir1(n,Wn,ftype);
a=1;
Tdz1 = -filter(b,a,D1);
Tdz2 = -filter(b,a,D2);
me=28;       $%$ initial samples to discard
Tdz1(1:me,:) = [];
Tdz2(1:me,:) = [];
lPx=-0.02;  $%$Sx sensor position
lPy=-0.02;   $%$Sy sensor position
offsetTdz1 = mean(Tdz1);
offsetTdz2 = mean(Tdz2);
Tdz1 = (Tdz1-offsetTdz1)*0.006 ;          $%$scale adjustment
Tdz1 = Tdz1+lPx;
Tdz2 = (Tdz2-offsetTdz2)*0.4 ;           $%$scale adjustment
Tdz2 = Tdz2+lPy ;
%DEFINITION OF SENSOR LOCATION DISTANCE FOR CALCULATION OF VARIABLES
dx0= 0.02;
dy0= 0.02;
for i=1 : length(Tdz1)
    dz1= Tdz1(i);
    dz2= Tdz2(i);
    lp=0.02;
% DEFINITION OF SET OF NONLINEAR EQUATIONS OF THE NONLINEAR SYSTEM FOR NUMERICAL SOLUTION
F=@(x) [lp*cos(x(2)+pi/2)-dx0+x(4)*sin(x(2)+pi/2);
x(4)*cos(x(1)+pi/2)*cos(x(2)+pi/2)-x(3)*sin(x(1)+pi/2)-lp*cos(x(1)+pi/2)*sin(x(2)+pi/2);
x(3)*cos(x(1)+pi/2)-dz1+x(4)*cos(x(2)+pi/2)*sin(x(1)+pi/2)-lp*sin(x(1)+pi/2)*sin(x(2)+pi/2);
lp*cos(x(2)+pi/2)+x(6)*sin(x(2)+pi/2);
x(5)*sin(x(1)+pi/2)-dy0+x(6)*cos(x(1)+pi/2)*cos(x(2)+pi/2)-lp*cos(x(1)+pi/2)*sin(x(2)+pi/2);
x(6)*cos(x(2)+pi/2)*sin(x(1)+pi/2)-x(5)*cos(x(1)+pi/2)-dz2-lp*sin(x(1)+pi/2)*sin(x(2)+pi/2)];
x0=[0;0;0;0;0;0];
x=fsolve(F,x0);
theta1(i)=x(1,1);
theta2(i)=x(2,1);
end
offsettheta1 = mean(theta1);
offsettheta2 = mean(theta2);
theta1 = theta1-offsettheta1 ;       %scale adjustment
theta2 = theta2-offsettheta2 ;       %scale adjustment
%CALCULATION OF THE POSITION OF THE PENDULAR MASS
 l=0.3;
 cx=-l*sin(theta2);
 cy=l*sin(theta1);
 cz=-l*cos(theta2).*cos(theta1);
 t=1:length(Tdz1);
$%$FIGURES
 figure(1)
 plot(t,cx);
 xlabel(’Samples’);
 ylabel(’X-axis amplitude (m)’);
 grid on
 figure(2)
 plot(t,cy);
 xlabel(’Samples’);
 ylabel(’Y-axis amplitude (m)’);
 grid on
 figure(3)
 plot(t,cz);
 xlabel(’Samples’);
 ylabel(’Z-axis amplitude (m)’);
 grid on
 figure(4)
 plot3(cx,cy,cz)
 xlabel(’X-axis amplitude (m)’)
 ylabel(’Y-axis amplitude (m)’)
 zlabel(’Z-axis amplitude (m)’)
 grid on
 figure(5)
 plot(t,Tdz1);
 figure(6)
 plot(t,Tdz2);

References

  1. Hernandez-Maldonado, A.; Diaz-Martinez, J.G.; Kojima, H.; Gutierrez-Carmona, I.; Keshtkar, S. Experimental Platform for Modeling and Control of Articulated Bodies. Mech. Mach. Sci. 2020, 86, 159–169. [Google Scholar] [CrossRef]
  2. Liu, L.; Zhang, X.; Guo, Y. The Global Motion Control of First-order Rotary Parallel Double Inverted Pendulum. In Proceedings of the 2023 IEEE International Conference on Mechatronics and Automation (ICMA), Harbin, China, 6–9 August 2023; pp. 1293–1298. [Google Scholar] [CrossRef]
  3. Fan, J.; Wang, X.; Fei, M. Research of parallel-type double inverted pendulum model based on lagrange equation and LQR controller. In Proceedings of the International Conference on Intelligent Computing for Sustainable Energy and Environment, Wuxi, China, 17–21 September 2010; Lecture Notes in Computer Science (LNCS: Including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). Volume 6328, pp. 147–156. [Google Scholar] [CrossRef]
  4. Cioaca, R.A.; Flutur, C. Reaction Wheel Control of an 3D Printed Inverted Pendulum. In Proceedings of the 2021 23rd International Conference on Control Systems and Computer Science (CSCS), Bucharest, Romania, 26–28 May 2021; pp. 57–61. [Google Scholar] [CrossRef]
  5. Elkinany, B.; Mohammed, A.; Krafes, S.; Chalh, Z. Backstepping controller design with a quadratic error for a double inverted pendulum. Int. J. Model. Identif. Control. 2020, 34, 33–40. [Google Scholar] [CrossRef]
  6. Shreedharan, S.; Ravikumar, V.; Mahadevan, S.K. Design and control of real-time inverted pendulum system with force-voltage parameter correlation. Int. J. Dyn. Control. 2021, 9, 1672–1680. [Google Scholar] [CrossRef]
  7. Gong, S. A conceptual development of novel ultra-precision dimensional measurement technology. Meas. J. Int. Meas. Confed. 2003, 33, 347–357. [Google Scholar] [CrossRef]
  8. Saha, A.; Mi, Y.; Glassmaker, N.; Shakouri, A.; Alam, M.A. In Situ Drift Monitoring and Calibration of Field-Deployed Potentiometric Sensors Using Temperature Supervision. ACS Sens. 2023, 8, 2799–2808. [Google Scholar] [CrossRef] [PubMed]
  9. Dabros, M.; Amrhein, M.; Gujral, P.; Von Stockar, U. On-line recalibration of spectral measurements using metabolite injections and dynamic orthogonal projection. Appl. Spectrosc. 2007, 61, 507–513. [Google Scholar] [CrossRef]
  10. Rolfe, P.; Zhang, Y.; Sun, J.; Scopesi, F.; Serra, G.; Yamakoshi, K.; Tanaka, S.; Yamakoshi, T.; Yamakoshi, Y.; Ogawa, M. Invasive and non-invasive measurement in medicine and biology: Calibration issues. In Proceedings of the Sixth International Symposium on Precision Engineering Measurements and Instrumentation, Hangzhou, China, 8–10 August 2010; Volume 7544. [Google Scholar] [CrossRef]
  11. Wang, Z.; Huang, T.; Kang, Y.; Luo, Z. A quick-response and high-precision dynamic measurement method with application on small-angle measurement. Meas. Sci. Technol. 2022, 33, 045009. [Google Scholar] [CrossRef]
  12. Zhao, Y.; Fan, X.; Wang, C.; Lu, L. An improved intersection feedback micro-radian angle-measurement system based on the Laser self-mixing interferometry. Opt. Lasers Eng. 2020, 126, 105866. [Google Scholar] [CrossRef]
  13. Kumar, A.S.A.; George, B.; Mukhopadhyay, S.C. Technologies and Applications of Angle Sensors: A Review. IEEE Sens. J. 2021, 21, 7195–7206. [Google Scholar] [CrossRef]
  14. Liu, Z.; Bai, Y.; Hu, M.; Li, H.; Qu, S.; Tang, M.; Wang, C.; Wu, S.; Xie, M.; Yang, X.; et al. Semiphysical Simulation of Space Inertial Sensor Utilizing Carrier Amplitude Modulation. IEEE Sens. J. 2025, 25, 8407–8416. [Google Scholar] [CrossRef]
  15. Yang, B.; Wang, D.; Zhou, L.; Wu, S.; Xiang, R.; Zhang, W.; Lu, L.; Yu, B. A ultra-small-angle self-mixing sensor system with high detection resolution and wide measurement range. Opt. Laser Technol. 2017, 91, 92–97. [Google Scholar] [CrossRef]
  16. Müller, D.H.; Börger, M.; Thien, J.; Koß, H.J. The Good pH probe: Non-invasive pH in-line monitoring using Good buffers and Raman spectroscopy. Anal. Bioanal. Chem. 2023, 415, 7247–7258. [Google Scholar] [CrossRef]
  17. Wang, C.; Fan, X.; Guo, Y.; Gui, H.; Wang, H.; Liu, J.; Yu, B.; Lu, L. Full-circle range and microradian resolution angle measurement using the orthogonal mirror self-mixing interferometry. Opt. Express 2018, 26, 10371–10381. [Google Scholar] [CrossRef] [PubMed]
  18. Smith, B.J.; Black, J.T.; Adams, C.S. Design and Calibration of a Torsion Pendulum for Micronewton-Class Spacecraft Thrusters. J. Aerosp. Eng. 2022, 35, 04022023. [Google Scholar] [CrossRef]
  19. de Jonge, A.R. Discussion:“A Kinematic Notation for Lower-Pair Mechanisms Based on Matrices”(Denavit, J., and Hartenberg, RS, 1955, ASME J. Appl. Mech., 22, pp. 215–221). J. Appl. Mech. 1956, 23, 152–153. [Google Scholar] [CrossRef]
  20. Carpio, M.; Saltaren, R.; Cely, J.; Carpio, D.; Yupa, W. A Robotic System Based on a Universal Joint Actuated by Two Cables Applied to the Orientation of Photovoltaic Panels. In Proceedings of the 2024 7th Iberian Robotics Conference (ROBOT), Madrid, Spain, 6–8 November 2024. [Google Scholar] [CrossRef]
  21. Permadi, Y.; Darmawan, A.; Pitowarno, E. Application of Lagrange Method to Analyze Forces of Gyroscope Inverted Pendulum. In Proceedings of the 2019 International Electronics Symposium (IES), Surabaya, Indonesia, 27–28 September 2019; pp. 154–158. [Google Scholar] [CrossRef]
  22. Sharma, M.; Kar, I. Modeling, Control and Variational Integration for an inverted pendulum on S1. In Proceedings of the 2021 Seventh Indian Control Conference (ICC), Mumbai, India, 20–22 December 2021; pp. 424–429. [Google Scholar] [CrossRef]
  23. Ismail, A. Treating the Solid Pendulum Motion by the Large Parameter Procedure. Int. J. Aerosp. Eng. 2020, 2020, 8853867. [Google Scholar] [CrossRef]
  24. Grundy, R. The behaviour of a forced spherical pendulum operating in a weightless environment. Q. J. Mech. Appl. Math. 2023, 76, 349–369. [Google Scholar] [CrossRef]
  25. Okubanjo, A.A.; Oyetola, O.K. Dynamic mathematical modeling and control algorithms design of an inverted pendulum system. Turk. J. Eng. 2019, 3, 14–24. [Google Scholar] [CrossRef]
  26. Xie, H.; Zhao, X.; Sun, Q.; Yang, K.; Li, F. A new virtual-real gravity compensated inverted pendulum model and ADAMS simulation for biped robot with heterogeneous legs. J. Mech. Sci. Technol. 2020, 34, 401–412. [Google Scholar] [CrossRef]
  27. Prokin, M.; Ceperkovic, V.; Prokin, D. Double Buffered Angular Speed Measurement Method for Self-Calibration of Magnetoresistive Sensors. In Proceedings of the 2023 12th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro, 6–10 June 2023. [Google Scholar] [CrossRef]
  28. Anandan, N.; Varma Muppala, A.; George, B. A Flexible, Planar-Coil-Based Sensor for Through-Shaft Angle Sensing. IEEE Sens. J. 2018, 18, 10217–10224. [Google Scholar] [CrossRef]
  29. Jiang, K.; Mao, Z.; Ma, T.; Chen, S.; Ren, J.; Hu, Z.; Ju, M. Development of a Double-Resolver High-Sensitivity Torsion Spring-Type Torque Sensor via Iterative Error Self-Compensation Method. IEEE Sens. J. 2023, 23, 5618–5627. [Google Scholar] [CrossRef]
Figure 1. Spatial pendulum, representation of variables identifying the motion.
Figure 1. Spatial pendulum, representation of variables identifying the motion.
Sensors 25 04624 g001
Figure 2. Pendulum oscillation response: (a) Displacement along the X-axis. (b) Displacement along the Y-axis. (c) Displacement along the Z-axis.
Figure 2. Pendulum oscillation response: (a) Displacement along the X-axis. (b) Displacement along the Y-axis. (c) Displacement along the Z-axis.
Sensors 25 04624 g002
Figure 3. Pendulum oscillation response: (a) Spatial oscillation behavior trajectory. (b) Oscillation trajectory viewed from above in the X Y plane.
Figure 3. Pendulum oscillation response: (a) Spatial oscillation behavior trajectory. (b) Oscillation trajectory viewed from above in the X Y plane.
Sensors 25 04624 g003
Figure 4. Pendulum oscillation response considering a non-zero initial angular velocity ϕ ˙ : (a) Displacement along the X-axis. (b) Displacement along the Y-axis. (c) Displacement along the Z-axis.
Figure 4. Pendulum oscillation response considering a non-zero initial angular velocity ϕ ˙ : (a) Displacement along the X-axis. (b) Displacement along the Y-axis. (c) Displacement along the Z-axis.
Sensors 25 04624 g004
Figure 5. Pendulum oscillation response considering a non-zero initial angular velocity ϕ ˙ : (a) Side view in the X Z plane. (b) Top view in the X Y plane. (c) Spatial view.
Figure 5. Pendulum oscillation response considering a non-zero initial angular velocity ϕ ˙ : (a) Side view in the X Z plane. (b) Top view in the X Y plane. (c) Spatial view.
Sensors 25 04624 g005
Figure 6. Pendulum system and integration of the sensing mechanism.
Figure 6. Pendulum system and integration of the sensing mechanism.
Sensors 25 04624 g006
Figure 7. Distance sensing system based on light reflection on plane P, relative to absolute rotation about the X and Y axes.
Figure 7. Distance sensing system based on light reflection on plane P, relative to absolute rotation about the X and Y axes.
Sensors 25 04624 g007
Figure 8. Reflection distance sensing system: segments defining the distance measurements of each sensor.
Figure 8. Reflection distance sensing system: segments defining the distance measurements of each sensor.
Sensors 25 04624 g008
Figure 9. Segments that define the distance measured by sensor S x , along with the coordinate frame assignments required for the computation of forward and inverse kinematics.
Figure 9. Segments that define the distance measured by sensor S x , along with the coordinate frame assignments required for the computation of forward and inverse kinematics.
Sensors 25 04624 g009
Figure 10. Segments generating the distance measured by sensor S y , coordinate system for the calculation of direct and inverse kinematics.
Figure 10. Segments generating the distance measured by sensor S y , coordinate system for the calculation of direct and inverse kinematics.
Sensors 25 04624 g010
Figure 11. Spatial pendulum prototype.
Figure 11. Spatial pendulum prototype.
Sensors 25 04624 g011
Figure 12. Actual oscillation response of the pendulum: (a) Displacement along the X axis. (b) Displacement along the Y axis. (c) Displacement along the Z axis.
Figure 12. Actual oscillation response of the pendulum: (a) Displacement along the X axis. (b) Displacement along the Y axis. (c) Displacement along the Z axis.
Sensors 25 04624 g012aSensors 25 04624 g012b
Figure 13. Real oscillation response of the pendulum: (a) Lateral view in the X Z plane. (b) Top view in the X Y plane. (c) Three-dimensional view.
Figure 13. Real oscillation response of the pendulum: (a) Lateral view in the X Z plane. (b) Top view in the X Y plane. (c) Three-dimensional view.
Sensors 25 04624 g013
Figure 14. Initial motion condition of the pendulum.
Figure 14. Initial motion condition of the pendulum.
Sensors 25 04624 g014
Figure 15. Real oscillation response of the pendulum considering a non-zero initial angular velocity ϕ ˙ : (a) Displacement along the X-axis. (b) displacement along the Y-axis. (c) Displacement along the Z-axis.
Figure 15. Real oscillation response of the pendulum considering a non-zero initial angular velocity ϕ ˙ : (a) Displacement along the X-axis. (b) displacement along the Y-axis. (c) Displacement along the Z-axis.
Sensors 25 04624 g015aSensors 25 04624 g015b
Figure 16. Real oscillation response of the pendulum considering a non-zero initial angular velocity ϕ ˙ = ψ : (a) Lateral view in the X Z plane. (b) Top view in the X Y plane. (c) Three-dimensional view.
Figure 16. Real oscillation response of the pendulum considering a non-zero initial angular velocity ϕ ˙ = ψ : (a) Lateral view in the X Z plane. (b) Top view in the X Y plane. (c) Three-dimensional view.
Sensors 25 04624 g016
Table 1. Denavit–Hartenberg parameters relating to the distance measured by sensor S x .
Table 1. Denavit–Hartenberg parameters relating to the distance measured by sensor S x .
Matrix θ da α
A 1 0 000 π /2 + θ 1
A 2 1 π /2 + θ 2 000
A 3 2 00 l p 0
A 4 3 π /2 l 1 l 2 0
Table 2. Denavit–Hartenberg parameters relating to the distance measured by sensor S y .
Table 2. Denavit–Hartenberg parameters relating to the distance measured by sensor S y .
Matrix θ da α
A 1 0 000 π /2 + θ 1
A 2 1 π /2 + θ 2 000
A 3 2 00 l p π
A 4 3 π /2 l 3 l 4 0
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

Carpio, M.; Zambrano, J.; Saltaren, R.; Cely, J.; Carpio, D. Non-Invasive Position Measurement of a Spatial Pendulum Using Infrared Distance Sensors. Sensors 2025, 25, 4624. https://doi.org/10.3390/s25154624

AMA Style

Carpio M, Zambrano J, Saltaren R, Cely J, Carpio D. Non-Invasive Position Measurement of a Spatial Pendulum Using Infrared Distance Sensors. Sensors. 2025; 25(15):4624. https://doi.org/10.3390/s25154624

Chicago/Turabian Style

Carpio, Marco, Julio Zambrano, Roque Saltaren, Juan Cely, and David Carpio. 2025. "Non-Invasive Position Measurement of a Spatial Pendulum Using Infrared Distance Sensors" Sensors 25, no. 15: 4624. https://doi.org/10.3390/s25154624

APA Style

Carpio, M., Zambrano, J., Saltaren, R., Cely, J., & Carpio, D. (2025). Non-Invasive Position Measurement of a Spatial Pendulum Using Infrared Distance Sensors. Sensors, 25(15), 4624. https://doi.org/10.3390/s25154624

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