A control method, device, equipment and medium of a knee rest sewing machine
By real-time detection of the knee rest voltage of the knee rest sewing machine, and by using Hall effect sensors and preset curves to automatically switch operating modes, the problem of inflexible mode switching of the knee rest sewing machine is solved, thus improving the quality of sewn products.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG ZOBOW MECHANICAL & ELECTRICAL TECH
- Filing Date
- 2024-09-09
- Publication Date
- 2026-06-09
Smart Images

Figure CN119041111B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sewing machine technology, and in particular to a control method, device, equipment and medium for a knee-rest sewing machine. Background Technology
[0002] With the rapid development of the sewing industry, various knee-rest sewing machines have emerged to improve sewing efficiency and reduce operator workload. However, existing knee-rest sewing machines typically operate in only one mode by default. In this mode, the sewing operator can only control the presser foot or stitch length using the knee rest, and cannot flexibly switch between these control modes.
[0003] In other words, when the knee-rest sewing machine is operating in presser foot control mode, if the seamstress wants to adjust the stitch length, she must use one hand to operate the control panel. Similarly, when the knee-rest sewing machine is operating in stitch length control mode, if the seamstress wants to adjust the presser foot height, she must also use one hand to operate the control panel. This operation causes a slight deviation in the fabric stitches, resulting in a decrease in the quality of the sewn product. Currently, there is no effective solution to this technical problem. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a control method, device, equipment, and medium for a knee-rest sewing machine, to solve the technical problem in the prior art that it is impossible to flexibly switch between the presser foot control mode and the stitch length control mode of a knee-rest sewing machine. The specific solution is as follows:
[0005] To solve the above-mentioned technical problems, the present invention provides a control method for a knee rest sewing machine, comprising:
[0006] The knee rest voltage of the knee rest sewing machine is detected in real time to obtain the target knee rest voltage;
[0007] The operating mode of the knee rest sewing machine is switched according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode;
[0008] After the operating mode of the knee rest sewing machine is switched, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage continues.
[0009] Preferably, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage includes:
[0010] The target knee voltage is obtained by using a Hall sensor on the knee rest sewing machine to detect the knee rest voltage in real time.
[0011] Preferably, after obtaining the target knee rest voltage by real-time detection of the knee rest voltage of the knee rest sewing machine, the method further includes:
[0012] If the operating mode of the knee rest sewing machine is the presser foot lifting control mode, then the value corresponding to the target knee rest voltage is determined according to the preset curve to obtain the target value, and the lifting height of the presser foot in the knee rest sewing machine is controlled to be the target value, so as to sew the fabric to be sewn; wherein, the preset curve stores the mapping relationship between the lifting height of the presser foot under different knee rest voltages of the knee rest sewing machine.
[0013] Preferably, after obtaining the target knee rest voltage by real-time detection of the knee rest voltage of the knee rest sewing machine, the method further includes:
[0014] The range of knee rest voltage values is pre-divided into different numerical regions, and a stitch distance is set for each numerical region to obtain a stepped curve; wherein, the upper limit and lower limit of the range of knee rest voltage values are the maximum knee rest voltage and minimum knee rest voltage of the knee rest sewing machine, respectively.
[0015] If the operating mode of the knee rest sewing machine is the stitch length control mode, then the stitch length distance corresponding to the target knee rest voltage is determined according to the stepped curve, the target distance is obtained, and the knee rest sewing machine is controlled to sew the fabric to be sewn according to the target distance.
[0016] Preferably, the step of switching the operating mode of the knee rest sewing machine based on the voltage change characteristics of the target knee rest voltage includes:
[0017] When the operating mode of the knee-rest sewing machine is the presser foot lifting control mode;
[0018] If the target knee-to-seat voltage is detected to be less than a preset threshold, the number of times the target knee-to-seat voltage is less than the preset threshold is counted to obtain the target count;
[0019] If the target number of times is equal to the preset number of times, then the operating mode of the knee-rest sewing machine is switched to the stitch length control mode;
[0020] Accordingly, the step of continuing to perform real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage after the operating mode of the knee rest sewing machine is switched includes:
[0021] When the operating mode of the knee rest sewing machine is switched to the stitch length control mode, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage continues.
[0022] Preferably, the preset threshold is specifically the minimum knee rest voltage of the knee rest sewing machine.
[0023] Preferably, after the step of performing real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage when the operating mode of the knee rest sewing machine is switched to the stitch length control mode, the method further includes:
[0024] If the target knee-to-chest voltage is detected to be less than the preset threshold, the duration of the target knee-to-chest voltage being less than the preset threshold is statistically analyzed to obtain the target duration.
[0025] If the target duration exceeds the preset duration, the operating mode of the knee-rest sewing machine will be switched to the presser foot control mode.
[0026] To address the aforementioned technical problems, the present invention also provides a control device for a knee rest sewing machine, comprising:
[0027] The voltage detection module is used to detect the knee rest voltage of the knee rest sewing machine in real time and obtain the target knee rest voltage;
[0028] The mode switching module is used to switch the operating mode of the knee rest sewing machine according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode;
[0029] The program jump module is used to continue executing the step of real-time detection of the knee rest voltage of the knee rest sewing machine and obtaining the target knee rest voltage after the operating mode of the knee rest sewing machine is switched.
[0030] To address the aforementioned technical problems, the present invention also provides an electronic device, comprising:
[0031] Memory, used to store computer programs;
[0032] A processor is configured to execute the computer program to implement the steps of a control method for a knee-rest sewing machine as disclosed above.
[0033] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of a control method for a knee-rest sewing machine as disclosed above.
[0034] Beneficial effects: In the control method of the knee rest sewing machine provided by the present invention, the knee rest voltage of the knee rest sewing machine is first detected in real time to obtain the target knee rest voltage; then, the operating mode of the knee rest sewing machine is switched according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode; after the operating mode of the knee rest sewing machine is switched, the step of detecting the knee rest voltage of the knee rest sewing machine in real time to obtain the target knee rest voltage continues.
[0035] Since the knee rest voltage is generated by the sewing worker's knee pressing against the knee rest assembly, the sewing worker can generate the knee rest voltage simply by pressing their knee against the assembly. In this invention, the knee rest voltage generated by the sewing worker pressing their knee against the assembly is used to flexibly switch between the presser foot control mode and the stitch length control mode of the knee rest sewing machine. Clearly, this setup avoids the cumbersome steps of the sewing worker having to manually operate the control panel of the knee rest sewing machine when switching between presser foot control mode and stitch length control mode. This prevents stitch deviation during sewing and further improves the quality of products sewn by the knee rest sewing machine.
[0036] Correspondingly, the control device, equipment, and medium for a knee-rest sewing machine provided by the present invention also have the above-mentioned beneficial effects. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0038] Figure 1 A flowchart illustrating a control method for a knee rest sewing machine provided in an embodiment of the present invention;
[0039] Figure 2 This is a structural diagram of a control device for a knee-rest sewing machine provided in an embodiment of the present invention;
[0040] Figure 3 This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] Please see Figure 1 , Figure 1 A flowchart of a control method for a knee rest sewing machine provided in an embodiment of the present invention, the method comprising:
[0043] Step S11: Real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage;
[0044] Step S12: Switch the operating mode of the knee rest sewing machine according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode;
[0045] Step S13: After the operating mode of the knee rest sewing machine is switched, continue to perform the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage.
[0046] This embodiment provides a control method for a knee-rest sewing machine, which allows for flexible switching between the presser foot control mode and the stitch length control mode. The method is specifically described using the processor within the knee-rest sewing machine as the executing entity.
[0047] Specifically, in practical applications, the processor in a knee-rest sewing machine can be set as a DSP (Digital Signal Processing), MCU (Micro Controller Unit), or CPU (Central Processing Unit), etc.
[0048] This method first involves real-time detection of the knee-rest voltage of the knee-rest sewing machine to obtain the target knee-rest voltage. Specifically, when a seamstress uses the knee-rest sewing machine to sew fabric, the processor in the machine detects the knee-rest voltage whenever the seamstress's knee presses against the knee-rest assembly. The knee-rest voltage is highest when the knee-rest assembly is in its initial state, and gradually decreases as the seamstress's pressure distance from the knee-rest assembly increases.
[0049] As the sewing worker presses against the knee rest component in the knee rest sewing machine, the knee rest voltage generated by the knee rest component changes. Based on this characteristic of the knee rest voltage, the operating mode of the knee rest sewing machine can be adjusted.
[0050] Specifically, the processor can switch the operating mode of the knee rest sewing machine based on the voltage change characteristics of the target knee rest voltage. For example, when the initial operating mode of the knee rest sewing machine is the presser foot control mode, if the processor detects that the voltage value of the target knee rest is lower than the preset voltage value, and this phenomenon persists for a period of time, then the processor can switch the operating mode of the knee rest sewing machine from the presser foot control mode to the stitch length control mode. Alternatively, when the processor detects that the target knee rest voltage changes at a preset frequency, it can also switch the operating mode of the knee rest sewing machine from the presser foot control mode to the stitch length control mode.
[0051] It should be noted that the knee rest voltage change logic corresponding to the switching of the knee rest sewing machine's operating mode can be flexibly set by the user and is not specifically limited here. Furthermore, the initial operating mode of the knee rest sewing machine can be either the presser foot lift control mode or the stitch length control mode.
[0052] After the operating mode of the knee rest sewing machine is switched, the process returns to step S11. In this configuration, the processor can continuously and cyclically detect the knee rest voltage of the knee rest sewing machine and flexibly switch the operating mode of the knee rest sewing machine based on the detection results.
[0053] Understandably, since the knee rest voltage is generated by the sewing worker's knee pressing against the knee rest assembly, the sewing worker can generate the knee rest voltage simply by pressing their knee against the assembly. In this embodiment, the knee rest voltage generated by the sewing worker pressing their knee against the assembly is used to flexibly switch between the presser foot control mode and the stitch length control mode of the knee rest sewing machine. Clearly, this setup avoids the cumbersome steps of the sewing worker having to manually operate the control panel of the knee rest sewing machine when switching between presser foot control mode and stitch length control mode during fabric sewing. This prevents stitch deviation during sewing and further improves the quality of products sewn by the knee rest sewing machine.
[0054] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. As a preferred implementation, the above steps: real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage, include:
[0055] The knee voltage of the knee rest sewing machine is detected in real time using a Hall sensor on the knee rest sewing machine to obtain the target knee voltage.
[0056] Specifically, in this embodiment, the Hall sensor built into the knee rest sewing machine can be used to detect the knee rest voltage in real time and obtain the target knee rest voltage. Since the Hall sensor can detect the change in magnetic field when the sewing worker presses against the knee rest component of the knee rest sewing machine based on the Hall effect and convert it into an electrical signal, the knee rest voltage of the knee rest sewing machine can be detected using the Hall sensor.
[0057] Compared to other methods that require additional sensors or detection circuits to be installed on the knee rest sewing machine to detect the knee rest voltage, this method not only reduces the cost of knee rest voltage detection but also reduces the operational complexity of knee rest voltage detection.
[0058] Obviously, the technical solution provided in this embodiment can not only reduce the cost required for detecting knee rest voltage, but also reduce the difficulty of detecting knee rest voltage.
[0059] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. As a preferred implementation, after the above steps of: real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage, the method further includes:
[0060] If the operating mode of the knee rest sewing machine is the presser foot lift control mode, the value corresponding to the target knee rest voltage is determined according to the preset curve, the target value is obtained, and the lifting height of the presser foot in the knee rest sewing machine is controlled to the target value so as to sew the fabric to be sewn; wherein, the preset curve stores the mapping relationship between the lifting height of the presser foot of the knee rest sewing machine under different knee rest voltages.
[0061] In this embodiment, if the knee rest sewing machine operates in presser foot lift control mode, the lifting height of the presser foot in the knee rest sewing machine can also be controlled according to the target knee rest voltage. Specifically, the processor can determine the value corresponding to the target knee rest voltage based on a preset curve, obtain the target value, and control the presser foot in the knee rest sewing machine to lift the target value to sew the fabric. The preset curve is stored in the processor of the knee rest sewing machine, and the preset curve stores the mapping relationship between the lifting height of the presser foot under different knee rest voltages.
[0062] In other words, the lifting height of the presser foot in a knee-rest sewing machine exhibits a linear relationship with the target knee-rest voltage. Specifically, the lifting height of the presser foot in a knee-rest sewing machine increases as the target knee-rest voltage decreases.
[0063] Obviously, the technical solution provided in this embodiment can be used to control the lifting height of the presser foot by utilizing the knee rest voltage of the knee rest sewing machine.
[0064] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. As a preferred implementation, after the above steps of: real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage, the method further includes:
[0065] The range of knee rest voltage values is pre-divided into different numerical regions, and a stitch distance is set for each numerical region to obtain a stepped curve; wherein, the upper and lower limits of the range of knee rest voltage values are the maximum and minimum knee rest voltages of the knee rest sewing machine, respectively.
[0066] If the knee rest sewing machine is in stitch length control mode, the stitch length corresponding to the target knee rest voltage is determined according to the stepped curve, the target distance is obtained, and the knee rest sewing machine is controlled to sew the fabric to be sewn according to the target distance.
[0067] In practical applications, if the knee rest sewing machine operates in stitch length control mode, the sewing distance of the fabric to be sewn can also be controlled based on the target knee rest voltage. In this control mode, a stepped curve can be created first and stored in the knee rest sewing machine's processor.
[0068] When creating a stepped curve, you need to first determine the maximum and minimum knee voltage of the knee rest sewing machine to obtain the range of knee voltage values. Then, divide the range of knee voltage values into different numerical regions and set a stitch distance for each numerical region. This will give you the stepped curve.
[0069] Specifically, if the knee rest voltage is between [1,2] (the unit of knee rest voltage is V), the stitch distance corresponding to the knee rest voltage within this range can be set to 1cm; if the knee rest voltage is between [2,3], the stitch distance corresponding to the knee rest voltage within this range can be set to 2cm.
[0070] Once the stepped curve is created, the stitch distance corresponding to the target knee rest voltage is determined based on the stepped curve, thus obtaining the target distance. The knee rest sewing machine is then controlled to sew the fabric according to the target distance. It's easy to see that this setup results in a more uniform stitch length on the fabric, thereby further improving the quality of fabric sewn by the knee rest sewing machine.
[0071] Obviously, the technical solution provided in this embodiment can be used to control the stitch length of the fabric to be sewn by utilizing the target knee voltage.
[0072] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. As a preferred implementation, the above step: switching the operating mode of the knee rest sewing machine according to the voltage change characteristics of the target knee rest voltage, includes:
[0073] When the operating mode of the knee-rest sewing machine is set to presser foot control mode;
[0074] If the target knee-to-seat voltage is detected to be less than a preset threshold, the number of times the target knee-to-seat voltage is less than the preset threshold is counted to obtain the target count;
[0075] If the target number of times equals the preset number of times, then switch the operating mode of the knee-rest sewing machine to the stitch length control mode;
[0076] Accordingly, after the operating mode of the knee rest sewing machine is switched, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage continues, including:
[0077] When the operating mode of the knee rest sewing machine is switched to the stitch length control mode, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage continues.
[0078] When the knee rest sewing machine is in presser foot control mode, if the processor detects that the target knee rest voltage is less than the preset threshold, and the number of times the target knee rest voltage is less than the preset threshold is equal to the preset number, it means that the voltage change characteristics of the target knee rest voltage meet the knee rest voltage change conditions set by the user. At this time, the processor can switch the operating mode of the knee rest sewing machine to stitch length control mode.
[0079] After the knee rest sewing machine switches to the stitch length control mode, the processor can continue to execute step S11 and determine whether to switch the knee rest sewing machine's operating mode again based on the detected knee rest voltage.
[0080] Obviously, the technical solution provided in this embodiment can switch the knee-rest sewing machine from presser foot control mode to stitch length control mode.
[0081] As a preferred implementation, the preset threshold is specifically the minimum knee rest voltage of the knee rest sewing machine.
[0082] Because the minimum knee-rest voltage of the knee-rest sewing machine is the lower limit of the knee-rest voltage of the knee-rest sewing machine, it is a relatively special voltage characteristic value. In practical applications, it is also easier to compare the minimum knee-rest voltage of the knee-rest sewing machine with other detected knee-rest voltages. Therefore, in this embodiment, the preset threshold is set as the minimum knee-rest voltage of the knee-rest sewing machine.
[0083] As a preferred embodiment, after the step of continuously performing real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage when the operating mode of the knee rest sewing machine is switched to the stitch length control mode, the above steps further include:
[0084] If the target knee-to-seat voltage is detected to be less than a preset threshold, the duration of the target knee-to-seat voltage being less than the preset threshold is statistically analyzed to obtain the target duration.
[0085] If the target duration exceeds the preset duration, the operating mode of the knee-rest sewing machine will be switched to the presser foot control mode.
[0086] When the operating mode of the knee rest sewing machine is switched from presser foot control mode to stitch length control mode, the processor will also detect the knee rest voltage of the knee rest sewing machine. During this process, if the processor detects that the target knee rest voltage of the knee rest sewing machine is less than a preset threshold, and the duration of the target knee rest voltage being less than the preset threshold exceeds a preset duration, it indicates that the voltage change characteristics of the target knee rest voltage meet the knee rest voltage change conditions preset by the user. At this time, the processor can switch the operating mode of the knee rest sewing machine back to presser foot control mode.
[0087] Obviously, the technical solution provided in this embodiment can also switch the knee-rest sewing machine from stitch length control mode to presser foot lift control mode.
[0088] Additionally, it should be noted that in this application, different knee rest voltage variation logic is used to switch the operating modes of the knee rest sewing machine in order to make it easier for the processor to distinguish between the stitch length control mode and the presser foot lift control mode. Of course, in practical applications, the same knee rest voltage variation logic can also be used to switch the operating modes of the knee rest sewing machine.
[0089] For example, when the initial operating mode of the knee rest sewing machine is presser foot lift control mode, if the processor detects that the target knee rest voltage is lower than a preset threshold, and the duration of the target knee rest voltage being lower than the preset threshold exceeds a preset duration, the processor can switch the operating mode of the knee rest sewing machine from presser foot lift control mode to stitch length control mode. After the knee rest sewing machine's operating mode is switched to stitch length control mode, if the processor again detects that the target knee rest voltage is lower than the preset threshold, and the duration of the target knee rest voltage being lower than the preset threshold exceeds a preset duration, then the processor can switch the operating mode of the knee rest sewing machine back from stitch length control mode to presser foot lift control mode.
[0090] Please see Figure 2 , Figure 2 This is a structural diagram of a control device for a knee rest sewing machine provided in an embodiment of the present invention. The device includes:
[0091] Voltage detection module 21 is used to detect the knee voltage of the knee rest sewing machine in real time and obtain the target knee voltage;
[0092] The mode switching module 22 is used to switch the operating mode of the knee rest sewing machine according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode;
[0093] The program jump module 23 is used to continue executing the step of real-time detection of the knee rest voltage of the knee rest sewing machine and obtaining the target knee rest voltage after the operating mode of the knee rest sewing machine is switched.
[0094] Preferably, the voltage detection module 21 includes:
[0095] The voltage detection unit is used to detect the knee voltage of the knee rest sewing machine in real time using the Hall sensor on the knee rest sewing machine, and obtain the target knee rest voltage.
[0096] Preferred options also include:
[0097] The presser foot lifting control module is used to detect the knee rest voltage of the knee rest sewing machine in real time. After obtaining the target knee rest voltage, if the operating mode of the knee rest sewing machine is the presser foot lifting control mode, the module determines the value corresponding to the target knee rest voltage according to a preset curve, obtains the target value, and controls the lifting height of the presser foot in the knee rest sewing machine to be the target value, so as to sew the fabric to be sewn. The preset curve stores the mapping relationship between the lifting height of the presser foot under different knee rest voltages.
[0098] Preferred options also include:
[0099] The curve creation module is used to detect the knee voltage of the knee rest sewing machine in real time. After obtaining the target knee voltage, the range of knee voltage values is divided into different numerical regions in advance, and a stitch distance is set for each numerical region to obtain a stepped curve. The upper and lower limits of the range of knee voltage values are the maximum and minimum knee voltage of the knee rest sewing machine, respectively.
[0100] The stitch length control module is used to determine the stitch length corresponding to the target knee rest voltage according to the stepped curve if the knee rest sewing machine is in the stitch length control mode, obtain the target distance, and control the knee rest sewing machine to sew the fabric to be sewn according to the target distance.
[0101] Preferably, the mode switching module 22 includes:
[0102] The mode setting unit is used when the operating mode of the knee-rest sewing machine is the presser foot control mode;
[0103] The count detection unit is used to count the number of times the target knee-to-knee voltage is less than the preset threshold if the target knee-to-knee voltage is detected to be less than the preset threshold, and obtain the target count.
[0104] The mode switching unit is used to switch the operating mode of the knee-rest sewing machine to the stitch control mode if the target number of times is equal to the preset number of times.
[0105] Correspondingly, program jump module 23 includes:
[0106] The program jump unit is used to continue executing the step of real-time detection of the knee rest voltage of the knee rest sewing machine and obtaining the target knee rest voltage when the operating mode of the knee rest sewing machine is switched to the stitch control mode.
[0107] Preferred options also include:
[0108] The duration detection unit is used to continue executing the step of real-time detection of the knee rest voltage of the knee rest sewing machine and obtaining the target knee rest voltage when the operation mode of the knee rest sewing machine is switched to the stitch control mode. If the target knee rest voltage is detected to be less than the preset threshold, the duration of the target knee rest voltage being less than the preset threshold is statistically analyzed to obtain the target duration.
[0109] The mode adjustment unit is used to switch the operating mode of the knee-rest sewing machine to the presser foot control mode if the target duration exceeds the preset duration.
[0110] The control device for a knee-rest sewing machine provided in this embodiment of the invention has the beneficial effects of the control method for a knee-rest sewing machine disclosed above.
[0111] Please see Figure 3 , Figure 3 This is a structural diagram of an electronic device provided in an embodiment of the present invention. The electronic device includes:
[0112] Memory 31 is used to store computer programs;
[0113] The processor 32 is configured to implement the steps of a control method for a knee-rest sewing machine as disclosed above when executing the computer program.
[0114] The electronic device provided in this embodiment of the invention has the beneficial effects of the control method for a knee-rest sewing machine disclosed above.
[0115] Accordingly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a control method for a knee-rest sewing machine as disclosed above.
[0116] The computer-readable storage medium provided in this embodiment of the invention has the beneficial effects of the control method for a knee-rest sewing machine disclosed above.
[0117] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0118] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0119] The control method, device, equipment, and medium of a knee-rest sewing machine provided by the present invention have been described in detail above. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A control method for a knee-rest sewing machine, characterized in that, include: The knee rest voltage of the knee rest sewing machine is detected in real time to obtain the target knee rest voltage; The operating mode of the knee rest sewing machine is switched according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode; After the operating mode of the knee rest sewing machine is switched, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage continues. After obtaining the target knee rest voltage by real-time detection of the knee rest voltage of the knee rest sewing machine, the method further includes: If the operating mode of the knee rest sewing machine is the presser foot lifting control mode, then the value corresponding to the target knee rest voltage is determined according to the preset curve to obtain the target value, and the lifting height of the presser foot in the knee rest sewing machine is controlled to be the target value, so as to sew the fabric to be sewn; wherein, the preset curve stores the mapping relationship between the lifting height of the presser foot under different knee rest voltages of the knee rest sewing machine; The range of knee rest voltage values is pre-divided into different numerical regions, and a stitch distance is set for each numerical region to obtain a stepped curve; wherein, the upper limit and lower limit of the range of knee rest voltage values are the maximum knee rest voltage and minimum knee rest voltage of the knee rest sewing machine, respectively. If the operating mode of the knee rest sewing machine is the stitch length control mode, then the stitch length distance corresponding to the target knee rest voltage is determined according to the stepped curve, the target distance is obtained, and the knee rest sewing machine is controlled to sew the fabric to be sewn according to the target distance.
2. The control method for a knee rest sewing machine according to claim 1, characterized in that, The real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage includes: The target knee voltage is obtained by using a Hall sensor on the knee rest sewing machine to detect the knee rest voltage in real time.
3. A control method for a knee rest sewing machine according to any one of claims 1 to 2, characterized in that, The step of switching the operating mode of the knee rest sewing machine based on the voltage change characteristics of the target knee rest voltage includes: When the operating mode of the knee-rest sewing machine is the presser foot lifting control mode; If the target knee-to-seat voltage is detected to be less than a preset threshold, the number of times the target knee-to-seat voltage is less than the preset threshold is counted to obtain the target count; If the target number of times is equal to the preset number of times, then the operating mode of the knee-rest sewing machine is switched to the stitch length control mode; Accordingly, the step of continuing to perform real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage after the operating mode of the knee rest sewing machine is switched includes: When the operating mode of the knee rest sewing machine is switched to the stitch length control mode, the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage continues.
4. The control method for a knee rest sewing machine according to claim 3, characterized in that, The preset threshold is specifically the minimum knee rest voltage of the knee rest sewing machine.
5. The control method for a knee rest sewing machine according to claim 3, characterized in that, When the operating mode of the knee rest sewing machine is switched to the stitch length control mode, after continuing to perform the step of real-time detection of the knee rest voltage of the knee rest sewing machine to obtain the target knee rest voltage, the method further includes: If the target knee-to-chest voltage is detected to be less than the preset threshold, the duration of the target knee-to-chest voltage being less than the preset threshold is statistically analyzed to obtain the target duration. If the target duration exceeds the preset duration, the operating mode of the knee-rest sewing machine will be switched to the presser foot control mode.
6. A control device for a knee-rest sewing machine, characterized in that, The control method for a knee-rest sewing machine according to any one of claims 1 to 5, the device comprising: The voltage detection module is used to detect the knee rest voltage of the knee rest sewing machine in real time and obtain the target knee rest voltage; The mode switching module is used to switch the operating mode of the knee rest sewing machine according to the voltage change characteristics of the target knee rest voltage; wherein, the operating modes of the knee rest sewing machine include: presser foot lifting control mode and stitch length control mode; The program jump module is used to continue executing the step of real-time detection of the knee rest voltage of the knee rest sewing machine and obtaining the target knee rest voltage after the operating mode of the knee rest sewing machine is switched.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of a control method for a knee-rest sewing machine as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of a control method for a knee-rest sewing machine as described in any one of claims 1 to 5.