Batch calibration system and method for electrical stimulation signal conversion accumulated deviation
By using a system of sampling feedback circuits for primary microcontroller, slave microcontroller and current transformer in medical instruments, the electrical stimulation signal is automatically calibrated, and the problem of long calibration time and inability to achieve consistent output gain in the prior art is solved. The efficient and accurate calibration process ensures the reliability and safety of medical instruments.
Patent Information
- Application Number
- CN202411165743.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-10
AI Technical Summary
The prior art has problems such as long time, cumbersome process and inability to achieve consistent output gain when calibrating the accumulated deviation of electrical stimulation signal transformation of medical instruments.
Using a system including the main microcontroller, slave microcontroller, touch screen, electrical stimulation signal output circuit, and current transformer sampling and feedback circuit, the automatic calibration process ensures the consistent output gain of each channel, and the current transformer and sampling resistor are used in real time. Monitor and adjust signals.
It realizes automatic calibration of electrical stimulation signals, improves calibration efficiency, reduces manual operation errors, ensures consistency and reliability of output gains, and improves the convenience and safety of production management.
Smart Images

Figure CN119104780A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of instrument output signal calibration, and in particular relates to a batch calibration system and method for cumulative deviation of electrical stimulation signal conversion. Background Art
[0002] Before medical instruments leave the factory, in order to make the output gain of each channel of the medical instrument consistent, the output of each channel of the medical instrument needs to be calibrated. Here we take the output of the electrical stimulation signal as an example. The reason why there are differences in the output gain of each channel of the electrical stimulation signal of the medical instrument is mainly that multiple chips or components (various resistors, capacitors, etc.) are required to participate in the signal generation, transmission, and conversion process. The differences between the chips or components themselves have cumulative deviations, which will cause deviations in the output signal. If the medical instrument is not calibrated before leaving the factory, it will affect the quality of the medical instrument and even bring risks to medical staff or patients. For this reason, it is of great significance to calibrate the cumulative deviation of the conversion of the instrument signal.
[0003] Prior art: Currently, the method for calibrating the electrical stimulation signal of a medical instrument is mainly to set an adjustable resistor in the electrical stimulation signal conversion and manually adjust the resistance value to achieve the consistency of the maximum value of the output signal.
[0004] Existing technical defects: The existing manual calibration method has the disadvantages of long calibration time and cumbersome calibration process. For more complex signals, it is necessary to set multiple adjustable resistors or capacitors in the electrical stimulation signal conversion to achieve the effect of controlling the maximum output value to be consistent. In addition, this method can only limit the maximum output value, but cannot achieve consistent output gain. Summary of the invention
[0005] In view of the defects and problems existing in the prior art, the present invention provides a batch calibration system and method for cumulative deviation of electrical stimulation signal conversion.
[0006] The solution of the present invention to solve the technical problem is: adopting a batch calibration system for electric stimulation signal conversion cumulative deviation, including a controller, an electric stimulation signal output circuit and a touch screen, characterized in that it also includes an electric stimulation signal transformer boost circuit and a current transformer sampling feedback circuit, wherein the controller includes a master microcontroller and multiple slave microcontrollers.
[0007] Master microcontroller: responsible for managing the operation of the entire system, receiving calibration instructions from the touch screen and passing these instructions to multiple slave microcontrollers; at the same time, it collects feedback information from each slave microcontroller and feeds the results back to the touch screen.
[0008] Slave microcontroller: After receiving the calibration instruction from the master microcontroller, it specifically executes the electrical stimulation signal output circuit in the corresponding channel, is responsible for the generation, adjustment and feedback processing of the electrical stimulation signal, and feeds back the calibration result to the master microcontroller; each slave microcontroller manages the calibration of one channel, and executes specific calibration instructions to ensure that the output gain of the channel it manages is consistent.
[0009] Touch screen: The interactive interface between the user and the system. The user issues calibration instructions through the touch screen, and these instructions are first passed to the main microcontroller; the touch screen not only receives the calibration instructions input by the user, but also displays the calibration results.
[0010] Electrical stimulation signal transformer boost circuit: The transformer is used to boost the electrical stimulation signal of the electrical stimulation signal output circuit to meet the output requirements of medical instruments; the microcontroller generates and adjusts the electrical stimulation signal, and the control signal is transmitted to the transformer to increase the signal voltage to the required level; the electrical stimulation signal after the transformer boost is used to ensure that the output gain of each channel is consistent.
[0011] The current transformer sampling feedback circuit includes a standard calibration resistor, a current transformer and a sampling resistor. Among them, the standard calibration resistor: the signal after the transformer is boosted passes through the standard calibration resistor, and the standard calibration resistor is used as a reference standard in the calibration process to ensure that each signal output from the microcontroller is consistent. The standard calibration is used as a benchmark in the calibration process. Current transformer: used to measure the current output from the secondary side of the transformer and provide a feedback signal; the current transformer monitors the current after the transformer is boosted, and feeds the signal back to the microcontroller through the current transformer. Sampling resistor: connected in series in the current transformer loop, used to detect the current signal; the microcontroller obtains the feedback signal through the current transformer and the sampling resistor, and monitors the signal current and voltage after passing through the transformer and the standard calibration resistor in real time.
[0012] Preferably, the electrical stimulation signal output circuit includes an electrical stimulation signal generating circuit, an electrical stimulation signal amplifying circuit, an electrical stimulation amplitude modulation circuit, an electrical stimulation modulation circuit, an electrical stimulation signal power amplifying circuit and an electrical stimulation signal filtering circuit; the electrical stimulation signal generating circuit: responsible for generating a basic electrical stimulation signal and providing a signal with a fixed frequency and waveform as an input for subsequent circuit processing; the electrical stimulation signal amplifying circuit: used for preliminarily amplifying the signal generated by the electrical stimulation signal generating circuit to ensure that the amplitude of the signal reaches the required level; the electrical stimulation amplitude modulation circuit: responsible for adjusting the amplitude of the amplified electrical stimulation signal to ensure that the strength of the signal can be adjusted as needed; the electrical stimulation modulation circuit: used for modulating the electrical stimulation signal, usually by superimposing specific modulation information on the signal to meet the needs of medical equipment; the electrical stimulation signal power amplifying circuit: used for further amplifying the power of the electrical stimulation signal to ensure that the signal can drive subsequent transformers and loads; the electrical stimulation signal filtering circuit: used to remove high-frequency noise or unnecessary frequency components in the signal to ensure the purity and stability of the signal.
[0013] Preferably, in the current transformer sampling feedback circuit, a standard calibration resistor is connected to the secondary side output end of the transformer, and the voltage signal after the transformer is boosted passes through the standard calibration resistor, thereby generating a corresponding current. This resistor is used as a known load to detect whether the signal after the transformer is boosted meets expectations; the current transformer is connected in series in the circuit of the standard calibration resistor, and the current transformer is installed on the loop of the standard calibration resistor to measure the current passing through the calibration resistor. When the current output by the transformer flows through the standard calibration resistor, the current transformer senses the current and generates a signal proportional to the current; the sampling resistor is connected in series in the output loop of the current transformer to convert the current signal into a voltage signal. This conversion is achieved through the voltage generated on the sampling resistor, and the voltage signal represents the current passing through the current transformer.
[0014] Preferably, the output of the sampling resistor is directly connected to the ADC input of the slave microcontroller. Through the voltage signal generated by the sampling resistor, the slave microcontroller can monitor the current output from the secondary side of the transformer in real time, and then adjust the signal output to ensure consistent gain.
[0015] Preferably, an effective value detection circuit is required at the rear end of the sampling resistor, and the effective value detection circuit feeds back a detection signal to the microcontroller.
[0016] Preferably, the microcontroller controls the electrical stimulation amplitude modulation circuit to gradually increase the output amplitude of the electrical stimulation signal, and records the control word and stores it in the FLASH memory.
[0017] A batch calibration method for cumulative deviation of electrical stimulation signal conversion based on the above system completes the initialization setting of the system while ensuring that all slave microcontrollers, master microcontroller, touch screen, electrical stimulation signal output circuit, transformer, standard calibration resistor, current transformer and sampling resistor are correctly connected; the user inputs the calibration instruction through the touch screen, and the touch screen transmits the calibration instruction to the master microcontroller; after receiving the instruction from the touch screen, the master microcontroller assigns the calibration task to the corresponding slave microcontroller, each slave microcontroller is responsible for the signal calibration of one channel, and the slave microcontroller starts to generate electrical stimulation signals, gradually adjusts the amplitude of the electrical stimulation signals from the slave microcontroller, and transmits the signals to the transformer for boosting; the electrical stimulation signals from the electrical stimulation signal output circuit are boosted by the transformer to reach the required high voltage level, and the boosted signal generates current through the standard calibration resistor, the current transformer monitors the current signal and converts it into a voltage signal, which is detected by the sampling resistor, and the sampling resistor converts the detected signal Feedback is given to the slave microcontroller, which analyzes the feedback signal to determine whether the current output gain meets the expectation; according to the feedback signal, the slave microcontroller adjusts the amplitude of the output signal to ensure that the signal gain is consistent with the preset target. When the output signal reaches the expected gain, the slave microcontroller records the current control word and stores it in the FLASH memory of the slave microcontroller as the maximum output control word of the channel; the slave microcontroller feeds back the calibration result to the main microcontroller, which integrates all calibration data and passes the result to the touch screen. The user views the calibration result through the touch screen to confirm whether the calibration is successful; after the calibration is completed, the slave microcontroller saves the final control word for subsequent system operations and signal control. After all calibration work is completed, the system is reset and enters normal working state to ensure that the gain of the signal output is consistent in subsequent operations; during the normal operation of the system, the slave microcontroller automatically adjusts the output signal of each channel according to the control word recorded during calibration to ensure the consistency of the output gain of each channel.
[0018] Preferably, in the electrical stimulation signal output circuit, the signal generated by the electrical stimulation signal generating circuit is processed in sequence by the signal amplification circuit, the amplitude modulation circuit, the modulation circuit and the power amplification circuit to ensure that the signal reaches the required intensity and modulation effect; the signal purified by the filtering circuit is then increased in voltage by the transformer boosting circuit to meet the input requirements of the medical device; the current transformer sampling feedback circuit monitors the boosted signal and feeds it back to the microcontroller, thereby achieving precise control and calibration of the signal, thereby ensuring that the electrical stimulation signal achieves the expected effect in each link of generation, amplification, modulation, boosting and feedback, and ultimately achieving high consistency and reliability of the output signal.
[0019] Preferably, if the calibration is unsuccessful, the calibration process is restarted: if the system has multiple channels, the master microcontroller will instruct different slave microcontrollers to perform calibration in sequence to ensure that the output gains of all channels are consistent; within the specified time, if the difference between the control words obtained multiple times in succession is less than the set value, the calibration result is confirmed to be valid.
[0020] Preferably, after the calibration is completed, a calibration verification is performed: the user selectively performs the verification to ensure the accuracy of the calibration result, and is used to detect whether the output gain after the calibration is stable and consistent.
[0021] Preferably, the slave microcontroller adopts a timed before-after comparison mode, and only after obtaining the control word three times in a row within a specified time and the difference between the before-after and the after-after is less than 2, the control word is used as the control word of the slave microcontroller system.
[0022] Preferably, the calibration instruction includes parameters specifying a channel to be calibrated and a required output voltage or current range.
[0023] Preferably, a system that has not been calibrated by the calibration system cannot output electrical stimulation signals, so as to ensure the convenience and safety of production management.
[0024] Beneficial effects of the present invention: 1. A system suitable for automatic calibration of electrical stimulation signals is established: the system is designed with components such as a master microcontroller, a slave microcontroller, a touch screen, a transformer, a standard calibration resistor, a current transformer and a sampling resistor. Through the close cooperation of these components, the automatic calibration of the output of the electrical stimulation signal is realized. The system has a clear structure and is easy to implement, and is suitable for calibration of medical instruments in mass production.
[0025] 2. A method for batch automated output gain calibration was implemented: Through the control of the generation, adjustment and feedback processing of the electrical stimulation signal by the slave microcontroller in the system, and the instruction management of the master microcontroller, the system can efficiently complete the batch calibration of the output gain of the electrical stimulation signal of multiple channels. This method not only improves the calibration efficiency, but also greatly reduces the error and complexity of manual operation.
[0026] 3. Ensure the consistency and reliability of output gain: The system monitors and adjusts the electrical stimulation signal in real time through the coordination of standard calibration resistors, current transformers and sampling resistors, ensuring that the output gain of each channel is consistent with the set value, thereby ensuring the reliability and safety of medical instruments during use.
[0027] 4. Improved the convenience and safety of production management: The system is designed with control word recording and storage functions to ensure that the calibrated control words can be automatically called in subsequent operations, further simplifying the production management process. At the same time, the system has a mechanism to prevent signal output when calibration fails, which can quickly locate and solve calibration problems, ensuring product quality and safety.
[0028] 5. The calibration process is efficient and accurate: The system adopts a multi-channel continuous calibration method. The master microcontroller instructs each slave microcontroller to calibrate in turn to ensure that the calibration results of all channels are consistent. During the calibration process, a stable control word is obtained by comparing the timing before and after, which further improves the accuracy and stability of the calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a system block diagram of the present invention; Figure 2 It is a block diagram of a channel electrical stimulation calibration system; Figure 3 It is a circuit diagram before and after a transformer.
[0030] Numbers in the figure: 1-transformer; 2-current transformer; 3-standard calibration resistor; 4-electric stimulation signal output circuit; 5-electric stimulation signal transformer boost circuit; 6-current transformer sampling feedback circuit; 7-effective value detection circuit. DETAILED DESCRIPTION
[0031] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0032] Embodiment 1: A batch calibration system for cumulative deviation of electrical stimulation signal conversion, applicable to a master-slave control system for electrical stimulation output. Figure 1 As shown, the communication protocol (which can be serial communication, CAN communication, etc.) is used between the main microcontroller, the touch screen and the slave microcontroller to realize the transmission of control instructions. The working process is summarized as follows: the touch screen sends a calibration instruction to the main microcontroller, and the main microcontroller sends the calibration instruction to each slave. The slave implements the automatic calibration of the electrical stimulation output gain and feeds back the calibrated value to the main microcontroller. The main microcontroller then sends the calibration value to the touch screen, and the touch screen determines whether the calibration is completed. The slave microcontroller is specifically responsible for the calibration of the electrical stimulation output signal. A channel electrical stimulation calibration system is constructed with the slave microcontroller as the core, such as Figure 2 shown.
[0033] Specifically, the system mainly includes a main microcontroller, a slave microcontroller, a touch screen, a transformer, a standard calibration resistor, a current transformer and a sampling resistor. The electrical stimulation signal output circuit at least includes an electrical stimulation signal generating circuit, an electrical stimulation signal amplifying circuit, an electrical stimulation amplitude modulation circuit, an electrical stimulation modulation circuit, an electrical stimulation signal power amplifying circuit and an electrical stimulation signal filtering circuit. Each part closely cooperates around the calibration process of the electrical stimulation signal. The design of the system is to ensure that the output gain of each channel of the medical instrument is consistent, and to avoid deviations in the output signal due to differences in various circuit components or chips. The calibration system does not add additional components to the original electrical stimulation output system. The original single-channel electrical stimulation signal output includes an electrical stimulation signal generating circuit, an electrical stimulation signal amplifying circuit, an electrical stimulation amplitude modulation circuit, an electrical stimulation modulation circuit, an electrical stimulation signal power amplifying circuit, an electrical stimulation signal filtering circuit and an electrical stimulation signal transformer boosting circuit. It is not difficult to find that multiple circuit links are involved in the generation and transformation of the electrical stimulation signal. It is very difficult to ensure that the output signal gain after the transformer boost is consistent. The reason is that if there is an output deviation in any of the electronic components or chips in the circuit, it is difficult to accurately locate the abnormal position after a series of transformations, which brings great difficulties to the factory calibration of the instrument.
[0034] In order to achieve batch calibration in this embodiment, a standard calibration resistor (taking 500 ohms as an example) is connected to the secondary side of each transformer from the microcontroller as a load. The accuracy of this calibration resistor is measured by a multimeter to ensure that the accuracy of each calibration resistor is consistent. A current transformer is connected to the secondary side of the transformer, and a sampling resistor is connected in series in the current transformer loop. Feedback detection of the output of the secondary side of the transformer is achieved through the series sampling resistor. The following are the main components of the system and their definitions and relationships.
[0035] 1. System components Master microcontroller: The master microcontroller is responsible for managing the operation of the entire system, receiving calibration instructions from the touch screen and passing these instructions to multiple slave microcontrollers; at the same time, it collects feedback information from each slave microcontroller and feeds the results back to the touch screen. Function: The master microcontroller is the core control unit of the entire system and coordinates the execution of all calibration work.
[0036] Slave microcontroller: After receiving the calibration instruction from the master microcontroller, the slave microcontroller specifically performs the generation, adjustment, and feedback processing of the electrical stimulation signal, and feeds back the calibration result to the master microcontroller; each slave microcontroller manages the calibration of one channel. Function: The slave microcontroller executes specific calibration instructions to ensure that the output gain of the channel it manages is consistent.
[0037] Touch screen: The touch screen is the interactive interface between the user and the system. The user issues calibration instructions through the touch screen, and these instructions are first transmitted to the main microcontroller; the touch screen not only receives the calibration instructions input by the user, but also displays the calibration results. Function: As a user interface, the touch screen connects to the main microcontroller and realizes the input of instructions and the display of results.
[0038] Transformer: The transformer is used to boost the electrical stimulation signal to meet the output requirements of the medical instrument; the microcontroller generates and adjusts the electrical stimulation signal, and the control signal is transmitted to the transformer to increase the signal voltage to the required level. Function: The electrical stimulation signal after being boosted by the transformer needs to be calibrated to ensure that the output gain of each channel is consistent.
[0039] Standard calibration resistor: The standard calibration resistor is used as a known load and as a reference in the calibration process. The signal after the transformer boost passes through the standard calibration resistor, which is used as a reference standard in the calibration process to ensure that the signal output by each slave microcontroller is consistent. Function: Ensure that the accuracy of the calibration resistor used by all slave microcontrollers during the calibration process is consistent to ensure the reliability of the calibration results.
[0040] Current transformer: The current transformer is used to measure the current output from the secondary side of the transformer and provide feedback signals; the current transformer monitors the current after the transformer is stepped up and feeds the signal back to the microcontroller through the current transformer. Function: The current transformer helps detect and feedback the current signal output by the transformer in conjunction with the sampling resistor for calibration.
[0041] Sampling resistor: The sampling resistor is connected in series in the current transformer loop to detect the current signal; the feedback signal is obtained from the microcontroller through the current transformer and the sampling resistor to monitor the signal current and voltage after passing through the transformer and the standard calibration resistor in real time.
[0042] According to the feedback signal, the slave microcontroller adjusts the signal to ensure that the output gain is consistent with the set value. Function: The sampling resistor detects the AC signal output by the transformer and provides it to the slave microcontroller for calibration.
[0043] 2. System Part Relationship The master microcontroller and the slave microcontroller transmit commands through a communication protocol. The master microcontroller issues commands, the slave microcontroller performs calibration, and feeds back the results to the master microcontroller. The transformer is responsible for boosting the electrical stimulation signal, and the calibration process involves standard calibration resistors, current transformers, and sampling resistors to ensure consistent signal gain after boosting. The touch screen serves as a user interface, issues calibration commands and displays results, and interacts with other parts of the system through the master microcontroller. This system achieves batch calibration of medical instruments by coordinating the above components, improves calibration efficiency, and ensures the reliability and consistency of output signals.
[0044] Master and slave microcontrollers: The master microcontroller manages the operation of the entire system, receives calibration instructions from the touch screen, and passes these instructions to multiple slave microcontrollers. After receiving the calibration instructions from the master microcontroller, the slave microcontroller performs the generation, adjustment, and feedback processing of the electrical stimulation signal, and feeds back the calibration results to the master microcontroller.
[0045] Touchscreen and main microcontroller: The touchscreen is the interface between the user and the system. The user issues calibration instructions through the touchscreen, which are first passed to the main microcontroller. Real-time data and results during the calibration process are transmitted back to the touchscreen through the main microcontroller for the user to view and confirm whether the calibration is successful.
[0046] Slave microcontroller and transformer: The slave microcontroller generates and adjusts the electrical stimulus signal, and controls the signal to be transmitted to the transformer so that the signal voltage is increased to the required level. The output signal of the transformer directly affects the accuracy of the calibration, so the slave microcontroller needs to accurately adjust the signal to ensure that the signal after the transformer step-up meets the expectations.
[0047] Transformer and standard calibration resistor: The signal after the transformer is stepped up passes through the standard calibration resistor, which is used as a reference standard during the calibration process to ensure that each signal output from the microcontroller is consistent. The standard calibration resistor is used in the calibration process to provide a known load in order to measure and adjust the output of the transformer.
[0048] Current transformer and sampling resistor: The current transformer monitors the current after the transformer boosts the voltage and feeds the signal back to the slave microcontroller through the current transformer. The sampling resistor is connected in series in the loop of the current transformer to convert the current signal into a voltage signal for processing and calibration by the slave microcontroller.
[0049] From the microcontroller and current transformer, sampling resistor: The microcontroller obtains feedback signals through the current transformer and sampling resistor, and monitors the signal current and voltage after passing through the transformer and standard calibration resistor in real time. According to the feedback signal, the microcontroller adjusts the signal to ensure that the output gain is consistent with the set value.
[0050] Collaboration between the master microcontroller, touch screen, and slave microcontroller: The master microcontroller communicates with multiple slave microcontrollers to coordinate their operations and ensure that the calibration process of all channels is carried out synchronously. The master microcontroller integrates the calibration data of the slave microcontrollers and passes the final calibration results to the touch screen for the user to view and confirm.
[0051] Based on the above system, the main microcontroller, as the core of the system, manages the communication and coordination of the slave microcontroller, touch screen and other components. The slave microcontroller specifically performs signal generation, regulation and calibration, and monitors and adjusts in real time by controlling the output of the transformer and using standard calibration resistors, current transformers and sampling resistors. The touch screen provides an interactive interface between the user and the system, through which the user issues calibration instructions and views the calibration results. The transformer collaborates with the standard calibration resistor, current transformer and sampling resistor to ensure the accuracy and consistency of the signal during the calibration process. Through the collaborative work of these components, the system can effectively realize the automatic calibration of the electrical stimulation signal and ensure the consistency and reliability of the output gain.
[0052] Since the electrical stimulation signal output from the electrical stimulation signal output circuit is an AC signal, the detection signal obtained from the sampling resistor is also an AC signal. Since the microcontroller can only collect DC voltage signals through ADC, such as Figure 3 As shown, an effective value detection circuit is required at the back end of the sampling resistor, and the effective value detection circuit feeds back the detection signal to the microcontroller.
[0053] Verification process: The microcontroller controls the electrical stimulation signal generating circuit to generate a verification signal of a specific frequency (for example, a sinusoidal signal, not limited to a sinusoidal signal, it can be a square wave or a triangular wave), so that the controlled electrical stimulation signal modulation circuit does not play a modulation role, and only controls the electrical stimulation amplitude modulation circuit to realize a gradual increase in the output amplitude of the electrical stimulation signal (for example, gradually increasing from 1V to 10V (10V is the maximum value that the electrical stimulation amplitude modulation circuit can adjust), with a step size of 0.1V), until it reaches the set value allowed by the medical device inspection procedure (for example, the maximum output current allowed on the verification resistor of the medical device is 75mA, and the current 75mA*verification resistor 500 ohms gives a maximum voltage allowed to be output by the transformer of 37.5V). When the microcontroller reaches 37.5V by controlling the electrical stimulation amplitude modulation circuit, the microcontroller records the control word corresponding to the current output amplitude of the electrical stimulation signal, and stores the control word in the FLASH memory, and uses the control word as the maximum value of the intensity adjustment, and divides the intensity levels accordingly. For example, if the control word is 200, if we divide the intensity into 100 levels, each level (step length) is increased by 2, which can ensure the equal increase of output gain, thereby ensuring the consistency of output gain. At the same time, the control word (200) is sent to the main microcontroller, which forwards it to the touch screen after receiving it.
[0054] By sending batch calibration instructions through the master microcontroller, each slave microcontroller performs calibration in turn according to the above method, so that automatic batch calibration of each output gain on the instrument can be achieved.
[0055] After the system is calibrated, the slave device automatically reads the stored control word from FLASH after power-on to achieve the maximum output of the channel controlled by the control word.
[0056] In addition, in order to ensure the reliable acquisition of the control word, a timed before and after comparison method is adopted when acquiring the control word. Only after the control word is acquired three times in succession within the specified time (the difference between the before and after values of the control word is less than 2), the control word is used as the control word of this slave system.
[0057] The present invention has another advantage that an uncalibrated system cannot output an electrical stimulation signal because the maximum control word for amplitude adjustment is missing. This is convenient for production management, and once it is found that the system has no output, it can be quickly determined that the instrument lacks calibration.
[0058] Example 2: Based on Example 1, a batch calibration method for cumulative deviation of electrical stimulation signal conversion is adopted to ensure the consistency of output gain of each channel of medical instruments and avoid output signal deviation caused by differences in circuit components or chips. The method is based on a system consisting of a master microcontroller, a slave microcontroller, a touch screen, a transformer, a standard calibration resistor, a current transformer and a sampling resistor, and all components work closely together during the calibration process. The following are detailed calibration steps and operating instructions.
[0059] 1. System initialization Before starting calibration, make sure all system components are properly connected, including the slave microcontroller, master microcontroller, touch screen, electrical stimulation signal output circuit, transformer, standard calibration resistor, current transformer, and sampling resistor. Complete the system initialization setup and confirm that the equipment is working properly.
[0060] 2. Calibration command input and distribution The user enters the calibration command through the touch screen, specifying the channel to be calibrated and the desired output voltage or current range. The touch screen passes the calibration command to the master microcontroller. After receiving the command, the master microcontroller assigns the task to the corresponding slave microcontroller.
[0061] 3. Electrical stimulation signal generation and regulation Each slave microcontroller is responsible for calibrating the signal of one channel. During the calibration process: Start by generating an electrical stimulation signal of a specific frequency (such as a sine wave, square wave, or triangle wave) from a microcontroller.
[0062] The signal amplitude is gradually adjusted from the microcontroller (for example, from 1V to the target voltage, such as 10V), and the signal is transmitted to the transformer for step-up.
[0063] 4. Signal boost and monitoring The electrical stimulus signal is boosted by a transformer to the required high voltage level. The boosted signal passes through a standard calibration resistor to generate a corresponding current. The current transformer monitors this current signal and converts it into a voltage signal, which is detected by a sampling resistor. The sampling resistor feeds the detected signal back to the microcontroller.
[0064] 5.Signal analysis and adjustment The slave microcontroller analyzes the feedback signal to determine whether the current output gain reaches the expected value. If the feedback signal shows that the output gain does not meet the expectations, the slave microcontroller will further adjust the amplitude of the output signal to ensure that the gain is consistent with the set target.
[0065] 6. Control word recording and storage When the output signal reaches the expected gain, the slave microcontroller records the current control word (ie, the digital signal value) and stores it in the FLASH memory of the slave microcontroller as the control word for the maximum output of the channel.
[0066] 7.Calibration result feedback and confirmation The slave microcontroller feeds the calibration results back to the master microcontroller, which consolidates all calibration data and passes the results to the touchscreen. The user views the calibration results on the touchscreen and confirms whether the calibration was successful. If not, the user has the option to restart the calibration process.
[0067] 8. Calibration completed and system reset After all channels are calibrated, the system will reset and enter normal working state. At this time, the slave microcontroller will automatically use the stored control word to ensure that the gain of each channel signal output is consistent in subsequent operations.
[0068] 9. Calibration Verification (Optional) After calibration is complete, the user can optionally perform a calibration verification to ensure the accuracy of the calibration results. The verification process is similar to the calibration step and is intended to confirm the stability and consistency of the output gain.
[0069] 10. Multi-channel calibration and continuous calibration word acquisition In a multi-channel system, the master microcontroller will instruct different slave microcontrollers to calibrate in turn to ensure that the output gain of all channels is consistent. To ensure the accuracy of the control word, the slave microcontroller obtains the control word three times in a row within the specified time, and the control word with a difference of less than 2 is used as the final valid control word.
[0070] 11. Handling of calibration failure If the calibration fails, the system will prevent the output of the electrical stimulation signal. This design helps ensure the convenience and safety of production management. Once the system is found to have no output, it can be quickly determined that the instrument is out of calibration.
[0071] Through the above steps, the method can effectively realize automatic batch calibration of electrical stimulation signals and ensure the output gain consistency and reliability of each channel of the medical instrument.
[0072] The above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modification, equivalent substitution, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention.
Claims
1. A batch calibration system for cumulative deviation of electrical stimulation signal conversion, comprising a controller, an electrical stimulation signal output circuit and a touch screen, characterized in that: It also includes an electrical stimulation signal transformer boost circuit and a current transformer sampling feedback circuit, wherein the controller includes a master microcontroller and a plurality of slave microcontrollers; Master microcontroller: responsible for managing the operation of the entire system, receiving calibration instructions from the touch screen and passing these instructions to multiple slave microcontrollers; at the same time, it collects feedback information from each slave microcontroller and feeds the results back to the touch screen; Slave microcontroller: After receiving the calibration instruction from the master microcontroller, it executes the electrical stimulation signal output circuit in the corresponding channel, is responsible for the generation, adjustment and feedback processing of the electrical stimulation signal, and feeds back the calibration result to the master microcontroller; each slave microcontroller manages the calibration of one channel, and the slave microcontroller executes specific calibration instructions to ensure that the output gain of the channel it manages is consistent; Touch screen: The interactive interface between the user and the system. The user issues calibration instructions through the touch screen, and these instructions are first transmitted to the main microcontroller; the touch screen not only receives the calibration instructions input by the user, but also displays the calibration results; Electrical stimulation signal transformer boost circuit: The transformer is used to boost the electrical stimulation signal of the electrical stimulation signal output circuit to meet the output requirements of the medical instrument; the microcontroller generates and adjusts the electrical stimulation signal, and the control signal is transmitted to the transformer to increase the signal voltage to the required level; the electrical stimulation signal after the transformer boost is passed to ensure that the output gain of each channel is consistent; The current transformer sampling feedback circuit comprises a standard calibration resistor, a current transformer and a sampling resistor; Standard calibration resistor: The signal after the transformer boosts the voltage passes through the standard calibration resistor, which is used as a reference standard in the calibration process to ensure that each signal output from the microcontroller is consistent. The standard calibration is used as a benchmark in the calibration process; Current transformer: used to measure the current output from the secondary side of the transformer and provide feedback signals; the current transformer monitors the current after the transformer is stepped up and feeds the signal back to the microcontroller through the current transformer; Sampling resistor: connected in series in the current transformer loop to detect current signals; obtain feedback signals from the microcontroller through the current transformer and sampling resistor, and monitor the signal current and voltage after passing through the transformer and standard calibration resistor in real time.
2. The batch calibration system according to claim 1, characterized in that: The electrical stimulation signal output circuit includes an electrical stimulation signal generating circuit, an electrical stimulation signal amplifying circuit, an electrical stimulation amplitude modulation circuit, an electrical stimulation modulation circuit, an electrical stimulation signal power amplifying circuit and an electrical stimulation signal filtering circuit; the electrical stimulation signal generating circuit: responsible for generating a basic electrical stimulation signal, providing a signal with a fixed frequency and waveform as an input for subsequent circuit processing; the electrical stimulation signal amplifying circuit: used for preliminarily amplifying the signal generated by the electrical stimulation signal generating circuit to ensure that the amplitude of the signal reaches the required level; the electrical stimulation amplitude modulation circuit: responsible for adjusting the amplitude of the amplified electrical stimulation signal to ensure that the strength of the signal can be adjusted as needed; the electrical stimulation modulation circuit: used for modulating the electrical stimulation signal, usually by superimposing specific modulation information on the signal to meet the needs of medical equipment; the electrical stimulation signal power amplifying circuit: used for further amplifying the power of the electrical stimulation signal to ensure that the signal can drive subsequent transformers and loads; the electrical stimulation signal filtering circuit: used to remove high-frequency noise or unnecessary frequency components in the signal to ensure the purity and stability of the signal.
3. The batch calibration system according to claim 1, characterized in that: The current transformer sampling feedback circuit has a standard calibration resistor connected to the secondary output end of the transformer. The voltage signal after the transformer is boosted passes through the standard calibration resistor, thereby generating a corresponding current. This resistor is used as a known load to detect whether the signal after the transformer is boosted meets expectations; the current transformer is connected in series in the circuit of the standard calibration resistor. The current transformer is installed on the loop of the standard calibration resistor to measure the current passing through the calibration resistor. When the current output by the transformer flows through the standard calibration resistor, the current transformer senses the current and generates a signal proportional to the current; the sampling resistor is connected in series in the output loop of the current transformer to convert the current signal into a voltage signal. This conversion is achieved through the voltage generated on the sampling resistor. The voltage signal represents the current passing through the current transformer.
4. The batch calibration system according to claim 3, characterized in that: The output of the sampling resistor is directly connected to the ADC input of the slave microcontroller. Through the voltage signal generated by the sampling resistor, the slave microcontroller can monitor the current output from the secondary side of the transformer in real time, and then adjust the signal output to ensure consistent gain.
5. The batch calibration system according to claim 1 or 3, characterized in that: An effective value detection circuit is also required at the back end of the sampling resistor, and the effective value detection circuit feeds back the detection signal to the microcontroller.
6. The calibration method of the batch calibration system according to claim 1, characterized in that: After ensuring that all slave microcontrollers, master microcontroller, touch screen, electrical stimulation signal output circuit, transformer, standard calibration resistor, current transformer and sampling resistor are correctly connected, complete the initialization settings of the system; the user inputs the calibration command through the touch screen, and the touch screen transmits the calibration command to the master microcontroller; after receiving the command from the touch screen, the master microcontroller assigns the calibration task to the corresponding slave microcontroller, each slave microcontroller is responsible for the signal calibration of one channel, and the slave microcontroller starts to generate the electrical stimulation signal, the slave microcontroller gradually adjusts the amplitude of the electrical stimulation signal, and transmits the signal to the transformer for boosting; the electrical stimulation signal from the electrical stimulation signal output circuit is boosted by the transformer to reach the required high voltage level, and the boosted signal generates current through the standard calibration resistor, the current transformer monitors this current signal and converts it into a voltage signal, which is detected by the sampling resistor, and the sampling resistor feeds back the detected signal to the slave microcontroller, and the slave microcontroller analyzes the feedback signal to determine whether the current output gain meets the expectation; According to the feedback signal, the slave microcontroller adjusts the amplitude of the output signal to ensure that the signal gain is consistent with the preset target. When the output signal reaches the expected gain, the slave microcontroller records the current control word and stores it in the FLASH memory of the slave microcontroller as the maximum output control word of the channel; The slave microcontroller feeds back the calibration results to the master microcontroller, which integrates all calibration data and transmits the results to the touch screen. The user can view the calibration results on the touch screen to confirm whether the calibration is successful. After the calibration is completed, the slave microcontroller saves the final control word for subsequent system operations and signal control. After all calibration work is completed, the system is reset and enters normal working state to ensure that the gain of the signal output is consistent in subsequent operations. During normal system operation, the slave microcontroller automatically adjusts the output signal of each channel according to the control word recorded during calibration to ensure the consistency of the output gain of each channel.
7. The batch calibration method according to claim 6, characterized in that: In the electrical stimulation signal output circuit, the signal generated by the electrical stimulation signal generating circuit is processed in sequence by the signal amplification circuit, the amplitude modulation circuit, the modulation circuit and the power amplification circuit to ensure that the signal reaches the required intensity and modulation effect; the signal purified by the filtering circuit is then increased in voltage by the transformer boosting circuit to meet the input requirements of the medical equipment; the current transformer sampling feedback circuit monitors the boosted signal and feeds it back to the microcontroller, thereby achieving precise control and calibration of the signal, thereby ensuring that the electrical stimulation signal achieves the expected effect in each link of generation, amplification, modulation, boosting and feedback, and ultimately achieving high consistency and reliability of the output signal.
8. The batch calibration method according to claim 6, characterized in that: If the calibration is unsuccessful, restart the calibration process: If the system has multiple channels, the master microcontroller will instruct different slave microcontrollers to calibrate in sequence to ensure that the output gain of all channels is consistent; If the difference between the control words obtained multiple times in a row within the specified time is less than the set value, the calibration result is confirmed to be valid.
9. The batch calibration method according to claim 6, characterized in that: After the calibration is completed, calibration verification is performed: the user can selectively perform verification to ensure the accuracy of the calibration results and to detect whether the output gain after calibration is stable and consistent.
10. The batch calibration method according to claim 6, characterized in that: The slave microcontroller adopts a timed before-after comparison mode, and only after obtaining the control word three times in a specified time and the difference between the before-after and the after-after is less than 2, will the control word be used as the control word of the slave microcontroller system.
