CN115157871B - Method for determining distance between printing head and printing substrate, printing apparatus and storage medium - Google Patents
Method for determining distance between printing head and printing substrate, printing apparatus and storage medium Download PDFInfo
- Publication number
- CN115157871B CN115157871B CN202210966185.6A CN202210966185A CN115157871B CN 115157871 B CN115157871 B CN 115157871B CN 202210966185 A CN202210966185 A CN 202210966185A CN 115157871 B CN115157871 B CN 115157871B
- Authority
- CN
- China
- Prior art keywords
- voltage value
- hall sensor
- printing
- determining
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000000758 substrate Substances 0.000 title claims abstract description 163
- 238000000034 method Methods 0.000 title claims abstract description 90
- 230000004886 head movement Effects 0.000 claims description 2
- 230000004913 activation Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000005672 electromagnetic field Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical group [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/315—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J25/00—Actions or mechanisms not otherwise provided for
- B41J25/304—Bodily-movable mechanisms for print heads or carriages movable towards or from paper surface
- B41J25/308—Bodily-movable mechanisms for print heads or carriages movable towards or from paper surface with print gap adjustment mechanisms
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J29/00—Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
- B41J29/38—Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
- B41J29/393—Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
Landscapes
- Common Mechanisms (AREA)
Abstract
The invention discloses a distance determining method between a printing head and a printing substrate, a printing device and a storage medium, which are applied to the printing device comprising the printing head, the printing substrate, an electromagnet, a Hall sensor and a magnetic element, and comprise the following steps: acquiring an initial voltage value output by a Hall sensor when the electromagnet does not work; driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor; updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than the preset difference value; and determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and the linear relation between the voltage change value output by the Hall sensor and the printing head moving distance in the preset printing head moving process. According to the technical scheme, the cost for determining the distance between the printing head and the printing substrate is reduced, the printing effect is improved, and the loss of the printing head is reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of printing, in particular to a method for determining the distance between a printing head and a printing substrate, printing equipment and a storage medium.
Background
In a thermal transfer printer, in order to save the use of the ink ribbon, it is generally necessary to lift the print head after printing one frame of data so that the ink ribbon does not need to move along with the substrate speed, thereby reducing the use amount of the ink ribbon, and thus the print head needs to be pushed down and lifted. The magnitude of the printing pressure of the printhead affects the printing effect and the lifetime of the printhead, and therefore, it is necessary to provide an appropriate printing pressure.
The printing pressure is typically provided by the magnetic field attractive force of an electromagnet disposed at the top of the printhead, and a change in distance between the electromagnet and the print substrate results in a large change in the magnetic field attractive force. The distance between the print head and the electromagnet is determined, so that the distance between the print head and the print substrate affects the magnetic attraction force and thus the printing pressure, i.e. the distance deviation between the print head and the print substrate can cause a larger change in the printing pressure under the condition of applying the same current, thereby affecting the printing quality and the service life of the print head, and therefore, the detection of the distance between the print head and the print substrate is more important.
In the prior art, an optical sensor may be used to determine the distance between the printhead and the print substrate, but the optical sensor is susceptible to environmental impact and is costly.
Disclosure of Invention
The invention provides a distance determining method between a printing head and a printing substrate, a printing device and a storage medium, so as to reduce the cost of determining the distance between the printing head and the printing substrate.
In a first aspect, an embodiment of the present invention provides a method for determining a distance between a print head and a print substrate, the print head being configured to be driven by an electromagnet to move toward the print substrate, the print head being provided with a hall sensor on a side of a print substrate moving path, the print head being provided with a magnetic element on a side close to the hall sensor, the hall sensor being configured to output different voltage values according to a change in a position of the magnetic element; the method comprises the following steps:
acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work;
driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor;
updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value;
And determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process.
According to the technical scheme, the distance between the printing head and the printing substrate is determined, the printing head is driven by an electromagnet to move towards the printing substrate, a Hall sensor is arranged on one side of a moving path of the printing head towards the printing substrate, a magnetic element is arranged on one side, close to the Hall sensor, of the printing head, and the Hall sensor is configured to output different voltage values according to the position change of the magnetic element; the method comprises the following steps: acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work; driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor; updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value; and determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process. According to the technical scheme, the initial voltage output by the Hall sensor when the electromagnet does not work is obtained, the electromagnet can drive the printing head to move towards the printing substrate through the magnetic field attractive force determined by the preset current after the preset current is applied to the electromagnet, and the magnetic field attractive force is insufficient to enable the printing head to move to be in contact with the printing substrate, so that the preset current can be updated, an intermediate voltage value can be obtained, when the first difference value between the current intermediate voltage value and the last intermediate voltage value is smaller than the preset difference value, the printing head is in contact with the printing substrate, the current intermediate voltage value at the moment is determined to be the final voltage value, and further the distance between the printing head and the printing substrate can be determined according to the linear relation among the final voltage value, the initial voltage value, the voltage value and the moving distance, and the cost for determining the distance between the printing head and the printing substrate is reduced
Further, the electromagnet is a direct current electromagnet, and the preset current is the starting current of the electromagnet.
Further, the method for determining the linear relation between the voltage change value output by the Hall sensor and the moving distance of the printing head in the moving process of the printing head comprises the following steps:
determining a maximum voltage value and a minimum voltage value output by a Hall sensor in the process of moving the printing head by a preset distance;
and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to a ratio of the preset distance to the second difference value.
Further, the method for determining the linear relation between the voltage change value output by the Hall sensor and the moving distance of the printing head in the moving process of the printing head comprises the following steps:
driving the printing head to move so that both ends of the magnetic element pass through the Hall sensor at least once;
acquiring a maximum voltage value and a minimum voltage value output by a Hall sensor in the moving process of the printing head;
and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to the ratio of the length of the magnetic element to the second difference value.
Further, updating the preset current to obtain an updated current, and simultaneously obtaining a current intermediate voltage value output by the hall sensor, and determining that the current intermediate voltage value is a termination voltage value when a first difference value between the current intermediate voltage value and a last intermediate voltage value output by the hall sensor is smaller than a preset difference value, including:
updating the preset current based on a preset increment to obtain the updated current;
driving the electromagnet to work based on the updated current so as to drive the printing head to move towards a printing substrate, and simultaneously acquiring the current intermediate voltage value output by the Hall sensor;
determining the first difference value according to the current intermediate voltage value and the last intermediate voltage value, and comparing the first difference value with the preset difference value;
if the first difference value is smaller than the preset difference value, determining that the current intermediate voltage value is the termination voltage value; otherwise, continuing to update the preset current based on the preset increment to obtain the updated current.
Further, determining the distance between the print head and the print substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the print head moving distance in the process of moving the print head, wherein the linear relation comprises the following steps:
Determining a current voltage change value according to the termination voltage value and the initial voltage value;
and determining the distance between the printing head and the printing substrate according to the current voltage change value, a linear relation between the voltage change value output by the Hall sensor in the pre-determined printing head moving process and the printing head moving distance.
In a second aspect, an embodiment of the present invention further provides a device for determining a distance between a print head and a print substrate, where the print head is configured to be driven by an electromagnet to move toward the print substrate, a hall sensor is disposed on a side of a path of movement of the print head toward the print substrate, a magnetic element is disposed on a side of the print head close to the hall sensor, and the hall sensor is configured to output different voltage values according to a change in position of the magnetic element; the device comprises:
the first acquisition module is used for acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work;
the second acquisition module is used for driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate and simultaneously acquire an intermediate voltage value output by the Hall sensor;
The determining module is used for updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value;
and the execution module is used for determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and the linear relation between the output voltage change value of the Hall sensor and the printing head moving distance in the pre-determined printing head moving process.
In a third aspect, an embodiment of the present invention further provides a printing apparatus, including:
one or more processors; a storage means for storing one or more programs; an electromagnet for driving the printhead to move toward the print substrate; a magnetic element configured to move in synchronization with the printhead; a hall sensor for determining a change in position of the magnetic element; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of determining a distance between a printhead and a print substrate as described in any of the first aspects.
Further, the electromagnet is arranged at the top of the printing head, the Hall sensor is arranged at one side of the moving path of the printing head towards the printing substrate, and the magnetic element is arranged at one side of the printing head close to the Hall sensor.
In a fourth aspect, the present application provides a storage medium containing computer executable instructions which, when executed by a computer processor, are used to perform the method of determining the distance between a printhead and a print substrate according to any one of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the method of determining the distance between a printhead and a print substrate as provided in the first aspect.
It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer readable storage medium may be packaged with the processor of the distance determining device between the print head and the print substrate, or may be packaged separately from the processor of the distance determining device between the print head and the print substrate, which is not limited in this regard.
The description of the second, third, fourth and fifth aspects of the present application may refer to the detailed description of the first aspect; also, the advantageous effects described in the second aspect, the third aspect, the fourth aspect, and the fifth aspect may refer to the advantageous effect analysis of the first aspect, and are not described herein.
In the present application, the names of the above-described distance determining means between the print head and the print substrate do not constitute a limitation on the devices or function modules themselves, and in actual implementation, these devices or function modules may appear under other names. Insofar as the function of each device or function module is similar to that of the present application, it falls within the scope of the claims of the present application and the equivalents thereof.
These and other aspects of the application will be more readily apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIGS. 1a and 1b are schematic diagrams of a printing apparatus according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for determining a distance between a printhead and a print substrate according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for determining the distance between a printhead and a print substrate according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a device for determining a distance between a print head and a print substrate according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a printing apparatus according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" and the like in the description and in the drawings are used for distinguishing between different objects or between different processes of the same object and not for describing a particular order of objects.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like. Furthermore, embodiments of the application and features of the embodiments may be combined with each other without conflict.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more.
The printing pressure of the printhead in a thermal transfer printer can affect the printing effect and the life of the printhead, and the manner in which the printing pressure is provided includes: 1. a pneumatic mode for forming a printing pressure between the print head and the print substrate by applying an air pressure to the print head; 2. a motor mode for providing printing pressure by torque force of the motor; 3. an electromagnet mode, which provides printing pressure by the attractive force of the magnetic field of the electromagnet. When the printing pressure is provided by the magnetic attraction force of the electromagnet, the magnetic attraction force is greatly changed due to the change of the distance between the electromagnet and the printing substrate, and the distance between the printing head and the printing substrate influences the magnetic attraction force and further influences the printing pressure because the distance between the printing head and the electromagnet is determined, so that the detection of the distance between the printing head and the printing substrate is more important. The prior art determines the distance between the print head and the print substrate by an optical sensor, which is costly.
Fig. 1a and 1b are schematic diagrams of a printing apparatus according to an embodiment of the present application, as shown in fig. 1a and 1b, the printing apparatus may include a printhead 110, a print substrate 120, an electromagnet 130, a magnetic element 140, and a hall sensor 150, where the printhead and the print substrate are disposed opposite to each other, the electromagnet is disposed on top of the printhead, the hall sensor is disposed in a printing direction, and the magnetic element is disposed on a side of the printhead adjacent to the hall sensor.
The application provides a method for determining the distance between a printing head and a printing substrate, which is characterized in that the distance between the printing head and the printing substrate is determined through an electromagnet, a magnetic element and a Hall sensor which are contained in the printing equipment shown in fig. 1a and 1b, so that the cost for determining the distance between the printing head and the printing substrate is reduced.
The distance determining method between the print head and the print substrate according to the present application will be described in detail with reference to the printing apparatus and embodiments shown in fig. 1a and 1 b.
Fig. 2 is a flowchart of a method for determining a distance between a printhead and a print substrate according to an embodiment of the present application, where the method may be performed by a device for determining a distance between a printhead and a print substrate, and specifically includes the following steps:
Step 210, obtaining an initial voltage value output by the hall sensor when the electromagnet does not work.
The printing device comprises a printing substrate, a printing head, a Hall sensor, a magnetic element and a control circuit, wherein the printing head of the printing device is configured to be driven by an electromagnet to move towards the printing substrate, the Hall sensor is arranged on one side of a moving path of the printing head towards the printing substrate, the magnetic element is arranged on one side of the printing head, which is close to the Hall sensor, and the Hall sensor is configured to output different voltage values according to the position change of the magnetic element.
Specifically, when the electromagnet is not activated, the printhead is in the first position shown in fig. 1a, that is, the printhead mounting position, and the magnetic element on the side of the printhead near the hall sensor is also in the first position. The hall sensor can determine the magnetic intensity at the hall sensor and output an initial voltage value when the position of the magnetic element is at the first position.
And 220, driving the electromagnet to work based on a preset current so as to drive the printing head to move towards the printing substrate, and simultaneously acquiring an intermediate voltage value output by the Hall sensor.
The preset current is the starting current of the electromagnet, namely the minimum current capable of driving the electromagnet to work, and is more than 0 and less than the current required by the printing head to move downwards to the printing substrate. The preset current can be obtained through preset measurement, and the current can be gradually increased from 0 until the electromagnet is started to work. In practical application, a working manual of the electromagnet can be searched to determine the starting current, namely the preset current.
Specifically, the electromagnet can be driven to work based on preset current, and when the electromagnet works, the iron core in the electromagnet can be driven to move through the attractive force of the magnetic field so as to drive the printing head to move towards the printing substrate. At this time, since the preset current is small, the magnetic field attraction force provided by the electromagnet is also small, and therefore, the print head is not sufficiently driven to move into contact with the print substrate. The print head moves towards the print substrate and the position of the print head, i.e. the position of the magnetic element, changes and the magnetic field strength at the hall sensor changes. The hall sensor may continuously output an intermediate voltage value according to the magnetic field strength at the hall sensor during movement of the printhead toward the print substrate.
Step 230, updating the preset current to obtain an updated current, and simultaneously obtaining a current intermediate voltage value output by the hall sensor, and determining that the current intermediate voltage value is a termination voltage value when a first difference value between the current intermediate voltage value output by the hall sensor and a last intermediate voltage value is smaller than a preset difference value.
Specifically, the electromagnet can be driven to work continuously based on the updated preset current so as to drive the printing head to move towards the printing substrate, and meanwhile, the intermediate voltage value output by the Hall sensor is obtained. The preset current can be updated by adding a smaller value to the preset current, the updated preset current is obtained, the magnetic field attraction force provided by the electromagnet is increased, and the printing head is driven to move towards the printing substrate and can be closer to the printing substrate. Compared with the position where the electromagnet is driven to work by the preset current to drive the printing head to move towards the printing substrate, the position of the printing head changes, so that the magnetic field intensity at the Hall sensor also changes, and the Hall sensor outputs the current intermediate voltage value.
In practical applications, the print head may be raised to update the preset current.
If the first difference value between the current intermediate voltage value and the last intermediate voltage value is larger than or equal to the preset difference value, the voltage output by the Hall sensor is obviously changed, and the printing head is not contacted with the printing substrate, so that the current intermediate voltage value can be obtained while the preset current is continuously updated; if the first difference between the current intermediate voltage value and the previous intermediate voltage value is smaller than the preset difference, which indicates that the voltage output by the hall sensor has no significant change, and indicates that the print head contacts the printing substrate, i.e. the print head is located at the second position shown in fig. 1b, the current intermediate voltage value is determined to be the termination voltage value.
In the embodiment of the invention, the initial voltage when the printing head does not start to move towards the printing substrate is determined, and the final voltage when the printing head contacts the printing substrate is determined, so that a data basis is provided for determining the distance between the printing head and the printing substrate.
Step 240, determining the distance between the print head and the print substrate according to the ending voltage value, the initial voltage value and a linear relation between the voltage variation value output by the Hall sensor and the print head moving distance in the process of moving the print head.
The magnetic element has positive and negative poles, the magnetic field intensity is higher when the electromagnetic field is closer to the north and south poles, the magnetic field intensity is maximum when the magnetic field reaches the positive and north poles or the positive and south poles, and the Hall sensor can convert the measured magnetic field intensity into a voltage value, and the voltage value and the moving distance of the printing head show a linear relation.
And the magnetic element determines a maximum voltage value and a minimum voltage value output by the Hall sensor when moving along with the printing head towards the printing substrate. The voltage change value of the preset distance of the movement of the printing head can be determined according to the maximum voltage value and the minimum voltage value, and then the linear relation between the voltage value and the movement distance is determined, and the linear relation can indicate the movement distance corresponding to each voltage value.
It should be noted that the above-mentioned preset distance may exist at any stage in the downward movement process of the print head.
Specifically, after the termination voltage value and the initial voltage value are determined, a difference between the termination voltage value and the initial voltage value may be determined, and a distance between the print head and the print substrate may be determined based on a moving distance of the difference corresponding to each voltage value.
According to the embodiment of the invention, the distance between the printing head and the printing substrate is determined according to the electromagnet, the magnetic element and the Hall sensor, and the cost for determining the distance between the printing head and the printing substrate is reduced.
According to the method for determining the distance between the printing head and the printing substrate, the printing head is configured to be driven by the electromagnet to move towards the printing substrate, a Hall sensor is arranged on one side of a moving path of the printing head towards the printing substrate, a magnetic element is arranged on one side, close to the Hall sensor, of the printing head, and the Hall sensor is configured to output different voltage values according to the position change of the magnetic element; the method comprises the following steps: acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work; driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor; updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value; and determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process. According to the technical scheme, the initial voltage output by the Hall sensor when the electromagnet does not work is obtained, the electromagnet can drive the printing head to move towards the printing substrate through the magnetic field attractive force determined by the preset current after the preset current is applied to the electromagnet, and the magnetic field attractive force is insufficient to enable the printing head to move to be in contact with the printing substrate, so that the preset current can be updated, the intermediate voltage value is obtained, when the first difference value between the current intermediate voltage value and the last intermediate voltage value is smaller than the preset difference value, the printing head is in contact with the printing substrate, the current intermediate voltage value at the moment is determined to be the final voltage value, and further the distance between the printing head and the printing substrate can be determined according to the final voltage value, the initial voltage value and the linear relation between the voltage value and the moving distance, and the cost for determining the distance between the printing head and the printing substrate is reduced.
Fig. 3 is a flowchart of another method for determining a distance between a print head and a print substrate according to an embodiment of the present invention, which is embodied on the basis of the above-described embodiment. As shown in fig. 3, in this embodiment, the method may further include:
and 310, acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work.
Specifically, when the acquisition electromagnet is not operated, an initial voltage value Vup output by a hall sensor provided in the printing direction is acquired.
It should be noted that, the initial voltage output by the hall sensor may be converted into the AD value, that is, the initial voltage value Vup, by the digital-to-analog conversion circuit, so as to facilitate calculation.
Step 320, driving the electromagnet to work based on a preset current so as to drive the printing head to move towards the printing substrate, and acquiring an intermediate voltage value output by the Hall sensor.
Specifically, the electromagnet is driven to operate based on a preset current I1 to drive the print head to move toward the print substrate while acquiring an intermediate voltage value Vmid output by the hall sensor.
As described above, the intermediate voltage output from the hall sensor can be converted into the AD value, that is, the intermediate voltage value Vmid, by the digital-to-analog conversion circuit, so as to facilitate calculation.
Step 330, updating the preset current to obtain an updated current, and simultaneously obtaining a current intermediate voltage value output by the hall sensor, and determining that the current intermediate voltage value is a termination voltage value when a first difference value between the current intermediate voltage value output by the hall sensor and a last intermediate voltage value is smaller than a preset difference value.
In one embodiment, step 330 may specifically include:
updating the preset current based on a preset increment to obtain the updated current; driving the electromagnet to work based on the updated current so as to drive the printing head to move towards a printing substrate, and simultaneously acquiring the current intermediate voltage value output by the Hall sensor; determining the first difference value according to the current intermediate voltage value and the last intermediate voltage value, and comparing the first difference value with the preset difference value; if the first difference value is smaller than the preset difference value, determining that the current intermediate voltage value is the termination voltage value; otherwise, continuing to update the preset current based on a preset increment to obtain the updated current.
Specifically, updating the preset current I1 based on the preset increment I obtains an updated current I2, that is, it is determined that i2=i1+i, and driving the electromagnet to operate based on the updated current I2 to drive the print head to move toward the print substrate, and simultaneously obtaining the current intermediate voltage value Vmidd output by the hall sensor. Determining a first difference value according to the current intermediate voltage value Vmidd and the last intermediate voltage value Vmids, comparing the first difference value with a preset difference value, if the first difference value is greater than or equal to the preset difference value, the printing head is still not contacted with the printing substrate, and continuously updating the preset current I1 based on a preset increment I to obtain an updated current I2, namely determining that i2=i1+i; if the first difference is smaller than the preset difference, the current intermediate voltage value Vmidd is determined to be the termination voltage value Vdown.
Step 340, determining a linear relationship between the voltage variation value output by the hall sensor and the moving distance of the printing head in the moving process of the printing head.
In one embodiment, step 340 may specifically include:
determining a maximum voltage value and a minimum voltage value output by a Hall sensor in the process of moving the printing head by a preset distance; and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to a ratio of the preset distance to the second difference value.
In practical applications, the preset distance may be identical to the length of the magnetic element, i.e. Ln.
In the process of moving the printing head by a preset distance, determining a maximum voltage value MaxAd and a minimum voltage value MinAd, and determining a second difference value as MaxAd-MinAd. Further, the movement distance lpad=ln/(MaxAd-MinAd) for each voltage value can be determined, that is, the linear relationship between the voltage value and the movement distance is lpad=ln/(MaxAd-MinAd).
In another embodiment, step 340 may specifically include:
driving the printing head to move so that both ends of the magnetic element pass through the Hall sensor at least once; acquiring a maximum voltage value and a minimum voltage value output by a Hall sensor in the moving process of the printing head; and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to the ratio of the length of the magnetic element to the second difference value.
Specifically, the print head is driven to move so that the two ends of the magnetic element pass through the Hall sensor at least once, namely, the distance for driving the print head to move is consistent with the length of the magnetic element, namely, ln, in the process of moving the print head, the maximum voltage value MaxAd and the minimum voltage value MinAd are determined, and the second difference value MaxAd-MinAd is determined. Further, the movement distance lpad=ln/(MaxAd-MinAd) for each voltage value can be determined, that is, the linear relationship between the voltage value and the movement distance is lpad=ln/(MaxAd-MinAd).
And 350, determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and the linear relation between the voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process.
In one embodiment, step 350 may specifically include:
determining a current voltage change value according to the termination voltage value and the initial voltage value; and determining the distance between the printing head and the printing substrate according to the current voltage change value, a linear relation between the voltage change value output by the Hall sensor in the pre-determined printing head moving process and the printing head moving distance.
Specifically, the voltage variation value is determined to be Vdown-Vup, and thus the distance l=lpad (Vdown-Vup) between the print head and the print substrate can be determined.
The method for determining the distance between the printing head and the printing substrate provided by the embodiment of the invention comprises the following steps: acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work; driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor; updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value; in the moving process of the printing head, determining the linear relation between the voltage change value output by the Hall sensor in the moving process of the printing head and the moving distance of the printing head; and determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process. According to the technical scheme, the initial voltage output by the Hall sensor when the electromagnet does not work is obtained, the electromagnet can drive the printing head to move towards the printing substrate through the magnetic field attractive force determined by the preset current after the preset current is applied to the electromagnet, and the magnetic field attractive force is insufficient to enable the printing head to move to be in contact with the printing substrate.
Fig. 4 is a schematic structural diagram of a device for determining a distance between a print head and a print substrate according to an embodiment of the present invention, which can be applied to a case where it is required to reduce the cost of determining the distance between the print head and the print substrate. The printing head is configured to be driven by an electromagnet to move towards the printing substrate, a Hall sensor is arranged on one side of a printing substrate moving path, a magnetic element is arranged on one side, close to the Hall sensor, of the printing head, and the Hall sensor is configured to output different voltage values according to the position change of the magnetic element. The apparatus may be implemented in software and/or hardware and is typically integrated in a printing device.
As shown in fig. 4, the apparatus includes:
a first obtaining module 410, configured to obtain an initial voltage value output by the hall sensor when the electromagnet is not operating;
the second obtaining module 420 is configured to drive the electromagnet to operate based on a preset current, so as to drive the printhead to move towards the printing substrate, and obtain an intermediate voltage value output by the hall sensor;
a determining module 430, configured to update the preset current to obtain an updated current and obtain a current intermediate voltage value output by the hall sensor, and determine that the current intermediate voltage value is a termination voltage value when a first difference between the current intermediate voltage value output by the hall sensor and a previous intermediate voltage value is smaller than a preset difference;
And an execution module 440, configured to determine a distance between the print head and the print substrate according to the termination voltage value, the initial voltage value, and a predetermined linear relationship between a voltage variation value output by the hall sensor and a print head movement distance during the movement of the print head.
The present embodiment provides a distance determining device between a print head and a print substrate, the print head being configured to be driven by an electromagnet to move toward the print substrate, the print head being provided with a hall sensor on a side of a print substrate moving path, the print head being provided with a magnetic element on a side close to the hall sensor, the hall sensor being configured to output different voltage values according to a change in a position of the magnetic element; the device obtains an initial voltage value output by the Hall sensor when the electromagnet does not work; driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor; updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value; and determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process. According to the technical scheme, the initial voltage output by the Hall sensor when the electromagnet does not work is obtained, the electromagnet can drive the printing head to move towards the printing substrate through the magnetic field attractive force determined by the preset current after the preset current is applied to the electromagnet, and the magnetic field attractive force is insufficient to enable the printing head to move to be in contact with the printing substrate, so that the preset current can be updated, the intermediate voltage value is obtained, when the first difference value between the current intermediate voltage value and the last intermediate voltage value is smaller than the preset difference value, the printing head is in contact with the printing substrate, the current intermediate voltage value at the moment is determined to be the final voltage value, and further the distance between the printing head and the printing substrate can be determined according to the final voltage value, the initial voltage value and the linear relation between the voltage value and the moving distance, and the cost for determining the distance between the printing head and the printing substrate is reduced.
On the basis of the above embodiment, the electromagnet is a direct current electromagnet, and the preset current is a starting current of the electromagnet.
On the basis of the above embodiment, the device further includes:
and the linear relation determining module is used for determining the linear relation between the voltage change value output by the Hall sensor and the moving distance of the printing head in the moving process of the printing head.
In one embodiment, the linear relation determining module is specifically configured to:
determining a maximum voltage value and a minimum voltage value output by a Hall sensor in the process of moving the printing head by a preset distance;
and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to a ratio of the preset distance to the second difference value.
In another embodiment, the linear relation determining module is specifically configured to:
driving the printing head to move so that both ends of the magnetic element pass through the Hall sensor at least once;
acquiring a maximum voltage value and a minimum voltage value output by a Hall sensor in the moving process of the printing head;
and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to the ratio of the length of the magnetic element to the second difference value.
Based on the above embodiment, the determining module 430 is specifically configured to:
updating the preset current based on a preset increment to obtain the updated current; driving the electromagnet to work based on the updated current so as to drive the printing head to move towards a printing substrate, and simultaneously acquiring the current intermediate voltage value output by the Hall sensor; determining the first difference value according to the current intermediate voltage value and the last intermediate voltage value, and comparing the first difference value with the preset difference value; if the first difference value is smaller than the preset difference value, determining that the current intermediate voltage value is the termination voltage value; otherwise, continuing to update the preset current based on the preset increment to obtain the updated current.
Based on the above embodiment, the execution module 440 is specifically configured to:
determining a current voltage change value according to the termination voltage value and the initial voltage value; and determining the distance between the printing head and the printing substrate according to the current voltage change value, a linear relation between the voltage change value output by the Hall sensor in the pre-determined printing head moving process and the printing head moving distance.
The device for determining the distance between the printing head and the printing substrate provided by the embodiment of the invention can execute the method for determining the distance between the printing head and the printing substrate provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the above-described embodiment of the distance determining device between the print head and the print substrate, each unit and module included is divided according to the functional logic only, but is not limited to the above-described division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Fig. 5 is a schematic structural diagram of a printing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the printing apparatus includes a controller 510, a memory 520, a printhead 110, a print substrate 120, an electromagnet 130, a magnetic element 140, and a hall sensor 150; the number of controllers 510 in the printing apparatus may be one or more, and one controller 510 is exemplified in fig. 5; the controller 510, memory 520, printhead 110, electromagnet 130, and hall sensor 150 in the printing apparatus may be connected by a bus or other means, for example, in fig. 5.
The memory 520 is a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for determining the distance between the print head and the print substrate in the embodiment of the present invention (for example, the first acquisition module 410, the second acquisition module 420, the determination module 430, and the execution module 440 in the apparatus for determining the distance between the print head and the print substrate). The controller 510 performs various functional applications of the printing apparatus and data processing, i.e., implements the distance determining method between the print head and the print substrate described above, by running software programs, instructions, and modules stored in the memory 520.
Memory 520 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 520 may further include memory located remotely from controller 510, which may be connected to the printing device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Wherein, the electromagnet is used for driving the printing head to move towards the printing substrate; a magnetic element configured to move in synchronization with the printhead; and the Hall sensor is used for determining the position change of the magnetic element.
In one embodiment, the electromagnet is disposed on top of the printhead, the hall sensor is disposed on a side of the printhead that is toward the print substrate travel path, and the magnetic element is disposed on a side of the printhead that is adjacent to the hall sensor.
The current may drive the electromagnet to operate, which may drive the printhead toward the print substrate by magnetic attraction. In the moving process of the printing head, the magnetic element moves along with the moving, the electromagnetic field provided by the magnetic element at the Hall sensor changes, the magnetic field intensity at the Hall sensor changes, and the output voltage value also changes.
Of course, those skilled in the art will appreciate that the controller may implement the technical scheme of the printing apparatus control method provided in any embodiment of the present invention.
The printing equipment provided by the embodiment of the invention can be used for determining the distance between the printing head and the printing substrate, and has corresponding functions and beneficial effects.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for determining a distance between a print head and a print substrate, provided for example in the embodiment, the print head being configured to be driven by an electromagnet toward the print substrate, a hall sensor being provided on a side of a print head moving path toward the print substrate, a magnetic element being provided on a side of the print head close to the hall sensor, the hall sensor being configured to output different voltage values according to a positional change of the magnetic element; the method comprises the following steps:
acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work;
driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor;
updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value;
And determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
In addition, the technical scheme of the invention can acquire, store, use, process and the like the data, which accords with the relevant regulations of national laws and regulations.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (10)
1. A method of determining a distance between a print head and a print substrate, wherein the print head is configured to be driven by an electromagnet to move toward the print substrate, a hall sensor is provided on a side of a path of movement of the print head toward the print substrate, a magnetic element is provided on a side of the print head close to the hall sensor, and the hall sensor is configured to output different voltage values according to a change in a position of the magnetic element; the method comprises the following steps:
acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work;
driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate, and simultaneously obtaining an intermediate voltage value output by the Hall sensor;
updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value;
and determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and a linear relation between a voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process.
2. The method of claim 1, wherein the electromagnet is a dc electromagnet and the predetermined current is an activation current of the electromagnet.
3. The method for determining the distance between the print head and the print substrate according to claim 1, wherein the method for determining the linear relationship between the voltage variation value output from the hall sensor and the print head moving distance during the movement of the print head comprises:
determining a maximum voltage value and a minimum voltage value output by a Hall sensor in the process of moving the printing head by a preset distance;
and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to a ratio of the preset distance to the second difference value.
4. The method for determining the distance between the print head and the print substrate according to claim 1, wherein the method for determining the linear relationship between the voltage variation value output from the hall sensor and the print head moving distance during the movement of the print head comprises:
driving the printing head to move so that both ends of the magnetic element pass through the Hall sensor at least once;
Acquiring a maximum voltage value and a minimum voltage value output by a Hall sensor in the moving process of the printing head;
and after determining a second difference value of the maximum voltage value and the minimum voltage value, determining a linear relation between the voltage value and the moving distance according to the ratio of the length of the magnetic element to the second difference value.
5. The method according to claim 1, wherein updating the preset current to obtain the updated current and acquiring the present intermediate voltage value output by the hall sensor, and determining the present intermediate voltage value as the end voltage value when the first difference between the present intermediate voltage value output by the hall sensor and the last intermediate voltage value is smaller than the preset difference, comprises:
updating the preset current based on a preset increment to obtain the updated current;
driving the electromagnet to work based on the updated current so as to drive the printing head to move towards a printing substrate, and simultaneously acquiring the current intermediate voltage value output by the Hall sensor;
determining the first difference value according to the current intermediate voltage value and the last intermediate voltage value, and comparing the first difference value with the preset difference value;
If the first difference value is smaller than the preset difference value, determining that the current intermediate voltage value is the termination voltage value; otherwise, continuing to update the preset current based on the preset increment to obtain the updated current.
6. The method according to claim 1, wherein determining the distance between the print head and the print substrate based on the termination voltage value, the initial voltage value, and a linear relationship between a voltage change value output from the hall sensor during the movement of the print head and the print head movement distance, comprises:
determining a current voltage change value according to the termination voltage value and the initial voltage value;
and determining the distance between the printing head and the printing substrate according to the current voltage change value, a linear relation between the voltage change value output by the Hall sensor in the pre-determined printing head moving process and the printing head moving distance.
7. A distance determining device between a print head and a print substrate, wherein the print head is configured to be driven by an electromagnet to move toward the print substrate, a hall sensor is arranged on one side of a print head moving path toward the print substrate, a magnetic element is arranged on one side of the print head close to the hall sensor, and the hall sensor is configured to output different voltage values according to the position change of the magnetic element; the device comprises:
The first acquisition module is used for acquiring an initial voltage value output by the Hall sensor when the electromagnet does not work;
the second acquisition module is used for driving the electromagnet to work based on preset current so as to drive the printing head to move towards the printing substrate and simultaneously acquire an intermediate voltage value output by the Hall sensor;
the determining module is used for updating the preset current to obtain an updated current and simultaneously obtaining a current intermediate voltage value output by the Hall sensor, and determining the current intermediate voltage value as a termination voltage value when a first difference value between the current intermediate voltage value output by the Hall sensor and a last intermediate voltage value is smaller than a preset difference value;
and the execution module is used for determining the distance between the printing head and the printing substrate according to the ending voltage value, the initial voltage value and the linear relation between the voltage change value output by the Hall sensor and the printing head moving distance in the pre-determined printing head moving process.
8. A printing apparatus, comprising:
one or more processors; a storage means for storing one or more programs;
an electromagnet for driving the printhead to move toward the print substrate;
A magnetic element configured to move in synchronization with the printhead;
a hall sensor for determining a change in position of the magnetic element;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of determining a distance between a printhead and a print substrate as claimed in any one of claims 1 to 6.
9. The printing apparatus of claim 8, wherein said electromagnet is disposed on top of said printhead, said hall sensor is disposed on a side of said printhead that is toward a print substrate travel path, and said magnetic element is disposed on a side of said printhead that is proximate to said hall sensor.
10. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of determining the distance between a printhead and a print substrate as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210966185.6A CN115157871B (en) | 2022-08-12 | 2022-08-12 | Method for determining distance between printing head and printing substrate, printing apparatus and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210966185.6A CN115157871B (en) | 2022-08-12 | 2022-08-12 | Method for determining distance between printing head and printing substrate, printing apparatus and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115157871A CN115157871A (en) | 2022-10-11 |
CN115157871B true CN115157871B (en) | 2023-11-21 |
Family
ID=83478806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210966185.6A Active CN115157871B (en) | 2022-08-12 | 2022-08-12 | Method for determining distance between printing head and printing substrate, printing apparatus and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115157871B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06255200A (en) * | 1993-03-09 | 1994-09-13 | Seiko Epson Corp | Printer device |
US5360276A (en) * | 1990-08-10 | 1994-11-01 | Siemens Nixdorf Informationssysteme Aktiengesellschaft | Printing device with adjustable printing head gap |
CN200977754Y (en) * | 2006-11-06 | 2007-11-21 | 深圳市思乐数据技术有限公司 | Thermal sensitive printing device |
TW201623929A (en) * | 2014-12-18 | 2016-07-01 | Nat Inst Chung Shan Science & Technology | Micro-force sensing device |
CN110747587A (en) * | 2019-11-28 | 2020-02-04 | 杰克缝纫机股份有限公司 | Needle distance detection method, needle distance detection device, sewing machine and readable storage medium |
CN113601994A (en) * | 2016-12-22 | 2021-11-05 | 录象射流技术公司 | Printer with a movable platen |
CN113709622A (en) * | 2021-09-23 | 2021-11-26 | 歌尔科技有限公司 | Method and device for detecting state of head-mounted electronic equipment, head-mounted electronic equipment and medium |
-
2022
- 2022-08-12 CN CN202210966185.6A patent/CN115157871B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5360276A (en) * | 1990-08-10 | 1994-11-01 | Siemens Nixdorf Informationssysteme Aktiengesellschaft | Printing device with adjustable printing head gap |
JPH06255200A (en) * | 1993-03-09 | 1994-09-13 | Seiko Epson Corp | Printer device |
CN200977754Y (en) * | 2006-11-06 | 2007-11-21 | 深圳市思乐数据技术有限公司 | Thermal sensitive printing device |
TW201623929A (en) * | 2014-12-18 | 2016-07-01 | Nat Inst Chung Shan Science & Technology | Micro-force sensing device |
CN113601994A (en) * | 2016-12-22 | 2021-11-05 | 录象射流技术公司 | Printer with a movable platen |
CN110747587A (en) * | 2019-11-28 | 2020-02-04 | 杰克缝纫机股份有限公司 | Needle distance detection method, needle distance detection device, sewing machine and readable storage medium |
CN113709622A (en) * | 2021-09-23 | 2021-11-26 | 歌尔科技有限公司 | Method and device for detecting state of head-mounted electronic equipment, head-mounted electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN115157871A (en) | 2022-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3582056A1 (en) | Data training method and device for autonomous vehicle | |
CN110342356B (en) | Call calling method, system, control panel and storage medium | |
CN112829740B (en) | Vehicle control method and device for autonomous parking and vehicle | |
CN106650873B (en) | Identification code, and quick navigation method and system of automatic guided vehicle | |
US20210159834A1 (en) | Method for identifying a carriage of a linear transport system | |
CN115157871B (en) | Method for determining distance between printing head and printing substrate, printing apparatus and storage medium | |
CN112723052B (en) | Elevator dispatching method and device | |
CN106891741A (en) | Wireless charging alignment system and method, electric vehicle and wireless charging emission system | |
CN111977571A (en) | Speed control method and device for lifting mechanism | |
US20090287466A1 (en) | Process For Carrying Out A Task For Calculating A Signal To Be Simulated In Real Time | |
CN105764826A (en) | Method for operating lift control system | |
EP3782951A1 (en) | Flexible in-ground lifting system for lifting a vehicle and method there for | |
CN104678317A (en) | Method and device for detecting capacity fading of power lithium battery | |
CN110716551A (en) | Mobile robot driving strategy determination method and device and mobile robot | |
CN110531758A (en) | A kind of AGV control system and method | |
CN111687842B (en) | Robot positioning detection and adjustment method | |
CN103616895A (en) | Method and system for controlling trolley traveling positioning based on discrete coordinate system | |
CN202650366U (en) | A magnetic navigation automatic guided vehicle teaching experimental device | |
CN202256824U (en) | Optical cable with marks | |
CN108132667B (en) | AGV navigation state machine | |
CN105667743A (en) | Control method of underwater glider | |
CN105549698A (en) | GPU (Graphics Processing Unit) workstation applicable to BIM (Building Information Modeling) industry | |
CN111289029A (en) | Sensor measurement system and method of assigning sensors in a sensor measurement system | |
CN102910165B (en) | A kind of motor vehicle driven by mixed power and power output control device thereof | |
CN103646591B (en) | A kind of sensor zero point learning method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Room 305a, angye building, Pioneer Park, torch hi tech Zone, Xiamen, Fujian, 361000 Patentee after: Xiamen Hanyin Co.,Ltd. Country or region after: China Address before: Room 305a, angye building, Pioneer Park, torch hi tech Zone, Xiamen, Fujian, 361000 Patentee before: XIAMEN HANIN ELECTRONIC TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |