A multi-channel microelectrode bioimpedance testing system and method
By designing a multi-channel microelectrode bioimpedance test system, using multi-stage filter capacitor arrays and zero-crossing sine wave attenuation technology, accurate impedance measurement of high-throughput electrode arrays is achieved, solving the problem that the existing technology cannot meet weak currents and high-pass The problem of automatic measurement of quantity provides stable low-noise power supply and high-fidelity signal amplification, suitable for impedance testing of neural probes.
Patent Information
- Application Number
- CN202011003530.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-22
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-09-22
AI Technical Summary
The existing impedance testing system cannot meet the requirements of weak current, high throughput, and automation of neural probe impedance tests, and cannot effectively measure the impedance of high-throughput electrode arrays.
A multi-channel microelectrode biological impedance testing system is designed, including MCU control circuit, multi-stage power supply circuit, sine wave generation circuit, attenuator circuit, measurement circuit, amplifier circuit, multi-channel ADC conversion circuit, upper computer communication circuit and The data selector circuit provides stable low-noise power supply through a multi-stage filter capacitor array, generates zero-crossing sine waves for 2500 times attenuation, and uses amplifiers and ADC conversion circuits to achieve accurate impedance measurement.
It realizes nano-ampere test current, can be measured without damaging the electrode, the system noise is almost eliminated, and supports accurate measurement of multi-channel electrode impedance, and is suitable for invasive brain-computer interfaces and neural stimulation.
Smart Images

