Surface electromyography(SEMG)is a bioelectrical signal produced by changes in the concentration of liquid and particles containing electrolyte properties in the blood of the body when contracting.In the medical field,muscle activity can be detected non-invasively by analyzing various parameters of surface electromyography signals.In contrast,electrical stimulation of muscles and nervous system is also an important method for muscle activity rehabilitation and neurological rehabilitation.Despite this,in the domestic medical field,SEMG acquisition and analysis technology and equipment have not yet been widely popularized.Most of the key technologies are in the hands of overseas companies.Moreover,in medical instruments,skin temperature and pulse are used as important indicators to feedback the real-time physical condition of patients.However,most biofeedback therapy devices do not include skin temperature and pulse detection capabilities.Therefore,it is necessary to study the myoelectric signal acquisition and stimulation technology,and to add the safety limits of skin temperature and pulse.This paper presents a multi-functional biofeedback neurological rehabilitation therapy instrument.After experimental test,the collection frequency of SEMG meets the design requirements,the center frequency of the notch is 50 Hz,the power frequency interference can be eliminated,the stimulation current is stable,the error is ≤±1%,the skin temperature and pulse measurement are accurate,and the software system has good stability.And it can pass the Chinese standards,industry-related standards and the national requirements for electromagnetic compatibility design of medical devices.In this paper,we design the hardware of each part of the system from the functional requirements of the product,and write independent hardware support packages according to the characteristics of the hardware.Then we call the hardware support package through the Protothreads thread system,join the process service,complete the software design,and finally use Photoshop and Mockplus performs UI design and completes the product design.In terms of hardware design,the core main control module uses STMicroelectronics’ s STM32F103VET6 minimum system board;the temperature sensor uses the medical digital temperature sensor DS18B20;the pulse heart rate sensor uses the medical grade analog pulse sensor CJMCU-Pulse;The circuit uses a differential pressure amplifier,a second-order Butterworth bandpass filter,a notch filter,and an LTC1417 AI analog-to-digital converter.The stimulus circuit uses a MOS tube voltage-controlled constant current source circuit;the power supply circuit uses 220 V mains and Li-on lithium battery dual power supply design to ensure the accuracy of the EMG acquisition circuit.In software design,the laPtino embedded integrated development system is proposed,in which LabWindowsCVI uses C89 language for PC design;Protothreads process system implements process scheduling;Arduino for Keil improves the programming efficiency of embedded software.Innovative use of the process status table instead of the traditional program flow chart performance show the software running process.In the temperature filtering algorithm,a triple filtering algorithm is used to ensure the measurement accuracy.In terms of debugging,this paper simulates the physiological state of the patient for testing to obtain accurate test results.Two electromagnetic compatibility tests of medical instruments in China,EMS and EMI,were carried out,and the corresponding hardware adjustments were adjusted through the test results.Finally,the device meets the design requirements of the product,which is proved that the hardware system is stable and interference-free,and the software and algorithms are stable. |