Next Article in Journal
Polarimetric Imaging for Robot Perception: A Review
Previous Article in Journal
Efficiency Improvement for Chipless RFID Tag Design Using Frequency Placement and Taguchi-Based Initialized PSO
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Communication

Computer-Based Experiment for the Motion of Spring Oscillator on a Linear Air Track Using Ultrasonic Sensor

1
College of Mathematics and Computer Science, Zhejiang A&F University, Hangzhou 311300, China
2
College of Optical, Mechanical and Electrical Engineering, Zhejiang A&F University, Hangzhou 311300, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(14), 4441; https://doi.org/10.3390/s24144441
Submission received: 26 May 2024 / Revised: 25 June 2024 / Accepted: 2 July 2024 / Published: 9 July 2024
(This article belongs to the Section Physical Sensors)

Abstract

:
In the present paper, an affordable innovative physical experimental equipment consisting of an upper computer, an ultrasonic sensor module, and an Arduino microcontroller has been designed. The relationship between the position of the slider fixed on two springs and time is measured by using the ultrasonic sensor module. A system for slider motion data and image acquisition is constructed by using the LabVIEW interface of Arduino UNO R3. The purpose of this experiment is to demonstrate and interpret the propagation of waves represented by harmonic motion. The spring oscillator system including a slider and two springs is measured and recorded, and the motion can be realized using curve fitting to the wave equation in Sigmaplot. The vibration periods obtained from experimental measurements and curve fitting of the wave equation are 1.130 s and 1.165 s, respectively. The experimental data are in good agreement with the theoretical model. The experimental measurement results show that the maximum kinetic energy is 0.0792 J, the maximum potential energy is 0.0795 J, and the total energy at the position of half the amplitude is 0.0791 J. The results verify the mechanical energy conservation of spring oscillator system in a short time. This self-made instrument has improved the visualization and the automation level of the corresponding experiments.

1. Introduction

The wave of digitization and artificial intelligence has swept across the world, with big data and widespread applications such as ChatGPT and the metaverse everywhere. The digitization and informatization of experimental teaching has become a hot topic in the current global teaching development. Modern technology plays a crucial role in the digital world and is also used to help improve academic performance in scientific knowledge [1,2]. Physical instruments require a computer interface system that integrates data collection, processing, regulation, and presentation [3]. Arduino is an excellent microcontroller that can be used for much more than just creating interactive projects. It is a low-cost open-source electronic platform based on easy-to-use hardware and software. It has been utilized in countless of projects, from simple objects to complex scientific instruments [4,5,6,7,8]. LabVIEW 2018 is a system engineering software designed for applications that requires quick access to hardware and data insights for testing, measurement, and control. Its name stands for “laboratory virtual instrument engineering workbench” and is widely used in industrial manufactory, engineering, and physics. By combining LabVIEW graphical programming language with the Arduino open-source hardware ecosystem, a cost-effective prototype of a physical experimental device has been developed.
Ultrasound is defined as sound waves with a frequency greater than 20 kHz. The frequency range of ultrasound covers tens of kHz to tens of MHz. This form of mechanical wave possesses notable attributes such as high penetrating power, precise directionality, and efficient concentration of sound energy [9,10,11,12,13]. Because of its benefits such as contactless measurement, affordability, convenient operation, and fast measurement, it has been successfully applied in many scenarios, such as ultrasonic detection, safety alarms, and robot obstacle avoidance [14,15,16,17,18,19,20]. Researchers are particularly interested in ultrasonic ranging technology because using ultrasonic technology for distance measurement can significantly improve measurement accuracy and stability. This progress makes ultrasonic ranging more appropriate for industrial control systems and high-level instruments [21,22,23,24,25,26,27,28,29]. In this paper, ultrasonic sensors are used to measure the distance of the slider on a linear air track.
The motion of spring oscillator on a linear air track experiment is a common mechanical experiment offered in college physics. The air track is mainly used for mechanical experiments and can be used for related research on object motion, velocity, acceleration, and linear momentum. The original air track is equipped with a digital timer with two photoelectric gates and corresponding accessories for all experimental data measurements. The traditional method of this experiment can only measure the period and energy of harmonic vibration through a timing counter, and cannot achieve visualization of the results. In order to enhance students’ comprehension of physics theory, the utilization of visualized data obtained from experiments can facilitate conceptualization and promote a deeper understanding of the subject matter. To achieve this goal, an innovative, inexpensive, up-to-date, and easy-to-use physical experimental setup is designed. This designed device can conduct experimental research on harmonic motion, and the collected images can also be compared and analyzed with theoretical wave equations. When used for the study of harmonic motion, the position of the slider fixed on two springs is represented as a function of time. The real-time data obtained from ultrasonic sensors for measuring harmonic motion are synchronously displayed on the front panel of LabVIEW. Then, the information needs to be analyzed to extract valuable insights. Sigmaplot 15 is used for the visualization and curve fitting of the collected data, and the mechanical energy conservation of spring oscillatory system in a short period of time is verified. The completed experiments indicate that the designed equipment makes the process of measurement intuitive and accurate, and it can better meet the requirements of scientific research test and teaching experiment.
The major contributions of this article are stated as follows:
(1)
The self-made physics lab apparatus based on LabVIEW interface for Arduino has significantly improved the visualization and automation of the experiment. The physical devices can not only perform point measurement, but also support continuous measurement, achieving the real-time measurement of dynamic amplitude, data visualization, and a more convenient observation of experimental details and quantitative calculation.
(2)
Through this experimental platform, students have practiced the STEM education philosophy, which integrates disciplines from four fields: science (physics concept), technology (electronic circuit design and computer programming), engineering (design and build apparatus), and mathematics (investigate data using Sigmaplot). The aim is to cultivate students’ innovative thinking, problem-solving, and teamwork abilities.

