Volume 4,Issue 1
Research on the Design and Implementation of Inquiry-Based Simple Pendulum Experiment Teaching Using VS Code
The motion of a simple pendulum is a classical mechanics problem in physics practical teaching, involving concepts such as gravity and energy transformation. Students often find it challenging to grasp, and traditional experiments are prone to large data errors and complex procedures due to interference from factors like friction and air resistance. To address these issues, an inquiry-based experimental teaching model for the simple pendulum was developed using VS Code. An HTML-based simulation program was created to model the pendulum’s motion under a composite force field combining gravity and magnetic forces, enabling analysis of how initial angle, pendulum mass and varying magnetic environments affect oscillation amplitude and angular velocity. The instructional design integrates contextualized teaching, theory-practice integration, and digital tools to establish a progressive learning pathway—from foundational understanding to in-depth inquiry. The teaching process comprises four stages: introduction, theoretical instruction, experimental exploration, and summary with extension. Inquiry-based and demonstration methods are employed, with VS Code used to visually render motion trajectories and analytical results, thereby overcoming limitations of conventional experiments and enhancing both precision and efficiency. Through group-based hands-on activities, data analysis, and discussions, students gain a solid understanding of pendulum dynamics and physical phenomena in complex force fields, while developing scientific reasoning, inquiry skills, and proficiency in information technology. This approach—driven by authentic contexts, structured in progressive layers, and supported by digital tools—not only stimulates student engagement but also fosters core competencies in physics, offering innovative insights and practical references for the digital transformation of physics experiment instruction.
[1] Hao G, 2016, Exploration of Reform in University Physics Experiment Courses at Application-Oriented Universities. Education Observation, (5): 78–79.
[2] Ding YL, 2024, Innovative Design of Physics Experiments Based on the Phyphox App: A Case Study of “Measuring Gravitational Acceleration Using a Simple Pendulum”. Physics Teacher, (12): 71–74.
[3] Zhang XP, Han RX, 2020, Design of an Online Teaching Plan for University Physics Laboratory Courses Under the COVID-19 Pandemic: A Case Study of the “DIY Pendulum Motion Experiment”. University Physics Experiment, (33): 137–140.
[4] Chen CN, Kong WG, Cao JW, et al., 2020, Exploration of Practical Teaching for C Programming Based on Visual Studio Code. Computer Education, (05): 43–47.
[5] Liu LJ, Kou K, 2021, Research on an Experimental Teaching Model Based on Visual Studio Code: A Case Study of “Microcomputer Principles” Laboratory Teaching. Modern Information Technology, (5): 96–99, 102.
[6] Gao YP, 2023, Analysis of Instructional Design for an Experiment Verifying the Law of Conservation of Mechanical Energy Based on Algodoo. University Science Garden, (19): 47–49, 94.
[7] Wang YP, Cuo LL, Zhang QY, et al., 2025, Discussion of a Mechanics Laboratory Teaching Case Based on the TPACK Framework: A Case Study of the Experiment “Measuring Gravitational Acceleration Using a Simple Pendulum”. Laboratory Research and Exploration, (44): 173–178.