Methods for calibrating the height of the pressure foot, electronic devices, and storage media

By controlling the rotation angle and height difference of the sewing machine drive components, the rotation angle of the presser foot is adjusted to be within a preset range, thus solving the problem of inconsistent presser foot height and achieving height consistency and calibration accuracy.

CN115522324BActive Publication Date: 2026-05-26JACK SEWING MASCH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JACK SEWING MASCH CO LTD
Filing Date
2021-06-25
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

The height of the presser foot in a sewing machine is inconsistent when rotating in different directions, and existing technologies lack effective solutions.

Method used

By controlling the rotation angle of the drive component, the presser foot is rotated counterclockwise and clockwise by a specific angle after being in the preset initial position. The height difference is calculated, and the rotation angle of the drive component is adjusted to keep the height difference within the preset range, thus achieving a consistent presser foot height.

Benefits of technology

It achieves consistent height of the presser foot when rotating in different directions, simplifies maintenance and adjustment operations, and improves calibration accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115522324B_ABST
    Figure CN115522324B_ABST
Patent Text Reader

Abstract

This application relates to a method, electronic device, and storage medium for calibrating the height of a pressure foot. The method includes: controlling a drive component to move to a preset initial position; controlling the drive component to rotate clockwise by a first preset angle, causing the pressure foot to move to a first height; controlling the drive component to rotate counterclockwise by a second preset angle, causing the pressure foot to move to a second height; calculating the difference between the first height and the second height to obtain a height difference; and adjusting the rotation angle of the drive component to ensure that the height difference is within a preset height difference range. This application solves the problem of inconsistent pressure foot heights in related technologies, achieving consistent pressure foot heights.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of sewing machines, and in particular to a method for calibrating the height of the presser foot, an electronic device, and a storage medium. Background Technology

[0002] In a sewing machine, a single drive unit controls multiple mechanisms. For example, a drive unit can be used to raise the presser foot and adjust the height of the feed teeth. Rotating the drive unit in one direction raises the presser foot, while rotating it in another direction lowers the feed teeth and raises the presser foot. Although both directions of rotation raise the presser foot, the angle at which the rotor stops when the presser foot is raised is not the same. Therefore, the height at which the presser foot is raised may differ depending on the direction of rotation.

[0003] There is currently no effective solution to the problem of inconsistent presser foot heights in related technologies. Summary of the Invention

[0004] This embodiment provides a method for calibrating the height of the presser foot, an electronic device, and a storage medium to solve the problem of inconsistent presser foot heights in related technologies.

[0005] Firstly, this embodiment provides a method for calibrating the height of the presser foot, applied to a sewing machine. The sewing machine includes a drive component and a presser foot lever. A cam is provided on the rotor of the drive component, and the drive component can drive the cam to act on the presser foot lever, thereby driving the presser foot lever to move the presser foot. The method includes:

[0006] Control the drive component to run to a preset initial position;

[0007] The drive component is controlled to rotate counterclockwise by a first preset angle so that the lifting foot moves to a first height;

[0008] The drive component is controlled to rotate clockwise by a second preset angle so that the lifting foot moves to a second height;

[0009] The height difference is obtained by subtracting the first height from the second height.

[0010] Adjust the rotation angle of the drive component so that the height difference is within a preset height difference range.

[0011] In some embodiments, the method further includes, before controlling the drive unit to run to a preset initial position:

[0012] Obtain the output signal corresponding to one revolution of the rotor of the drive component;

[0013] Detect the signal edges in the output signal;

[0014] Determine the first angle of rotor rotation of the drive unit when the edge of the signal is detected;

[0015] The motor position corresponding to the first angle of rotor rotation of the drive component is taken as the preset initial position.

[0016] In some embodiments, the rotation angle of the drive member is adjusted so that the height difference is within a preset height difference range, including:

[0017] Determine whether the height difference is within a first preset interval, wherein the first preset interval is (x1, +∞), x1≥0;

[0018] If the height difference is determined to be within a first preset range, a first adjustment rule corresponding to the first preset range is obtained;

[0019] The rotation angle of the drive component is adjusted according to the first adjustment rule so that the height difference is within a preset height difference range.

[0020] In some embodiments, the rotation angle of the drive component is adjusted according to the first adjustment rule so that the height difference is within a preset height difference range:

[0021] Based on the height difference, determine the deviation angle of the drive component;