2. Experimental Principles

2.1. Harmonic Vibration Equation

Simple harmonic vibration is the most basic and simplest form of vibration, and all complex vibrations can be decomposed into several simple harmonic vibrations. Therefore, simple harmonic vibration is the basis for studying other complex vibrations. The period and energy of harmonic vibration are the measured quantities in this experiment.
A slider with a mass of m is placed on an air track while it is level and ventilated. Two springs with stiffness coefficients of k1 and k2 are connected to each end of the slider, and the other end of the two springs is fixed at both ends of the air rail, as shown in Figure 1a. This device is called a spring oscillator. At the beginning, the slider is stationary at the equilibrium position “O” point, and at this point, the combined force on the slider F = 0. If the slider is pulled by hand to deviate from the equilibrium position, as shown in Figure 1b, and then released, the slider will undergo periodic reciprocating motion near the equilibrium position. When the displacement of the slider relative to the equilibrium point is x, the resulting force is as follows:
F = k 1 + k 2 x
According to Newton’s second law, it can be concluded that
m d 2 x d t 2 = k 1 + k 2 x
Then, a new parameter ω is introduced and defined as follows:
ω = k 1 + k 2 m
where the physical meaning of ω is angular frequency. Accordingly, Equation (2) becomes the following form:
d 2 x d t 2 = ω 2 x
The solution of this differential equation, x(t), whose second derivative is proportional to the negative of the function itself, will be a function that oscillates back and forth with time. Therefore, the solution to Equation (4) is expressed in the analytical form as
x = A cos ω t + φ 0
Equation (5) indicates that the slider undergoes harmonic vibration. In Equation (5), A is the amplitude and φ 0 is the initial phase.
The vibration period of the system is defined as
T = 2 π ω = 2 π m k 1 + k 2
In the previous experiment, the slider vibrates harmoniously on a linear air track. A single light blocking plate is used to block the light twice, and the digital timer records the time of vibration once, which is the period T.
If the displacement x and velocity at a certain moment can be measured, then the kinetic energy and potential energy of the spring oscillator are calculated by E k = m v 2 / 2 and E p = k x 2 / 2 , respectively. At this point, the mechanical energy of the spring oscillator is
E = E k + E p = m v 2 / 2 + k x 2 / 2
This is due to x = A cos ω t + φ 0 and v = A ω sin ω t + φ 0 . By substituting the above equation, one can obtain
E = m A 2 ω 2 / 2 = k A 2 / 2
Similarly, it can be concluded that the kinetic energy is maximized when the slider moves to the equilibrium position “O”, which is listed as follows:
E k = m v max 2 / 2
The potential energy of the slider reaches the maximum value at its maximum displacement (or amplitude), which is found to be
E p = 1 2 k 1 + k 2 A 2
According to the law of conservation of mechanical energy, the following conclusion can be drawn:
E = E k = E p
Therefore, this experiment can also verify the law of conservation of mechanical energy.

