A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system and control method
Through the dual-core MCU intelligent ultrasonic minimally invasive scalpel control system, the combination of the ultrasonic scalpel measurer and digital potentiometer is used to achieve precise control of the frequency and power of the ultrasonic minimally invasive scalpel, solving the precise control problems in the existing technology and improving Improve surgical efficiency and equipment life.
Patent Information
- Application Number
- CN202010003732.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-01-03
AI Technical Summary
It is difficult to achieve low-cost, high-precision frequency and power control in the ultrasonic minimally invasive scalpel control system with the existing technology, resulting in a decrease in surgical efficiency and blade quality, affecting the surgical effect, and the non-resonant state of the ultrasonic power supply will reduce the life of the equipment and Output power.
It adopts a dual-core MCU intelligent ultrasonic minimally invasive scalpel control system, and adjusts the resistance of the digital potentiometer and the output waveform of the frequency synthesizer through the combination of the ultrasonic scalpel measurer, controller, direct digital frequency synthesizer and digital potentiometer, accurately Control the frequency and power of the tool to keep the ultrasonic transducer in a resonant state.
It achieves precise control of the output frequency and power of the ultrasonic minimally invasive scalpel, improves the control accuracy of surgery, extends the life of the equipment, reduces costs, and improves surgical results.
Smart Images