[0022] The drive component is controlled to rotate counterclockwise by a second angle so that the lifting foot moves to a third height, wherein the second angle is the difference angle between the first preset angle and the deviation angle.

[0023] In some embodiments, the rotation angle of the drive component is adjusted according to the first adjustment rule so that the height difference is within a preset height difference range:

[0024] Based on the height difference, determine the deviation angle of the drive component;

[0025] The drive unit is controlled to rotate clockwise by a third angle so that the lifting foot moves to a fourth height, wherein the third angle is the sum of the second preset angle and the deviation angle.

[0026] In some embodiments, the rotation angle of the drive member is adjusted so that the height difference is within a preset height difference range, including:

[0027] Determine whether the height difference is within a second preset interval, wherein the second preset interval is (-∞, -x1), and x1≥0;

[0028] If the height difference is determined to be within a second preset range, a second adjustment rule corresponding to the second preset range is obtained;

[0029] The rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range.

[0030] In some embodiments, the rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range:

[0031] Based on the height difference, determine the deviation angle of the drive component;

[0032] The drive component is controlled to rotate clockwise by a fifth angle so that the lifting foot moves to a fourth height, wherein the fifth angle is the difference angle between the second preset angle and the deviation angle.

[0033] In some embodiments, the rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range:

[0034] Based on the height difference, determine the deviation angle of the drive component;

[0035] The drive unit is controlled to rotate counterclockwise by a sixth angle so that the lifting foot moves to a fifth height, wherein the sixth angle is the sum of the first preset angle and the deviation angle.

[0036] Secondly, this embodiment provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the height calibration method for lifting the pressure foot described in the first aspect above.

[0037] Thirdly, this embodiment provides a storage medium storing a computer program that, when executed by a processor, implements the height calibration method for lifting the pressure foot described in the first aspect.

[0038] Compared with related technologies, the height calibration method, electronic device, and storage medium provided in this embodiment solve the problem of inconsistent presser foot heights in related technologies by controlling the driving component to run to a preset initial position; controlling the driving component to rotate clockwise by a first preset angle so that the presser foot runs to a first height; controlling the driving component to rotate counterclockwise by a second preset angle so that the presser foot runs to a second height; calculating the difference between the first height and the second height to obtain the height difference; and adjusting the rotation angle of the driving component so that the height difference is within a preset height difference range. This achieves consistent presser foot heights.

[0039] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0040] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0041] Figure 1 This is a hardware structure block diagram of the terminal of the height calibration method for lifting the pressure foot in this embodiment;

[0042] Figure 2 This is a flowchart of the height calibration method for lifting the pressure foot in this embodiment;

[0043] Figure 3 This is a schematic diagram of the height calibration device for the lifting foot in this embodiment;

[0044] Figure 4 This is a flowchart of the height calibration method for raising the pressure foot according to a preferred embodiment. Detailed Implementation

[0045] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0046] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning as understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these,” used in this application, do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to such processes, methods, products, or devices. The terms “connected,” “linked,” and “coupled,” used in this application, are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. The term “multiple” used in this application refers to two or more. The "and / or" operator describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: A alone, A and B simultaneously, and B alone. Typically, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," and "third," etc., used in this application are merely for distinguishing similar objects and do not represent a specific ordering of the objects.

[0047] The method embodiments provided in this example can be executed on a terminal, computer, or similar computing device. For example, it can run on a terminal. Figure 1 This is a hardware structure block diagram of the terminal for the height calibration method of the lifting pressure foot in this embodiment. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 and a memory 104 for storing data are also included. The processor 102 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown are illustrated.

[0048] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the foot-raising height calibration method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thus implementing the aforementioned method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0049] The transmission device 106 is used to receive or send data via a network. This network includes a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 can be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0050] This embodiment provides a method for calibrating the height of the presser foot. This method is applied to a sewing machine, which includes a drive unit and a presser foot lever. A cam is mounted on the rotor of the drive unit, and the drive unit can drive the cam to act on the presser foot lever, thereby driving the presser foot lever to move the presser foot. Figure 2 This is a flowchart of the height calibration method for raising the pressure foot in this embodiment, as follows: Figure 2 As shown, the process includes the following steps:

[0051] Step S201: Control the drive unit to run to the preset initial position.