2.2. Principles of Ultrasonic Distance Measurement

Due to the frequency of ultrasound being greater than 20 kHz, it has concentrated sound energy, good directional propagation, and is not affected by electromagnetic interference. Therefore, ultrasonic distance detection is an effective non-contact distance measurement method. There are various methods for ultrasonic ranging, and in this experiment, the pulse echo method is used. The principle of distance measurement is shown in Figure 2. The transmitter sends a beam of ultrasonic waves, and at the same time, the timer in the microcontroller starts counting. The signal reflected by obstacles in the ultrasonic wave is received by the receiver, and the timing of the microcontroller timer is stopped when the echo is received. The speed of ultrasonic wave propagation in air is approximately 340 m/s, which is equivalent to the speed of sound. To be precise, the ultrasound speed is determined by the medium, and the speed in the air is calculated using the following formula:
c = 331.45 1 + T / 273.15
where c is the ultrasonic wave propagation speed in the air and T represents room temperature. The time taken from the emission of ultrasonic waves to the receipt of echoes is recorded as t, which is obtained through the timer in the Arduino microcontroller. The distance L between the baffle and the transmitter can be calculated using the following formula:
L = 1 2 c t 2 M 2

3. System Design Scheme

3.1. General Scheme

The experimental setup mainly consists of four parts: upper computer (installed LabVIEW), Arduino microcontroller, HC-SR04 ultrasonic sensor, and spring oscillator with baffle suspended on a linear air track. The design scheme of the entire system is shown in Figure 3.
During the experiment, the baffle on the slider is installed with its center facing the ultrasonic sensor. The air pump is turned on to make the slider vibrate harmoniously, as shown in Figure 4. While the system is running, LabVIEW2018’s NI-VISA window configuration assistant gathers data from an ultrasonic sensor via Arduino. It then processes, analyzes, stores, displays, and conducts calculations on the data to visualize harmonic vibration. On this basis, quantitative analysis is conducted by establishing coordinate axes, benchmarking, and combining visual images and tables. By studying the motion images of spring oscillators over a short period of time, the conservation of mechanical energy in the spring oscillator system can be verified.

3.2. Hardware Design Scheme

3.2.1. Master Controller

At present, the word “maker” is deeply rooted in people’s hearts, and the Arduino platform is the first choice of electronic makers. This system uses the most cost-effective UNO control board in Arduino, which has abundant pins, high efficiency of software program development, rich library functions, open-source hardware products, and low price. Its core processing unit is ATmega328P, which mainly includes 14 I/O interfaces, supports PWM, six analog input interfaces, and one serial communication interface. It can fully meet the design requirements of this experiment, as shown in Figure 5a.

3.2.2. Sensor

