Against the backdrop of the teaching competition in the 10th National Undergraduate Physics Experiment Competition, this paper explores ways to identify ideological and political elements during the competition and integrates them effectively into the competition. It further investigates how these elements can be incorporated into physics experiment courses. By refining these elements and feeding them back into experimental teaching, the educational function of ideological and political education within the curriculum can be strengthened, ultimately enhancing teaching quality. Based on the experiment “Measuring Resistance with a Self-Assembled Wheatstone Bridge”, it integrates ideological and political concepts into the design of the experimental teaching process. The teaching process was meticulously crafted, covering the experiments background, principles, procedures, and extensions, thereby deeply integrating physics knowledge with core socialist values to achieve the educational goal of “fostering virtue through education”.