[0052] In this step, the initial height of the lifting foot is generally set to zero. In order to keep the initial height of the lifting foot constant, different preset initial positions can be preset for different driving components to ensure that the initial height of the lifting foot remains constant.

[0053] It should be noted that the preset initial position of the drive component corresponds to the initial height of the lifting pressure foot.

[0054] Step S202: Control the drive component to rotate counterclockwise by a first preset angle so that the lifting foot moves to the first height.

[0055] In this step, the first preset angle can be a preset angle by the user according to actual needs.

[0056] It should be noted that the first preset angle can refer to the angle at which the drive unit rotates counterclockwise from the preset initial position. The direction of counterclockwise rotation can be referred to as the non-downward feeding direction of the feed dog.

[0057] Step S203: Control the drive component to rotate clockwise by a second preset angle so that the lifting foot moves to the second height.

[0058] In this step, the second preset angle can be a preset angle by the user according to actual needs.

[0059] It should be noted that the second preset angle can refer to the angle at which the drive unit rotates clockwise from the preset initial position. The direction of clockwise rotation can be referred to as the feed dog downward direction.

[0060] In some embodiments, the direction of clockwise rotation can be referred to as the non-downward feeding direction of the feed dog, and the direction of counterclockwise rotation can be referred to as the downward feeding direction of the feed dog.

[0061] Step S204: Subtract the first height from the second height to obtain the height difference.

[0062] In this step, the difference between the first and second heights is used to determine whether they are the same, so that the height of the presser foot can be adjusted later.

[0063] Step S205: Adjust the rotation angle of the drive component so that the height difference is within the preset height difference range.

[0064] Based on the above steps S201 to S205, by subtracting the first height from the second height to obtain the height difference, and then adjusting the rotation angle of the drive component to ensure that the height difference is within the preset height difference range, the consistent lifting height of the pressure foot is achieved, thus solving the problem of inconsistent lifting height of the pressure foot in related technologies.

[0065] In some embodiments, before controlling the drive unit to run to the preset initial position, the output signal corresponding to one revolution of the rotor of the drive unit can be acquired; the signal edge in the output signal can be detected; the first angle of the rotor rotation of the drive unit when the signal edge is detected can be determined; and the motor position corresponding to the first angle of the rotor rotation of the drive unit can be used as the preset initial position.

[0066] In this embodiment, by detecting the signal edge in the output signal, determining the first angle of the rotor rotation of the drive component when the signal edge is detected, and then using the motor position corresponding to the first angle of the rotor rotation of the drive component as the preset initial position, the first angle can be used as the preset initial height each time, which can avoid manual intervention and realize the automated generation of the preset initial height, greatly simplifying maintenance, readjustment and other operations.

[0067] In some embodiments, adjusting the rotation angle of the drive component to make the height difference within a preset height difference range includes: determining whether the height difference is within a first preset interval, wherein the first preset interval is (x1, +∞), x1≥0; if it is determined that the height difference is within the first preset interval, obtaining a first adjustment rule corresponding to the first preset interval; and adjusting the rotation angle of the drive component according to the first adjustment rule to make the height difference within the preset height difference range.

[0068] In this embodiment, when the height difference is determined to be within a first preset range, a first adjustment rule corresponding to the first preset range is obtained; the rotation angle of the drive component is adjusted according to the first adjustment rule so that the height difference is within a preset height difference range, thereby realizing the adjustment of the height of the lifting foot and solving the problem of different lifting foot heights in related technologies, thus achieving consistent lifting foot heights.

[0069] It should be noted that the value of x1 can be set according to different sewing machine equipment or actual needs. Each preset range has a corresponding adjustment specification to achieve consistent presser foot height.

[0070] In some embodiments, adjusting the rotation angle of the drive member according to the first adjustment rule so that the height difference is within a preset height difference range includes: determining the deviation angle of the drive member according to the height difference; controlling the drive member to rotate counterclockwise by a second angle so that the lifting pressure foot moves to a third height, wherein the second angle is the difference angle between the first preset angle and the deviation angle.

[0071] In this embodiment, each lifting foot rotates to a certain height, and there is a corresponding rotation angle of the driving component. By determining the deviation angle of the driving component based on the height difference, and controlling the driving component to rotate counterclockwise by a second angle so that the lifting foot moves to a third height, a method for adjusting the height difference is improved, and the height of the lifting foot is made consistent.