The HC-SR04 ultrasonic sensor is used for distance measurement in this experiment, as shown in Figure 5b. It employs a dual-probe configuration renowned for its robust anti-interference capabilities. It is capable of delivering non-contact distance measurements ranging from 2 to 500 cm with an impressive accuracy of up to 3 mm. This particular model of ultrasonic sensor is composed primarily of three integral components: an ultrasonic transmitter, a receiver, and a control circuit. Upon the TRIG trigger pin emitting a high-level signal of at least 10 μs, the module automatically dispatches eight 40 kHz square waves and initiates an automatic detection for any returning signals. Once a signal is detected, it will manifest as a high-level output via the ECHO pin. The duration of this high-level pulse corresponds to the time taken for the ultrasonic wave to travel and return. The control circuitry then leverages the measured time difference to calculate the distance from the baffle to the sensor.

3.3. Software Design Scheme

3.3.1. Arduino Program Design

The microcontroller uses Arduino integrated development environment and uses C/C++ language to write programs. The whole program adopts modular design, mainly including initialization program, main program, ultrasonic sensor data acquisition program, and serial interrupt service program. Figure 6a shows the flowchart of Arduino.

3.3.2. LabVIEW Program Design

The system software of the upper computer in the experiment is developed based on the LabVIEW platform and consists of two parts: the program interface of the front panel and the block diagram of the back panel. The flowchart is depicted as shown in Figure 6b. The LabVIEW program collects data through serial communication, and the background software implements data analysis and processing. Finally, the detection results and corresponding measurement curves are output through the front panel interface window.
The front panels of LabVIEW, namely the program interface, are shown in Figure 7 and Figure 8, including the setting of experimental parameters and the display of measurement results. Figure 7 shows the amplitude time curve collected by the ultrasonic sensor, while Figure 8 shows the velocity time curve, which is obtained by differentiation. As shown in Figure 9, the program design of the back panel of LabVIEW corresponds to the functions of the front panel one by one, which is mainly composed of the serial port configuration module, data display export module, and data processing module. This section uses the NI-VISA window configuration assistant to connect the LabVIEW program in the lower computer to the computer. Before this, the parameters of the serial port are set, including the baud rate, serial port name, data sending bits, and data flag bits. The data read is stored in the LabVIEW program and can be exported in text or excel format.

4. Experimental Results

As shown in Figure 10, two linear springs with similarity stiffness factors are measured with the Jolly scale. Adjust the Jolly scale knob so that the horizontal line on the lower end of the spring, the horizontal line on the glass tube, and the image of the horizontal line in the small mirror can be coincided—this is abbreviated as the “three line overlap”. Record the corresponding scale reading l0. Then, add 5 g of weight to the weighing plate, align the three lines, and record the reading l1. Continue to add 5 g of weight and record the reading l2 and so on. Record the reading l7 until the 35 g weight is added. Measure the corresponding reading of spring 2 using the same method and record the reading in Table 1. Among them, δ l 1 ¯ = l 7 l 3 + l 6 l 2 + l 5 l 1 + l 4 l 0 4 = 113.95 mm is the average difference of the spring’s elongation. k ¯ 1 = Δ m g δ l 1 ¯ = 4 × 5 × 9.8 113.95 = 1.72 N/m is the average calculated stiffness coefficient of the spring constant. The measured and processed results are listed in Table 1. The raw data of the distance from the ultrasonic sensor to the slider as a time function are imported into Sigmaplot 15 for data analysis. The Sigmaplot 15 is a scientific plotting software primarily used for data visualization, statistical analysis, and scientific graphic presentation. As shown in Figure 11a, The curve fitting adopts a nonlinear model. A model is defined in the form of y 0 + A sin 2 π t T φ . The fitting curve equation is y = 0.3236 + 19.321 sin 2 π 1.131 x 0.624 . In this situation, the initial phase amplitude ( φ ) is 0.624 ± 0.011 rad, the amplitude (A) is 0.19321 ± 0.00211 m, and the period (T) is 1.131 ± 0.041 s. The coefficient of determination (R2) is calculated to be 0.9818, indicating a strong correlation between the sinusoidal model used for curve fitting and the experimental data.
The linear regression analysis equation shown in Figure 11b is F = 1.7 x 0.058 , providing a slope value of 1.7 N/m and representing the spring constant (k). The measured mass of the slider is 110.0 g. Indirect measurement of vibration period (T) can be calculated using Equation (6). T = 2 π m k 1 + k 2 = 2 π 110 × 10 3 1.72 + 1.72 = 1.123 s. In Figure 11a, the period (T) value obtained from fitting the data curve is 1.131 ± 0.041 s. So, the experimental results indicate that the measured value of the period (T) is consistent with the theoretical calculation.
Analyzing Figure 7, it can be concluded that within nearly five cycles, the maximum amplitude of the system is essentially equal, and at the maximum amplitude, the velocity of the slider is zero. Therefore, the sum of the kinetic energy and potential energy of the system is equal to the magnitude of the potential energy, and the mechanical energy of the system tends to be equal. In order to better verify the mechanical energy conservation of the system, LabVIEW was used to analyze the velocity time image of the slider movement, as shown in Figure 8. On the diagram, the speed at any time can be read through the cross-cursor positioning. From Figure 8, it can be seen that v max = 1.2 m/s and m = 0.11 kg, so the maximum kinetic energy E k = m v max 2 / 2 = 0.11 × 1.2 2 ÷ 2 = 0.0792 J. From Figure 7, it can be seen that the amplitude A = 0.215 m and k 1 = k 2 = 1.72 N/m, so the maximum potential energy E p = 1 2 k 1 + k 2 A 2 = 1 2 × 1.72 + 1.72 × 0.215 2 = 0.0795 J. From Figure 8, it can be seen that the speed at the position of half the amplitude is v A / 2 = 1.03 m/s, so the total energy at the position of half the amplitude E = E k + E p = m v 2 / 2 + k x 2 / 2 = 0.0791 J. From the above calculation, it can be concluded that E E k E p . The above results verify the conservation of mechanical energy in harmonic vibration.
The harmonic vibration experiment after digital transformation can not only perform point measurement, but also support continuous measurement, achieving real-time measurement of dynamic amplitude, data visualization, and a more convenient observation of experimental details and quantitative calculation. From the amplitude time curve in Figure 7, it can be clearly observed that due to air resistance and other reasons, the amplitude slowly decreases over time, indicating a damping vibration. The amplitude curve is a sine wave, and the vibration period is independent of the amplitude, which is consistent with physical theory.

5. Conclusions

Based on the LabVIEW interface of Arduino, a digital harmonic vibration experimental device has been developed that is modern, cost-effective, simple, and innovative. The amplitude time curve measured by the HC-SR04 ultrasonic sensor allows students to visually observe harmonic vibrations, improving the visualization and automation of the experiment. The trajectory of the slider movement on the air track can be accurately recorded by LabVIEW, and its motion data can be directly sampled with a large amount of data, making it convenient for selection and processing. The results verify the mechanical energy conservation of a spring oscillator system in a short time. The experimental data are in good agreement with the theoretical model. During the development process of this experimental setup, teachers and students invisibly promoted the achievement of information literacy and core competencies in physics. The experimental system based on LabVIEW interface for Arduino has strong portability and can develop multiple digital experiments on the same experimental equipment, making it highly valuable for promotion.

Author Contributions

