
Figure 1:
A simple pendulum swinging back and forth about the pivot P. If the angle is small about 10° or less, the swinging is approximately simple harmonic motion.

Figure 2:
The structure of the experimental set; (a) experimental set, and (b) fix swing angle.

Figure 3:
Infrared phototransistor circuit.

Figure 4:
(a) Infrared LEDs circuit, (b) infrared LEDs board.

Figure 5:
(a) Phototransistor receiver circuit, (b) phototransistor receiver board.

Figure 6:
The computer-based experiment set on a simple pendulum.

Figure 7:
Arduino codes used for data collection.
Table 1.
Squared period form experimental data.
| 7 degree | 10 degree | 15 degree | 20 degree | 25 degree | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Length (m) | T (s) | T2(s2) | T (s) | T2 (s2) | T (s) | T2 (s2) | T (s) | T2 (s2) | T (s) | T2(s2) |
| 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 |

Figure 8:
Relationships of length and period squared for the angles (a) 7°, (b) 10°, (c) 15°, (d) 20°, (e) 25°.