Physics is one of the most fundamental scientific disciplines, and it forms the core of scientific development (Hartmann and Mittelstrass, 2002). Physics helps students to understand natural phenomena through observations, measurements, mathematics, and experiments (Falkenburg, 2011). However, the conventional teaching methods that include delivering traditional lectures in front of the passive students are often tedious and very difficult for the students to understand physics. Moreover, these methods do not provide adequate opportunities for the students to think critically to solve a problem (Adams et al., 2006; Schauer et al., 2009; Wieman and Perkins, 2005).
Along with the conventional teaching method, laboratory activities are essential as it allows the students to get involved in the learning process. Students start thinking critically while conducting laboratory works. Self-explored experience from laboratory activities helps the students understand and recognize laws of physics, enhance the physics’ conceptual thinking, and develop their scientific skills (Darrah et al., 2014; Sari et al., 2019).
It could be more helpful for the students if they get an opportunity to learn physics from the computer-based experiments in the physics laboratory. It helps the students better to understand physics than only lectures in the classroom. It allows the students to develop their skills, which makes physics more accessible (Brelsford, 1993; Darrah et al., 2014; Rutten et al., 2012; Sari et al., 2019; Zacharia and Anderson, 2003). It also increases the students’ motivation to collaborate and stay engaged with the learning process, which is very useful for them (Sari et al., 2019). The computer-based experiments have some more benefits for the students, such as teaching the students about data collection and data analysis, understanding the relationships among various variables through plotting graphs based on their collected data. This helps the students to gain knowledge about theory and experiments and develop their research skills (Amrani and Paradis, 2010; Beichner et al., 1999; David et al., 2007; Trumper and Gelbman, 2000).
A low-cost experimental set could be developed in computer-based experiments by using an Arduino board and a computer (Musik, 2017; Sanjaya et al., 2018; Sari and Kirindi, 2019; Tunyagi et al., 2018). This experimental set is cost-effective and easily handled. Students learn from real-time experiments and collect data continuously. Through this type of experiment, students obtain more accurate physics concepts compared to the conventional teaching method. These computer-based experimental sets can include various sensors, including photogate sensor (Yulkifli et al., 2018), ultrasonic sensor (Cutnell and Johnson, 2010; Galeriu et al., 2014; Pili and Violanda, 2019; Sanjaya et al., 2018; Tong-on et al., 2017), and infrared sensor (Musik, 2014, 2017), which makes physics learning more comfortable for the student.
The experiments about motion are fundamental in elementary or advanced physics, where the concept of position, time, speed, and acceleration is crucial. Gravity is known as the key to describe the motion of an object and pendulum experiment is an excellent way to demonstrate the gravity in high school, college, and university study.
In this study, a simple pendulum experiment is introduced which consists of an object with a small mass, also known as the pendulum bob, suspended from a light string. A simple pendulum period depends on the string’s length and the amplitude of the pendulum’s swing. An Arduino-based microcontroller and infrared phototransistor sensors are used to measure the period of oscillation and calculate the gravity. The aims of this study are (i) to develop a computer-based experiment set on a simple pendulum, and (ii) to measure the periodic motion and the acceleration of gravity (g) in Nakhon Si Thammarat province, southern Thailand. This proposed setup is cost-effective and easy to operate.
A simple pendulum consists of a particle of mass
Figure 1:
A simple pendulum swinging back and forth about the pivot

For larger amplitudes, the period is longer than predicted by the small-angle approximation.
Here
The experimental setup is made of a stand (stainless steel) with a width of 0.30 m, length of 0.40 m, and a height of 0.16 m. A pole (1st pole in Fig. 2a) is fixed with the stand. The pole’s length is 1.00 m, but it can be increased up to 1.48 m by using a support system. A pendulum (stainless steel) is tied with the 2nd pole of the rigid support by using a nylon rope (Fig. 2a). The mass and diameter of the pendulum are 0.032 kg and 0.02 m, respectively. A screw lock is fixed with the 2nd pole to increase or decrease the nylon rope’s length along with the pendulum. Pendulum swing angle can be fixed by a projector as shown in Figure 2b (i.e., 35 degrees). An infrared LED and phototransistor sensor are fixed with the stand and the 1st pole, respectively (Fig. 2a).
Figure 2:
The structure of the experimental set; (a) experimental set, and (b) fix swing angle.

The infrared phototransistor circuit consists of a phototransistor, an infrared LED, and a resistor (Fig. 3). The phototransistor acts as a receiver, and the infrared LED acts as a transmitter. The resistor is 330 kΩ, 200 Ω, and 1/4 W (Musik, 2017) (Fig. 3). The power supply is 5 V of DC. During operating, when the infrared reaches the phototransistor, the output voltage becomes 0 V, and when an opaque object blocks the path of the light, the output voltage changes to 5 V. The signal of the output voltage is used to measure the swing period of the pendulum through using the Arduino program.
Figure 3:
Infrared phototransistor circuit.

The infrared transmitting circuit consists of four IR LEDs and four resistors of 220 Ω (Fig. 4a). Infrared LED is connected with four resistors (each infrared LED is 5 mm in diameter) in parallel, where the distance between each resister is 1.2 cm. The device is placed on a 3.0 cm × 6.5 cm printed circuit board (Fig. 4b).
Figure 4:
(a) Infrared LEDs circuit, (b) infrared LEDs board.

The phototransistor receiver circuit consists of four phototransistors in parallel. The diameter of each phototransistor is 5 mm. The distance between each phototransistor is 1.2 cm. This phototransistor receiver circuit is used for collecting the data of period (
Figure 5:
(a) Phototransistor receiver circuit, (b) phototransistor receiver board.

The computer interface experimental set consists of hardware and software, which are shown in Figure 6. An Arduino (model ET-EASY MEGA1280) is used as the hardware which is connected to the notebook PC via a USB port for sending simple pendulum motion data. The phototransistor is used as a signal detector. A simple pendulum motion test set is prepared by connecting a microcontroller with the notebook PC (Fig. 6). The pendulum moves through the infrared phototransistors which changes the output voltage from 0 to 5 volt. The output from the receivers is sent to microcontroller. The microcontroller receives the output voltage and calculates the
Figure 6:
The computer-based experiment set on a simple pendulum.

Figure 7:
Arduino codes used for data collection.

We took 13 pendulum lengths (0.20-0.80 m, with 0.05 m interval), and for each length, we used five angles (7, 10, 15, 20, and 25°). After confirming a length (i.e., 0.20 m), the first angle (i.e., 7°) was determined by using the projector. The pendulum was swung from the fixed angle 10 times (i.e.,10 periods,
The period squared achieved from each length, and each angle is shown in Table 1. The linear regressions between lengths and period squared for five angles are shown in Figure 8a-e. We observed significant positive relationships between lengths and period squared for each angle. The regression line,
Squared period form experimental data.
7 degree | 10 degree | 15 degree | 20 degree | 25 degree | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Length (m) | ||||||||||
0.20 | 0.894 | 0.800 | 0.903 | 0.815 | 0.901 | 0.811 | 0.895 | 0.801 | 0.913 | 0.834 |
0.25 | 1.003 | 1.006 | 1.014 | 1.029 | 1.014 | 1.029 | 1.017 | 1.034 | 1.031 | 1.063 |
0.30 | 1.084 | 1.174 | 1.110 | 1.233 | 1.108 | 1.228 | 1.096 | 1.202 | 1.116 | 1.245 |
0.35 | 1.180 | 1.392 | 1.184 | 1.402 | 1.188 | 1.411 | 1.191 | 1.419 | 1.208 | 1.459 |
0.40 | 1.257 | 1.581 | 1.250 | 1.561 | 1.263 | 1.596 | 1.274 | 1.622 | 1.290 | 1.664 |
0.45 | 1.340 | 1.796 | 1.331 | 1.772 | 1.354 | 1.834 | 1.367 | 1.870 | 1.380 | 1.904 |
0.50 | 1.435 | 2.059 | 1.424 | 2.029 | 1.442 | 2.081 | 1.416 | 2.004 | 1.438 | 2.068 |
0.55 | 1.470 | 2.159 | 1.483 | 2.200 | 1.499 | 2.246 | 1.511 | 2.282 | 1.530 | 2.341 |
0.60 | 1.560 | 2.433 | 1.561 | 2.436 | 1.550 | 2.458 | 1.564 | 2.447 | 1.580 | 2.496 |
0.65 | 1.619 | 2.620 | 1.610 | 2.591 | 1.627 | 2.660 | 1.638 | 2.682 | 1.640 | 2.690 |
0.70 | 1.678 | 2.815 | 1.676 | 2.808 | 1.698 | 2.885 | 1.673 | 2.799 | 1.692 | 2.861 |
0.75 | 1.751 | 3.065 | 1.733 | 3.002 | 1.732 | 3.027 | 1.751 | 3.065 | 1.753 | 3.074 |
0.80 | 1.783 | 3.178 | 1.803 | 3.251 | 1.778 | 3.205 | 1.794 | 3.218 | 1.812 | 3.284 |
The slopes of the linear regressions in Figure 8 are 4.044, 4.035, 4.045, 4.044, and 4.070, respectively and represents by:
Figure 8:
Relationships of length and period squared for the angles (a) 7°, (b) 10°, (c) 15°, (d) 20°, (e) 25°.

Then, we calculated the gravitational acceleration (g) of Nakhon Si Thammarat province. We found that average gravitational acceleration ± standard error was 9.806 ± 0.025 m/s2 which is shown in Table 2. The true value of gravitational acceleration (g) of Nakhon Si Thammarat province was checked in SensorsONE (2021) by putting latitude (8.8297614) and height (20 m) and we found
Values of gravitational acceleration (
The angular displacement ( | Gravitational acceleration (m/s2) | Error (%) |
---|---|---|
7o | 9.773 | 0.087 |
10o | 9.802 | 0.205 |
15o | 9.802 | 0.210 |
20o | 9.838 | 0.573 |
25o | 9.817 | 0.365 |
Average | 9.806 ± 0.025 | 0.253 |
Our results support the findings of other scientists (Khairurrijal et al., 2012; Pili and Violanda, 2019; Sanjaya et al., 2018; Sinacore and Takai, 2010; Yulkifli et al., 2018) who used simple pendulum motion experiment set to calculate the gravitational acceleration (g) in different places. One study in New York (USA) (Sinacore and Takai, 2010) used pendulum, telephone pickup, and sound card oscilloscope to calculate the
The development of the computer-based experiment set on a simple pendulum in harmonic motion, which experiment apparatus based on a simple pendulum, infrared sensor, Arduino microcontroller, a computer, and Wolfram Mathematica has been successfully shown, the acceleration of gravity of pendulum motion measured
In the future, a matrix real-time simple pendulum method could be developed to test the relationships between displacement/velocity/acceleration and times of motion. This further study will help the physics students to understand the pendulum motion theory easily in the laboratory.
Figure 1:

Figure 2:

Figure 3:

Figure 4:

Figure 5:

Figure 6:

Figure 7:

Figure 8:

Squared period form experimental data.
7 degree | 10 degree | 15 degree | 20 degree | 25 degree | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Length (m) | ||||||||||
0.20 | 0.894 | 0.800 | 0.903 | 0.815 | 0.901 | 0.811 | 0.895 | 0.801 | 0.913 | 0.834 |
0.25 | 1.003 | 1.006 | 1.014 | 1.029 | 1.014 | 1.029 | 1.017 | 1.034 | 1.031 | 1.063 |
0.30 | 1.084 | 1.174 | 1.110 | 1.233 | 1.108 | 1.228 | 1.096 | 1.202 | 1.116 | 1.245 |
0.35 | 1.180 | 1.392 | 1.184 | 1.402 | 1.188 | 1.411 | 1.191 | 1.419 | 1.208 | 1.459 |
0.40 | 1.257 | 1.581 | 1.250 | 1.561 | 1.263 | 1.596 | 1.274 | 1.622 | 1.290 | 1.664 |
0.45 | 1.340 | 1.796 | 1.331 | 1.772 | 1.354 | 1.834 | 1.367 | 1.870 | 1.380 | 1.904 |
0.50 | 1.435 | 2.059 | 1.424 | 2.029 | 1.442 | 2.081 | 1.416 | 2.004 | 1.438 | 2.068 |
0.55 | 1.470 | 2.159 | 1.483 | 2.200 | 1.499 | 2.246 | 1.511 | 2.282 | 1.530 | 2.341 |
0.60 | 1.560 | 2.433 | 1.561 | 2.436 | 1.550 | 2.458 | 1.564 | 2.447 | 1.580 | 2.496 |
0.65 | 1.619 | 2.620 | 1.610 | 2.591 | 1.627 | 2.660 | 1.638 | 2.682 | 1.640 | 2.690 |
0.70 | 1.678 | 2.815 | 1.676 | 2.808 | 1.698 | 2.885 | 1.673 | 2.799 | 1.692 | 2.861 |
0.75 | 1.751 | 3.065 | 1.733 | 3.002 | 1.732 | 3.027 | 1.751 | 3.065 | 1.753 | 3.074 |
0.80 | 1.783 | 3.178 | 1.803 | 3.251 | 1.778 | 3.205 | 1.794 | 3.218 | 1.812 | 3.284 |
Values of gravitational acceleration (g).
The angular displacement ( | Gravitational acceleration (m/s2) | Error (%) |
---|---|---|
7o | 9.773 | 0.087 |
10o | 9.802 | 0.205 |
15o | 9.802 | 0.210 |
20o | 9.838 | 0.573 |
25o | 9.817 | 0.365 |
Average | 9.806 ± 0.025 | 0.253 |
Eigen-structure problem optimization for multirate, multi-input multi-output systems applied to a roll rate autopilot The ordinary negative changing refractive index for estimation of optical confinement factor Model based on the principles of smart agriculture to mitigate the effects of frost and improve agricultural production in the Cundiboyacense plateau Efficient way to ensure the data security in cloud computing A novel optimal approach for control law of multi-rate systems with different rate operations Design and implementation of a safety algorithm on V2V routing protocol Utilizing augmented reality technology for teaching fundamentals of the human brain and EEG electrode placement Wearable-Gait-Analysis-Based Activity Recognition: A Review Design of IIoT device to parse data directly to scada systems using LoRa physical layer Design and implementation of a safety algorithm on V2V routing protocol A novel approach to capture the similarity in summarized text using embedded model Fast fourier transform based new pooling layer for deep learning Utilizing augmented reality technology for teaching fundamentals of the human brain and EEG electrode placement A novel approach to capture the similarity in summarized text using embedded model Fast fourier transform based new pooling layer for deep learning A novel optimal approach for control law of multi-rate systems with different rate operations Smart greenhouses using internet of things: case study on tomatoes A novel design of a smart interactive guiding robot for busy airports Optimising data visualisation in the process control and IIoT environments Using a smart watering system for controlling thrips inside mangosteen canopy in Nakhon Si Thammarat province, Southern Thailand An overview of DLMS/COSEM and g3-plc for smart metering applications Real time IoT mobile anchor nodes outdoor localization mechanism Virtual Multiphase Flow Meter using combination of Ensemble Learning and first principle physics based Investigating the effect of number of metal electrodes on performance parameters of AlGaN MSM photodetectors Performance evaluation of communication methods on electric wheelchairs as assistive technology for persons with disabilities A review on electrical vehicle adaptation in India Development of a smart watering system for controlling humidity inside mangosteen canopy in Nakhon Si Thammarat province, Southern Thailand