Methodology, B.W. and Y.X.; hardware, Y.F.; software, B.W. and Y.X.; experimental design and data analysis, B.W. and Y.X.; writing—original draft preparation, Y.X. and B.W.; writing—review and editing, G.Z.; supervision, Y.F. and G.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the 14th Five-Year Plan Higher Education Teaching Reform Project in Zhejiang Province under grant jg20220345.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. McKnight, K.; O’Malley, K.; Ruzic, R.; Horsley, M.K.; Franey, J.J.; Bassett, K. Teaching in a digital age: How educators use technology to improve student learning. J. Res. Technol. Educ. 2016, 48, 194–211. [Google Scholar] [CrossRef]
  2. Jinakheiw, T.; Ratchakham, W.; Thepnurat, M.; Tong-on, A. Using the Arduino with LabVIEW on moment of inertia experiment. J. Phys. Conf. Ser. 2018, 1144, 012017. [Google Scholar] [CrossRef]
  3. Tong-on, A.; Saphet, P.; Thepnurat, M. Simple harmonics motion experiment based on LabVIEW interface for Arduino. J. Phys. Conf. Ser. 2017, 901, 012114. [Google Scholar] [CrossRef]
  4. Smith, D. Teaching introductory circuit labs with Arduinos. Phys. Teach. 2023, 61, 591–593. [Google Scholar] [CrossRef]
  5. Bouquet, F.; Bobroff, J.; Gallezot, M.; Maurines, L. Project-based physics labs using low-cost open-source hardware. Am. J. Phys. 2017, 85, 216–222. [Google Scholar] [CrossRef]
  6. Coban, A.; Erol, M. STEM education of kinematics and dynamics using Arduino. Phys. Teach. 2022, 60, 289–291. [Google Scholar] [CrossRef]
  7. Ishafit, I.; Indratno, T.; Prabowo, Y. Arduino and LabVIEW-based remote data acquisition system for magnetic field of coils experiments. Phys. Educ. 2019, 55, 025003. [Google Scholar] [CrossRef]
  8. Arduino CC. Available online: https://www.arduino.cc/ (accessed on 20 May 2024).
  9. Zhang, Z.; Zhang, X.; Ma, B.; Ding, M.; Zhu, B.; Tong, D. Measurement of linear springs’ stiffness factor using ultrasonic sensing. Sensors 2022, 22, 5878. [Google Scholar] [CrossRef]
  10. Tunukovic, V.; McKnight, S.; Pyle, R.; Wang, Z.; Mohseni, E.; Pierce, S.G.; Vithanage, R.K.W.; Dobie, G.; MacLeod, C.N.; Cochran, S.; et al. Unsupervised machine learning for flaw detection in automated ultrasonic testing of carbon fibre reinforced plastic composites. Ultrasonics 2024, 140, 107313. [Google Scholar] [CrossRef] [PubMed]
  11. Kang, H.S.; Song, C.G.; Lee, K.I. Simultaneous measurement of acoustic pressure and temperature at the focus of high intensity focused ultrasound in a tissue-mimicking phantom by using a fiber-optic hydrophone. Jpn. J. Appl. Phys. 2019, 58, 0909089. [Google Scholar] [CrossRef]
  12. Lyu, Y.; Yang, J.; Ge, M.; Xu, L. Wavelet packet energy-based damage detection using guided ultrasonic waves and support vector machine. Meas. Sci. Technol. 2023, 34, 075107. [Google Scholar] [CrossRef]
  13. McGee, T.M.; Neath, B.; Matthews, S.; Ezekoye, O.A.; Haberman, M.R. Ultrasonic detection of pre-existing thermal abuse in lithium-ion pouch cells. J. Power Sources 2024, 595, 234035. [Google Scholar] [CrossRef]
  14. Bakhtiari-Nejad, M. Multi-focal transmission acoustic phase holograms in contactless ultrasonic power transfer systems. Sens. Actuators A Phys. 2022, 340, 113551. [Google Scholar] [CrossRef]
  15. Zhong, H.; Duan, T.; Lan, H.; Zhou, M.; Gao, F. Review of low-cost photoacoustic sensing and imaging based on laser diode and light-emitting diode. Sensors 2018, 18, 2264. [Google Scholar] [CrossRef] [PubMed]
  16. De Simone, M.C.; Rivera, Z.B.; Guida, D. Obstacle avoidance system for unmanned ground vehicles by using ultrasonic sensors. Machines 2018, 6, 18. [Google Scholar] [CrossRef]
  17. Kang, L.; Feeney, A.; Dixon, S. The high frequency flexural ultrasonic transducer for transmitting and receiving ultrasound in air. IEEE Sens. J. 2020, 20, 7653–7660. [Google Scholar] [CrossRef]
  18. Hu, D.; Qin, X.; Hu, Z. Measurement of spot welding nugget diameter using power spectral density variation of laser ultrasonic lamb wave. Opt. Commun. 2023, 528, 129011. [Google Scholar] [CrossRef]
  19. Li, S.; Feng, C.; Liang, X.; Qin, H.; Li, H.; Shi, L. A guided vehicle under fire conditions based on a modified ultrasonic obstacle avoidance technology. Sensors 2018, 18, 4366. [Google Scholar] [CrossRef] [PubMed]
  20. Li, H.; Liu, Y.; Deng, J.; Chen, W.; Li, K. Design philosophy for ultrasonic motors using the bending hybrid modes. Sens. Actuators A Phys. 2021, 331, 113029. [Google Scholar] [CrossRef]
  21. Liu, L.; Guo, R.; Wu, J. Design of a fast echo matching algorithm to reduce crosstalk with doppler shifts in ultrasonic ranging. Meas. Sci. Technol. 2017, 28, 025103. [Google Scholar] [CrossRef]
  22. Guntekin, E.; Aydin, T.Y.; Niemz, P. Prediction of compression properties in three orthotropic directions for some important turkish wood species using ultrasound. Bioresources 2015, 10, 7252–7262. [Google Scholar] [CrossRef]
  23. Robichaud, A.; Cicek, P.; Deslandes, D.; Nabki, F. Frequency tuning technique of piezoelectric ultrasonic transducers for ranging applications. J. Microelectromech. Syst. 2018, 27, 570–579. [Google Scholar] [CrossRef]
  24. Wang, Y.; Qiao, Y.; Zhang, H.; Gao, Y.; Zhang, M.; Tan, H.; Wang, D.; Jin, B. Transformerless ultrasonic ranging system with the feature of intrinsic safety for explosive environment. Sensors 2018, 18, 4397. [Google Scholar] [CrossRef] [PubMed]
  25. Chen, H.; Ji, K.; Zhang, W.; Zhang, C.; Fu, J. High precision ultrasonic measurement method for thin-walled parts. NDT&E. Int. 2024, 145, 103122. [Google Scholar] [CrossRef]
  26. Bevan, R.L.T.; Croxford, A.J. Automated detection and characterisation of defects from multiview ultrasonic imaging. NDT E. Int. 2022, 128, 102628. [Google Scholar] [CrossRef]
  27. Xu, L.; Zhang, Z.; Tao, C.; Xu, N. Wave velocity measurement in the through-thickness direction of the anisotropic material plate with ultrasonic polar scan. Mater. Des. 2023, 232, 112144. [Google Scholar] [CrossRef]
  28. Otsuki, Y.; Nguyen, S.T.; La, H.M.; Wang, Y. Autonomous ultrasonic thickness measurement of steel bridge members using a climbing bicycle robot. J. Eng. Mech. 2023, 149, 04023051. [Google Scholar] [CrossRef]
  29. Zhu, J.; Zhang, W.; Shen, Y.; Zhu, L.; Zhang, Y. Five-axis ultrasonic thickness measurement of hollow blade wall and evaluation of internal chamber section. J. Phys. Conf. Ser. 2022, 2185, 012012. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of spring oscillator.