Figure CN112180166B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of bioimpedance testing, and in particular relates to a multi-channel microelectrode bioimpedance testing system and method. Background Art
[0002] With the continuous development of biotechnology, human research on the brain has never stopped. At present, brain probe electrodes are constantly evolving towards miniaturization, integration, and multi-channels. The most direct measure of the quality of probe electrodes is the impedance of the electrodes. How to quickly test the impedance of high-throughput electrode arrays has become a problem that troubles many researchers. Most of the impedance test systems currently on the market are used to test whether circuit boards meet production requirements, rather than to measure the impedance of neural probes, and cannot meet the weak current, high throughput, and automation requirements of neural probe impedance testing. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-channel microelectrode bioimpedance testing system and method to achieve accurate impedance measurement of multi-channel bioelectrodes and meet the needs of researchers in related fields.
[0004] The present invention provides the following technical solutions:
[0005] A multi-channel microelectrode bioimpedance test system, comprising an MCU control circuit, a multi-stage power supply circuit, a sine wave generation circuit, an attenuator circuit, a measurement circuit, an amplifier circuit, a multi-channel ADC conversion circuit, a host computer communication circuit and a data selector circuit;
[0006] The multi-stage power supply circuit is provided with a multi-stage filter capacitor array and is used to provide a stable and low-noise power supply voltage for the entire system; the sine wave generation circuit includes a DAC circuit and an operational amplifier circuit, the DAC circuit is electrically connected to the MCU control circuit, and is used to receive the instruction of the MCU control circuit to generate a non-zero-crossing sine wave, and the operational amplifier circuit is used to convert the non-zero-crossing sine wave output by the DAC circuit into a zero-crossing sine wave; the attenuator circuit is used to attenuate the zero-crossing sine wave by 2,500 times; the measurement circuit is provided with an impedance to be measured, and the impedance to be measured is respectively connected to the attenuator circuit and the amplifier circuit; the amplifier circuit is used to amplify the measured voltage of the impedance to be measured to a level that can be accurately collected by the multi-channel ADC conversion circuit; the multi-channel ADC conversion circuit is connected to the MCU control circuit, and is used to sample the original zero-crossing sine wave data and the measured voltage amplified by the amplifier circuit; the host computer communication circuit is used for the MCU control circuit to communicate with the host computer; the data selector circuit is used for the MCU control circuit to select the corresponding measurement channel; the MCU control circuit is used to schedule each circuit module and store the impedance calculation data to be measured.
[0007] Preferably, the multi-stage power supply circuit includes a USB power supply circuit, a power supply circuit and a voltage stabilizing filter circuit connected in sequence, and the multi-stage filter capacitor array includes a first-stage filter capacitor array, a second-stage filter capacitor array and a third-stage filter capacitor array; the USB power supply circuit is used to provide USB power to the inside of the system; the power supply circuit is used to boost and negatively pressure the voltage connected to the USB power supply circuit after passing through the first-stage filter capacitor array; the voltage stabilizing filter circuit is used to filter the boosted and negatively pressured voltage of the power supply circuit through the second-stage filter capacitor array and the third-stage filter capacitor array to a stable and low-noise power supply voltage to the entire system.
[0008] Preferably, the operational amplifier circuit is a reverse summing circuit in which a single op amp is connected to a power supply, and the reverse summing circuit is used to convert a DAC output sine wave that does not cross zero into a sine wave that crosses zero; the amplifier circuit uses a rail-to-rail precision op amp to amplify the impedance measurement voltage to a level that can be accurately collected by the multi-channel ADC conversion circuit.
[0009] Preferably, pull-up resistors are provided between the sine wave generating circuit and the amplifier circuit and the multi-channel ADC conversion circuit respectively, and the pull-up resistors are used to adjust the measurement voltage to a range that can be measured by the multi-channel ADC conversion circuit.
[0010] Preferably, the data selector circuit includes 4 ADG1206MUX chips and their peripheral circuits, which are electrically connected to the MCU control circuit, and are used for the MCU control circuit MCU to select the corresponding measurement channel to achieve the purpose of multi-channel measurement; the MCU control circuit includes an STM32F407VGT6 chip and its peripheral circuits, and the STM32F407VGT6 chip is connected to the system through direct plug pins.
[0011] A measurement method of a multi-channel microelectrode bioimpedance testing system comprises the following steps:
[0012] Adopting a multi-stage power supply mode, the USB power supply is processed by multi-stage filtering to provide a stable and low-noise power supply voltage for the entire system;
[0013] The MCU control circuit communicates with the host computer through the host computer communication circuit, and sets the system test frequency, sampling times, sampling interval and the number of channels to be tested through the host computer;
[0014] When the MCU control circuit receives the measurement start signal sent by the host computer, it controls the sine wave generation circuit to generate a continuous zero-crossing sine wave. The multi-channel ADC conversion circuit reads its instantaneous value in real time and sends the value to the MCU through the SPI communication method. The MCU directly sends the data to the host computer through the host computer communication circuit without processing.
[0015] The zero-crossing sine wave is connected to the measurement circuit after being attenuated 2,500 times by the attenuator circuit. The amplifier circuit amplifies the voltage divided by the impedance to be measured in the measurement circuit and outputs it. The pull-up resistor pulls the voltage output by the amplifier circuit to near a suitable positive reference voltage to adapt to the range of the ADC measurement circuit. The multi-channel ADC conversion circuit reads the instantaneous value of the output voltage in real time and sends the value to the MCU via SPI communication.
[0016] The MCU calculates the received voltage value to obtain the impedance data to be measured and stores and counts it;
[0017] After the system completes the sampling times set by the host computer, the MCU takes the RMS value of the voltage measured by the impedance test part and sends it to the host computer through the host computer communication circuit. After the host computer confirms receipt, it sends a data packet for switching channels. When the MCU reads the instruction, it first delays the sampling interval time set before, and then controls the data selector circuit to switch to the next channel, repeats the above steps, and measures the resistance to be measured in this channel.
[0018] Preferably, the multi-stage power supply mode includes the following steps: after the USB power supply is connected to the system, it first passes through the first-stage filter capacitor array, and then connects to two MC34063 chips for boosting and negative pressure respectively, and then passes through the next-stage filter capacitor array again, and connects to LT1964 and LT1761 chips. After the two chips output +5V and -5V respectively, it passes through the first-stage filter capacitor array again, and is finally output to the entire system for use.
[0019] Preferably, the method for generating a zero-crossing sine wave comprises the following steps: an MCU control circuit controls eight GPIO ports connected to a DAC digital-to-analog converter to generate high and low level changes, and the change of each GPIO port corresponds to an output of the DAC. After determining the timing of the GPIO port changing the high and low levels, a sine wave can be generated at the output end of the DAC. The system generates a zero-crossing ±5V sine wave that meets the measurement requirements by performing inverse summation of the sine wave output by the DAC and the +5V voltage generated by the LT1761 through a single operational amplifier. A multi-channel ADC conversion circuit reads the instantaneous value of the sine wave in real time, which is used for impedance calculation and transmitted to the host computer for display, so that the user can check whether the waveform is correct.
[0020] Preferably, the measuring circuit adopts a voltage divider circuit, and the method for calculating the impedance to be measured comprises the following steps: according to Ohm's law, the following formula is adopted:
[0021] Right now:
[0022] The above parameters V1, V2 and the impedance to be measured are complex numbers, and their imaginary parts represent the phase relationship in the circuit. When a known voltage V1 is applied, where V1 is an attenuated zero-crossing sine wave, and V2 is measured, where V2 is the impedance voltage to be measured after being amplified by the amplifier circuit, the impedance to be measured can be calculated according to the formula, where 1M is the voltage divider resistance in the voltage divider circuit.
[0023] Preferably, after completing the resistance measurement of all channels that need to be tested, the MCU enters a standby mode and waits for the host computer to send a new control packet.
[0024] The beneficial effects of the present invention are as follows: the test current realized by the circuit design of the present system can be at the nanoampere level, and the electrode can be not damaged while the test is completed. Thanks to this, the present system can be directly connected to the body for measurement without generating any stimulation; the system is powered by a multi-stage power supply, and the noise generated is almost completely eliminated, providing system test performance; the present system design can generate a zero-crossing sinusoidal AC signal, filtering out the DC component, and can ensure the normal operation of the operational amplifier in the circuit, and can more effectively transmit voltage conversion information; it is convenient for impedance solution; the data selector circuit has extremely low switching noise, and arbitrary channel selection can be achieved during the design and implementation; the amplifier circuit realizes high-fidelity signal amplification to prevent large deviations in the calculated impedance value; the present invention can measure the electrode impedance of multiple channels at a time while providing microcurrent, and can be widely used in the fields of invasive brain-computer interface, neural stimulation, behavior prediction, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0026] Figure 1 It is a schematic diagram of the system structure of the present invention;
[0027] Figure 2 is a schematic diagram of a power supply circuit of the present invention;
[0028] Figure 3 It is a schematic diagram of a voltage stabilizing and filtering circuit of the present invention;
[0029] Figure 4 is a schematic diagram of a DAC circuit of a sine wave generating circuit of the present invention;
[0030] Figure 5 It is a schematic diagram of a reverse summing circuit of a sine wave generating circuit of the present invention;
[0031] Figure 6 is a schematic diagram of an attenuator circuit according to an embodiment of the present invention;
[0032] Figure 7 is a schematic diagram of a measuring circuit of the present invention;
[0033] Figure 8 is a schematic diagram of an amplifier circuit of the present invention;
[0034] Fig. 9 It is a schematic diagram of a multi-channel ADC conversion circuit of the present invention;
[0035] Fig.10 It is a schematic diagram of the host computer communication circuit of the present invention;
[0036] Fig.11 It is a schematic diagram of the MCU control circuit of the present invention;
[0037] Fig.12 It is a schematic diagram of the measurement principle of the present invention;
[0038] Fig.13 It is a schematic diagram of a circuit for measuring a specific implementation of the present invention;
[0039] Fig.14 It is a schematic diagram of the data packet format of an embodiment of the present invention;
[0040] Fig.15 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0041] like Figure 1As shown, a multi-channel microelectrode bioimpedance testing system comprises an MCU control circuit, a multi-stage power supply circuit, a sine wave generating circuit, an attenuator circuit, a measuring circuit, an amplifier circuit, a multi-channel ADC conversion circuit, a host computer communication circuit and a data selector circuit; the multi-stage power supply circuit is provided with a multi-stage filter capacitor array and is used to provide a stable and low-noise power supply voltage for the entire system; the sine wave generating circuit comprises a DAC circuit and an operational amplifier circuit, the DAC circuit is electrically connected to the MCU control circuit and is used to receive an instruction from the MCU control circuit to generate a sine wave that does not cross zero, and the operational amplifier circuit is used to convert the sine wave output by the DAC circuit that does not cross zero into a sine wave that crosses zero Wave; the attenuator circuit is used to attenuate the zero-crossing sine wave by 2,500 times; the measurement circuit is provided with an impedance to be measured, and the impedance to be measured is connected to the attenuator circuit and the amplifier circuit respectively; the amplifier circuit is used to amplify the measured voltage of the impedance to be measured to the level that can be accurately collected by the multi-channel ADC conversion circuit; the multi-channel ADC conversion circuit is connected to the MCU control circuit, and is used to sample the original zero-crossing sine wave data and the measured voltage amplified by the amplifier circuit; the host computer communication circuit is used for the MCU control circuit to communicate with the host computer; the data selector circuit is used for the MCU control circuit to select the corresponding measurement channel; the MCU control circuit is used to schedule each circuit module and store the calculated data of the impedance to be measured. The electrodes used for bioelectric signal monitoring are extremely thin and cannot withstand excessive voltage and current. The test current designed and implemented by this system is at the nanoampere level, which can complete the test without damaging the electrodes. Thanks to this, this device can even be directly connected to the body for measurement without any stimulation. There are hundreds or thousands of electrodes used for bioelectric signal monitoring. This system can measure the impedance of multiple channels in one operation to meet the electrode impedance test of multiple channels.
[0042] like Figure 1-Figure 3As shown, the multi-stage power supply circuit includes a USB power supply circuit, a power supply circuit and a voltage stabilizing filter circuit connected in sequence; the USB power supply circuit is a conventional USB power supply port, which is used to provide USB power supply to the system; the power supply circuit is two MC34063 power supply chips and their peripheral circuits, which are electrically connected to the USB power supply circuit, and are respectively used to boost the 5V power supply connected to the USB port to 8.7V and negatively phase the 5V power supply connected to the USB port to -8.7V, and then input them to the corresponding voltage stabilizing filter circuit of the next stage for low noise filtering processing; the voltage stabilizing filter circuit is a LT1964 and Two LT1761 low-noise low-dropout linear regulators and their peripheral circuits are electrically connected to the upper power supply circuit respectively, and are used to filter the +8.7V and -8.7V voltages output by the power supply circuit to +5V and -5V, and then output them to the entire system, providing a stable and low-noise power supply voltage for the entire system. Since the output current limit of LT1761 is 100mA, this system uses two LT1761s to output +5V voltage, and LT1964 is used to generate -5V voltage for the amplifier circuit used in this system. In theory, the current limit value will not be reached, so only one is used.
[0043] Specifically, unlike other devices that are directly powered by a single power supply, this device processes the power connected to the USB through five levels. After the USB power supply is connected to this system, it first passes through the first-level filter capacitor array, and then connects to two MC34063 chips for boosting and negative pressure respectively, and then passes through the next-level filter capacitor array again, and connects to LT1964 and LT1761 chips. After the two chips output +5V and -5V respectively, they pass through the first-level filter capacitor array again, and finally can be output to the entire system for use. At this point, the noise generated by the system power supply is almost completely eliminated.
[0044] like Figure 4-Figure 5 As shown, the sine wave generation circuit of this system is divided into two parts. The first part is the DAC circuit, which is electrically connected to the MCU control circuit, used to receive the instructions of the MCU, and to generate a sine wave that does not cross the zero point by adjusting the amplitude and frequency of the digital-to-analog conversion (due to the limitation of the DAC, a sine wave that crosses the zero point cannot be directly generated). Since a sine wave that does not cross the zero point will bring DC bias and greater noise filtering difficulty to the measurement circuit, it is necessary to perform zero-crossing processing at the next level; the second part is a zero-crossing sine wave circuit realized by a single op amp combined with a sine wave that does not cross the zero point of the previous level, which converts the sine wave that does not cross the zero point of the DAC output into a sine wave that crosses the zero point by connecting to +5V and then performing anti-phase summation.
[0045] like Figure 6As shown, the attenuator circuit used in this system is a resistor connected in series with the circuit and a T-type grounded resistor. The resistance value needs to be calculated according to the specific circuit. The resistance value in the schematic diagram is only used as an example to achieve 2500 times attenuation of the zero-crossing sine wave. Figure 6 As shown, it corresponds to the resistors R2 and R3.
[0046] like Figure 7 As shown, the measurement circuit of this system can be composed of a voltage-dividing resistor and an impedance to be measured. A known sinusoidal voltage (i.e., the attenuated sinusoidal wave generated by the sinusoidal wave generating circuit described above) is applied between the two, and the voltage on the impedance to be measured is measured multiple times. Finally, the root mean square of the multiple measurement values is taken to achieve accurate measurement of the impedance to be measured.
[0047] like Figure 8 As shown in the figure, the amplifier circuit of this system can use TLC2272AC and TS922 rail-to-rail precision op amps, which are used to amplify the impedance measurement voltage to a level that can be accurately collected by the ADC. The amplifier circuit uses a high-performance rail-to-rail precision op amp to achieve high-fidelity signal amplification and prevent large deviations in the calculated impedance value.
[0048] like Figure 1 and Fig. 9 As shown, the multi-channel ADC conversion circuit of this system can use the AD7606-4ADC conversion chip and its peripheral circuit, which is connected and communicated with the MCU control circuit through the SPI port, and is used to sample the original sine wave data and the amplified measurement voltage. Further, the pull-up resistor, that is, the ADC measurement end is connected to a 10K ohm resistor of 5V, which is used to pull up the ADC measurement voltage that originally oscillates near zero to oscillate near 2.5V, which is used to facilitate data resolution and adjust the measurement voltage to the range that the ADC can measure.
[0049] like Fig.10 As shown, the host computer communication circuit of this system adopts the CH340GUSB to serial port chip and its peripheral circuits, which are electrically connected to the MCU control circuit. By connecting the MCU serial port line to the corresponding serial port on the chip, serial port communication between the MCU and the PC can be achieved.
[0050] like Fig.11As shown, the MCU control circuit of this system uses STM32F407VGT6 and its peripheral circuits, which are connected to the system through direct plug pins, and are used to schedule the remaining circuit modules to ensure the normal operation of the entire system and perform preliminary data processing. At the same time, it is convenient to plug and unplug to upgrade the firmware or troubleshoot the entire system. The data selector circuit is 4 ADG1206MUX chips and their peripheral circuits, which are electrically connected to the MCU control circuit. The MCU can select the corresponding measurement channel. The data selector circuit has extremely low switching noise, and any channel selection can be achieved during the design implementation. Furthermore, the MCU control circuit is a detachable design, which is convenient for subsequent function expansion and chip computing power upgrade.
[0051] like Fig.12 and Fig.13 As shown, a measurement principle of a multi-channel microelectrode bioimpedance test system is that the MCU control circuit controls the sine wave generation circuit to generate a sinusoidal AC signal that passes through the zero point after continuous modulation, and the multi-channel ADC conversion circuit reads the instantaneous value of the sinusoidal AC signal that passes through the zero point in real time, and sends the value to the MCU; at the same time, the sinusoidal AC signal that passes through the zero point is connected to the measurement circuit after being attenuated 2,500 times by the attenuator circuit, the amplifier circuit amplifies the voltage allocated to the impedance to be measured and outputs it, and the pull-up resistor pulls the voltage output by the amplifier circuit from 0V to 2.5V. Since the ADC measurement circuit is not connected to a negative voltage reference, the above measurement value needs to be pulled up to a suitable positive reference voltage to adapt to the range of the ADC measurement circuit, and the multi-channel ADC conversion circuit reads its instantaneous value in real time and sends it to the MCU; the MCU control circuit integrates the voltage data collected by the ADC measurement circuit to solve the impedance to be measured.
[0052] A measurement method of a multi-channel microelectrode bioimpedance testing system comprises the following steps:
[0053] Adopting a multi-stage power supply mode, the USB power supply is processed by multi-stage filtering to provide a stable and low-noise power supply voltage for the entire system;
[0054] The MCU control circuit communicates with the host computer through the host computer communication circuit, and sets the system test frequency, sampling times, sampling interval and the number of channels to be tested through the host computer;
[0055] When the MCU control circuit receives the measurement start signal sent by the host computer, it controls the sine wave generation circuit to generate a continuous zero-crossing sine wave. The multi-channel ADC conversion circuit reads its instantaneous value in real time and sends the value to the MCU through the SPI communication method. The MCU directly sends the data to the host computer through the host computer communication circuit without processing.
[0056] The zero-crossing sine wave is connected to the measurement circuit after being attenuated 2,500 times by the attenuator circuit. The amplifier circuit amplifies the voltage divided by the impedance to be measured in the measurement circuit and outputs it. The pull-up resistor pulls the voltage output by the amplifier circuit to near a suitable positive reference voltage to adapt to the range of the ADC measurement circuit. The multi-channel ADC conversion circuit reads the instantaneous value of the output voltage in real time and sends the value to the MCU via SPI communication.
[0057] The MCU calculates the received voltage value to obtain the impedance data to be measured and stores and counts it;
[0058] After the system completes the sampling times set by the host computer, the MCU takes the RMS value of the voltage measured by the impedance test part and sends it to the host computer through the host computer communication circuit. After the host computer confirms receipt, it sends a data packet for switching channels. When the MCU reads the instruction, it first delays the sampling interval time set before, and then controls the data selector circuit to switch to the next channel, repeats the above steps, and measures the resistance to be measured in this channel.
[0059] Specific implementation, such as Fig.15 As shown, the measurement process includes the following steps:
[0060] 1) The equipment is turned on, the power supply circuit and the voltage stabilizing filter circuit work, and provide a stable working voltage to each device;
[0061] (1-1) It should be noted that this system uses a multi-stage power supply mode. Since the measurement current used in this system is extremely small (nanoampere level), the noise coefficient of the power supply voltage has a great impact on the performance of this system. This system uses two MC34063 circuits to first boost the +5V voltage input from the USB to +8.7V and reverse it to -8.7 respectively. After multi-stage capacitor filtering, it is input to two LT1761 and one LT1964 chips to generate a stable and low-noise 5V power output. After multi-stage capacitor filtering again, it can be output to power each device;
[0062] 2) MCU initializes the system hardware and software resources and sends a handshake packet to the host computer through the host computer communication circuit (i.e. Fig.14 The upper computer receives and identifies the packet header of the specified format as shown in the figure, and can determine that the lower computer is already working), transmits the working status signal to the upper computer, and waits for the upper computer to transmit the response packet to proceed to the next step;
[0063] (2-1) Here we only explain the interaction mode between the host computer and the slave computer (MCU control circuit). The format and length of the specific data packet (sending packet and response packet are collectively referred to as data packet) need to be modified accordingly according to the usage scenario;
[0064] 3) The user sets the test frequency, sampling times, sampling interval and number of channels to be tested on the host computer. The host computer informs the lower computer of the specific parameters of the task to be executed through a response packet transmitted regularly (sent to the lower computer every 10ms);
[0065] (3-1) The test frequency determines the number of times the lower computer (MCU control circuit) samples the voltage at the impedance end to be measured per second. The unit of this parameter is Hertz, with a maximum of 5000HZ (i.e., reading measurement data 5000 times per second) and a minimum of 1HZ (i.e., reading measurement data once per second). The number of sampling times refers to how many times the voltage at the impedance end to be measured is required to complete a measurement (to complete a measurement, the root mean square of multiple sampling results is required). When the test frequency is fixed, increasing the number of sampling times can improve the measurement accuracy, but it will also lead to a longer measurement time for each channel. Conversely, reducing the number of sampling times can shorten the measurement time for each channel, but it will also sacrifice a certain degree of measurement accuracy. The test frequency and the number of sampling times jointly determine the time required to measure the impedance of each channel, and their specific relationship can be determined by this formula:
[0066]
[0067] The sampling interval refers to the time after each channel measurement is completed. In order to ensure that the circuit jump interference generated when the data selector switches channels disappears or becomes small enough, the system needs to wait for a period of time before starting the measurement of the next channel. The number of channels to be tested is the number of all channels that need to be measured in this measurement. This system supports continuous measurement of up to 64 channels. Any channel number less than or equal to 64 is allowed in this system.
[0068] 4) When the MCU receives the measurement start signal sent by the host computer, it first controls the sine wave generation circuit to generate a continuous sine wave, and the multi-channel ADC conversion circuit reads its instantaneous value in real time and sends the value to the MCU via SPI communication. The MCU directly sends the data to the host computer through the host computer communication circuit without processing;
[0069] (4-1) The method for generating a sine wave here is that the MCU control circuit controls the eight GPIO ports connected to the DAC digital-to-analog converter to generate high and low level changes. The change of each GPIO port corresponds to an output of the DAC. After determining the timing of the GPIO port's high and low level changes, a sine wave can be generated at the output end of the DAC. Since DAC cannot output negative voltage, the sine wave generated by this method cannot be directly applied to the impedance to be measured (if the sine wave does not pass through the zero point, a DC component will be introduced into the circuit, and this component is very susceptible to external noise interference. Since the measurement voltage and measurement current used in this system are extremely small, once interference occurs, it will greatly affect the accuracy of the test results after being amplified by the amplifier circuit). This system generates a ±5V sine wave with a zero-crossing point that meets the measurement requirements by inverting and summing the sine wave output by the DAC and the +5V voltage generated by the LT1761 through a single operational amplifier; the multi-channel ADC conversion circuit reads the instantaneous value of the sine wave in real time, which is used for the subsequent impedance solution (see 6-1 for details) and is transmitted to the host computer for display, so that the user can check whether the waveform is correct;
[0070] The sine wave generated by this system is a sinusoidal AC signal that passes through the zero point after modulation. Because this method filters out the DC component, it can ensure the normal operation of the operational amplifier in the circuit and can more effectively transmit voltage conversion information, which is convenient for subsequent impedance calculation.
[0071] 5) The sine wave is connected to the measurement circuit after passing through the attenuator circuit;
[0072] (5-1) The attenuator circuit is composed of two resistors, whose resistance values need to be determined according to the resistance values of the voltage divider resistors adapted to the impedance to be measured, and is used to achieve the 2,500-fold attenuation of the zero-crossing sine wave mentioned above;
[0073] 6) The amplifier circuit amplifies the voltage received by the impedance to be measured and outputs it;
[0074] (6-1) The method of measuring impedance of this device mainly relies on a simple voltage divider circuit. The circuit principle is as follows Figure 7 As shown, according to Ohm's law, the parameters of the circuit can be determined by the following formula:
[0075]
[0076] Right now:
[0077]
[0078] This formula can be extended to AC sinusoidal signals, that is, the above parameters V1, V2 and the impedance to be measured are complex numbers, and their imaginary parts represent the phase relationship in the circuit. When a known voltage V1 (i.e., the attenuated zero-crossing sine wave mentioned above) is applied and V2 (i.e., the impedance voltage to be measured after being amplified by the amplifier circuit) is measured, the impedance to be measured can be solved according to this formula;
[0079] 7) The pull-up resistor pulls the voltage output by the amplifier circuit from oscillating near 0V to oscillating near 2.5V;
[0080] (7-1) Since the ADC measurement circuit is not connected to a negative voltage reference, the above measurement value needs to be pulled up to a suitable positive reference voltage to match the range of the ADC measurement circuit;
[0081] 8) The multi-channel ADC conversion circuit reads its instantaneous value in real time and sends the value to the MCU via SPI communication;
[0082] 9) MCU stores and counts the received impedance data to maintain continuous operation of the system;
[0083] 10) After completing the sampling times set by the host computer, the MCU takes the root mean square of the voltage measured by the impedance test part and sends it to the host computer through the host computer communication circuit;
[0084] 11) After the host computer confirms receipt, it will send a data packet for switching channels. When the MCU reads the instruction, it will first delay the sampling interval time set before, and then control the data selector circuit to switch to the next channel, repeating steps 1) to 10) to measure the resistance to be measured in this channel;
[0085] 12) After completing the resistance measurement of all channels that need to be tested, the MCU enters the standby mode and waits for the host computer to send a new control packet. At this point, a complete process of multi-channel impedance measurement is completed.
[0086] This system method is extended to the impedance solution function of the complex plane. After applying a very fine micro-current to the impedance end to be measured, the signal is amplified by a multi-stage precision operational amplifier, and finally the MCU performs data sorting and calculation to achieve precise measurement of the impedance to be measured. At the same time, multi-channel impedance measurement is achieved by integrating a multi-channel data selector in the circuit.
[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-channel microelectrode bioimpedance testing system, characterized in that: It includes MCU control circuit, multi-stage power supply circuit, sine wave generation circuit, attenuator circuit, measurement circuit, amplifier circuit, multi-channel ADC conversion circuit, host computer communication circuit and data selector circuit; The multi-stage power supply circuit is provided with a multi-stage filter capacitor array and is used to provide a stable and low-noise power supply voltage for the entire system; the sine wave generation circuit includes a DAC circuit and an operational amplifier circuit, the DAC circuit is electrically connected to the MCU control circuit, and is used to receive the instruction of the MCU control circuit to generate a non-zero-crossing sine wave, and the operational amplifier circuit is used to convert the non-zero-crossing sine wave output by the DAC circuit into a zero-crossing sine wave; the attenuator circuit is used to attenuate the zero-crossing sine wave by 2,500 times; the measurement circuit is provided with an impedance to be measured, and the impedance to be measured is respectively connected to the attenuator circuit and the amplifier circuit; the amplifier circuit is used to amplify the measured voltage of the impedance to be measured to a level that can be accurately collected by the multi-channel ADC conversion circuit; the multi-channel ADC conversion circuit is connected to the MCU control circuit, and is used to sample the original zero-crossing sine wave data and the measured voltage amplified by the amplifier circuit; the host computer communication circuit is used for the MCU control circuit to communicate with the host computer; the data selector circuit is used for the MCU control circuit to select the corresponding measurement channel; the MCU control circuit is used to schedule each circuit module and store the impedance calculation data to be measured; The multi-stage power supply circuit comprises a USB power supply circuit, a power supply circuit and a voltage stabilizing filter circuit connected in sequence, and the multi-stage filter capacitor array comprises a first-stage filter capacitor array, a second-stage filter capacitor array and a third-stage filter capacitor array; the USB power supply circuit is used to provide USB power supply to the inside of the system; The power supply circuit is used to boost and negatively pressure the voltage connected to the USB power supply circuit after passing through the first-stage filter capacitor array; The voltage stabilizing filter circuit is used to filter the voltage after the boost and negative pressure of the power supply circuit through the second-stage filter capacitor array and the third-stage filter capacitor array to a stable and low-noise power supply voltage for the entire system; The data selector circuit includes four ADG1206MUX chips and peripheral circuits thereof, which are electrically connected to the MCU control circuit and are used for the MCU control circuit MCU to select corresponding measurement channels to achieve the purpose of multi-channel measurement; the MCU control circuit includes an STM32F407VGT6 chip and peripheral circuits thereof, and the STM32F407VGT6 chip is connected to the system through direct plug pins.
2. A multi-channel microelectrode bioimpedance testing system according to claim 1, characterized in that: The operational amplifier circuit is a reverse summing circuit in which a single op amp is connected to a power supply, and the reverse summing circuit is used to convert a DAC output sine wave that does not cross zero into a sine wave that crosses zero; the amplifier circuit uses a rail-to-rail precision op amp to amplify the impedance measurement voltage to a level that can be accurately collected by the multi-channel ADC conversion circuit.
3. A multi-channel microelectrode bioimpedance testing system according to claim 1, characterized in that: Pull-up resistors are provided between the sine wave generating circuit and the amplifier circuit and the multi-channel ADC conversion circuit, respectively. The pull-up resistors are used to adjust the measurement voltage to a range that can be measured by the multi-channel ADC conversion circuit.
4. A measurement method of a multi-channel microelectrode bioimpedance testing system as claimed in claim 1, characterized in that: The following steps are involved: Adopting a multi-stage power supply mode, the USB power supply is processed by multi-stage filtering to provide a stable and low-noise power supply voltage for the entire system; The MCU control circuit communicates with the host computer through the host computer communication circuit, and sets the system test frequency, sampling times, sampling interval and the number of channels to be tested through the host computer; When the MCU control circuit receives the measurement start signal sent by the host computer, it controls the sine wave generation circuit to generate a continuous zero-crossing sine wave. The multi-channel ADC conversion circuit reads its instantaneous value in real time and sends the value to the MCU through SPI communication. The MCU sends the zero-crossing sine wave data directly to the host computer through the host computer communication circuit without processing. The zero-crossing sine wave is connected to the measurement circuit after being attenuated 2,500 times by the attenuator circuit. The amplifier circuit amplifies the voltage divided by the impedance to be measured in the measurement circuit and outputs it. The pull-up resistor pulls the voltage output by the amplifier circuit to near the positive reference voltage to adapt to the range of the ADC measurement circuit. The multi-channel ADC conversion circuit reads the instantaneous value of the output voltage in real time and sends the value to the MCU via SPI communication. The MCU calculates the received voltage value to obtain the impedance data to be measured and stores and counts it; After the system completes the sampling times set by the host computer, the MCU takes the RMS value of the voltage measured by the impedance test part and sends it to the host computer through the host computer communication circuit. After the host computer confirms receipt, it sends a data packet for switching channels. When the MCU reads the instruction to switch channels, it first delays the sampling interval time set before, and then controls the data selector circuit to switch to the next channel, repeats the above steps, and measures the resistance to be measured in this channel.
5. The measuring method of a multi-channel microelectrode bioimpedance testing system according to claim 4, characterized in that: The multi-stage power supply mode includes the following steps: after the USB power supply is connected to the system, it first passes through the first-stage filter capacitor array, and then connects to two MC34063 chips for boosting and negative pressure respectively, and then passes through the next-stage filter capacitor array again, and connects to LT1964 and LT1761 chips. After the two chips output +5V and -5V respectively, they pass through the first-stage filter capacitor array again, and finally output to the entire system for use.
6. The measuring method of a multi-channel microelectrode bioimpedance testing system according to claim 4, characterized in that: The method for generating the zero-crossing sine wave comprises the following steps: an MCU control circuit controls 8 GPIO ports connected to a DAC digital-to-analog converter to generate high and low level changes, and the change of each GPIO port corresponds to an output of the DAC. After determining the timing of the GPIO port changing the high and low levels, a sine wave can be generated at the output end of the DAC. The system generates a zero-crossing ±5V sine wave that meets the measurement requirements by performing anti-phase summation of the sine wave output by the DAC and the +5V voltage generated by the LT1761 through a single operational amplifier. A multi-channel ADC conversion circuit reads the instantaneous value of the sine wave in real time, which is used for impedance solution and transmitted to a host computer for display, so that the user can check whether the waveform is correct.
7. The measuring method of a multi-channel microelectrode bioimpedance testing system according to claim 4, characterized in that: The measuring circuit adopts a voltage divider circuit, and the method for calculating the impedance to be measured includes the following steps: according to Ohm's law, the following formula is adopted: Right now: , Parameters V1, V2 and the impedance to be measured are complex numbers, and their imaginary parts represent the phase relationship in the circuit. When a known voltage V1 is applied, where V1 is an attenuated zero-crossing sine wave, and V2 is measured, where V2 is the impedance voltage to be measured after being amplified by the amplifier circuit, the impedance to be measured is calculated according to the formula, where 1M is the voltage divider resistance in the voltage divider circuit.
8. The measuring method of a multi-channel microelectrode bioimpedance testing system according to claim 4, characterized in that: After completing the resistance measurement of all channels that need to be tested, the MCU enters the standby mode and waits for the host computer to send a new control packet.
