Working method of electrolysis control circuit, disinfectant manufacturing device and storage medium
By detecting the current value and the duty cycle of the PWM control signal, the electrolysis process is adjusted in real time, and the solution concentration detection problem in the existing disinfectant manufacturing device is solved to ensure the stability and disinfection effect of the electrolysis process.
Patent Information
- Application Number
- CN202110821547.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-20
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-07-20
AI Technical Summary
The existing disinfectant manufacturing device cannot detect the concentration of the salt solution added by the user in real time, resulting in too large or too small electrolytic current, affecting the concentration of sodium hypochlorite generation and unable to meet the disinfection requirements.
By obtaining the detection current value and determining the salt content state of the solution based on the duty cycle of the PWM control signal, adjust the electrolysis process in real time to prevent excessive current from damaging the equipment, and sending a prompt signal to ensure that the solution meets the electrolysis requirements.
Accurate detection and adjustment of the salt content of the solution is achieved, ensuring that the electrolysis process runs in the best state, avoiding equipment damage, and facilitating users to understand the solution status, improving the quality of disinfectant generation.
Smart Images

Figure CN113703350B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliances, and more specifically, to a working method of an electrolysis control circuit, a disinfectant manufacturing device using the working method of the electrolysis control circuit, and a computer-readable storage medium using the working method of the electrolysis control circuit. Background Art
[0002] As people's living standards improve, many smart appliances have entered people's lives, and disinfectant manufacturing devices are one of the types of appliances used in daily life. The working principle of the existing disinfectant manufacturing device is: electrolyzing sodium chloride electrolytic solution to generate sodium hypochlorite solution. Sodium hypochlorite is the main component of the disinfectant. However, in the existing disinfectant manufacturing device, since it is impossible to detect the concentration of the salt solution after the user adds salt (sodium chloride), when the electrolysis voltage provided by the power supply remains unchanged, if the concentration of the salt solution is too large, the electrolysis current will be too large, which may cause damage to the control circuit; if the concentration of the salt solution is too small, the electrolysis current will be very small, resulting in insufficient concentration of the generated sodium hypochlorite, which cannot meet the disinfection requirements.
[0003] Therefore, it is necessary to consider developing a more optimized disinfectant manufacturing device. Summary of the invention
[0004] The first object of the present invention is to provide a working method of an electrolysis control circuit which can facilitate detection of the salt content state of a solution.
[0005] The second object of the present invention is to provide a disinfectant manufacturing device that can easily detect the salt content of the solution.
[0006] A third object of the present invention is to provide a computer-readable storage medium that can facilitate detection of the salt content state of a solution.
[0007] In order to achieve the above-mentioned first purpose, the working method of the electrolysis control circuit provided by the present invention includes: when obtaining the instruction to enter the electrolysis state, dynamically outputting a PWM control signal to the MOS tube according to the current concentration mode; obtaining the detection current value of the detection resistor in real time; when the detection current value reaches a first preset current value, determining the salt content state of the solution according to the current duty cycle of the PWM control signal.
[0008] It can be seen from the above scheme that the working method of the electrolysis control circuit of the present invention dynamically outputs a PWM control signal to the MOS tube according to the current concentration mode, and when the detection current value reaches the first preset current value, the salt content state of the solution is determined according to the current duty cycle of the PWM control signal, thereby knowing the salt content of the solution in the electrolytic solution, which is convenient for reminding the user.
[0009] In a further solution, the step of dynamically outputting a PWM control signal to the MOS tube according to the current concentration mode includes: controlling the duty cycle of the PWM control signal to gradually increase a preset value starting from a preset duty cycle.
[0010] It can be seen from this that when controlling the PWM control signal, starting from the preset duty cycle and gradually increasing it can ensure that the electrolysis control circuit quickly reaches the current required for electrolysis and prevent the loop current from being too large to damage the equipment.
[0011] In a further scheme, the step of determining the salt content state of the solution according to the current duty cycle of the PWM control signal includes: if the current duty cycle is higher than the upper limit of the preset range value, the salt content state of the solution is in a low salt content state; if the current duty cycle is within the preset range value, the salt content state of the solution is in a normal salt content state; if the current duty cycle is lower than the lower limit of the preset range value, the salt content state of the solution is in a high salt content state.
[0012] It can be seen that the salt content state of the electrolytic solution can be accurately known through the preset range value of the duty cycle.
[0013] In a further embodiment, after the step of determining the salinity state of the solution according to the current duty cycle of the PWM control signal, the method further comprises: when the salinity state of the solution is in a normal salinity state, outputting the PWM control signal with the current duty cycle to perform electrolysis.
[0014] It can be seen that when the salt content of the solution is in a normal state, it means that the current electrolytic solution meets the electrolysis requirements of the current concentration mode. At this time, electrolysis is performed at the current duty cycle to maintain the current in the optimal state.
[0015] In a further solution, the step of outputting a PWM control signal with the current duty cycle to perform electrolysis also includes: determining whether the detected current value is greater than a second preset current value, and if so, turning off the MOS tube to stop the electrolysis work.
[0016] It can be seen that after electrolysis is carried out with the current duty cycle outputting the PWM control signal, a stable electrolysis state is entered. In order to avoid damage to the equipment due to circuit overcurrent, the detection current value is detected. When the detection current value is greater than the second preset current value, the electrolysis work is stopped to ensure the safety of the equipment.
[0017] In a further solution, if the salt content of the solution is in a low salt content state or a high salt content state, the MOS tube is turned off and the electrolysis work is stopped.
[0018] It can be seen that if the salt content of the solution is in a low salt content state or a high salt content state, it means that the current electrolytic solution does not meet the electrolysis requirements of the current concentration mode. Therefore, the electrolysis work is stopped so that the user can re-adjust the electrolytic solution.
[0019] In a further embodiment, after the step of determining the state of the salt content of the solution according to the current duty cycle of the PWM control signal, the method further comprises: sending a corresponding prompt signal according to the state of the salt content of the solution.
[0020] It can be seen that sending a corresponding prompt signal according to the salt content of the solution can facilitate the user to obtain the information and perform corresponding processing operations.
[0021] In a further solution, after the step of dynamically outputting a PWM control signal to the MOS tube according to the current concentration mode, the method further includes: counting the electrolysis time of entering the electrolysis state; and sending a reversal control signal to the reversal circuit at each preset time interval.
[0022] It can be seen that during electrolysis, scale is easily attached to the electrodes of the electrolytic component, thereby affecting the electrolytic performance. Therefore, sending a reversal control signal to the reversal circuit at each preset time interval can play a role in descaling and ensure electrolytic performance.
[0023] In order to achieve the second purpose of the present invention, the present invention provides a disinfectant manufacturing device including a processor and a memory, the memory stores a computer program, and when the computer program is executed by the processor, the steps of the working method of the electrolysis control circuit are implemented.
[0024] In order to achieve the third objective of the present invention, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a controller, the steps of the working method of the electrolysis control circuit are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a circuit schematic diagram of the electrolysis control circuit in the working method embodiment of the electrolysis control circuit of the present invention.
[0026] Figure 2 It is a flow chart of an embodiment of the working method of the electrolysis control circuit of the present invention.
[0027] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0028] Working method embodiment of electrolysis control circuit:
[0029] The working method of the electrolysis control circuit of this embodiment is an application program applied in the electrolysis control circuit, which is used to control the electrolysis circuit to perform electrolysis. Figure 1As shown, the electrolysis control circuit includes a main controller 1, a MOS tube Q, a detection resistor R and an electrolysis component Z. The main controller 1 is electrically connected to the control end of the MOS tube Q, the first end of the MOS tube Q is electrically connected to the first end of the electrolysis component Z, the second end of the electrolysis component Z is electrically connected to the first power supply end, the second end of the MOS tube Q is electrically connected to the first end of the detection resistor R, the second end of the detection resistor R is electrically connected to the second power supply end, and the branch between the second end of the MOS tube Q and the first end of the detection resistor R is electrically connected to the main controller 1. The first power supply end and the second power supply end can be positive and negative poles to each other, which can be determined according to the type of the MOS tube Q. In this embodiment, the MOS tube Q is an N-type MOS tube, the first power supply end is connected to VCC, and the second power supply end is grounded GND. In this embodiment, the electrolysis control circuit also includes a polarity reversal circuit 2, which is electrically connected to both ends of the electrolysis component Z, and the polarity reversal circuit 2 is electrically connected to the main controller 1. The main controller 1 sends a polarity reversal control signal to the polarity reversal circuit 2, and the polarity reversal circuit 2 switches and controls the connection path between the first end and the second end of the electrolysis component Z and the first power supply end and the second power supply end according to the polarity reversal control signal, so as to realize the polarity exchange between the first end and the second end of the electrolysis component Z. The polarity reversal circuit 2 adopts a well-known polarity reversal circuit, and the electrolysis component Z adopts a well-known electrolysis component, and the electrolysis component is provided with two electrodes, which will not be described in detail here.
[0030] See also Figure 2 In this embodiment, the working method of the electrolysis control circuit first executes step S1 when working. When the instruction to enter the electrolysis state is obtained, a PWM control signal is output to the MOS tube according to the current concentration mode. When the user needs to perform electrolysis, the instruction to enter the electrolysis state is sent through the key circuit to enter the electrolysis working state. The user can select the required concentration mode for electrolysis. The concentration mode can be divided into levels according to actual needs. In this embodiment, the concentration mode is divided into a low concentration mode and a high concentration mode according to the salt content. After obtaining the instruction to enter the electrolysis state, the main control circuit 1 outputs a PWM control signal to the MOS tube. At this time, the PWM control signal is output with a preset duty cycle. In this embodiment, the preset duty cycle is the lowest duty cycle in the current concentration mode.
[0031] After the PWM control signal is output to the MOS tube, step S2 is executed to obtain the detection current value of the detection resistor in real time. In order to monitor the working current during electrolysis, the detection current value is obtained by sampling the detection resistor for further operation.
[0032] After obtaining the detection current value, step S3 is executed to determine whether the detection current value reaches the first preset current value. The first preset current value is the current value that can make the electrolytic solution achieve the best electrolysis efficiency, which can be preset according to experimental data. In this embodiment, the first preset current value is 1.8A. The voltage of the detection resistor R collected by the main controller 1 can be used to derive the current in the loop through Ohm's law U=I×R, thereby obtaining the detection current value.
[0033] If the detected current value does not reach the first preset current value, step S4 is executed to control the duty cycle of the PWM control signal to increase the preset value. The preset value can be preset according to experimental data. By gradually increasing the preset value, the electrolysis control circuit can quickly reach the current required for electrolysis, and gradually increase the duty cycle to ensure the accuracy of current control and avoid overcurrent. After controlling the duty cycle of the PWM control signal to increase the preset value, return to step S2 to continue detecting the detected current value after adjusting the duty cycle.
[0034] If the detected current value reaches the first preset current value, step S5 is executed to determine the salt content of the solution according to the current duty cycle of the PWM control signal. If the detected current value reaches the first preset current value, it means that the current electrolysis current has reached the optimal current value. At this time, the salt content of the solution can be determined according to the current duty cycle of the PWM control signal, so that the user can know whether the current electrolytic solution meets the electrolysis requirements.
[0035] In order to better illustrate the working principle of the present application, the relationship between the current duty cycle of the PWM control signal and the salt content of the solution is explained below.
[0036] In the electrolysis control circuit of this embodiment, the main controller 1 is used to output a PWM control signal to the MOS tube Q, thereby driving the on and off of the MOS tube Q. Different duty ratios of the PWM control signal affect the conductivity of the MOS tube Q. When the main controller 1 outputs a low level (i.e., the duty ratio of the PWM control signal is 0%), the MOS tube Q is not turned on. The larger the duty ratio, the larger the current that can flow through the MOS tube Q. When the MOS tube Q is turned on, the current passes from the positive electrode VCC end through the electrolytic component Z, then through the MOS tube Q, then through the detection resistor R, and finally reaches the negative electrode GND end, forming a loop, so that the electrolytic component Z electrolyzes the electrolytic solution.
[0037] During the electrolysis process, the electrolytic component Z is in the electrolytic solution, and the electrolytic solution forms a resistance characteristic between the two electrode sheets. Since water contains various dissolved salts and exists in the form of ions. When a pair of electrodes are inserted into the water, after power is applied, under the action of the electric field, the charged ions move in a certain direction. The anions in the water move toward the anode, making the electrolytic solution conductive. The degree of water conductivity is called conductivity. Conductivity reflects the amount of salt in the water and is an important indicator of water purity. The purer the water, the less salt it contains, the greater the resistance and the smaller the conductivity. The greater the salt content of the water, the smaller the resistance and the greater the conductivity. Based on this, the relationship between the salt content of the electrolytic solution (i.e. the content of sodium chloride in the solution), current, and PWM duty cycle can be obtained through experiments. For example, see the following table:
[0038] Sampling resistance value Solution salt content Current PWM Duty Cycle 0.2Ω 2g / L 1.8A 35% 0.2Ω 3g / L 1.8A 30% 0.2Ω 4g / L 1.8A 25%
[0039] Therefore, according to the relationship among the salt content of the solution, the current and the PWM duty cycle, when the duty cycle of the PWM control signal is obtained, the salt content state of the solution can be determined.
[0040] In this embodiment, the step of determining the state of the salt content of the solution according to the current duty cycle of the PWM control signal includes: if the current duty cycle is higher than the upper limit of the preset range value, the state of the salt content of the solution is in a low salt content state; if the current duty cycle is within the preset range value, the state of the salt content of the solution is in a normal salt content state; if the current duty cycle is lower than the lower limit of the preset range value, the state of the salt content of the solution is in a high salt content state. Among them, the preset range value can be pre-set according to experimental data. Through the preset range value of the duty cycle, the state of the salt content of the solution in the electrolytic solution can be accurately known.
[0041] After determining the state of the solution salt content, step S6 is executed. When the solution salt content state is in a normal salt content state, a PWM control signal is output at the current duty cycle for electrolysis. When the solution salt content state is in a normal salt content state, it means that the current electrolytic solution meets the electrolysis requirements of the current concentration mode. At this time, electrolysis is performed at the current duty cycle, so that the current can also be maintained in an optimal state.
[0042] When the PWM control signal is output with the current duty cycle for electrolysis, step S7 is executed to determine whether the detection current value is greater than the second preset current value. The second preset current value is greater than the first preset current value. In this embodiment, the second preset current value is 2A. After the PWM control signal is output with the current duty cycle for electrolysis, a stable electrolysis state is entered. In order to avoid circuit overcurrent and damage to the equipment, the detection current value needs to be detected.
[0043] If the detected current value is not greater than the second preset current value, then continue to execute step S6, output PWM control signal with the current duty cycle to perform electrolysis. If the detected current value is greater than the second preset current value, then execute step S8, turn off the MOS tube, and stop the electrolysis. When the detected current value is greater than the second preset current value, it means that the current is too large, and the electrolysis needs to be stopped to ensure the safety of the equipment.
[0044] At the same time, after determining the salt content of the solution, if the salt content of the solution is in a low salt content state or a high salt content state, the MOS tube is turned off and the electrolysis work is stopped. If the salt content of the solution is in a low salt content state or a high salt content state, it means that the current electrolytic solution does not meet the electrolysis requirements of the current concentration mode, so the electrolysis work is stopped so that the user can re-adjust the electrolytic solution.
[0045] In addition, after the salt content state of the solution is determined according to the current duty cycle of the PWM control signal, a corresponding prompt signal is sent according to the salt content state of the solution. In order to facilitate the user to know the current salt content state of the solution, a corresponding prompt signal is sent according to the salt content state of the solution, which can facilitate the user to know and perform corresponding processing operations. When sending a prompt signal, a prompt is given through an indicator light, and a prompt sound can also be used.
[0046] In addition, since scale is easily attached to the electrodes of the electrolysis component during electrolysis, thereby affecting the electrolysis performance, it is necessary to perform a scale removal operation. In this embodiment, after executing step S1, the step of outputting a PWM control signal to the MOS tube according to the current concentration mode, the electrolysis time of entering the electrolysis state is counted, and a reversal control signal is sent to the reversal circuit at each preset time interval. In this embodiment, the output PWM control signal is used as the starting point of the electrolysis time for statistics, and a reversal control signal is sent to the reversal circuit at each preset time interval, which can play a role in descaling and ensure electrolysis performance.
[0047] Disinfectant manufacturing device embodiment:
[0048] The disinfectant manufacturing device of this embodiment includes a controller, and when the controller executes a computer program, the steps in the working method embodiment of the electrolysis control circuit are implemented.
[0049] For example, the computer program can be divided into one or more modules, one or more modules are stored in the memory and executed by the controller to complete the present invention. One or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the disinfectant manufacturing device.
[0050] The disinfectant manufacturing device may include, but is not limited to, a controller and a memory. Those skilled in the art will appreciate that the disinfectant manufacturing device may include more or fewer components, or a combination of certain components, or different components, for example, the disinfectant manufacturing device may also include input and output devices, network access devices, buses, etc.
[0051] For example, the controller can be a central processing unit (CPU), or other general controllers, digital signal controllers (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general controller can be a microcontroller or the controller can also be any conventional controller, etc. The controller is the control center of the disinfectant manufacturing device, and various interfaces and lines are used to connect the various parts of the entire disinfectant manufacturing device.
[0052] The memory can be used for storing computer programs and / or modules, and the controller realizes the various functions of the disinfectant manufacturing device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. For example, the memory can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one application required for a function, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage devices.
[0053] Computer readable storage medium embodiment:
[0054] If the module integrated in the disinfectant manufacturing device of the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the process in the working method embodiment of the above electrolysis control circuit can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the controller, the steps of the working method embodiment of the above electrolysis control circuit can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0055] From the above, it can be seen that the working method of the electrolysis control circuit of the present invention dynamically outputs a PWM control signal to the MOS tube according to the current concentration mode, and when the detection current value reaches the first preset current value, the salt content state of the solution is determined according to the current duty cycle of the PWM control signal, thereby knowing the salt content of the solution in the electrolytic solution, which is convenient for reminding the user.
[0056] It should be noted that the above are only preferred embodiments of the present invention, but the design concept of the invention is not limited thereto, and any non-substantial modifications made to the present invention using this concept also fall within the protection scope of the present invention.
Claims
1. A working method of an electrolysis control circuit, the electrolysis control circuit comprising a main controller, a MOS tube, a detection resistor and an electrolysis component, the main controller is electrically connected to the control end of the MOS tube, the first end of the MOS tube is electrically connected to the first end of the electrolysis component, the second end of the electrolysis component is electrically connected to the first power supply end, the second end of the MOS tube is electrically connected to the first end of the detection resistor, the second end of the detection resistor is electrically connected to the second power supply end, and the branch between the second end of the MOS tube and the first end of the detection resistor is electrically connected to the main controller; Features: The method comprises: When obtaining the instruction to enter the electrolysis state, outputting a PWM control signal to the MOS tube with a preset duty cycle as a starting point according to the current concentration mode, wherein the preset duty cycle is the lowest duty cycle in the current concentration mode; Acquire the detection current value of the detection resistor in real time; When the detected current value does not reach the first preset current value, controlling the duty cycle of the PWM control signal to gradually increase by a preset value; When the detected current value reaches the first preset current value, the salt content state of the solution is determined according to the current duty cycle of the PWM control signal.
2. The working method of the electrolysis control circuit according to claim 1, It is characterized in that The step of determining the state of the solution salinity according to the current duty cycle of the PWM control signal comprises: If the current duty cycle is higher than the upper limit of the preset range, the salt content of the solution is in a low salt content state; If the current duty cycle is within the preset range, the salinity state of the solution is in a normal salinity state; If the current duty cycle is lower than the lower limit of the preset range value, the salt content state of the solution is in a high salt content state.
3. The working method of the electrolysis control circuit according to claim 2, It is characterized in that After the step of determining the state of the solution salinity according to the current duty cycle of the PWM control signal, the method further comprises: When the salinity of the solution is in a normal salinity state, the PWM control signal is output with the current duty cycle to perform electrolysis.
4. The working method of the electrolysis control circuit according to claim 3, It is characterized in that The step of outputting the PWM control signal at the current duty cycle to perform electrolysis, the method further comprises: It is determined whether the detected current value is greater than a second preset current value. If so, the MOS tube is turned off to stop the electrolysis operation.
5. The working method of the electrolysis control circuit according to claim 2, It is characterized in that If the salt content of the solution is in a low salt content state or a high salt content state, the MOS tube is turned off to stop the electrolysis work.
6. The working method of the electrolysis control circuit according to any one of claims 1 to 5, It is characterized in that After the step of determining the state of the solution salinity according to the current duty cycle of the PWM control signal, the method further comprises: A corresponding prompt signal is sent according to the salt content status of the solution.
7. The working method of the electrolysis control circuit according to any one of claims 1 to 5, It is characterized in that The electrolysis control circuit further comprises a polarity reversal circuit, the polarity reversal circuit is electrically connected to two ends of the electrolysis component, and the main controller sends a polarity reversal control signal to the polarity reversal circuit; After the step of dynamically outputting a PWM control signal to the MOS tube according to the current concentration mode, the method further includes: Count the electrolysis time in the electrolysis state; At each preset time interval, a reversal control signal is sent to the reversal circuit.
8. A disinfectant manufacturing device, comprising a processor and a memory, Features: The memory stores a computer program, and when the computer program is executed by the processor, the steps of the working method of the electrolysis control circuit according to any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by the controller, the steps of the operating method of the electrolysis control circuit according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for water production by electrolysis with compensation for water velocity
CN101613144A
Extended-range control device control circuit
CN106864277A
Space sterilizer and control system and method thereof
CN111544639A
Electrolysis control circuit, disinfectant manufacturing device and electrolysis control method
CN112267127A
Surge protectionequipment and method
CN112290506A
