ECG source is a commonly low-frequency signal source and widely used in medical equipment maintenance,testing,demonstration,teaching experiments and other fields.Most of the current using ECG signal source is imports and expensive.But,most of the domestic production is consists of the discrete components,Causing its large size,less features.In order to meet the needs of medical equipment maintenance work,this paper designs a high-precision intelligent ECG source that is based on STM32F103 single-chip and digital to analog converter devices,which can generate square wave,sawtooth wave,triangular wave,sine wave and normal ECG waveform,abnormal ECG waveform,human ECG signal from the MIT-BIH database,pacing pulse signal,interference signal,respiratory signals and so on.The main contents of this paper are as follows:Firstly,the paper analyzed the research background,significance and research status of the subject and the working mechanism of ECG machine.Then the requirements of medical IEC standard for ECG machine are discussed in detail.The paper obtained the functional requirements and performance of ECG signal source and put forward the overall design of the system.Secondly,in the Altium Designer Release 10 development environment,STM32 microcontroller circuits and ECG signal circuits were designed in detail,including D/A conversion circuit,pacing circuit,polarization voltage,power frequency interference and respiratory circuit.In the Keil uVision4 development environment,STM32 main program,D/A conversion program,ECG simulation program,pacing signal program,intelligent control program and data transfer program were compiled.Again,in order to be more convenient and intuitive to use the system,the paper analysis and design a PC software which can produce a simulated ECG signal,Sine wave,square wave,triangular wave,sawtooth wave,simulated ECG and human physiological from MIT-BIH database and the whole system is tested synthetically.Finally,in order to solve the problem of ECG signal baseline drift which is caused by low-pass filtering,a fuzzy control method is proposed to filter the baseline drift noise based on the principle and characteristics of fuzzy control.On the MATLAB Simulink platform,fuzzy control method was used to simulate the ECG signal baseline drift noise system. |