A set of bipolar pulse magnetic field generation device based on STM32 single chip microcomputeris designed.The electric pulse signal is generated by STM32 single chip microcomputer ,and the stepping motoris controlled by the electric pulse signal to drive the permanent magnet group on the plastic disc to generatebipolar pulse magnetic field.Through the control variable method , multiple groups of experimental groups andblank control groups are designed.The artificial hard water is treated with bipolar pulsed magnetic field ,and thecalcium ion concentration in the artificial hard water is measured in real time by EDTA titration. Multiplegroups of data are fitted into a curve by MATLAB software.Finally, the scale inhibition effect is judged bycomparing the variation trend of calcium ion concentration , fitting function and scale inhibition coefficient under bipolar pulsed magnetic field with different frequencies. Introducing the experimental scheme intoteaching can stimulate students’practical ability,better understand the application of magnetic field in reallife ,cultivate students’exploration spirit,and enable students to apply their knowledge to real life.