Disclosure of Invention
The invention provides a portable detection device and a method based on a neuromuscular electrical stimulator, which are used for solving the problems that the conventional electronic detector is inaccurate in reading, insensitive in response, large in linear error and incapable of being well applied to electrical detection of a precision instrument.
In order to achieve the purpose, the invention is realized by the following technical scheme: a portable detection device based on a neuromuscular electrical stimulator comprises a shell, a circuit board, a software system and a touch screen, wherein the shell comprises: the key comprises a main shell, a key cap and a mounting and fixing piece; the circuit board includes: the system comprises a relay network, a resistance network, a signal conditioning circuit, a CPU singlechip and a power supply module; the CPU singlechip is provided with a 12-bit high-speed AD, and the 12-bit high-speed AD adopts SMT32F407VET 6; the relay network is connected with the resistance network and used for automatic control, safety protection and switching circuits; the resistance network is connected with the signal conditioning circuit and used for generating a test signal; the signal conditioning circuit is connected with the CPU singlechip and is used for amplifying signals and processing AD sampling; the power supply module is used for providing power supply required by the device; the touch screen is connected with the CPU singlechip and is used for displaying output signals and a oscillogram; further, the relay network comprises relays which adopt TQ 2-L2-5V.
Further, the resistor network comprises load resistors, and the load resistors are divided into 300 Ω load resistors, 500 Ω load resistors, 1000 Ω load resistors, 2000 Ω load resistors, 10K Ω load resistors and external extension 80 Ω load resistors; further, the signal conditioning circuit comprises an adjustable gain amplifier, the adjustable gain amplifier is used for amplifying signals by 1-128 times and adjusting the signal zero point to 1.25V, and the adjustable gain amplifier adopts PGA 280.
Furthermore, the power module comprises a lithium battery charging circuit, a 3.3V power supply, a 5V backlight and relay power supply, a +/-5V analog circuit power supply and a one-key switch circuit; the lithium battery charging circuit comprises a battery charging controller, wherein the battery charging controller adopts MCP73831T-2 ATI/OT; the 5V backlight and relay power supply comprises a first integrated switch, wherein the first integrated switch adopts TPS 61040; the +/-5V analog circuit power supply comprises a second integrated switch, and the second integrated switch adopts TPS 65133; the +/-5V analog circuit power supply comprises an integrated switch, wherein the integrated switch adopts TPS 65133; the one-key startup and shutdown circuit comprises a switching MOS tube and a one-way diode.
Furthermore, a thin film transistor driving circuit is arranged between the touch screen and the CPU single chip microcomputer, and the touch screen is a 4.3-inch capacitive touch screen.
A portable detection method based on a neuromuscular electrical stimulator, the method comprising the steps of: s1) starting the device; s2) connecting the positive and negative electrodes of the output end of the neuromuscular electrical stimulator to the signal input end of the device respectively; s3) selecting a channel and impedance on the device, and entering a test interface; s4) starting the neuromuscular electrical stimulator, starting output and testing.
Further, said step S3) comprises a step S3.1): and entering a measurement mode, and setting load impedance, a test channel, a voltage range and a frequency band range.
Further, the test parameters include current, voltage, output waveform, input voltage signal value, signal frequency, dc component, ac component, interference current, and beat frequency.
The invention has the beneficial effects that: the invention improves the sampling precision and stability by the automatic control, safety protection and switching circuit of the relay network, the switching of the load resistors with different resistance values of the resistor network, the amplification of the signal by the signal conditioning circuit and the addition of the signal zero point circuit, leads the detected electrical parameters and waveform precision to be higher, reduces the linear error, has simple structure and is widely applied in the field of medical device detection and industrial control.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, the present invention includes a housing, a circuit board, and a touch screen, the housing including: a main housing, a membrane key; the circuit board includes: the circuit comprises a relay network, a resistance network, a signal conditioning circuit, a CPU singlechip and a power supply part; the CPU singlechip is provided with a 12-bit high-speed AD, and the 12-bit high-speed AD adopts SMT32F407VET 6; the relay network is connected with the resistance network and used for automatic control, safety protection and switching circuits; the resistance network is connected with the signal conditioning circuit and used for generating a test signal; the signal conditioning circuit is connected with the CPU singlechip and is used for amplifying signals and processing AD sampling; the power supply part generates digital and analog power supplies required by the system and is used for supplying power to the system; the touch screen is connected with the CPU singlechip and is used for displaying output signals, oscillograms and measured values.
In the embodiment, the relay network comprises relays which adopt TQ 2-L2-5V; the resistance network comprises load resistors which are divided into 300 omega load resistors, 500 omega load resistors, 1000 omega load resistors, 2000 omega load resistors, 10K omega load resistors and external extension 80 omega load resistors; the signal conditioning circuit comprises an adjustable gain amplifier, the adjustable gain amplifier is used for amplifying signals by 1-128 times and adjusting signal zero to 1.25V, and the adjustable gain amplifier adopts PGA 280; the power supply module comprises a lithium battery charging circuit, a 3.3V power supply, a 5V backlight and relay power supply, a +/-5V analog circuit power supply and a one-key switching circuit; the lithium battery charging circuit comprises a battery charging controller, wherein the controller adopts MCP73831T-2 ATI/OT; the 3.3V power supply comprises an IC chip, wherein the IC chip adopts TPS62260 DDC; the 5V backlight and relay power supply comprises a first integrated switch, wherein the first integrated switch adopts TPS 61040; the +/-5V analog circuit power supply comprises a second integrated switch, and the second integrated switch adopts TPS 65133; the one-key startup and shutdown circuit comprises a switching MOS tube and a one-way diode.
In this embodiment, a thin film transistor driving circuit is arranged between the touch screen and the CPU single chip microcomputer, and the touch screen is a 4.3-inch capacitive touch screen.
The working principle of the invention is as follows: according to test setting, the software control relays DQ 1-DQ 3 select one or two of signal access points J1-J3, the software control relays DQ 4-DQ 8 select a load resistor network for testing, and DQ8 is used for selecting an external resistor and an internal relay. After voltage test signals are divided by measuring voltage dividing resistors R238-R242 and R244, the voltage test signals are sent to 7 pins of the PGA280, namely, the channel 2 for amplification and signal median lifting, the conditioned signals are sent to 23 pins for AD sampling, and according to the AD value, the CPU automatically adjusts the amplification times of the PGA280 to a proper value, so that the integrity of the signals is ensured, and complete measurement data is obtained. The signal median voltage input pin of the PGA280 is 3 pins, and the signal median voltage input by the 3 pins of the PGA280 is output by the DA 30 pin of the CPU; and the realization of software adjustability.
In the present embodiment, during the current test, the current test signal is converted from the current signal into the voltage signal by the R274 and sent to the channel 1 of the PGA280, and the other signal flow and processing methods are the same as the above-mentioned working principle.
A portable detection method based on a neuromuscular electrical stimulator, the method comprising the steps of: s1) starting the device; s2) connecting the positive and negative electrodes of the output end of the neuromuscular electrical stimulator to the signal input end of the device respectively; s3) selecting a channel and impedance on the device, entering a test interface, entering a measurement mode, and setting a load impedance, a test channel, a voltage range and a frequency band range; s4) starting up the neuromuscular electrical stimulator, starting output, testing to obtain test parameters, including: current (RMS), voltage (RMS), current (MAX), voltage (MAX), output waveform, input voltage signal value, signal frequency, dc component, ac component, interference current, and beat frequency.
In this embodiment, when testing the current (MAX, RMS) and the voltage (MAX, RMS), the signal selects one, two or three of 1 to 3 channels through the relay network, is accessed to the load resistance network and the PGA280, and then is sampled through the high-speed AD of the CPU to obtain original data, and the CPU performs fourier transform processing to obtain the current (MAX, RMS) and voltage (MAX, RMS) values; when an input signal value is tested, the signal passes through a relay network, a load resistance network and a PGA280 and then is subjected to high-speed AD sampling of a CPU to obtain original data, and the sampling frequency can be changed from 10K to 100K by changing the sampling time; when testing the direct current component, obtaining original data through measurement, and obtaining the direct current component through Fourier transform processing by a CPU; when the alternating current component is tested, original data is obtained through measurement, and the alternating current component is obtained through Fourier transform processing by the CPU; when the interference current and the beat frequency are tested, the interference current and the beat frequency are generally formed by 2 or more channel signals, wherein one channel signal has specific amplitude and frequency, and the other channel signal has specific amplitude and variable frequency; the effective value of the interference current is realized by superposition of input signals.
According to the embodiment, the relay network automatic control, safety protection and conversion circuit, the load resistors with different resistance values of the resistor network are switched, the signal conditioning circuit amplifies the signal and adds the signal zero point circuit, the sampling precision and stability are improved, the detected electrical parameters and waveform precision are higher, the linear error is reduced, the structure is simple, and the relay network automatic control, safety protection and conversion circuit is widely applied to the field of medical device detection and industrial control.
Finally, the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the claims of the present invention.