Figure CN111096775B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the medical field, and in particular to a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system and a control method. Background Art
[0002] The scalpel, as an indispensable tool for surgical operations, plays an extremely important role in the entire surgical process. With the continuous advancement of medical technology, surgical instruments are also constantly improving, and steel knives, electric knives, ultrasonic knives, laser knives, radiofrequency knives, etc. have emerged. Among them, the ultrasonic scalpel converts electrical energy into mechanical energy, drives the knife head to vibrate at a certain resonant frequency, vaporizes the water in the tissue, breaks and denatures the protein hydrogen bonds, and disintegrates the cells, so that the tissue is cut or coagulated, and coagulation and hemostasis are achieved while tissue separation and tissue cutting. With the rapid development of computer technology and microelectronics technology, major companies and universities have accelerated the innovation and research and development of minimally invasive surgical instruments, and new minimally invasive surgical instrument systems and products have emerged one after another.
[0003] With the continuous improvement of medical standards, according to the clinical characteristics of the ultrasonic knife system, in the ultrasonic minimally invasive surgical knife control system, it is necessary to accurately control the tool frequency and tool power through external mechanisms, accurately control the tool output frequency and power, and improve the control accuracy of minimally invasive surgery.
[0004] At present, the domestic independent research and development of modern scalpel control systems lacks a certain degree of strength and depth, and the appropriate frequency is adjusted by using fuzzy algorithms. However, this solution is not practical in actual work. Because the intelligent algorithm consumes a lot of processor resources, the product cost increases. It is difficult to achieve accurate control of the operating frequency of the scalpel under low-cost conditions. If the operating frequency of the scalpel cannot be accurately and real-time controlled, it will not only reduce the output power and efficiency of the power supply, but also reduce the quality of the blade over time, affecting the surgical effect. It is precisely because the research and development results of high-precision control power supplies in China are still insufficient that modern scalpels have developed slowly, and most modern surgical instruments can only rely on imports, which will inevitably increase medical costs and make it difficult for people in need to experience good medical effects. This has also greatly hindered the large-scale popularization and application of such modern scalpels.
[0005] On the other hand, considering the piezoelectric characteristics of the ultrasonic scalpel, its own electrical characteristics will change with the cutting or emulsification of different tissues. In order to ensure the quality of surgery and the life of the equipment, it must be tracked and controlled to make it work strictly in a resonant state. If the frequency of the ultrasonic power supply cannot be adjusted in time, the vibration system will work in a non-resonant state, and the output power and efficiency of the vibration system will be reduced. Summary of the invention
[0006] The purpose of the present invention is to provide a dual-core MCU intelligent ultrasonic minimally invasive scalpel control system and control method, which can accurately control the output frequency and power of the cutter, maintain the ultrasonic transducer in a resonant state, and improve the control accuracy of minimally invasive surgery.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system, comprising: an ultrasonic knife measuring device, a controller, a direct digital frequency synthesizer and a digital potentiometer; the controller is respectively connected to the ultrasonic knife measuring device, the direct digital frequency synthesizer and the digital potentiometer; the direct digital frequency synthesizer is connected to the digital potentiometer; the digital potentiometer is connected to the ultrasonic knife;
[0009] The ultrasonic knife measuring device is used to measure the actual current and actual voltage of the ultrasonic knife; the controller is used to adjust the resistance value of the digital potentiometer according to the input set power range value, the actual current and the actual voltage, and control the direct digital frequency synthesizer to output the waveform of the target frequency; the digital potentiometer with adjusted resistance is used to output the target voltage according to the waveform of the target frequency, and input the target voltage to the ultrasonic knife to change the working power and working frequency of the ultrasonic knife.
[0010] Optionally, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system further includes: a driving circuit and a drain voltage detection circuit;
[0011] The driving circuit is respectively connected to the direct digital frequency synthesizer, the digital potentiometer, the drain voltage detection circuit and the ultrasonic knife; the drain voltage detection circuit is connected to the controller; the drain voltage detection circuit is used to detect the drain voltage of the driving circuit and send the drain voltage to the controller; the controller is used to control the driving circuit to operate in the saturation region.
[0012] Optionally, the driving circuit is composed of two semiconductor field effect transistors connected in parallel.
[0013] Optionally, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: an isolation step-up transformer; the drive circuit is connected to the ultrasonic knife through the isolation step-up transformer.
[0014] Optionally, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system further includes: an optical coupling isolation communication circuit, and the controller is connected to the ultrasonic knife measurer via the optical coupling isolation communication circuit.
[0015] Optionally, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: a power supply and a common-mode choke coil, the power supply is respectively connected to the common-mode choke coil and the controller, the common-mode choke coil is connected to the drive circuit, and the power supply is used to provide a drain voltage for the drive circuit.
[0016] Optionally, the drain voltage detection circuit includes: a diode clamping circuit, a voltage divider circuit, a voltage follower and a valley detection circuit, the diode clamping circuit is connected to the voltage divider circuit and the driving circuit respectively, the voltage divider circuit is connected to the voltage follower, the voltage follower is connected to the valley detection circuit, and the valley detection circuit is connected to the controller.
[0017] Optionally, the controller and the ultrasonic knife measuring device are both STM32F407 single-chip microcomputers.
[0018] Optionally, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: a human-computer interaction module, which is connected to the controller and is used to input the set power range value.
[0019] The present invention also provides a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control method, the method is applied to the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system as described above, the method comprises:
[0020] According to the set power range value, determine the expected current value and the expected phase difference;
[0021] Acquire an actual current measured by an ultrasonic knife measuring device and an actual phase difference calculated by the ultrasonic knife measuring device; the actual phase difference is determined by the actual current and the actual voltage measured by the ultrasonic knife measuring device;
[0022] Calculating a current deviation value and a phase difference deviation value; the current deviation value is determined by the expected current value and the actual current value; the phase difference deviation value is determined by the expected phase difference value and the actual phase difference value;
[0023] Calculating a target current and an output frequency based on the current deviation value and the phase difference deviation value;
[0024] adjusting the resistance of the digital potentiometer according to the target current;
[0025] According to the output frequency, adjusting the output waveform of the direct digital frequency synthesizer so that the direct digital frequency synthesizer outputs a waveform of a target frequency;
[0026] The direct digital frequency synthesizer inputs the waveform of the target frequency into the digital potentiometer after the resistance is adjusted. The digital potentiometer after the resistance is adjusted outputs the target voltage according to the waveform of the target frequency, and inputs the target voltage into the ultrasonic knife to change the working power and working frequency of the ultrasonic knife.
[0027] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: by setting a controller, a direct digital frequency synthesizer and a digital potentiometer, the controller adjusts the frequency of the output current by adjusting the frequency of the direct digital frequency synthesizer, and controls the power of the output current by adjusting the resistance of the digital potentiometer, thereby accurately controlling the output frequency and power of the tool and improving the control accuracy of minimally invasive surgery. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 This is an overall schematic diagram of a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to an embodiment of the present invention;
[0030] Figure 2 This is a block diagram of a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to an embodiment of the present invention;
[0031] Figure 3 A diagram showing the connection relationship between the controller and the external structure in the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to an embodiment of the present invention;
[0032] Figure 4 A diagram showing the connection relationship between an ultrasonic knife measuring device and an external structure in a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to an embodiment of the present invention;
[0033] Figure 5 is a schematic diagram of a drain voltage detection circuit according to an embodiment of the present invention;
[0034] Figure 6 A flow chart of providing a drain voltage for a driving circuit according to an embodiment of the present invention;
[0035] Figure 7 A flow chart of providing a gate voltage to a driving circuit according to an embodiment of the present invention;
[0036] Figure 8 This is a flow chart of a driving circuit providing voltage to an ultrasonic knife according to an embodiment of the present invention;
[0037] Fig. 9 A flow chart of calculating the phase difference in an embodiment of the present invention;
[0038] Fig.10 The flowchart of calculating the target current and output frequency according to the embodiment of the present invention.
[0039] Explanation of symbols: 1-ultrasonic knife measuring device, 2-controller, 3-direct digital frequency synthesizer, 4-digital potentiometer, 5-optocoupler isolation communication circuit, 6-mainboard information reading module, 7-resistance network button status detection module, 8-ultrasonic knife output module, 9-LED lamp, 10-human-computer interaction module, 11-level conversion circuit, 12-touch screen, 13-drive circuit, 14-drain voltage detection circuit, 15-isolation step-up transformer, 16-diode clamp circuit, 17-voltage divider circuit, 18-voltage follower, 19-valley detection circuit, 20-power supply, 21-common mode choke coil, 22-control module. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The purpose of the present invention is to provide a dual-core MCU intelligent ultrasonic minimally invasive scalpel control system and control method, which is provided with a controller, a direct digital frequency synthesizer and a digital potentiometer. The controller accurately controls the output frequency and power of the tool by adjusting the frequency of the output waveform of the direct digital frequency synthesizer and adjusting the resistance of the digital potentiometer, thereby improving the control accuracy of minimally invasive surgery.
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] Example 1
[0044] like Figure 1-Figure 4 As shown, a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system includes: an ultrasonic knife measuring device 1, a controller 2, a direct digital frequency synthesizer 3 and a digital potentiometer 4; the controller 2, the direct digital frequency synthesizer 3 and the digital potentiometer 4 constitute a control module 22; the controller 2 is respectively connected to the ultrasonic knife measuring device 1, the direct digital frequency synthesizer 3 and the digital potentiometer 4; the direct digital frequency synthesizer 3 is connected to the digital potentiometer 4; the digital potentiometer 4 is connected to the ultrasonic knife.
[0045] The ultrasonic knife measuring device 1 is used to measure the actual current and actual voltage of the ultrasonic knife. The ultrasonic knife measuring device 1 measures and samples multiple electrical signals at the same time, saving time; the controller 2 is used to adjust the resistance value of the digital potentiometer 4 according to the input set power range value, the actual current and the actual voltage, and communicate with the direct digital frequency synthesizer 3 through the SPI communication protocol to control the direct digital frequency synthesizer 3 to output the waveform of the target frequency; the digital potentiometer 4 after the resistance is adjusted is used to output the target voltage according to the waveform of the target frequency, and input the target voltage to the ultrasonic knife to change the working power and working frequency of the ultrasonic knife.
[0046] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: an optocoupler isolation communication circuit 5, the controller 2 is connected to the ultrasonic knife measurer 1 through the optocoupler isolation communication circuit, and the optocoupler isolation communication circuit uses a multi-stage high-precision operational amplifier to isolate the controller 2 from the ultrasonic knife measurer 1 to prevent signal interference caused by electrical connection, reduce interference between the voltage control circuit and the external high-voltage circuit, and reduce the impact of the measurement loop on the electrical signal.
[0047] As an optional implementation, the controller 2 and the ultrasonic knife measuring device 1 are both STM32F407 single-chip microcomputers, which have low power consumption, high performance, high speed and large storage capacity.
[0048] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: a mainboard information reading module 6, which is connected to the controller 2, and the mainboard information reading module 6 is used to obtain the ID of the ultrasonic knife power generator and other setting parameters.
[0049] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: a resistor network button state detection module 7, the resistor network button state detection module 7 is connected to the ultrasonic knife measuring device 1, and the resistor network button state detection module 7 is used to read the ID of the ultrasonic knife device and determine the button state of the ultrasonic knife.
[0050] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: an ultrasonic knife output module 8, the digital potentiometer 4 is connected to the ultrasonic knife through the ultrasonic knife output module 8, and the ultrasonic knife output module 8 is used to provide an interface for the ultrasonic transducer device.
[0051] As an optional implementation, the ultrasonic knife output module 8 includes a filter circuit and an interface circuit, the filter circuit is connected to the digital potentiometer 4 and the interface circuit, and the interface circuit is connected to the ultrasonic knife.
[0052] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system further includes: an LED light 9, which is connected to the ultrasonic knife measurer 1, and the LED light 9 is used to indicate whether the ultrasonic knife measurer 1 is working normally.
[0053] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system further includes: a human-computer interaction module 10, the human-computer interaction module 10 is connected to the controller 2, and the human-computer interaction module 10 is used to input the set power range value.
[0054] The human-computer interaction module 10 includes a level conversion circuit 11 and a touch screen 12, and the level conversion circuit 11 is connected to the touch screen 12 and the controller 2 respectively. The level conversion circuit 11 is used to convert the TTL level signal generated by the controller 2 into an RS232 level signal recognizable by the touch screen 12, and convert the RS232 level signal generated by the touch screen 12 into a TTL level signal recognizable by the controller 2. The touch screen 12 is used to realize a visual graphical interface and thus realize the function of human-computer interaction. The main functions realized by the touch screen 12 include: displaying the name of the handle, displaying and adjusting the power level of the ultrasonic knife, adjusting the volume, adjusting the brightness of the touch screen 12, selecting the excitation mode of the ultrasonic knife device, selecting the system language, testing the handle, displaying system information, displaying the working parameters of the ultrasonic knife during operation, and reading and writing logs.
[0055] The controller 2 reads the historical data such as the system language, volume, display brightness, etc. stored in the memory of the touch screen 12 through the level conversion circuit 11, and then sends instructions to the touch screen 12 through the serial port to complete the initialization of the touch screen 12. During use, the touch screen 12 sends the use status of the touch screen 12 to the controller 2 in real time, and the controller 2 implements the user's desired operation according to the use status of the touch screen 12. The human-computer interaction module 10 uses a visual graphical interface to realize the human-computer interaction function, which greatly improves the practicality and operability of the entire equipment system, allowing users to select different working modes through the graphical interface according to different surgical needs, which can not only further enrich the functions of the equipment, but also better monitor the working status of the system in real time during the operation, greatly improving the safety and reliability of the operation.
[0056] As an optional implementation, the power supply is connected to the touch screen 12 .
[0057] As an optional implementation, the level conversion circuit 11 is a TIL_RS232 level conversion circuit.
[0058] As an optional implementation, the TTL-RS232 level conversion circuit uses an SP3232 chip.
[0059] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: a driving circuit 13 and a drain voltage detection circuit 14; in order to better control the current output by the driving circuit 13, the present invention adjusts the current output by the driving circuit 13 by adjusting the gate voltage of the driving circuit 13.
[0060] The driving circuit 13 is respectively connected to the direct digital frequency synthesizer, the digital potentiometer 4, the drain voltage detection circuit 14 and the ultrasonic knife; the drain voltage detection circuit 14 is connected to the controller 2; the drain voltage detection circuit 14 is used to detect the drain voltage of the driving circuit 13 and send the drain voltage to the controller 2; the controller 2 is used to control the driving circuit 13 to work in the saturation region. A part of the voltage in the direct digital frequency synthesizer is distributed to the digital potentiometer 4 to provide a gate voltage for the driving circuit 13, and the other part is directly used as the driving voltage of the driving circuit to drive the driving circuit to work.
[0061] As an optional implementation, the driving circuit 13 is composed of two semiconductor field effect transistors connected in parallel.
[0062] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive scalpel control system also includes: an isolation step-up transformer 15; the drive circuit 13 is connected to the ultrasonic scalpel through the isolation step-up transformer 15, and the isolation step-up transformer 15 effectively isolates the electrical signal applied to the scalpel from the drive circuit 13 end, thereby preventing the current and energy in the patient contact area from directly flowing to the external non-isolated electrical area, avoiding grounding faults caused by disordered flow of current information generated by accidents, cutting off the current grounding loop, and ensuring safe and stable circuit operation.
[0063] As an optional implementation, Figure 5As shown, the drain voltage detection circuit 14 includes: a diode clamp circuit 16, a voltage divider circuit 17, a voltage follower 18 and a valley detection circuit 19, the diode clamp circuit 16 is respectively connected to the voltage divider circuit 17 and the drive circuit 13, the voltage divider circuit 17 is connected to the voltage follower 18, the voltage follower 18 is connected to the valley detection circuit 19, the valley detection circuit 19 is connected to the controller 2, the voltage follower 18 and the voltage divider circuit 17 are used to make the voltage more stable, and the voltage divider circuit 17 is used to reduce the input voltage of the valley detection circuit 19.
[0064] As an optional implementation, the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system also includes: a power supply 20 and a common-mode choke coil 21, wherein the power supply 20 is connected to the common-mode choke coil 21 and the controller 2 respectively, and the common-mode choke coil 21 is connected to the drive circuit 13, and the common-mode choke coil 21 filters the common-mode electromagnetic interference signal. The power supply 20 is used to provide a drain voltage for the drive circuit 13. In order to reduce the influence of the drain voltage of the drive circuit 13 on the current output by the drive circuit 13, it is necessary to make the drive circuit 13 always work in the saturation region. The drive circuit 13 needs to meet the following conditions when working in the saturation region: V dsat ≥V gs -V th , where V dsat represents the drain voltage of the driving circuit 13 working in the saturation region, V gs Represents the drain voltage, V th Represents the critical voltage of the driving circuit 13.
[0065] In order to make V dsat ≥V gs -V th Always established and not because of V dsat Too large will cause the drive circuit 13 to lose too much power, and the output voltage of the power supply 20 needs to be adjusted continuously to change V dsat size.
[0066] like Figure 6-Figure 8 As shown, adjusting the drain voltage of the driving circuit 13 specifically includes:
[0067] A diode clamp circuit 16 is used to measure the drain voltage of two groups of MOSFETs (metal-oxide semiconductor field-effect transistors) in the drive circuit 13, and the minimum drain voltage is filtered. The minimum drain voltage is transmitted in the order of a voltage divider resistor, a voltage follower 18 and a valley detection circuit 19, and the valley detection circuit 19 is used to measure the value of the minimum drain voltage; the controller 2 controls the duty cycle of the PWM wave of the voltage output by the power supply 20 according to the measured value of the minimum drain voltage, and provides a drain voltage to the drive circuit 13 after passing through the common-mode choke coil 21.
[0068] Adjusting the gate voltage of the driving circuit 13 specifically includes:
[0069] The voltage detection circuit and the current detection circuit in the ultrasonic knife measuring device 1 measure the actual voltage and the actual current respectively, and process the measured actual voltage and the actual current, and then transmit them to the controller 2 through the optocoupler isolation circuit 5. The controller 2 adjusts the output waveform of the direct digital frequency synthesizer 3 and inputs the output waveform to the digital potentiometer 4. The digital potentiometer 4 outputs a gate voltage to the drive circuit 13, driving the drive circuit 13 to generate a drain current. The drain current generates the voltage required by the ultrasonic knife through the isolation step-up transformer 15 and the ultrasonic knife output module 8.
[0070] The specific method of using the dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system in this embodiment is as follows:
[0071] Step 1: Initialize the ultrasonic knife measuring instrument, including:
[0072] After the ultrasonic knife measuring device is powered on, the serial port and subsystem hardware platform are initialized. The ultrasonic knife measuring device uses an external crystal oscillator as the clock source of the ultrasonic knife measuring device. Serial port 1 and serial port 5 are initialized respectively. Serial port 1 is used to connect the USB to UART serial port module for computer debugging or reading data. Serial port 5 is used to communicate with the controller. Finally, each serial port and timer are initialized respectively.
[0073] Step 2: Controller initialization, including:
[0074] After the controller is powered on, the serial port and subsystem hardware platform are initialized. The controller uses an external crystal oscillator. Serial ports 1, 2, 3, 4, and 5 are initialized respectively. Serial port 1 is used to control the internal digital-to-analog converter output, serial port 2 is used to communicate with the digital potentiometer, serial port 3 is used to communicate with the direct digital frequency synthesizer, serial port 4 is used to communicate with the touch screen, and serial port 5 is used to communicate with the ultrasonic knife measuring device. Finally, the SPI port and digital-to-analog converter, digital potentiometer, direct digital frequency synthesizer, timer, and switching power supply voltage are initialized respectively.
[0075] Step 3: The controller initializes the touch screen, including:
[0076] Step 1: Divide the 512-byte buffer into a circular queue to store the commands issued by the touch screen. Read the commands in the command buffer every 5ms. If the buffer is not empty, process the buffer.
[0077] Step 2: Read the real-time clock instruction from the touch screen. After receiving the real-time clock instruction returned by the touch screen, judge the variable address in the real-time clock instruction. If the variable address is 0x0010 (the variable address storing the real-time time), record the year, month, day, hour, minute, second and other data in the instruction.
[0078] Step 3: Send a command to read Nor Flash to the touch screen, and configure the historical values read from Nor Flash after receiving the command returned by the touch screen. The historical values stored in the touch screen Nor Flash include log content, display brightness, system volume, number of logs, system language, and power generator excitation mode.
[0079] Step 4: After reading the system language from Nor Flash, reconfigure the text information displayed on the touch screen according to the system language. The text encoding format used in the development software Keil MDK is UTF-8, while the text encoding format used in the touch screen is Unicode, so before sending the text information to the touch screen, the text in UTF-8 encoding format needs to be converted to Unicode encoding format.
[0080] Step 5: Set the MIN level of the ultrasonic knife to 3.
[0081] Step 6: Enable the watchdog.
[0082] Step 4: Use the timer interrupt to control the target current and output frequency every 5ms.
[0083] Step 5: Enter the working state and press the start button or foot switch on the ultrasonic knife device.
[0084] Step 6: Shut down the system: When the device system is shut down, disconnect the medical power switch to power off the device system to shut down the system.
[0085] Finally, if you restart the device system, repeat steps 1 to 4 until the system enters normal working state again.
[0086] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: by setting a controller, a direct digital frequency synthesizer and a digital potentiometer, the controller adjusts the frequency of the output current by adjusting the frequency of the direct digital frequency synthesizer, and controls the power of the output current by adjusting the resistance of the digital potentiometer, thereby accurately controlling the output frequency and power of the tool and improving the control accuracy of minimally invasive surgery.
[0087] Example 2
[0088] This embodiment provides a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control method, which specifically includes:
[0089] Step 101: Determine the expected current value and the expected phase difference according to the set power range value.
[0090] Step 102 : obtaining an actual current measured by the ultrasonic knife measuring device 1 and an actual phase difference calculated by the ultrasonic knife measuring device 1 ; the actual phase difference is determined by the actual current and the actual voltage measured by the ultrasonic knife measuring device 1 .
[0091] The method of obtaining the actual current measured by the ultrasonic knife measurer 1 and the actual phase difference calculated by the ultrasonic knife measurer 1 specifically includes: using the voltage acquisition function, the current acquisition function and the timer of the analog-to-digital converter in the ultrasonic knife measurer 1 to periodically detect the current amplitude and phase, the voltage amplitude and phase of the ultrasonic knife interface circuit, measure the actual current value and calculate the actual phase difference value.
[0092] like Fig. 9 As shown, the calculation process of the actual phase difference in step 102 is as follows:
[0093] S1: Enable capture channel CH2 and initialize CH2.
[0094] S2: Determine whether CH2 captures the first rising edge. If not, CH2 continues to capture the first rising edge; if yes, Tim6 starts timing, Tim8 counts are cleared to start timing and capture channel CH3 is enabled.
[0095] S3: Determine whether CH3 captures the first rising edge. If not, CH3 continues to capture the first rising edge. If yes, Tim6 stops timing and obtains the value of Tim6.
[0096] S4: Determine whether CH2 captures the second rising edge. If not, CH2 continues to capture the second rising edge. If yes, Tim8 stops timing and obtains the value of Tim8. Tim8 and Tim6 are reset.
[0097] S5: Determine whether CH3 captures the second rising edge. If not, CH3 continues to capture the second rising edge. If so, Tim8 and Tim6 are reset, and then S2 is performed to perform the next cycle.
[0098] If the capture channel CH2 is enabled to capture the rising edge of current, then the capture channel CH3 is enabled to capture the rising edge of voltage. If the capture channel CH3 is enabled to capture the rising edge of current, then the capture channel CH2 is enabled to capture the rising edge of voltage.
[0099] S6: Calculate the actual phase difference according to Tim6 obtained in S3 and Tim8 obtained in S4; the formula for calculating the actual phase difference is:
[0100] Step 103: Calculate a current deviation value and a phase difference deviation value; the current deviation value is determined by the expected current value and the actual current value; the phase difference deviation value is determined by the expected phase difference value and the actual phase difference value.
[0101] Step 104: Calculate the target current and output frequency according to the current deviation value and the phase difference deviation value.
[0102] like Fig.10 As shown, the process of the PID algorithm specifically includes: obtaining the previous deviation value, the previous deviation value and the current deviation value, and inputting the obtained deviation value into the formula E=K P *(Err-Err_last)+K i *Err+Kd*(Err-2*Err_last+Err_last_last)+E′ to get the target value, and determine whether it exceeds the limit value. If it exceeds the limit value, the limit value is output as the target value. If it does not exceed the limit value, the target value is directly output. E means the target value, Err means the deviation value this time, Err_last means the deviation value last time, Err_last_last means the deviation value of the last time, E′ means the last target value, K P , K I , K D are the parameters of the PID controller.
[0103] In step 104, the target current is calculated according to the PID algorithm, which specifically includes:
[0104] Using I = K P *(ΔI (K) -ΔI (K-1) )+K i *ΔI (K) +K d *(ΔI (K) -2*ΔI (K-1) +ΔI (K-2) )+I′ to find the target current. Where I is the target current, ΔI (K) is the current deviation value, ΔI (K-1) is the last current deviation value, ΔI (K-2) is the last current deviation value, K P , K i , K d is the parameter of the PID controller, and I′ is the last target current.
[0105] In step 104, the output frequency is calculated according to the PID algorithm, which specifically includes:
[0106] according to Find the output frequency, where f is the output frequency, is the phase difference deviation value, is the last phase difference deviation value, is the last phase difference deviation value, K P , K i , K d is the parameter of the PID controller, and f′ is the last output frequency.
[0107] Step 105: adjusting the resistance of the digital potentiometer 4 according to the target current. The larger the target current is, the smaller the set working resistance of the digital potentiometer 4 is; the smaller the target current is, the larger the set working resistance of the digital potentiometer 4 is.
[0108] Step 106: According to the output frequency, adjust the output waveform of the direct digital frequency synthesizer 3 so that the direct digital frequency synthesizer 3 outputs a waveform of a target frequency.
[0109] Step 107: The direct digital frequency synthesizer 3 inputs the waveform of the target frequency into the digital potentiometer 4 after the resistance is adjusted. The digital potentiometer 4 after the resistance is adjusted outputs the target voltage according to the waveform of the target frequency, and inputs the target voltage to the ultrasonic knife to change the working power and working frequency of the ultrasonic knife.
[0110] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: by setting a controller, a direct digital frequency synthesizer and a digital potentiometer, the controller adjusts the frequency of the output current by adjusting the frequency of the direct digital frequency synthesizer, and controls the power of the output current by adjusting the resistance of the digital potentiometer, thereby accurately controlling the output frequency and power of the tool and improving the control accuracy of minimally invasive surgery.
[0111] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0112] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system, characterized in that: include: Ultrasonic knife measuring device, controller, direct digital frequency synthesizer, digital potentiometer, driving circuit and drain voltage detection circuit; the controller is respectively connected with the ultrasonic knife measuring device, the direct digital frequency synthesizer and the digital potentiometer; the direct digital frequency synthesizer is connected with the digital potentiometer; the digital potentiometer is connected with the ultrasonic knife; The ultrasonic knife measuring device is used to measure the actual current and actual voltage of the ultrasonic knife; the controller is used to adjust the resistance value of the digital potentiometer according to the input set power range value, the actual current and the actual voltage, and control the direct digital frequency synthesizer to output the waveform of the target frequency; the digital potentiometer after the resistance adjustment is used to output the target voltage according to the waveform of the target frequency, and input the target voltage to the ultrasonic knife to change the working power and working frequency of the ultrasonic knife; the driving circuit is respectively connected to the direct digital frequency synthesizer, the digital potentiometer, the drain voltage detection circuit and the ultrasonic knife; the drain voltage detection circuit is connected to the controller; the drain voltage detection circuit is used to detect the drain voltage of the driving circuit, and send the drain voltage to the controller; The controller is used to control the driving circuit to work in the saturation region; a part of the voltage in the direct digital frequency synthesizer is distributed to the digital potentiometer to provide a gate voltage for the driving circuit, and the other part is directly used as a driving voltage of the driving circuit to drive the driving circuit to work; The drain voltage detection circuit includes: a diode clamp circuit, a voltage divider circuit, a voltage follower and a valley detection circuit, the diode clamp circuit is connected to the voltage divider circuit and the drive circuit respectively, the voltage divider circuit is connected to the voltage follower, the voltage follower is connected to the valley detection circuit, and the valley detection circuit is connected to the controller.
2. According to claim 1, a dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system is characterized in that: The driving circuit is composed of two semiconductor field effect transistors connected in parallel.
3. A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to claim 1, characterized in that: Also includes: Isolation step-up transformer; The driving circuit is connected to the ultrasonic knife through the isolation step-up transformer.
4. A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to claim 1, characterized in that: Also includes: An optical coupling isolation communication circuit, wherein the controller is connected to the ultrasonic knife measuring device via the optical coupling isolation communication circuit.
5. A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to claim 1, characterized in that: Also includes: A power supply and a common mode choke coil, wherein the power supply is connected to the common mode choke coil and the controller respectively, the common mode choke coil is connected to the drive circuit, and the power supply is used to provide a drain voltage for the drive circuit.
6. A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to claim 1, characterized in that: The controller and the ultrasonic knife measuring device are both STM32F407 single chip microcomputers.
7. A dual-core MCU intelligent ultrasonic minimally invasive surgical knife control system according to claim 1, characterized in that: Also includes: A human-computer interaction module is connected to the controller and is used to input the set power range value.
Citation Information
Patent Citations
Smart ultrasonic physical therapy instrument
CN103977508A
Method and system for eliminating stroboflash of LED
CN107734770A
Ultrasonic scalpel system based on frequency and power tracking and control method thereof
CN110537958A
Dual-core MCU intelligent ultrasonic minimally invasive scalpel control device
CN211243606U