[0072] In some embodiments, adjusting the rotation angle of the drive member according to the first adjustment rule so that the height difference is within a preset height difference range includes: determining the deviation angle of the drive member according to the height difference; controlling the drive member to rotate clockwise by a third angle so that the lifting foot moves to a fourth height, wherein the third angle is the sum of the second preset angle and the deviation angle.

[0073] In this embodiment, by determining the deviation angle of the drive component based on the height difference and controlling the drive component to rotate clockwise by a third angle so that the lifting foot moves to a fourth height, a method for adjusting the height difference is improved, and the height of the lifting foot is made consistent.

[0074] In some embodiments, adjusting the rotation angle of the drive component to make the height difference within a preset height difference range includes: determining whether the height difference is within a second preset interval, wherein the second preset interval is (-∞, -x1), x1≥0; if the height difference is determined to be within the second preset interval, obtaining a second adjustment rule corresponding to the second preset interval; and adjusting the rotation angle of the drive component according to the second adjustment rule to make the height difference within the preset height difference range.

[0075] In this embodiment, when the height difference is determined to be within a second preset range, a second adjustment rule corresponding to the second preset range is obtained; the rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range, thereby realizing the adjustment of the height of the lifting foot and solving the problem of different lifting foot heights in related technologies, and achieving consistent lifting foot heights.

[0076] In some of these embodiments, adjusting the rotation angle of the drive member according to the second adjustment rule so that the height difference is within a preset height difference range includes: controlling the drive member to rotate clockwise by a fifth angle so that the lifting presser foot moves to a fourth height so that the lifting presser foot moves from a preset initial height to a fourth height along the direction of the feed dog, wherein the fifth angle is the difference angle between the second preset angle and the deviation angle.

[0077] In this embodiment, each lifting foot rotates to a certain height, and there is a corresponding rotation angle of the driving component. By determining the deviation angle of the driving component based on the height difference, and controlling the driving component to rotate clockwise by a fifth angle so that the lifting foot moves to the fourth height, a method for adjusting the height difference is improved, and the height of the lifting foot is made consistent.

[0078] In some embodiments, adjusting the rotation angle of the drive member according to the second adjustment rule so that the height difference is within a preset height difference range includes: determining the deviation angle of the drive member based on the height difference; controlling the drive member to rotate counterclockwise by a sixth angle so that the pressure foot moves to a fifth height, wherein the sixth angle is the sum of the first preset angle and the deviation angle.

[0079] In this embodiment, each lifting foot rotates to a certain height, and there is a corresponding rotation angle of the driving component. By determining the deviation angle of the driving component based on the height difference, and controlling the driving component to rotate counterclockwise by a sixth angle so that the lifting foot moves to the fifth height, a method for adjusting the height difference is improved, and the height of the lifting foot is made consistent.

[0080] The method described in the above embodiments can automatically adjust the initial position to ensure that the height at which the presser foot in the non-downward direction of the feed dog is raised is the same as or the height difference between the presser foot in the downward direction of the feed dog is within a reasonable range.

[0081] This embodiment also provides a height calibration device for raising the pressure foot. Figure 3 This is a schematic diagram of the structure of a height calibration device for lifting the pressure foot according to this embodiment, as shown below. Figure 3 As shown, the device includes: a lifting foot lever 1, a lifting foot 2, a magnet 3, a lifting foot height sensor 4, a cam 5, a motor 6, an encoder 7, and a rotor 8. Figure 3 The rotation of rotor 8 in the drive unit 6 drives the rotation of cam 5, which in turn drives the movement of related mechanisms, ultimately causing the lifting foot lever 1 to rotate. The lifting foot lever 1 then moves the lifting foot 2 up or down. Magnet 3 is mounted on the lifting foot lever 1, while the lifting foot height sensor 4 is mounted on the housing. When the lifting foot lever 1 rotates upward, it causes the magnet 3 on the lever to move upward, increasing the voltage value of the lifting foot height sensor 4. Therefore, the lifting foot height sensor 4 detects the height to which the lifting foot 2 is raised. Different raised heights result in different voltage values ​​output by the lifting foot height sensor 4, further allowing the detection of the fabric thickness below the lifting foot.

