This paper analyzes the characteristics of iron particles and copper particles in the alternating magnetic field with the change of excitation frequency, and proposes a method of using microfluidic oil detection sensor to achieve the distinction of mixed metals. The magnetic field strength of the coil is changed by changing the excitation frequency, which in turn makes the metal particles of different materials act with different strengths in the magnetic field, and realizes the accurate detection of the particles. In the article, firstly, the magnetization effect of the particles in the alternating magnetic field is simulated by the simulation software, the change of the magnetization effect with frequency is simulated, and the change curve of the inductance signal when the particles pass is obtained. Then the experimental verification is carried out by building a test bench, and the experimental results are consistent with the simulation results, which all confirm the feasibility of realizing the detection of aliased particles by frequency conversion. The method provides a new reference direction for the precise and accurate detection of oil detection technology, and has good research value.