Main shaft rotating speed control method, device and equipment of sewing equipment and storage medium
By acquiring the stitch length of the sewing equipment pattern in real time and dynamically adjusting the spindle speed, the limitations of the sewing equipment speed when handling different stitch length patterns are solved, thus improving sewing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-30
- Publication Date
- 2026-03-13
AI Technical Summary
When existing sewing equipment processes patterns with different stitch lengths, especially long buttonhole patterns, the spindle speed is affected by the maximum stitch length, resulting in reduced sewing time and efficiency.
By acquiring the stitch length in different directions of the pattern in real time, the spindle speed is dynamically adjusted to match the stitch length requirements of each sewing part, thereby reducing or maintaining the spindle speed.
It enables dynamic adjustment of spindle speed according to the stitch length requirements of different sewing parts without changing the mechanical structure, thereby reducing sewing time and improving sewing efficiency.
Smart Images

Figure CN121653910A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of sewing technology, and in particular to a method, device, equipment and storage medium for controlling the spindle speed of a sewing machine. Background Technology
[0002] With the development of the garment processing industry, processing demands are becoming increasingly diversified, placing higher demands on the adaptability of sewing equipment to different scenarios. In buttonhole machine applications, sewing is generally divided into four parts: top and bottom loops, left and right parallel sections, and so on. In related solutions, when the stitch length of a particular stitch in the pattern data is large (usually in the loop section), the overall spindle speed decreases. This leads to an increase in the sewing time for the left and right parallel sections, which typically have a larger stitch count, thus reducing the sewing speed and efficiency of the buttonhole pattern. Especially when the pattern is a long buttonhole type, the sewing time for the left and right parallel sections accounts for more than 90%. When the spindle speed is affected by the large stitch length of the top and bottom loops and thus reduced overall, the sewing time for the pattern will increase significantly.
[0003] Therefore, how to solve the above-mentioned technical defects has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of this application is to provide a method, device, equipment, and storage medium for controlling the spindle speed of a sewing machine, which can reduce sewing time and improve sewing efficiency.
[0005] To solve the above-mentioned technical problems, this application provides a method for controlling the spindle speed of a sewing machine, including:
[0006] Get the stitch length in the first direction and the stitch length in the second direction of the current needle;
[0007] The target spindle speed is determined based on the stitch pitch in the first direction and the stitch pitch in the second direction;
[0008] Compare the target spindle speed with the current spindle speed;
[0009] If the target spindle speed is less than the current spindle speed, then the spindle speed is reduced to the target spindle speed;
[0010] If the target spindle speed is not less than the current spindle speed, then the spindle speed remains unchanged.
[0011] In some embodiments, determining the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction includes:
[0012] The first spindle speed is determined based on the needle pitch in the first direction;
[0013] Determine the second spindle speed based on the needle pitch in the second direction;
[0014] Compare the first spindle speed with the second spindle speed;
[0015] If the first spindle speed is less than the second spindle speed, then the first spindle speed is selected as the target spindle speed;
[0016] If the first spindle speed is greater than the second spindle speed, then the second spindle speed is selected as the target spindle speed.
[0017] In some embodiments, determining the first spindle speed based on the needle pitch in the first direction includes:
[0018] The first spindle speed is determined by looking up the table based on the needle pitch in the first direction.
[0019] In some embodiments, determining the first spindle speed by looking up a table based on the needle pitch in the first direction includes:
[0020] The first stitch distance range to which the stitch distance in the first direction belongs is determined by looking up a table based on the stitch distance in the first direction;
[0021] The first spindle speed is determined by looking up a table based on the first stitch distance range; the first spindle speed corresponds one-to-one with the first stitch distance range.
[0022] In some embodiments, determining the second spindle speed based on the needle pitch in the second direction includes:
[0023] The second spindle speed is determined by referring to a table based on the needle spacing in the second direction.
[0024] In some embodiments, determining the second spindle speed by looking up a table based on the needle pitch in the second direction includes:
[0025] The second stitch distance range to which the stitch distance in the second direction belongs is determined by referring to a table based on the stitch distance in the second direction;
[0026] The second spindle speed is determined by looking up a table based on the second stitch distance range; the second spindle speed corresponds one-to-one with the second stitch distance range.
[0027] In some embodiments, obtaining the stitch distance in the first direction and the stitch distance in the second direction of the current needle includes:
[0028] Obtain the stitch length in the X and Y directions of the pattern.
[0029] To address the aforementioned technical problems, this application also provides a spindle speed control device for sewing equipment, comprising:
[0030] The acquisition module is used to acquire the stitch length in the first direction and the stitch length in the second direction of the current needle.
[0031] The determining module is used to determine the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction;
[0032] The comparison module is used to compare the target spindle speed with the current speed of the spindle;
[0033] A speed reduction module is used to reduce the rotational speed of the spindle to the target spindle speed if the target spindle speed is less than the current spindle speed.
[0034] A holding module is used to keep the spindle speed constant if the target spindle speed is not less than the current spindle speed.
[0035] To address the aforementioned technical problems, this application also provides an electronic device, comprising:
[0036] Memory, used to store computer programs;
[0037] A processor is used to execute the computer program to implement the steps of a spindle speed control method for a sewing device as described above.
[0038] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the spindle speed control method for a sewing device as described above.
[0039] The spindle speed control method for sewing equipment provided in this application includes: obtaining the stitch length in a first direction and the stitch length in a second direction of the current needle; determining a target spindle speed based on the stitch length in the first direction and the stitch length in the second direction; comparing the target spindle speed with the current speed of the spindle; if the target spindle speed is less than the current speed of the spindle, reducing the spindle speed to the target spindle speed; if the target spindle speed is not less than the current speed of the spindle, keeping the spindle speed unchanged.
[0040] As can be seen, the spindle speed control method for sewing equipment provided in this application determines the target spindle speed based on the stitch length in two directions of the pattern. If the target spindle speed is less than the current spindle speed, the spindle speed is reduced; otherwise, it is not reduced. This allows different spindle speeds to be used for different sewing sections, overcoming the limitation of determining the spindle speed solely by the maximum stitch length of the pattern, reducing sewing time, and improving sewing efficiency. This method does not require changes to the mechanical structure of the sewing equipment and is applicable to different patterns, such as long buttonhole patterns or different speeds for different parts, thus improving sewing efficiency in corresponding scenarios.
[0041] The spindle speed control device, equipment, and computer-readable storage medium of the sewing equipment provided in this application all have the aforementioned technical effects. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A schematic flowchart illustrating a spindle speed control method for a sewing machine provided in an embodiment of this application;
[0044] Figure 2 A schematic flowchart illustrating a specific spindle speed control method provided in an embodiment of this application;
[0045] Figure 3 A schematic diagram of a spindle speed control device for a sewing machine provided in an embodiment of this application;
[0046] Figure 4 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0047] The core of this application is to provide a method, device, equipment, and storage medium for controlling the spindle speed of a sewing machine, which can reduce sewing time and improve sewing efficiency.
[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a spindle speed control method for a sewing machine provided in an embodiment of this application. (Refer to...) Figure 1 As shown, the method includes:
[0050] S101: Get the stitch length in the first direction and the stitch length in the second direction of the current needle;
[0051] S102: Determine the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction;
[0052] S103: Compare the target spindle speed with the current spindle speed;
[0053] S104: If the target spindle speed is less than the current spindle speed, then reduce the spindle speed to the target spindle speed;
[0054] S105: If the target spindle speed is not less than the current spindle speed, then keep the spindle speed unchanged.
[0055] The spindle speed control method for sewing equipment provided in this application embodiment can be applied to buttonhole machines, and can also be extended to bartacking and button sewing machines or other sewing machine models. Without changing the existing mechanical structure, the spindle speed is determined according to the stitch length in the first direction and the stitch length in the second direction of each stitch, so that different spindle speeds can be used for different sewing parts.
[0056] Specifically, during the sewing process, as the needle moves along the pattern, the internal pattern pointer acquires data for each stitch in real time, including the stitch length in the first and second directions. Based on the acquired stitch lengths in the first and second directions, it determines whether to reduce speed and calculates the current spindle speed. The method for determining the spindle speed based on the acquired stitch lengths in the first and second directions is to determine the target spindle speed. The target spindle speed is then compared with the current spindle speed. If the target spindle speed is less than the current spindle speed, the spindle speed is reduced to the target speed. If the target spindle speed is not less than the current spindle speed, the spindle speed remains unchanged.
[0057] When sewing is done in parallel sections, the stitch length is shorter, allowing for a higher speed. At the bark stitches, the stitch length is longer, and the system automatically analyzes and reduces the speed, achieving different speeds for different sections and ensuring reduced sewing time in both regular sewing and special patterns (such as long buttonholes).
[0058] In some embodiments, obtaining the stitch distance in the first direction and the stitch distance in the second direction of the current needle includes:
[0059] Obtain the stitch length in the X and Y directions of the pattern.
[0060] During the sewing process, as the needle moves along the pattern, the internal pattern pointer acquires data for each stitch in real time, including the stitch length in the X and Y directions. Based on the acquired stitch lengths in the X and Y directions, it determines whether to reduce the speed and calculates the current spindle speed. The method for determining the target spindle speed is to compare the target spindle speed with the current spindle speed. If the target spindle speed is less than the current spindle speed, the spindle speed is reduced to the target speed. If the target spindle speed is not less than the current spindle speed, the spindle speed remains unchanged.
[0061] In some embodiments, determining the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction includes:
[0062] The first spindle speed is determined based on the needle pitch in the first direction;
[0063] Determine the second spindle speed based on the needle pitch in the second direction;
[0064] Compare the first spindle speed with the second spindle speed;
[0065] If the first spindle speed is less than the second spindle speed, then the first spindle speed is selected as the target spindle speed;
[0066] If the first spindle speed is greater than the second spindle speed, then the second spindle speed is selected as the target spindle speed.
[0067] The first spindle speed refers to the spindle speed determined based on the stitch length in the first direction. The second spindle speed refers to the spindle speed determined based on the stitch length in the second direction. It is important to understand that the terms "first" and "second" in the first and second spindle speeds are not used to define order, size, or priority. The process involves obtaining the stitch lengths in the first and second directions of the pattern, determining the first spindle speed based on the stitch length in the first direction, and determining the second spindle speed based on the stitch length in the second direction. Then, the smaller of the first and second spindle speeds is selected as the target spindle speed. If the first spindle speed is less than the second spindle speed, the first spindle speed is selected as the target spindle speed; if the first spindle speed is greater than the second spindle speed, the second spindle speed is selected as the target spindle speed. If the first and second spindle speeds are equal, either the first or second spindle speed is selected as the target spindle speed.
[0068] In some embodiments, determining the first spindle speed based on the needle pitch in the first direction includes:
[0069] The first spindle speed is determined by looking up the table based on the needle pitch in the first direction.
[0070] A table showing the relationship between the stitch pitch in the first direction and the speed of the first spindle is pre-built. The speed of the first spindle can be quickly determined by looking up the table based on the stitch pitch in the first direction.
[0071] In some embodiments, determining the first spindle speed by looking up a table based on the needle pitch in the first direction includes:
[0072] The first stitch distance range to which the stitch distance in the first direction belongs is determined by looking up a table based on the stitch distance in the first direction;
[0073] The first spindle speed is determined by looking up a table based on the first stitch distance range; the first spindle speed corresponds one-to-one with the first stitch distance range.
[0074] In this embodiment, each first stitch pitch range corresponds to a first spindle speed. The first stitch pitch range to which the stitch pitch in the first direction belongs is determined by looking up a table based on the stitch pitch in the first direction, and then the corresponding first spindle speed is determined by looking up a table based on the first stitch pitch range.
[0075] For example, the first spindle speed corresponding to the first stitch pitch range of 0 < L ≤ 1.0 is 4000;
[0076] The first spindle speed corresponding to the second first stitch pitch range of 1.0 < L ≤ 2.0 is 3500;
[0077] The first spindle speed corresponding to the third first stitch pitch range of 2.0 < L ≤ 3.0 is 2800;
[0078] The first spindle speed corresponding to the fourth first stitch pitch range of 3.0 < L ≤ 4.0 is 2200.
[0079] The unit for needle pitch is mm, and the unit for spindle speed is rpm.
[0080] When the needle pitch in the first direction is within the range of 0 < L ≤ 1.0, the speed of the first spindle is 4000.
[0081] In some embodiments, determining the second spindle speed based on the needle pitch in the second direction includes:
[0082] The second spindle speed is determined by referring to a table based on the needle spacing in the second direction.
[0083] A table showing the relationship between the stitch length in the second direction and the speed of the second spindle is pre-built. The speed of the second spindle can be quickly determined by looking up the stitch length in the second direction in the table.
[0084] The table showing the relationship between the stitch pitch in the second direction and the spindle speed in the second direction can be the same table showing the relationship between the stitch pitch in the first direction and the spindle speed in the first direction. That is, the table contains both the relationship between the stitch pitch in the second direction and the spindle speed in the second direction and the relationship between the stitch pitch in the first direction and the spindle speed in the first direction.
[0085] In some embodiments, determining the second spindle speed by looking up a table based on the needle pitch in the second direction includes:
[0086] The second stitch distance range to which the stitch distance in the second direction belongs is determined by referring to a table based on the stitch distance in the second direction;
[0087] The second spindle speed is determined by looking up a table based on the second stitch distance range; the second spindle speed corresponds one-to-one with the second stitch distance range.
[0088] In this embodiment, each second stitch pitch range corresponds to a second spindle speed. The second stitch pitch range to which the stitch pitch in the second direction belongs is determined by looking up a table based on the stitch pitch in the second direction, and then the corresponding second spindle speed is determined by looking up a table based on the second stitch pitch range.
[0089] For example, the first spindle speed corresponding to the first second stitch pitch range of 0 < L ≤ 0.8 is 3500;
[0090] The second spindle speed corresponding to the second stitch pitch range of 0.8 < L ≤ 1.6 is 3000.
[0091] The third second stitch pitch range of 1.6 < L ≤ 2.4 corresponds to a first spindle speed of 2400.
[0092] The first spindle speed corresponding to the fourth second stitch pitch range of 2.4 < L ≤ 3.2 is 1800.
[0093] The unit for needle pitch is mm, and the unit for spindle speed is rpm.
[0094] When the stitch pitch in the second direction is within the range of 1.6 < L ≤ 2.4, the speed of the second spindle is 2400.
[0095] refer to Figure 2 As shown, the following describes a specific implementation method:
[0096] Read the current needle pattern data.
[0097] Calculate the X-axis needle distance and the Y-axis needle distance respectively.
[0098] Determine whether to reduce speed based on the X-axis and Y-axis needle pitch.
[0099] If the speed is reduced, the current needle spindle speed is changed, and the pattern pointer points to the next pattern data.
[0100] If the speed is not reduced, then determine whether the sewing is complete.
[0101] If the sewing is complete, then the process ends.
[0102] If the sewing is not completed, the pattern pointer will move to the next pattern data.
[0103] In summary, the spindle speed control method for sewing equipment provided in this application determines the target spindle speed based on the stitch length in two directions of the pattern. If the target spindle speed is less than the current spindle speed, the spindle speed is reduced; otherwise, it is not reduced. This allows different spindle speeds to be used for different sewing sections, overcoming the limitation of determining the spindle speed solely by the maximum stitch length of the pattern, reducing sewing time, and improving sewing efficiency. This method does not require changes to the mechanical structure of the sewing equipment and is applicable to different patterns, such as long buttonhole patterns, or different speeds for different parts, thus improving sewing efficiency in corresponding scenarios.
[0104] This application also provides a spindle speed control device for a sewing machine, which is described below and can be referred to in conjunction with the method described above. Please refer to... Figure 3 , Figure 3 This is a schematic diagram of a spindle speed control device for a sewing machine provided in an embodiment of this application, combined with... Figure 3 As shown, the device includes:
[0105] The acquisition module 10 is used to acquire the stitch length in the first direction and the stitch length in the second direction of the current needle;
[0106] The determining module 20 is used to determine the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction;
[0107] Comparison module 30 is used to compare the target spindle speed with the current speed of the spindle;
[0108] The speed reduction module 40 is used to reduce the rotational speed of the spindle to the target spindle speed if the target spindle speed is less than the current speed of the spindle.
[0109] The holding module 50 is used to keep the speed of the spindle constant if the target spindle speed is not less than the current speed of the spindle.
[0110] Based on the above embodiments, as a specific implementation method, the determining module 20 includes:
[0111] The first determining unit is used to determine the first spindle speed based on the needle pitch in the first direction;
[0112] The second determining unit is used to determine the second spindle speed based on the needle pitch in the second direction;
[0113] A comparison unit is used to compare the first spindle speed with the second spindle speed;
[0114] The first selection unit is configured to select the first spindle speed as the target spindle speed if the first spindle speed is less than the second spindle speed.
[0115] The second selection unit is used to select the second spindle speed as the target spindle speed if the first spindle speed is greater than the second spindle speed.
[0116] Based on the above embodiments, as a specific implementation method, the first determining unit is used for:
[0117] The first spindle speed is determined by looking up the table based on the needle pitch in the first direction.
[0118] Based on the above embodiments, as a specific implementation method, the first determining unit is used for:
[0119] The first stitch distance range to which the stitch distance in the first direction belongs is determined by looking up a table based on the stitch distance in the first direction;
[0120] The first spindle speed is determined by looking up a table based on the first stitch distance range; the first spindle speed corresponds one-to-one with the first stitch distance range.
[0121] Based on the above embodiments, as a specific implementation method, the second determining unit is used for:
[0122] The second spindle speed is determined by referring to a table based on the needle spacing in the second direction.
[0123] Based on the above embodiments, as a specific implementation method, the second determining unit is used for:
[0124] The second stitch distance range to which the stitch distance in the second direction belongs is determined by referring to a table based on the stitch distance in the second direction;
[0125] The second spindle speed is determined by looking up a table based on the second stitch distance range; the second spindle speed corresponds one-to-one with the second stitch distance range.
[0126] In some embodiments, the acquisition module 10 is used for:
[0127] Obtain the stitch length in the X and Y directions of the pattern.
[0128] The spindle speed control device for sewing equipment provided in this application determines the target spindle speed based on the stitch length in two directions of the pattern. If the target spindle speed is less than the current spindle speed, the spindle speed is reduced; otherwise, it is not reduced. This allows different spindle speeds to be used for different sewing sections, overcoming the limitation of determining the spindle speed solely by the maximum stitch length of the pattern, reducing sewing time, and improving sewing efficiency. This device does not require changes to the mechanical structure of the sewing equipment and is applicable to different patterns, such as long buttonhole patterns, or different speeds for different parts, thus improving sewing efficiency in corresponding scenarios.
[0129] This application also provides an electronic device, referenced... Figure 4 As shown, the device includes a memory 1 and a processor 2.
[0130] Memory 1 is used to store computer programs;
[0131] Processor 2 is used to execute computer programs to perform the following steps:
[0132] Obtain the needle pitch in the first direction and the needle pitch in the second direction; determine the target spindle speed based on the needle pitch in the first direction and the needle pitch in the second direction; compare the target spindle speed with the current spindle speed; if the target spindle speed is less than the current spindle speed, reduce the spindle speed to the target spindle speed; if the target spindle speed is not less than the current spindle speed, keep the spindle speed unchanged.
[0133] For a description of the equipment provided in this application, please refer to the above method embodiments; further details will not be provided here.
[0134] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the following steps:
[0135] Obtain the needle pitch in the first direction and the needle pitch in the second direction; determine the target spindle speed based on the needle pitch in the first direction and the needle pitch in the second direction; compare the target spindle speed with the current spindle speed; if the target spindle speed is less than the current spindle speed, reduce the spindle speed to the target spindle speed; if the target spindle speed is not less than the current spindle speed, keep the spindle speed unchanged.
[0136] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0137] For a description of the computer-readable storage medium provided in this application, please refer to the above method embodiments; further details will not be repeated here.
[0138] 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 apparatuses, devices, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant details can be found in the method section.
[0139] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0140] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0141] The spindle speed control method, apparatus, device, and computer-readable storage medium of the sewing equipment provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A method for controlling the spindle speed of a sewing machine, characterized in that, include: Get the stitch length in the first direction and the stitch length in the second direction of the current needle; The target spindle speed is determined based on the stitch pitch in the first direction and the stitch pitch in the second direction; Compare the target spindle speed with the current spindle speed; If the target spindle speed is less than the current spindle speed, then the spindle speed is reduced to the target spindle speed; If the target spindle speed is not less than the current spindle speed, then the spindle speed remains unchanged.
2. The spindle speed control method according to claim 1, characterized in that, Determining the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction includes: The first spindle speed is determined based on the needle pitch in the first direction; Determine the second spindle speed based on the needle pitch in the second direction; Compare the first spindle speed with the second spindle speed; If the first spindle speed is less than the second spindle speed, then the first spindle speed is selected as the target spindle speed; If the first spindle speed is greater than the second spindle speed, then the second spindle speed is selected as the target spindle speed.
3. The spindle speed control method according to claim 2, characterized in that, Determining the first spindle speed based on the needle pitch in the first direction includes: The first spindle speed is determined by looking up the table based on the needle pitch in the first direction.
4. The spindle speed control method according to claim 3, characterized in that, The first spindle speed is determined by looking up the table based on the needle pitch in the first direction, including: The first stitch distance range to which the stitch distance in the first direction belongs is determined by looking up a table based on the stitch distance in the first direction; The first spindle speed is determined by looking up a table based on the first stitch distance range; the first spindle speed corresponds one-to-one with the first stitch distance range.
5. The spindle speed control method according to claim 2, characterized in that, Determining the second spindle speed based on the needle pitch in the second direction includes: The second spindle speed is determined by referring to a table based on the needle spacing in the second direction.
6. The spindle speed control method according to claim 5, characterized in that, The second spindle speed is determined by looking up the table based on the needle pitch in the second direction, including: The second stitch distance range to which the stitch distance in the second direction belongs is determined by referring to a table based on the stitch distance in the second direction; The second spindle speed is determined by looking up a table based on the second stitch distance range; the second spindle speed corresponds one-to-one with the second stitch distance range.
7. The spindle speed control method according to claim 1, characterized in that, Obtaining the stitch length in the first direction and the stitch length in the second direction of the current needle includes: Obtain the stitch length in the X and Y directions of the pattern.
8. A spindle speed control device for a sewing machine, characterized in that, include: The acquisition module is used to acquire the stitch length in the first direction and the stitch length in the second direction of the current needle. The determining module is used to determine the target spindle speed based on the stitch pitch in the first direction and the stitch pitch in the second direction; The comparison module is used to compare the target spindle speed with the current speed of the spindle; A speed reduction module is used to reduce the rotational speed of the spindle to the target spindle speed if the target spindle speed is less than the current spindle speed. A holding module is used to keep the spindle speed constant if the target spindle speed is not less than the current spindle speed.
9. 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 spindle speed control method for a sewing device as described in any one of claims 1 to 7.
10. 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 spindle speed control method for a sewing device as described in any one of claims 1 to 7.