[0082] The machine is equipped with a drive unit 6, on which an encoder 7 is mounted. A cam 5 is fixed to the rotor 8 of the drive unit 6. The rotor of the drive unit 6 (the rotating part of the drive unit) raises the pressure foot 2 and lowers the feed dog via the cam 5 mechanism. The encoder 7 on the drive unit outputs a Z signal, which serves as the reference position for the rotor of the drive unit 6. With each rotation of the drive unit 6, the Z signal changes from high to low level once, and then from low to high level once. The rising or falling edge of the Z signal's high / low level transition can be used to position the rotor 8 of the drive unit 6 as a reference.

[0083] Furthermore, since the cam 5 is fixed to the rotor 8 by a hard connection, the edge of the Z signal of the encoder 7 on the drive unit 6 (including the rising edge and / or falling edge) can be used as the reference position of the cam 5.

[0084] Furthermore, since the lifting of the presser foot and the downward feeding of the feed dog are driven by the cam 5, the edge of the Z signal of the encoder 7 on the drive unit 6 can be used as the reference position for the height of the presser foot. When the rotor 8 of the drive unit 6 rotates counterclockwise from the initial position, only the presser foot is lifted, which is called the presser foot lifting in the non-downward feeding direction of the feed dog; when the rotor of the drive unit 6 rotates clockwise from the initial position, the downward feeding of the feed dog is performed first, and then the presser foot is lifted, which is called the presser foot lifting in the downward feeding direction of the feed dog.

[0085] When the current system is working, it first needs to determine the initial position. The principle of initial position positioning is as follows:

[0086] The rotor 8 of the drive unit 6 rotates counterclockwise to find the rising edge of the Z signal. This rising edge is the reference position of the rotor 8 of the drive unit 6. The rotor 8 of the drive unit 6 then rotates by the angle set by parameter U35 (i.e., the preset initial angle in the above embodiment). This angle is the initial working position of the rotor 8 of the drive unit 6. The rotor 8 of the drive unit 6 rotates counterclockwise at the initial position by the angle set by parameter U69 (i.e., the first preset angle in the above embodiment), which is the height to which the pressure foot is raised in the direction of non-downward feeding of the feed dog. The rotor 8 of the drive unit 6 rotates clockwise at the initial position by the angle set by parameter U70 (i.e., the second preset angle in the above embodiment), which is the height to which the pressure foot is raised in the direction of downward feeding of the feed dog. Theoretically, the height of the pressure foot raised in the two directions should be the same. U35, U69, and U70 can be set with different values ​​according to the structure of the cam 5.

[0087] However, in actual use, due to debugging or after long-term work, the initial position may deviate, resulting in an inconsistency between the height of the pressure foot raised in the non-downward direction and the height of the pressure foot raised in the downward direction.

[0088] The following method can be used to achieve the same height for both the non-downward feed direction presser foot and the downward feed direction presser foot.

[0089] First, the rotor 8 of the drive unit 6 rotates counterclockwise from its initial position by the angle set by parameter U69, raising the pressure foot. This causes a change in the voltage value AD of the pressure foot height sensor 4, which the microcontroller reads and stores in variable V1. Next, the rotor 8 of the drive unit 6 rotates clockwise first by the angle set by parameter U69, then by the angle set by parameter U70. During this process, the pressure foot falls from its raised position and then rises again. At this time, the microcontroller reads and stores the voltage value AD output by the height sensor in variable V2.

[0090] It should be noted that in this embodiment, the height of the presser foot is converted into voltage by a presser foot height sensor for calculation, and each presser foot height has a corresponding voltage on the presser foot height sensor.

[0091] If |V1-V2|≤V0, the microcontroller assumes that the height of the pressure foot raised in the non-downward direction of the feed dog is the same as the height of the pressure foot raised in the downward direction of the feed dog, and therefore no further calibration is performed.

[0092] If V2-V1>V0, the height of the pressure foot raised in the non-downward direction of the feed dog is higher than the height of the pressure foot raised in the downward direction of the feed dog. The rotor 8 of the drive unit 6 rotates counterclockwise by the angle set by parameters U69 and U70 minus the angle set by X. The microcontroller reads the voltage value output by the pressure foot height sensor 4 and stores it in variable V1. Then, the rotor 8 of the drive unit 6 rotates clockwise by the angle set by parameters U69 and U70. The microcontroller reads the voltage value output by the pressure foot height sensor 8 and stores it in variable V2.