Figure 1. Schematic diagram of spring oscillator.
Sensors 24 04441 g001
Figure 2. Schematic diagram of ultrasonic distance measurement.
Figure 2. Schematic diagram of ultrasonic distance measurement.
Sensors 24 04441 g002
Figure 3. Overall system design scheme diagram.
Figure 3. Overall system design scheme diagram.
Sensors 24 04441 g003
Figure 4. Photo of digital harmonic vibration device.
Figure 4. Photo of digital harmonic vibration device.
Sensors 24 04441 g004
Figure 5. The hardware of the system. (a) Arduino UNO control board; (b) HC-SR04 ultrasonic sensor.
Figure 5. The hardware of the system. (a) Arduino UNO control board; (b) HC-SR04 ultrasonic sensor.
Sensors 24 04441 g005
Figure 6. The flowchart of the software. (a) Flowchart of Arduino program; (b) Flowchart of LabVIEW program.
Figure 6. The flowchart of the software. (a) Flowchart of Arduino program; (b) Flowchart of LabVIEW program.
Sensors 24 04441 g006
Figure 7. The amplitude time curve displayed on the front panel of LabVIEW.
Figure 7. The amplitude time curve displayed on the front panel of LabVIEW.
Sensors 24 04441 g007
Figure 8. The speed time curve displayed on the front panel of LabVIEW.
Figure 8. The speed time curve displayed on the front panel of LabVIEW.
Sensors 24 04441 g008
Figure 9. The program on the back board of LabVIEW.
Figure 9. The program on the back board of LabVIEW.
Sensors 24 04441 g009
Figure 10. The stiffness coefficient k of the spring is measured using the Jolly scale.
Figure 10. The stiffness coefficient k of the spring is measured using the Jolly scale.
Sensors 24 04441 g010
Figure 11. The data curve fitting represented using Sigmaplot 15 (the red dots denote the original data points, while the black line represents the fitted curve). (a) The relationship between amplitude and time. (b) The variation of force with distance.
Figure 11. The data curve fitting represented using Sigmaplot 15 (the red dots denote the original data points, while the black line represents the fitted curve). (a) The relationship between amplitude and time. (b) The variation of force with distance.
Sensors 24 04441 g011
Table 1. The measurement results of the two springs’ stiffness coefficient.
Table 1. The measurement results of the two springs’ stiffness coefficient.
No. m (g)Spring 1 Length (mm)Spring 1 Elongation (mm)Spring 1 Constant k (N/m)Spring 2 Length (mm)Spring 2 Elongation
(mm)
Spring 2 Constant k (N/m)
00 l 0 = 33.9 δ l 1 = l 4 l 0 = 114.1 k 1 ¯ = 1.72 l 0 = 34.8 δ l 1 = l 4 l 0 = 114.2 k 2 ¯ = 1.72
15 l 1 = 62.5 δ l 2 = l 5 l 1 = 113.9 l 1 = 63.4 δ l 2 = l 5 l 1 = 114.0
210 l 2 = 91.0 δ l 3 = l 6 l 2 = 113.9 l 2 = 92.0 δ l 3 = l 6 l 2 = 113.8
315 l 3 = 119.5 δ l 4 = l 7 l 3 = 113.9 l 3 = 120.5 δ l 4 = l 7 l 3 = 113.8
420 l 4 = 148.0 δ l 1 ¯ = 113.95 l 4 = 149.0 δ l 2 ¯ = 113.95
525 l 5 = 176.4 l 5 = 177.4
630 l 6 = 204.9 l 6 = 205.8
735 l 7 = 233.4 l 7 = 234.3
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

Wu, B.; Xu, Y.; Zhou, G.; Fan, Y. Computer-Based Experiment for the Motion of Spring Oscillator on a Linear Air Track Using Ultrasonic Sensor. Sensors 2024, 24, 4441. https://doi.org/10.3390/s24144441

AMA Style

Wu B, Xu Y, Zhou G, Fan Y. Computer-Based Experiment for the Motion of Spring Oscillator on a Linear Air Track Using Ultrasonic Sensor. Sensors. 2024; 24(14):4441. https://doi.org/10.3390/s24144441

Chicago/Turabian Style

Wu, Bin, Yiqing Xu, Guoquan Zhou, and Yan Fan. 2024. "Computer-Based Experiment for the Motion of Spring Oscillator on a Linear Air Track Using Ultrasonic Sensor" Sensors 24, no. 14: 4441. https://doi.org/10.3390/s24144441

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