The development of a cost-effective experiment set is essential for teaching and learning physics in educational institutes. We aim to develop a computer-based simple pendulum experiment set consisting of a simple pendulum, infrared phototransistor, and Arduino board for calculating the gravitational acceleration (g). We used 13 pendulum lengths with five angles for each length to measure the period of motion. We found linear relationships between lengths and period-squared. The