[0093] If |V1-V2|≤V0, the microcontroller assumes that the height raised by the pressure foot in the non-downward direction of the feed dog is the same as the height raised by the pressure foot in the downward direction of the feed dog; otherwise, it continues the above method until |V1-V2|≤V0 and then exits the calibration process. Here, X is the incremental angle of the movable position of the set drive component 6, and V0 is the acceptable voltage deviation value. In this embodiment, the voltage deviation value corresponds one-to-one with the preset height difference range in the above embodiments.

[0094] If V1-V2>V0, the height of the pressure foot raised in the non-downward direction of the feed dog is higher than the height of the pressure foot raised in the downward direction of the feed dog. The rotor 8 of the drive unit 6 rotates counterclockwise by the angle set by parameters U69 and U70 plus the angle set by X. The microcontroller reads the voltage value output by the pressure foot height sensor 4 and stores it in variable V1. Then, the rotor 8 of the drive unit 6 rotates clockwise by the angle set by parameters U69 and U70. The microcontroller reads the voltage value output by the pressure foot height sensor 4 and stores it in variable V2.

[0095] If |V1-V2|≤V0, the microcontroller assumes that the height of the pressure foot raised in the non-downward direction of the feed dog is the same as the height of the pressure foot raised in the downward direction of the feed dog; otherwise, it continues the above method until |V1-V2|≤V0 and then exits the calibration process.

[0096] After exiting the calibration process, the calibrated U35 becomes the initial position for the drive unit to operate, and the drive unit rotates back to the initial position.

[0097] In the above embodiments, after calibration, to improve calibration accuracy, steps S201 to S205 can be performed again on the calibrated device to further improve calibration accuracy. This embodiment also provides an electronic device including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

[0098] This preferred embodiment also provides a method for calibrating the height of the pressure foot, which can be applied to... Figure 3 The device in the middle. Figure 4 This is a flowchart of a method for calibrating the height of the pressure foot according to a preferred embodiment of the present invention, as shown below. Figure 4 As shown, the method includes:

[0099] Step S401: Control the drive component to rotate U35 to the initial position.

[0100] In this step, the initial position of the drive component can be the preset initial position in the above embodiments.

[0101] Step S402: Control the drive component to rotate U69 counterclockwise.

[0102] In this step, counterclockwise rotation can be the non-downward direction of the feed dog in the above embodiment, and U69 can be the first preset angle in the above embodiment.

[0103] Step S403: Obtain the voltage value V1 of the lifting foot height sensor.

[0104] In this step, the height of the presser foot is converted into voltage using a presser foot height sensor for calculation. Each presser foot height corresponds to a voltage on the presser foot height sensor.

[0105] Step S404: Control the drive component to rotate clockwise (U69+U70).

[0106] In this step, counterclockwise rotation can be the direction of the feed dog's downward feeding in the above embodiment.

[0107] It should be noted that step S402 can also control the drive component to rotate clockwise U70 first, and step S404 can execute the control of the drive component to rotate counterclockwise (U69+U70).

[0108] Step S405: Obtain the voltage value V2 of the lifting foot height sensor.

[0109] Step S406: Determine whether (V2-V1) is within the first preset voltage range. If yes, the process ends; otherwise, proceed to step S407.

[0110] It should be noted that the first preset voltage range corresponds to the preset height difference range in the above embodiments.

[0111] Step S407: Determine whether (V2-V1) is within the second preset voltage range. If yes, proceed to step S408; otherwise, proceed to step S413.

[0112] It should be noted that the second preset voltage range corresponds to the first preset interval in the above embodiment.

[0113] Step S408: Control the drive component to rotate counterclockwise (U70+U69-X).

[0114] In this step, X can be the angle corresponding to the voltage difference between V2 and V1, or the angle corresponding to the height difference in the above embodiments.

[0115] Step S409: Obtain the voltage value V3 of the pressure foot height sensor.

[0116] Step S410: Control the drive component to rotate clockwise (U70+U69).

[0117] Step S411: Obtain the voltage value V4 of the lifting foot height sensor.

[0118] In step S412, U35 is U35+X from step S401, and the process ends.

[0119] Step S413: Control the drive component to rotate counterclockwise (U70+U69+X).

[0120] Step S414: Obtain the voltage value V5 of the lifting foot height sensor.

[0121] Step S415: Control the drive component to rotate clockwise (U70+U69).

[0122] Step S416: Obtain the voltage value V6 of the lifting foot height sensor.

[0123] Step S417, U35 is U35-X in step S401, and then the process ends.

[0124] It should be noted that after steps S413 and S418, step S408 can be performed again for testing to improve calibration accuracy.

[0125] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0126] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0127] Step S201: Control the drive unit to run to the preset initial position.

[0128] Step S202: Control the drive component to rotate counterclockwise by a first preset angle so that the lifting foot moves to the first height.

[0129] Step S203: Control the drive component to rotate clockwise by a second preset angle so that the lifting foot moves to the second height.

[0130] Step S204: Subtract the first height from the second height to obtain the height difference.

[0131] Step S205: Adjust the rotation angle of the drive component so that the height difference is within the preset height difference range.

[0132] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated in this embodiment.

[0133] Furthermore, in conjunction with the height calibration method for lifting the pressure foot provided in the above embodiments, this embodiment can also provide a storage medium for implementation. This storage medium stores a computer program; when executed by a processor, the computer program implements any of the height calibration methods for lifting the pressure foot in the above embodiments.

[0134] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0135] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0136] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0137] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. A method for calibrating the height of a presser foot, applied to a sewing machine, the sewing machine comprising a drive component and a presser foot lever, wherein a cam is provided on the rotor of the drive component, and the drive component is capable of driving the cam to act on the presser foot lever, thereby driving the presser foot lever to move the presser foot; characterized in that, include: Control the drive component to run to a preset initial position; The drive component is controlled to rotate counterclockwise by a first preset angle so that the lifting foot moves to a first height; Control the drive component to rotate clockwise by a second preset angle so that the lifting foot moves to a second height; The height difference is obtained by subtracting the first height from the second height. Adjust the rotation angle of the drive component so that the height difference is within a preset height difference range; Adjust the rotation angle of the drive component so that the height difference is within a preset height difference range: Determine whether the height difference is within a first preset interval, wherein the first preset interval is (x1, +∞), x1≥0; If the height difference is determined to be within a first preset range, a first adjustment rule corresponding to the first preset range is obtained; The rotation angle of the drive component is adjusted according to the first adjustment rule so that the height difference is within a preset height difference range; Adjust the rotation angle of the drive component according to the first adjustment rule so that the height difference is within a preset height difference range: determine the deviation angle of the drive component based on the height difference; control the drive component to rotate counterclockwise by a second angle so that the lifting foot moves to a third height, wherein the second angle is the difference angle between the first preset angle and the deviation angle, or Based on the height difference, the deviation angle of the drive component is determined; the drive component is controlled to rotate clockwise by a third angle so that the lifting foot moves to a fourth height, wherein the third angle is the sum of the second preset angle and the deviation angle.

2. The method for calibrating the height of the pressure foot according to claim 1, characterized in that, Before controlling the drive unit to run to a preset initial position, the method further includes: Obtain the output signal corresponding to one revolution of the rotor of the drive component; Detect the signal edges in the output signal; Determine the first angle of rotor rotation of the drive unit when the edge of the signal is detected; The motor position corresponding to the first angle of rotor rotation of the drive component is taken as the preset initial position.

3. The method for calibrating the height of the pressure foot according to claim 1, characterized in that, Adjust the rotation angle of the drive component so that the height difference is within a preset height difference range: Determine whether the height difference is within a second preset interval, wherein the second preset interval is (-∞, -x1), x1≥0; If the height difference is determined to be within a second preset range, a second adjustment rule corresponding to the second preset range is obtained; The rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range.

4. The method for calibrating the height of the pressure foot according to claim 3, characterized in that, The rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range: Based on the height difference, determine the deviation angle of the drive component; The drive component is controlled to rotate clockwise by a fifth angle so that the lifting foot moves to a fourth height, wherein the fifth angle is the difference angle between the second preset angle and the deviation angle.

5. The method for calibrating the height of the pressure foot according to claim 3, characterized in that, The rotation angle of the drive component is adjusted according to the second adjustment rule so that the height difference is within a preset height difference range: Based on the height difference, determine the deviation angle of the drive component; The drive unit is controlled to rotate counterclockwise by a sixth angle so that the lifting foot moves to a fifth height, wherein the sixth angle is the sum of the first preset angle and the deviation angle.

6. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the height calibration method for lifting the pressure foot as described in any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the height calibration method for lifting the pressure foot as described in any one of claims 1 to 5.