CN110202956A - Light emitting unit brightness configuration method, device and printer in a kind of printer - Google Patents
Light emitting unit brightness configuration method, device and printer in a kind of printer Download PDFInfo
- Publication number
- CN110202956A CN110202956A CN201910297430.7A CN201910297430A CN110202956A CN 110202956 A CN110202956 A CN 110202956A CN 201910297430 A CN201910297430 A CN 201910297430A CN 110202956 A CN110202956 A CN 110202956A
- Authority
- CN
- China
- Prior art keywords
- voltage
- light emitting
- value
- emitting unit
- voltage value
- 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.)
- Granted
Links
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
- B41J11/00—Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
- B41J11/008—Controlling printhead for accurately positioning print image on printing material, e.g. with the intention to control the width of margins
Landscapes
- Handling Of Sheets (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses light emitting unit brightness configuration method, device and the printers in a kind of printer, and method includes: S1, issue rotation command to control motor, make to control motor drive print media advance;S2, the voltage value of detection light receiving unit output;S3 adjusts the voltage exported to light emitting unit according to the size relation of voltage value and at least two voltage reference values, is in voltage value between the first reference voltage value and the second reference voltage value;S4 records the moving distance of print media;S5, judges whether moving distance is greater than preset length;If so, configuring voltage adjusted to the voltage of light emitting unit;If it is not, then updating the voltage of light emitting unit according to voltage adjusted, and return to S1.The voltage by adjusting light emitting unit output is allowed the invention to, so that the voltage value of light receiving unit output is suitable for being used to detecting current print media.
Description
Technical field
The present invention relates to printer technology application fields, match more particularly to the light emitting unit brightness in a kind of printer
Set method, apparatus and printer.
Background technique
In print media printing field, print media is by printable part (facial tissue) and unprintable part (base stock) group
At printable part (facial tissue) is known as print face, prints the unprintable part (base stock) between face and print face and is known as stitching mark, in order to protect
The dump that need to print is demonstrate,proved on correct printable position (print face), needs accurate detecting print head on the print medium
Position.But since seam mark is different with the thickness in print face, so its light transmittance is also different.
In the prior art, position detecting uses photoelectric detection mode, installs a light hair respectively on the both sides of print media
Penetrate single nothing and light receiving unit.Light emitting unit is connected to power supply, issues light beam and penetrates print media, light receiving unit receives logical
The light for crossing print media is converted into voltage and is connected to central processing unit, and central processing unit reads the voltage of light receiving unit output,
And calculate current print head corresponding position on the print medium.But since the specification of different industries print media is different,
The light transmittance of paper is also different, needs to design different position detecting hardware circuits.
Summary of the invention
Light emitting unit brightness configuration method, device and the printer in a kind of printer that the embodiment of the present invention proposes,
The voltage that can be exported by adjusting light emitting unit, so that the voltage value of light receiving unit output is current suitable for being used to detect
Print media.
In a first aspect, the embodiment of the present invention provides a kind of printer, including controller, light emitting unit, light receiving unit
And control motor, the light emitting unit and the light receiving unit are set to the two sides in paper feed channel;The controller
Including memory and processor, the memory, the light emitting unit, the light receiving unit and the control motor
It is connected to the processor, computer program is stored in the memory, the computer program can be by the processing
Device is executed to realize following steps:
S1 issues the first rotation command to the control motor, so that the control motor drives print media to Forward
It is dynamic;
S2 detects the voltage value of the light receiving unit output;
S3 is adjusted according to the size relation of the voltage value and at least two voltage reference values to the light emitting unit
The voltage of output, so that the voltage value is between the first reference voltage value and the second reference voltage value;
S4 records the moving distance of the print media;
S5, judges whether the moving distance is greater than preset length;
If so, configuring voltage adjusted to the voltage of the light emitting unit;
If it is not, then updating the voltage of the light emitting unit according to voltage adjusted, and return step S1.
Preferably, described to be adjusted according to the size relation of the voltage value and at least two voltage reference values to the light
The voltage of transmitting unit output, so that the voltage value is between the first reference voltage value and the second reference voltage value, tool
Body are as follows:
When judging that the voltage value is greater than preset first voltage reference value, then the electricity exported to light emitting unit is adjusted
Pressure, so that the voltage value is not more than the first voltage reference value;
When judging that the voltage value is less than preset second voltage reference value, then adjusts and exported to the light emitting unit
Voltage so that the voltage value be not less than the second voltage reference value.
Preferably, the first voltage reference value is the saturation voltage of the light receiving unit;The second voltage reference
Value is the blanking voltage of the light receiving unit.
Preferably, further includes:
Obtain the length of print media;The preset length is equal to the length of the print media.
Second aspect, the embodiment of the invention provides the light emitting unit brightness configuration methods in a kind of printer, comprising:
S1 issues the first rotation command to the control motor, so that the control motor drives print media to advance;
S2 detects the voltage value of the light receiving unit output;
S3 is adjusted according to the size relation of the voltage value and at least two voltage reference values to the light emitting unit
The voltage of output, so that the voltage value is between the first reference voltage value and the second reference voltage value;
S4 records the moving distance of the print media;
S5, judges whether the moving distance is greater than preset length;
If so, configuring voltage adjusted to the voltage of the light emitting unit;
If it is not, then updating the voltage of the light emitting unit according to voltage adjusted, and return step S1.
Preferably, described to be adjusted according to the size relation of the voltage value and at least two voltage reference values to the light
The voltage of transmitting unit output, so that the voltage of the light emitting unit is intended to first voltage and joins with reference to or for second voltage
Value is examined, specifically:
When judging that the voltage value is greater than preset first voltage reference value, then the electricity exported to light emitting unit is adjusted
Pressure, so that the voltage value is not more than the first voltage reference value;
When judging that the voltage value is less than preset second voltage reference value, then adjusts and exported to the light emitting unit
Voltage so that the voltage value be not less than the second voltage reference value.
Preferably, the first voltage reference value is saturation voltage;The second voltage reference value is blanking voltage.
Preferably, further includes:
Obtain the length of print media;The preset length is equal to the length of the print media
The third aspect, the embodiment of the invention provides the light emitting unit brightness configuration devices in a kind of printer, comprising:
Rotation command issue unit, for issuing rotation command to the control motor, so that the control motor drives
Print media advances;
Detection unit, for detecting the voltage value of the light receiving unit output;
Adjustment unit, for being adjusted according to the size relation of the voltage value and at least two voltage reference values to described
The voltage of light emitting unit output, so that the voltage value is between the first reference voltage value and the second reference voltage value;
Recording unit, for recording the moving distance of the print media;
Judging unit, for judging whether the moving distance is greater than preset length;If so, configuration unit is called,
If it is not, then calling updating unit;Wherein,
The configuration unit, for configuring voltage adjusted to the voltage of the light emitting unit;
The updating unit for updating the voltage of the light emitting unit according to voltage adjusted, and returns to rotation
Instruction issue unit.
Preferably, the adjustment unit, is specifically used for:
First voltage reference value judgment module judges that the voltage value is greater than preset first voltage reference value for working as
When, then the voltage exported to light emitting unit is adjusted, so that the voltage value is not more than the first voltage reference value;
Second voltage reference value judgment module judges that the voltage value is less than preset second voltage reference value for working as
When, then the voltage exported to the light emitting unit is adjusted, so that the voltage value is not less than the second voltage reference value.
Preferably, the first voltage reference value is the saturation voltage of the light receiving unit;The second voltage reference
Value is the blanking voltage of the light receiving unit.
Preferably, further includes:
Acquiring unit, for obtaining the length of print media;The preset length is equal to the length of the print media.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage
Medium includes the computer program of storage, wherein controls the computer-readable storage medium in computer program operation
Equipment executes the light emitting unit brightness configuration method in the printer as described in second aspect where matter.
In said one embodiment, the voltage value exported by light receiving unit described in real-time detection, and according to the electricity
The size relation of pressure value and at least two voltage reference values adjusts the voltage exported to the light emitting unit, so that the electricity
Pressure value be between the first reference voltage value and the second reference voltage value, and the moving distance by judge print media and
Preset length, to change the voltage of the light emitting unit.The voltage that can be exported by adjusting light emitting unit, so that institute
State the print media that printer is suitable for all specifications.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in embodiment will be made below
Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the structural schematic diagram for the printer that first embodiment of the invention provides.
Fig. 2 is the flow diagram of the light emitting unit brightness configuration method in printer provided in an embodiment of the present invention.
Relation structure diagram of the Fig. 3 between voltage provided in an embodiment of the present invention and brightness.
Fig. 4 is that the structure of light emitting unit, light receiving unit and print media that first embodiment of the invention provides is shown
It is intended to.
Fig. 5 is the structural representation of the light emitting unit brightness configuration device in the printer that third embodiment of the invention provides
Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
First embodiment of the invention:
Referring to Fig. 1 to Fig. 3, first embodiment of the invention provides the embodiment of the present invention and provides a kind of printer, including control
Device processed, light emitting unit 11, light receiving unit 12 and control motor 14, the light emitting unit 11 and the light-receiving list
Member 12 is set to the two sides in paper feed channel.The controller includes memory 13 and processor 15, the memory 13, described
Light emitting unit 11, the light receiving unit 12 and the control motor 14 are connect with the processor 15.
In the present embodiment, the processor 15 is by adjusting the voltage exported to the light emitting unit 11, to change
The brightness of the light emitting unit 11, and the light receiving unit 12 receives the light of light emitting unit 11, by the optical signal
It is converted into electric signal and feeds back to the processor 15 (power of light is converted to the size of voltage), so that processor 15
According to the voltage change that the light receiving unit 12 detected exports, to adjust the voltage that the light emitting unit 11 exports, from
And change the power of the light of the light emitting unit 11.
When in use due to existing printer, after the print media more renewed, due to different size light transmittance not
Together, the voltage of existing light emitting unit 11 is found, the print media after replacement cannot be applicable in, it is possible that actual beat
It prints position and differs larger away from preset print position, the problem of printing deviation occurs in the print media after leading to replacement.It is debugging
During, inventor's discovery is because new print media is different from the thickness of old print media or specification, so that light connects
There is biggish variation in the intensity that the intensity for receiving the light that unit 12 receives receives light relative to old print media, when light is sent out
Unit 11 and the corresponding voltage value exported at print media region and/or slit width region of light receiving unit 12 are penetrated in amplification region
When in region, so that voltage value variation is sensitive and causes individually just to will appear electricity at print media region or slit width region
The large change of pressure value, and then judge incorrectly, it takes for being exactly print media and slit width when voltage value varies widely
Therefore boundary position can adjust the voltage value of new print media as follows, so that the voltage value levels off to saturation
The critical value of area or cut-off region, be adapted to new specification and with the print media of thickness.
Specifically, the controller includes memory 13 and processor 15, the memory 13, the light emitting unit
11, the light receiving unit 12 and the control motor 14 are connect with the processor 15.Storage in the memory 13
There is computer program, the computer program can be executed by the processor 15 to realize following steps, referring specifically to Fig. 2:
S1, to the control motor 14 issue the first rotation command so that the control motor 14 drive print media to
Preceding movement.
S2, the voltage value that detection light receiving unit 12 exports.
S3 is adjusted according to the size relation of voltage value and at least two voltage reference values to the output of light emitting unit 11
Voltage, so that the voltage value is between the first reference voltage value and the second reference voltage value.
In the present embodiment, the voltage value that the light receiving unit 12 exports according to the light of light emitting unit 11 it is strong and weak not
Together, so that the processor 15 is different to voltage value change sensitivity.Specifically, referring to Fig. 3, reception (is worked as according to photoelectric characteristic
The light arrived is stronger, and the voltage of conversion is smaller), it is assumed that the light receiving unit 12 is divided into saturation region according to intensity variation
(2.7V or more), amplification region (0.6V-2.7V) and cut-off region (0V-0.6V).When the voltage that light receiving unit 12 exports is becoming
The voltage stabilization when critical value of nearly saturation region or cut-off region, can be by amplification region when converting between saturation region or cut-off region, can
Sensitively to sense the boundary of print media and slit width.Therefore, the light is set as by the first voltage reference value to connect
The saturation voltage for receiving unit 12, refers in particular to the critical value (2.7V in Fig. 3) for saturation region voltage and amplification region, so that light-receiving
The voltage that unit 12 exports voltage stabilization when it is directed at print media print face region.It sets the second voltage reference value to
The blanking voltage of the light receiving unit 12 refers in particular to the critical value (such as 0.6V in Fig. 4) of cut-off region voltage and amplification region, with
So that the voltage of the output of light receiving unit 12 voltage stabilization when it is directed at print media slit width region.It specifically, can be by such as
Lower step adjusts the voltage value of the light receiving unit 12:
When judging that the voltage value is greater than preset first voltage reference value, then adjust to the output of light emitting unit 11
Voltage, so that the voltage value is not more than the first voltage reference value.
When judging that the voltage value is less than preset second voltage reference value, then adjust defeated to the light emitting unit 11
Voltage out, so that the voltage value is not less than the second voltage reference value.
S4 records the moving distance of print media.
In the present embodiment, the moving distance of the print media is that the voltage value is made to be not more than the first voltage
The moving distance that is recorded when reference value and the moving distance when making the voltage value not less than the second voltage reference value it
Be to cover the print media of complete length, rather than therefrom when being not more than the first voltage reference value with decision voltage value
Between start.
S5, judges whether moving distance is greater than preset length.
If so, configuring voltage adjusted to the voltage of the light emitting unit 11;
If it is not, then updating the voltage of the light emitting unit 11 according to voltage adjusted, and return step S1.
In the present embodiment, by judge to convert between the first voltage reference value and second voltage reference value one
Its moving distance is greater than preset length in period, to determine the print face position of print media, slit width position and corresponding
Voltage value, with judge print media print face and seam face critical localisation, thus the print position phase to determine print head
To the physical location at the edge of print media.
However, it is desirable to which explanation, successively converts not only between first voltage reference value and second voltage reference value
Less than the actual edge position that print media can be confirmed out in the case where three times.It is understood that printer detects three
It can just confirm that it covers a complete period when secondary marginal position, for example, it is assumed that detecting the first of voltage value
It is second voltage reference value that secondary variation, which corresponds to the variation of first voltage reference value, this is the print face position by print media to slit width
The variation of position, this is first edge.Detect that second of variation of voltage value corresponds to the variation of second voltage reference value and be
First voltage reference value, this be by print media slit width position to print face change in location, this is second edge, i.e., first
A edge detects that voltage value third time variation corresponds to the change of first voltage reference value to being slit width position between second edge
Second voltage reference value is turned to, this is the print face position by print media to the variation of slit width position, this is third edge, i.e.,
Second edge is to the print face position between third edge being complete print media, i.e., when the shifting for judging the print media
Dynamic distance is greater than preset length, then configures voltage adjusted to the voltage of the light emitting unit 11, i.e. confirmation adjustment
It finishes.
To sum up, the voltage value exported by light receiving unit 12 described in real-time detection, and according to the voltage value and at least
The size relation of two voltage reference values come adjust to the light emitting unit 11 export voltage so that the voltage value is in
Between first reference voltage value and the second reference voltage value, and the moving distance by judging print media and preset length
Degree, to change the voltage of the light emitting unit 11.The voltage that can be exported by adjusting light emitting unit 11, so that light-receiving
The voltage value that unit 12 exports is suitable for being used to detecting current print media.
Referring to fig. 4, on the basis of the above embodiments, in the preferred embodiment of the present invention, the light emitting unit
11 can with but be not limited only to light emitting diode, as long as including for example shown in Fig. 4,11 structure of light emitting unit includes light hair
Unit luminous tube 1 (light source) and light emitting unit collimating mirror 2 (eyeglass for making divergent beams become collimated light beam) etc. are penetrated,
The present invention repeats no more herein.
The light receiving unit 12 can with but be not limited only to photodiode, as long as including for example shown in Fig. 4, the light is connect
Receiving 12 structure of unit includes light receiving unit condenser 4 (light-receiving channel makes the convex lens of convergence of rays) and light-receiving list
First converter 5 (converting optical signals to electric signal) etc., it is to be understood that the light receiving unit converter 5, such as
It can be triode, the present invention repeats no more herein.
On the basis of the above embodiments, in the preferred embodiment of the present invention, further includes:
Obtain the length of print media;The preset length is equal to the length of the print media
Second embodiment of the invention:
Referring to fig. 2, second embodiment of the invention provides the light emitting unit brightness configuration method in a kind of printer, packet
It includes:
S1 issues the first rotation command to the control motor, so that the control motor drives print media to advance;
S2 detects the voltage value of the light receiving unit output;
S3 is adjusted according to the size relation of the voltage value and at least two voltage reference values to the light emitting unit
The voltage of output, so that the voltage value is between the first reference voltage value and the second reference voltage value;
S4 records the moving distance of the print media;
S5, judges whether the moving distance is greater than preset length;
If so, configuring voltage adjusted to the voltage of the light emitting unit;
If it is not, then updating the voltage of the light emitting unit according to voltage adjusted, and return step S1.
On the basis of the above embodiments, in the preferred embodiment of the present invention, it is described according to the voltage value with extremely
Lack the size relation of two voltage reference values to adjust the voltage exported to the light emitting unit, so that the voltage value is in
Between first reference voltage value and the second reference voltage value, specifically:
When judging that the voltage value is greater than preset first voltage reference value, then the electricity exported to light emitting unit is adjusted
Pressure, so that the voltage value is not more than the first voltage reference value;
When judging that the voltage value is less than preset second voltage reference value, then adjusts and exported to the light emitting unit
Voltage so that the voltage value be not less than the second voltage reference value.
On the basis of the above embodiments, in the preferred embodiment of the present invention, the first voltage reference value is full
And voltage;The second voltage reference value is blanking voltage.
On the basis of the above embodiments, in the preferred embodiment of the present invention, further includes:
Obtain the length of print media;The preset length is equal to the length of the print media
Third embodiment of the invention:
Referring to Fig. 5, third embodiment of the invention provides the light emitting unit brightness configuration device in a kind of printer, packet
It includes:
Rotation command issue unit 100, for issuing rotation command to the control motor, so that the control motor band
Dynamic print media advances;
Detection unit 200, for detecting the voltage value of the light receiving unit output;
Adjustment unit 300, for adjusted according to the size relation of the voltage value and at least two voltage reference values to
The voltage of light emitting unit output so that the voltage value be in the first reference voltage value and the second reference voltage value it
Between;
Recording unit 400, for recording the moving distance of the print media;
Judging unit 500, for judging whether the moving distance is greater than preset length;If so, calling configuration single
Member 600, if it is not, then calling updating unit 700;Wherein,
The configuration unit 600, for configuring voltage adjusted to the voltage of the light emitting unit;
The updating unit 700 for updating the voltage of the light emitting unit according to voltage adjusted, and returns and turns
Dynamic instruction issue unit.
On the basis of the above embodiments, in the preferred embodiment of the present invention, the adjustment unit 300, specifically:
First voltage reference value judgment module judges that the voltage value is greater than preset first voltage reference value for working as
When, then the voltage exported to light emitting unit is adjusted, so that the voltage value is not more than the first voltage reference value;
Second voltage reference value judgment module judges that the voltage value is less than preset second voltage reference value for working as
When, then the voltage exported to the light emitting unit is adjusted, so that the voltage value is not less than the second voltage reference value.
On the basis of the above embodiments, in the preferred embodiment of the present invention, the first voltage reference value is institute
State the saturation voltage of light receiving unit;The second voltage reference value is the blanking voltage of the light receiving unit.
On the basis of the above embodiments, in the preferred embodiment of the present invention, further includes:
Acquiring unit, for obtaining the length of print media;The preset length is equal to the length of the print media.
Fourth embodiment of the invention:
Fourth embodiment of the invention provides a kind of computer readable storage medium, which is characterized in that the computer can
Read the computer program that storage medium includes storage, wherein control in computer program operation described computer-readable
Equipment where storage medium executes the light emitting unit brightness configuration method in printer described in above-described embodiment.
Illustratively, computer program of the present invention can be divided into one or more modules, it is one or
The multiple modules of person are stored in the memory, and are executed by the processor, to complete the present invention.It is one or more of
Module can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer
Implementation procedure of the program in the realization server apparatus.For example, device described in third embodiment of the invention.
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(APPlication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng, the processor is the control centre of the light emitting unit brightness configuration method in the printer, using various interfaces and
The entire various pieces for realizing the light emitting unit brightness configuration method in a kind of printer of connection.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, realizes printing
The various functions of light emitting unit brightness configuration method in machine.The memory can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays function
Energy, text conversion function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio according to user terminal
Data, text message data etc.) etc..In addition, memory may include high-speed random access memory, it can also include non-volatile
Property memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
Wherein, if the module for realizing service equipment is realized in the form of SFU software functional unit and as independent production
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention realizes
All or part of the process in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described
Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter
Calculation machine readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk,
Mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter
Number and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand
And implement.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims
Subject to.
Claims (9)
1. a kind of printer, including controller, light emitting unit, light receiving unit and control motor, the light emitting unit
And the light receiving unit is set to the two sides in paper feed channel;It is characterized in that, the controller includes memory and place
Device is managed, the memory, the light emitting unit, the light receiving unit and the control motor connect with the processor
It connects, computer program is stored in the memory, the computer program can be executed as follows to realize by the processor
Step:
S1 issues the first rotation command to the control motor, so that the control motor drives print media to move forward;
S2 detects the voltage value of the light receiving unit output;
S3 is adjusted according to the size relation of the voltage value and at least two voltage reference values and is exported to the light emitting unit
Voltage so that the voltage value be between the first reference voltage value and the second reference voltage value;
S4 records the moving distance of the print media;
S5, judges whether the moving distance is greater than preset length;
If so, configuring voltage adjusted to the voltage of the light emitting unit;
If it is not, then updating the voltage of the light emitting unit according to voltage adjusted, and return step S1.
2. printer according to claim 1, which is characterized in that described to be joined according to the voltage value and at least two voltages
The size relation of value is examined to adjust the voltage exported to the light emitting unit, so that the voltage value is in first voltage reference
And between second voltage reference value, specifically:
When judging that the voltage value is greater than preset first voltage reference value, then the voltage exported to light emitting unit is adjusted,
So that the voltage value is not more than the first voltage reference value;
When judging that the voltage value is less than preset second voltage reference value, then the electricity exported to the light emitting unit is adjusted
Pressure, so that the voltage value is not less than the second voltage reference value.
3. printer according to claim 1, which is characterized in that the first voltage reference value is the light receiving unit
Saturation voltage;The second voltage reference value is the blanking voltage of the light receiving unit.
4. printer according to claim 1, which is characterized in that further include:
Obtain the length of print media;The preset length is equal to the length of the print media.
5. the light emitting unit brightness configuration method in a kind of printer characterized by comprising
S1 issues the first rotation command to the control motor, so that the control motor drives print media to advance;
S2 detects the voltage value of the light receiving unit output;
S3 is adjusted according to the size relation of the voltage value and at least two voltage reference values and is exported to the light emitting unit
Voltage so that the voltage value be between the first reference voltage value and the second reference voltage value;
S4 records the moving distance of the print media;
S5, judges whether the moving distance is greater than preset length;
If so, configuring voltage adjusted to the voltage of the light emitting unit;
If it is not, then updating the voltage of the light emitting unit according to voltage adjusted, and return step S1.
6. the light emitting unit brightness configuration method in printer according to claim 5, which is characterized in that described according to institute
The size relation of voltage value and at least two voltage reference values is stated to adjust the voltage exported to the light emitting unit, so that electric
Pressure value is between first voltage reference and second voltage reference value, specifically:
When judging that the voltage value is greater than preset first voltage reference value, then the voltage exported to light emitting unit is adjusted,
So that the voltage value is not more than the first voltage reference value;
When judging that the voltage value is less than preset second voltage reference value, then the electricity exported to the light emitting unit is adjusted
Pressure, so that the voltage value is not less than the second voltage reference value.
7. the light emitting unit brightness configuration method in printer according to claim 5, which is characterized in that described first
Voltage reference value is saturation voltage;The second voltage reference value is blanking voltage.
8. the light emitting unit brightness configuration method in printer according to claim 5, which is characterized in that further include:
Obtain the length of print media;The preset length is equal to the length of the print media.
9. the light emitting unit brightness configuration device in a kind of printer characterized by comprising
Rotation command issue unit, for issuing rotation command to the control motor, so that the control motor drives printing
Medium advances;
Detection unit, for detecting the voltage value of the light receiving unit output;
Adjustment unit is sent out for being adjusted according to the size relation of the voltage value and at least two voltage reference values to the light
The voltage of unit output is penetrated, so that the voltage value is between the first reference voltage value and the second reference voltage value;
Recording unit, for recording the moving distance of the print media;
Judging unit, for judging whether the moving distance is greater than preset length;If so, configuration unit is called, if not
It is then to call updating unit;Wherein,
The configuration unit, for configuring voltage adjusted to the voltage of the light emitting unit;
The updating unit for updating the voltage of the light emitting unit according to voltage adjusted, and returns to rotation command
Issue unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910297430.7A CN110202956B (en) | 2019-04-15 | 2019-04-15 | Light emitting unit brightness configuration method and device in printer and printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910297430.7A CN110202956B (en) | 2019-04-15 | 2019-04-15 | Light emitting unit brightness configuration method and device in printer and printer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110202956A true CN110202956A (en) | 2019-09-06 |
CN110202956B CN110202956B (en) | 2021-11-02 |
Family
ID=67785353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910297430.7A Active CN110202956B (en) | 2019-04-15 | 2019-04-15 | Light emitting unit brightness configuration method and device in printer and printer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110202956B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111516397A (en) * | 2020-04-30 | 2020-08-11 | 厦门汉印电子技术有限公司 | Label paper identification method, device, equipment and readable storage medium |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09325008A (en) * | 1996-06-05 | 1997-12-16 | Nagano Japan Radio Co | Device for detecting position of label in label printer |
JP2000301786A (en) * | 1999-04-26 | 2000-10-31 | Sato Corp | Label printer |
CN1597332A (en) * | 2003-07-15 | 2005-03-23 | 三星电子株式会社 | Print media edge detection method and apparatus |
JP2005288906A (en) * | 2004-03-31 | 2005-10-20 | Sato Corp | Printer and method for regulating print position sensor |
JP2006062210A (en) * | 2004-08-27 | 2006-03-09 | Canon Finetech Inc | Recorder |
CN1938209A (en) * | 2004-01-30 | 2007-03-28 | Zih公司 | Self calibrating media edge sensor |
JP2007106556A (en) * | 2005-10-14 | 2007-04-26 | Seiko Epson Corp | Medium detection device and printer |
CN101293604A (en) * | 2007-04-28 | 2008-10-29 | 致伸科技股份有限公司 | Automatic paper feeder |
JP2011110778A (en) * | 2009-11-26 | 2011-06-09 | Sato Knowledge & Intellectual Property Institute | Device and method for detecting center part of position detection area of printing paper for printer, device and method for detecting printing start position of printing paper, and printer |
CN102205735A (en) * | 2010-03-04 | 2011-10-05 | 兄弟工业株式会社 | Label producing apparatus and label producing method |
CN104071605A (en) * | 2013-03-27 | 2014-10-01 | 精工爱普生株式会社 | Recording apparatus and medium feeding device |
CN204077095U (en) * | 2014-09-28 | 2015-01-07 | 梅特勒-托利多(常州)测量技术有限公司 | The printer of bar code printing scale goes out paper detecting apparatus |
JP2015224120A (en) * | 2014-05-29 | 2015-12-14 | 株式会社沖データ | Image forming apparatus |
CN105531119A (en) * | 2013-08-15 | 2016-04-27 | 柯达阿拉里斯股份有限公司 | System and method for determining receiver type in a thermal printer |
CN106033056A (en) * | 2015-02-04 | 2016-10-19 | 诚研科技股份有限公司 | Identification method and device for detecting specific area of transparent medium |
JP2018001703A (en) * | 2016-07-07 | 2018-01-11 | 東芝テック株式会社 | Label printer and program |
CN107584908A (en) * | 2016-07-07 | 2018-01-16 | 日本冲信息株式会社 | Medium detection device, medium conveying apparatus and image processing system |
-
2019
- 2019-04-15 CN CN201910297430.7A patent/CN110202956B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09325008A (en) * | 1996-06-05 | 1997-12-16 | Nagano Japan Radio Co | Device for detecting position of label in label printer |
JP2000301786A (en) * | 1999-04-26 | 2000-10-31 | Sato Corp | Label printer |
CN1597332A (en) * | 2003-07-15 | 2005-03-23 | 三星电子株式会社 | Print media edge detection method and apparatus |
CN1938209A (en) * | 2004-01-30 | 2007-03-28 | Zih公司 | Self calibrating media edge sensor |
JP2005288906A (en) * | 2004-03-31 | 2005-10-20 | Sato Corp | Printer and method for regulating print position sensor |
JP2006062210A (en) * | 2004-08-27 | 2006-03-09 | Canon Finetech Inc | Recorder |
JP2007106556A (en) * | 2005-10-14 | 2007-04-26 | Seiko Epson Corp | Medium detection device and printer |
CN101293604A (en) * | 2007-04-28 | 2008-10-29 | 致伸科技股份有限公司 | Automatic paper feeder |
JP2011110778A (en) * | 2009-11-26 | 2011-06-09 | Sato Knowledge & Intellectual Property Institute | Device and method for detecting center part of position detection area of printing paper for printer, device and method for detecting printing start position of printing paper, and printer |
CN102205735A (en) * | 2010-03-04 | 2011-10-05 | 兄弟工业株式会社 | Label producing apparatus and label producing method |
CN104071605A (en) * | 2013-03-27 | 2014-10-01 | 精工爱普生株式会社 | Recording apparatus and medium feeding device |
CN105531119A (en) * | 2013-08-15 | 2016-04-27 | 柯达阿拉里斯股份有限公司 | System and method for determining receiver type in a thermal printer |
JP2015224120A (en) * | 2014-05-29 | 2015-12-14 | 株式会社沖データ | Image forming apparatus |
CN204077095U (en) * | 2014-09-28 | 2015-01-07 | 梅特勒-托利多(常州)测量技术有限公司 | The printer of bar code printing scale goes out paper detecting apparatus |
CN106033056A (en) * | 2015-02-04 | 2016-10-19 | 诚研科技股份有限公司 | Identification method and device for detecting specific area of transparent medium |
JP2018001703A (en) * | 2016-07-07 | 2018-01-11 | 東芝テック株式会社 | Label printer and program |
CN107584908A (en) * | 2016-07-07 | 2018-01-16 | 日本冲信息株式会社 | Medium detection device, medium conveying apparatus and image processing system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111516397A (en) * | 2020-04-30 | 2020-08-11 | 厦门汉印电子技术有限公司 | Label paper identification method, device, equipment and readable storage medium |
CN111516397B (en) * | 2020-04-30 | 2022-04-29 | 厦门汉印电子技术有限公司 | Label paper identification method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110202956B (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9155148B2 (en) | Light source drive device, optical scanning device and image forming apparatus | |
EP3151553A1 (en) | A self-calibrating projection apparatus and process | |
CN110784906B (en) | Wireless network distribution method and device, storage medium and processor | |
CN110202956A (en) | Light emitting unit brightness configuration method, device and printer in a kind of printer | |
JP2011216843A (en) | Semiconductor laser driving unit, and image forming apparatus including the same | |
US20180183990A1 (en) | Method and system for synchronizing illumination timing in a multi-sensor imager | |
JPH05191299A (en) | Circuit constitution emitting hf signal of constant field intensity by transmitter with exchangeable antenna | |
US20190164393A1 (en) | Control device, electronic device and control system | |
CN107087389B (en) | A kind of method of SMT changing-over material mistake proofing fool proof | |
US20040145799A1 (en) | Controlling optical receiver transimpedance amplifier and receive diode operational settings | |
KR101933595B1 (en) | Optical module preventing laser beam leakage, and control method | |
CN110202960A (en) | The edge of a kind of printing device, device and print media determines method | |
EP1111745A1 (en) | Laser control loop with automatic adaptation to the monitoring signal polarity | |
CN1862409B (en) | Apparatus and method of controlling emission of laser beam | |
EP2712088A1 (en) | Sensitivity adjustment device | |
US20190373386A1 (en) | Lighting Device With Auxiliary Microphones | |
CN113766709A (en) | Child learning table control method capable of adjusting illumination in self-adaption mode | |
CN212749235U (en) | Multi-channel driving system for laser radar transmitting end and laser radar | |
CN101583892B (en) | Opto-electrical transmitting device | |
CN200990070Y (en) | Optical inductive components and optical module for optical mouse | |
CN104932848B (en) | Printing transmission data acquisition device and method for relay protection equipment of power system | |
CN210466416U (en) | Information acquisition system | |
CN112054848B (en) | Optical module | |
US6870864B2 (en) | Optical margin testing system for automatic power control loops | |
JPH1013359A (en) | Automatic pulse width control apc circuit 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 | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Lin Yang Inventor after: Other inventors ask not to disclose names Inventor before: Not publicizing the inventor |
|
GR01 | Patent grant | ||
GR01 | Patent grant |