CN109849536A - A kind of motor phase method, apparatus, storage medium and printer - Google Patents

A kind of motor phase method, apparatus, storage medium and printer Download PDF

Info

Publication number
CN109849536A
CN109849536A CN201910100882.1A CN201910100882A CN109849536A CN 109849536 A CN109849536 A CN 109849536A CN 201910100882 A CN201910100882 A CN 201910100882A CN 109849536 A CN109849536 A CN 109849536A
Authority
CN
China
Prior art keywords
motor driving
motor
driving chip
resistance
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.)
Granted
Application number
CN201910100882.1A
Other languages
Chinese (zh)
Other versions
CN109849536B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN201910100882.1A priority Critical patent/CN109849536B/en
Publication of CN109849536A publication Critical patent/CN109849536A/en
Application granted granted Critical
Publication of CN109849536B publication Critical patent/CN109849536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of motor phase method, apparatus, storage medium and printer, printer includes controller, motor driving chip, stepper motor and motor driving power supply;Drive motor chip is electrically connected with stepper motor and motor driving power supply respectively;Controller includes memory and processor, and memory and drive motor chip are connect with processor, and computer program is stored in memory, and computer program can be executed by processor following steps: inquiring current paper feed print out task state;When judging currently without paper feed print out task, keep motor driving power supply for the power supply of motor driving chip, and the input phase signal for controlling motor driving chip is constant, and motor driving chip is made to enter PGC demodulation state;Under PGC demodulation state, control motor driving chip exports scheduled DC current to stepper motor, to lock the phase of stepper motor.Paper feed error can be effectively eliminated.

Description

A kind of motor phase method, apparatus, storage medium and printer
Technical field
The present invention relates to smart machine fields, more particularly to a kind of motor phase method, apparatus, storage medium and printing Machine.
Background technique
Thermal printer is very high to the positioning accuracy request of label paper or black millimeter paper in the application, long especially for label Degree or black mark are spaced small consumptive material, in order to guarantee that the accuracy of positioning then needs to guarantee the accurate phase controlling of motor, i.e., in horse Energy locking phase is also required to up to static.
The existing motor phase control technology of printer is realized by control stepper motor driver phase signal, At the end of each stepper motor paper feed, achieve the purpose that stop operating by disconnecting motor drive current.Stepper motor is determined Subcoil circuit be high-impedance state, at this time motor stator magnetic pole only and its micro Vector Magnetic Field, enough magnetic can not be generated Force locking motor rotor makes rotor that there is sufficiently large holding torque to carry out locking phase, applies rotating torque to motor rotor and is easy Make rotor that phase change occur, such as: for machine after having printed a label, printer controller records phase when motor stalling Position guarantees the accuracy of motor phase by controlling corresponding phase signal when being again started up motor;During stalling into Go paper-tear picture movement, motor rotor does not have holding torque during power-off, and rubber roller is dragged to turn over certain angle by paper, but Master control can not know the dragged length of how many step of paper, it is believed that paper is also held on original position, the horse of master control Up to control phase recording and motor actual phase, there are deviations, and next time when starter motor, both which will lead to phase is same Before step, step-out can all occur for stepper motor, and master control paper feed distance record generates error, motor step-out meeting with practical paper feed distance Starting printing effect is led to problems such as to will appear compression, white line, deformation, dislocation, paper feed error leads to next label printing position Setting accordingly to shift, while causing tag location inaccurate.
Summary of the invention
A kind of motor phase method, apparatus, storage medium and the printer that the embodiment of the present invention proposes, can effectively prevent Only since tearing for paper causes motor rotor to be rotated when static, paper feed error is eliminated, starting is efficiently solved and beats The problems such as printing positional shift and inaccurate tag location.
The embodiment of the invention provides a kind of printers, including controller, motor driving chip, the first transmission mechanism, step Power supply is driven into motor, paper-feed rubber roller and motor;Wherein, the stepper motor by the first transmission mechanism with it is described walk Paper rubber roller forms transmission connection, and the drive motor chip drives power supply with the stepper motor and the motor respectively Electrical connection;The controller includes memory and processor, the memory, the drive motor chip with the processing Device connects, and computer program is stored in the memory, and the computer program can be executed by the processor to realize Following steps:
Inquire current paper feed print out task state;
When judging currently without paper feed print out task, keep motor driving power supply for the power supply of motor driving chip, And the input phase signal for controlling motor driving chip is constant, and motor driving chip is made to enter PGC demodulation state;
Under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, with Lock the phase of the stepper motor.
Preferably, the scheduled DC current is less than the motor drive current under paper feed print state.
It preferably, further include adjusting feedback resistance circuit;The control signal and control for adjusting feedback resistance circuit The control output end of device connects, and the output end for adjusting feedback resistance circuit is connect with the motor driving chip;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
The feedback resistance resistance value formed by adjusting the feedback resistance control circuit, to obtain scheduled direct current Stream.
Preferably, the adjusting feedback resistance circuit includes the first metal-oxide-semiconductor Q1, the second metal-oxide-semiconductor Q2, first resistor R1, the Two resistance R2,3rd resistor R3, the 4th resistance R4 and the 5th resistance R5;Wherein:
The pole G of the first metal-oxide-semiconductor Q1 and the control output end of controller connect;
The first end of the first resistor R1 is connected to the pole G of the first metal-oxide-semiconductor Q1;The second of the first resistor R1 End ground connection;The first end of the first resistor R1 is connected to the pole G of the second metal-oxide-semiconductor Q2;
The first end of the second resistance R2 is connected to the pole D of the first metal-oxide-semiconductor Q1, and the second of the second resistance R2 End is connected to the input terminal of the motor driving chip;
The first end of the 3rd resistor R3 is connected to the pole D of the second metal-oxide-semiconductor Q2, and the second of the 3rd resistor R3 End is connected to the input terminal of the motor driving chip;
The first end of the 4th resistance R4 is grounded, and the second end of the 4th resistance R4 is connected to the motor driving chip Input terminal;
The first end of the 5th resistance R5 is grounded, and the second end of the 5th resistance R5 is connected to the motor driving core The input terminal of piece.
It preferably, further include adjusting reference voltage circuit;It is described adjust reference voltage resistance circuit control signal with The control output end of controller connects, and the output end for adjusting reference voltage circuit is connect with the motor driving chip;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
By adjusting the reference voltage value of the reference voltage control circuit, to obtain scheduled DC current.
Preferably, the adjusting reference voltage circuit includes third metal-oxide-semiconductor Q3, the 6th resistance R6, the 7th resistance R7, the 8th Resistance R8 and the 9th resistance R9;Wherein:
The first end of the 6th resistance R6 is connected to the voltage output end of motor driving chip, the 6th resistance R6 Two ends are then connected to the motor driving chip after connecting with the first end of the 7th resistance R7, the first end of the 8th resistance R8 Voltage input end;
The second end of the 9th resistance R9 is grounded;The second end of the 8th resistance R8 is connected to the third metal-oxide-semiconductor The pole D of Q3;
The first end of the 9th resistance R9 is connected to the pole G of the third metal-oxide-semiconductor Q3, and the second of the 9th resistance R9 End ground connection;
The pole G of the third metal-oxide-semiconductor Q3 and the control output end of controller connect.
Preferably, the controller is connect with the motor driving chip by I2C interface;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
It is configured by torque DAC register, feedback oscillator register of the I2C interface to motor driving chip, to change Become register value and change driving current feedback quantity, to obtain scheduled DC current;Wherein, the I2C on the processor makees For main equipment.
Preferably, the controller is connect with the motor driving chip 2 by SPI interface;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
It is configured by torque DAC register, feedback oscillator register of the SPI interface to motor driving chip, to change Become register value and change driving current feedback quantity, to obtain scheduled DC current.
Second aspect, the embodiment of the invention provides a kind of motor phase control methods, comprising:
Inquire current paper feed print out task state;
When judging currently without paper feed print out task, keep motor driving power supply for the power supply of motor driving chip, And the input phase signal for controlling motor driving chip is constant, and motor driving chip is made to enter PGC demodulation state;
Under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, with Lock the phase of the stepper motor.
The third aspect, the embodiment of the invention provides a kind of motor phase control devices, comprising:
Query unit, for inquiring current paper feed print out task state;
Judging unit is motor for when judging currently without paper feed print out task, keeping motor driving power supply Driving chip power supply, and the input phase signal for controlling motor driving chip is constant, and motor driving chip is made to enter PGC demodulation State;
Control unit, under PGC demodulation state, control motor driving chip to be predetermined to stepper motor output DC current, to lock the phase of the stepper motor.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Storage media includes the computer program of storage, wherein controls the computer-readable storage in computer program operation Equipment executes the printing paper inclination correction method as described in above-described embodiment any one where medium.
In said one embodiment, after stepper motor stops every time, power supply is driven to keep by control motor It powers to motor driving chip, controller provides fixed phase control signal for motor driving chip, in phase control signal In the state of constant, controller controls motor driving chip and exports scheduled DC current, comes so that motor rotor PGC demodulation Get off;Once the rotor PGC demodulation of stepper motor, transmission mechanism is also opposing stationary, and paper-feed rubber roller is driven the clamper of mechanism It acts on and can not rotate, can effectively prevent paper and tear causes motor rotor to be rotated when static, eliminates paper feed Error efficiently solves the problems such as starting to walk print position displacement and inaccurate tag location.
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 first pass schematic diagram for the motor phase control method that first embodiment of the invention provides.
Fig. 3 is the circuit structure diagram of motor phase control method provided in an embodiment of the present invention.
Fig. 4 is the second procedure schematic diagram for the motor phase control method that second embodiment of the invention provides.
Fig. 5 is the structural schematic diagram for the motor phase control device that third embodiment of the invention provides.
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.
Fig. 1 and Fig. 2 are please referred to, first embodiment of the invention provides a kind of printer, including the driving of controller 1, motor Chip 2, the first transmission mechanism 4, stepper motor 5, paper-feed rubber roller 6 and motor drive power supply 3;Wherein, the stepping horse Formed and be sequentially connected with the paper-feed rubber roller 6 by the first transmission mechanism 4 up to 5, the drive motor chip 2 respectively with the step It is electrically connected into motor 5 and motor driving power supply 3.
In the present embodiment, for the paper-feed rubber roller 6 for carrying out paper feeding, the paper-feed rubber roller 6 is with metal or other materials Material is core, overcoating rubber manufactured roll product through vulcanization, certainly, it should be noted that the material of the paper-feed rubber roller 6 can It selects according to the actual situation, here, the present invention does not do specific limitation.
In the present embodiment, first transmission mechanism 4 is preferably gear drive, may include one or more Gear, these gears are linked together by certain connection relationship, are realized and are conducted the torsion obtained from the stepper motor 5 To the paper-feed rubber roller 6, so that the paper-feed rubber roller 6 is rotated along predetermined direction.Certainly, it should be noted that at other In embodiment, the transmission mechanism is set according to actual conditions, as long as stepper motor 5 is enabled to drive by the transmission mechanism Paper rubber roller 6 rotates, here, the present invention is not particularly limited.
In the present embodiment, the specific structure of first transmission mechanism 4 and it can refer to the connection type of stepper motor 5 Existing all kinds of Portable thermal printers, especially photo-printer, for example, Canon photo-printer CP1200 or CP1300 etc., this will not be repeated here by the present invention.
In the present embodiment, the drive motor chip 2 is DRV8711, certainly, it should be noted that in other implementations In example, the model of the drive motor chip 2 can also be set according to actual conditions, here, the present invention is not particularly limited.
In the present embodiment, the controller 1 includes memory and processor, the memory, the drive motor Chip 2 is connected to the processor, and computer program is stored in the memory, and the computer program can be described Processor is executed to realize following steps:
Inquire current paper feed print out task state.
When judging currently without paper feed print out task, keep motor driving power supply 3 for the confession of motor driving chip 2 Electricity, and the input phase signal for controlling motor driving chip 2 is constant, and motor driving chip 2 is made to enter PGC demodulation state.
Under PGC demodulation state, motor driving chip 2 is controlled to stepper motor 5 and exports scheduled DC current, with lock Determine the phase of stepper motor 5.
In the present embodiment, after printer starting, controller 1 enters paper feed print out task wait state, if control When device 1 judges currently to have paper feed print out task, ginseng is driven into normal paper feed mode, and according to normal paper feed demand setting motor Number completes paper feed print out task.Paper feed print out task wait state is come back to after paper feed print out task terminates, at this point, If controller 1 determines currently without paper feed print out task, keep motor driving power supply 3 for the power supply of motor driving chip 2, And the input phase signal for controlling motor driving chip 2 is constant, and motor driving chip 2 is made to enter PGC demodulation state.Also, Under PGC demodulation state, the controller 1 controls motor driving chip 2 and exports scheduled DC current to stepper motor 5, described DC current is by motor stator coils, so that the magnetic pole of motor stator generates constant Vector Magnetic Field, with 7 magnetic pole of motor rotor Magnetism on the contrary, so that motor rotor 7 and motor stator magnetic pole mutually firmly adsorb, at this point, motor stator passes through magnetic force Motor rotor 7 is locked, so that motor rotor 7 is provided with holding torque i.e. anti-rotation kinetic moment (N.m), thus fixing motor rotor 7。
As shown in figure 3, in the present embodiment, after 7 PGC demodulation of motor rotor, can obtain in the following way predetermined DC current:
It in one embodiment, further include adjusting feedback resistance circuit 11;The control for adjusting feedback resistance circuit 11 Input terminal processed is connect with the control output end of processor 1, and the output end for adjusting feedback resistance circuit 11 and the motor drive Dynamic chip 2 connects;
It is then described under PGC demodulation state, motor driving chip 2, which is controlled, to the stepper motor 5 exports scheduled direct current Electric current, to lock the phase of the stepper motor 5, specifically:
The feedback resistance resistance value formed by adjusting the feedback resistance control circuit 11, to obtain scheduled direct current Stream.
Specifically, the adjusting feedback resistance circuit 11 include the first metal-oxide-semiconductor Q1, the second metal-oxide-semiconductor Q2, first resistor R1, Second resistance R2,3rd resistor R3, the 4th resistance R4 and the 5th resistance R5;Wherein:
The pole G of the first metal-oxide-semiconductor Q1 is connect with the control output end of controller 1;The first end of the first resistor R1 It is connected to the pole G of the first metal-oxide-semiconductor Q1;The second end of the first resistor R1 is grounded;The first end of the first resistor R1 It is connected to the pole G of the second metal-oxide-semiconductor Q2;The first end of the second resistance R2 is connected to the pole D of the first metal-oxide-semiconductor Q1, The second end of the second resistance R2 is connected to the input terminal of the motor driving chip 2;The first end of the 3rd resistor R3 It is connected to the pole D of the second metal-oxide-semiconductor Q2, the second end of the 3rd resistor R3 is connected to the defeated of the motor driving chip 2 Enter end;The first end of the 4th resistance R4 is grounded, and the second end of the 4th resistance R4 is connected to the motor driving chip 2 Input terminal;The first end of the 5th resistance R5 is grounded, and the second end of the 5th resistance R5 is connected to the motor driving core The input terminal of piece 2.
With reference to Fig. 3, in the present embodiment, first metal-oxide-semiconductor Q1's and the second metal-oxide-semiconductor Q2 be N-channel field-effect Pipe, the first resistor R1 is the grid source resistance of the first metal-oxide-semiconductor Q1 and the second metal-oxide-semiconductor Q2, for preventing the first metal-oxide-semiconductor Q1's There is floating and damages in grid source electrode.3rd resistor R3 and the 5th resistance R5 is that the motor driving chip 2 exports electric current respectively Basic feedback resistance, feedback regulation resistance signal RFB_CTRL is high level under normal print paper feed state, the first metal-oxide-semiconductor Q1 and Second metal-oxide-semiconductor Q2 conducting, second resistance R2 and 3rd resistor R3 parallel connection are as A phase feedback resistance, the electricity of the 4th resistance R4 and the 5th R5 parallel connection is hindered as B phase feedback resistance, at this point, motor drive current is I1;At the end of primary printing, stepper motor 5 stops Rotation, the feedback regulation resistance signal RFB_CTRL that the controller 1 exports is low level, at this point, the first metal-oxide-semiconductor Q1 and second The hourglass source electrode of metal-oxide-semiconductor Q2 is closed, and 3rd resistor R3 and the 5th resistance R5 parallel connection obtain motor driving electricity as AB phase feedback resistance Flow I2.Since motor drive current is negative feedback control, when 3rd resistor R3 and the 5th resistance R5 parallel connection are opposite as AB When feed resistance, resistance value becomes larger, so that driving current becomes smaller (I=Vref/R, when R increases, I reduces), so that it is pre- for obtaining Fixed DC current.
It in another embodiment, further include adjusting reference voltage circuit 12;The adjusting reference voltage resistance circuit 12 control signal is connect with the control output end of controller 1, it is described adjust reference voltage circuit 12 output end with it is described Motor driving chip 2 connects;
It is then described under PGC demodulation state, motor driving chip 2, which is controlled, to the stepper motor 5 exports scheduled direct current Electric current, to lock the phase of the stepper motor 5, specifically:
By adjusting the reference voltage value of the reference voltage control circuit 12, to obtain scheduled DC current.Tool Body is to control third metal-oxide-semiconductor Q3 by reference voltage adjustment signal VREF_CTRL to change the partial-pressure structure of reference voltage, is passed through Pulse-width signal (pwm signal) turns reference voltage of the constant voltage as motor driving chip, is produced by analog-to-digital conversion (DAC) Reference voltage of the raw voltage value as motor driving chip.
Specifically, the adjusting reference voltage circuit 12 includes third metal-oxide-semiconductor Q3, the 6th resistance R6, the 7th resistance R7, the Eight resistance R8 and the 9th resistance R9;Wherein:
The first end of the 6th resistance R6 is connected to the voltage output end of motor driving chip 2, the 6th resistance R6 Second end is then connected to the motor driving core after connecting with the first end of the 7th resistance R7, the first end of the 8th resistance R8 The voltage input end of piece 2;The second end of the 9th resistance R9 is grounded;The second end of the 8th resistance R8 is connected to described The pole D of three metal-oxide-semiconductor Q3;The first end of the 9th resistance R9 is connected to the pole G of the third metal-oxide-semiconductor Q3, the 9th resistance The second end of R9 is grounded;The pole G of the third metal-oxide-semiconductor Q3 is connect with the control output end of controller 1.
With reference to Fig. 3, in the present embodiment, in 2 reference voltage control circuit of motor driving chip, the 6th resistance R6 and Seven resistance R7 are the high and low side divider resistances of reference voltage, and the 8th resistance R8 is the second divider resistance of low survey, and the 9th resistance R9 is The grid source resistance of third metal-oxide-semiconductor;When reference voltage adjustment signal is high level, third metal-oxide-semiconductor Q3 conducting, third metal-oxide-semiconductor Q3 The 7th resistance R7, the 8th resistance R8 are in parallel after conducting, so that reference voltage reduces, motor drive current is with reference voltage It reduces and equal proportion reduction, to obtain scheduled DC current.
In another embodiment, referring to Fig. 3,14 be I2C control circuit, and the controller 1 drives with the motor Chip 2 is connected by I2C interface.
It is then described under PGC demodulation state, motor driving chip 2, which is controlled, to the stepper motor 5 exports scheduled direct current Electric current, to lock the phase of the stepper motor 5, specifically:
It is configured by torque DAC register, feedback oscillator register of the I2C interface to motor driving chip 2, to change Become register value and change driving current feedback quantity, to obtain scheduled DC current;Wherein, the I2C conduct on the controller 1 Main equipment.
In another embodiment, referring to Fig. 3,14 be SPI control circuit, and the controller and the motor drive core Piece 2 is connected by SPI interface,
Then described under PGC demodulation state, control motor driving chip 2 exports scheduled direct current to the stepper motor Electric current, to lock the phase of the stepper motor, specifically:
It is configured by torque DAC register, feedback oscillator register of the SPI interface to motor driving chip 2, to change Become register value and change driving current feedback quantity, to obtain scheduled DC current.
The present embodiment drives the motor driving chip 2 that power supply 3 is stepper motor 5 to power by motor, in stepping horse Up to 5 every time stop after, controller 1 be motor driving chip 2 fixed phase control signal is provided, phase control signal not In the state of change, the control motor driving chip 2 of controller 1 exports scheduled DC current, and (current value is adjustable drive Streaming current), come so that motor rotor PGC demodulation gets off;Once the rotor PGC demodulation of stepper motor 5, transmission mechanism are also opposite Static, paper-feed rubber roller 6 is driven the clamping action of mechanism and can not rotate, and can effectively prevent paper and tear leads to motor Rotor is rotated when static, eliminates paper feed error.It efficiently solves starting print position displacement and tag location is inaccurate The problems such as.Once motor rotor PGC demodulation, transmission mechanism is also opposing stationary, and the clamper that paper-feed rubber roller 6 is driven mechanism is made With and can not rotate, under the pressure of thermal printing head and paper-feed rubber roller 6, paper needs to overcome sizable resistance that could be pulled Dynamic, paper is become sliding friction from rolling friction by the resistance of paper-feed rubber roller, substantially increases paper tear-resistant kinetic force.
On the basis of first embodiment, in a preferred embodiment of the present invention, the scheduled DC current is less than Motor drive current under paper feed print state.Guarantee to apply to stepper motor straight when stepper motor 5 carries out locking phase control Galvanic electricity flow valuve avoids 5 excess temperature of stepper motor, while also ensuring that 5 rotor of stepper motor has sufficiently large anti-rotation kinetic moment.
Wherein, in the present embodiment, the printer further includes that can be realized the essential component of printing institute, for example, answering Including at least print head, paper delivery mechanism etc..Certainly it can also include more components, structure or circuit, specifically refer to existing Some printers, this will not be repeated here by the present invention.
Second embodiment of the invention:
Referring to fig. 4, second embodiment of the invention additionally provides a kind of motor phase control method, comprising:
S100 inquires current paper feed print out task state;
S200, when judging currently without paper feed print out task, keeping motor driving power supply is motor driving chip Power supply, and the input phase signal for controlling motor driving chip is constant, and motor driving chip is made to enter PGC demodulation state;
S300, under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor.
The present embodiment drives power supply for the power supply of stepper motor driving chip by motor, stops it every time in motor Afterwards, controller provides fixed phase control signal for motor driving chip, in the state that phase control signal is constant, control Device controls stepper motor driving chip and exports scheduled current value (current value is adjustable driving current), comes so that horse Get off up to rotor phase lock;Once the rotor PGC demodulation of stepper motor, transmission mechanism is also opposing stationary, paper-feed rubber roller by The clamping action of transmission mechanism and can not rotate, can effectively prevent paper and tear leads to motor rotor quilt when static Paper feed error is eliminated in rotation.The problems such as efficiently solving starting print position displacement and inaccurate tag location.Motor rotor is once PGC demodulation, transmission mechanism is also opposing stationary, and paper-feed rubber roller is driven the clamping action of mechanism and can not rotate, and beats in temperature-sensitive Under the pressure for printing head and paper-feed rubber roller, paper needs to overcome comparable resistance that could be torn, resistance of the paper by paper-feed rubber roller Power becomes sliding friction from rolling friction, substantially increases paper tear-resistant kinetic force.
Preferably, the scheduled DC current is less than the motor drive current under paper feed print state.
It preferably, further include adjusting feedback resistance circuit;The control signal and control for adjusting feedback resistance circuit The control output end of device connects, and the output end for adjusting feedback resistance circuit is connect with the motor driving chip;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
The feedback resistance resistance value formed by adjusting the feedback resistance control circuit, to obtain scheduled direct current Stream.
It preferably, further include adjusting reference voltage circuit;It is described adjust reference voltage resistance circuit control signal with The control output end of controller connects, and the output end for adjusting reference voltage circuit is connect with the motor driving chip;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
By adjusting the reference voltage value of the reference voltage control circuit, to obtain scheduled DC current.
Preferably, the controller is connect with the motor driving chip by I2C interface;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
It is configured by torque DAC register, feedback oscillator register of the I2C interface to motor driving chip, to change Become register value and change driving current feedback quantity, to obtain scheduled DC current;Wherein, the I2C on the processor makees For main equipment.
Preferably, the controller is connect with the motor driving chip 2 by SPI interface;
Then described under PGC demodulation state, control motor driving chip exports scheduled direct current to the stepper motor Stream, to lock the phase of the stepper motor, specifically:
It is configured by torque DAC register, feedback oscillator register of the SPI interface to motor driving chip, to change Become register value and change driving current feedback quantity, to obtain scheduled DC current.
Third embodiment of the invention:
Referring to Fig. 5, third embodiment of the invention provides a kind of motor phase control device, comprising:
Query unit 10, for inquiring current paper feed print out task state;
Judging unit 20 is horse for when judging currently without paper feed print out task, keeping motor driving power supply It powers up to driving chip, and the input phase signal for controlling motor driving chip is constant, motor driving chip is made to enter phase lock Determine state;
Control unit 30, under PGC demodulation state, control motor driving chip to be pre- to stepper motor output Fixed DC current, to lock the phase of the stepper motor.
The embodiment of the invention also provides a kind of computer readable storage mediums, which is characterized in that described computer-readable Storage medium includes the computer program of storage, wherein controls described computer-readable deposit in computer program operation Equipment executes the printing paper inclination correction method as described in above-described embodiment any one where storage media.
Wherein, illustratively, the computer program can be divided into one or more units, one or more A unit is stored in the memory, and is executed by the processor, to complete the present invention.One or more of units It can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer program Implementation procedure in printer.
The printer may include, but are not limited to processor, memory.It will be understood by those skilled in the art that described show It is merely intended to the example of printer, does not constitute the restriction to printer, may include components more more or fewer than diagram, Perhaps certain components or different components are combined, such as the printer can also include input-output equipment, network insertion Equipment, bus etc..
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 control centre of the printer utilizes the various pieces of various interfaces and the entire 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, described in realization The various functions of printer.The memory can mainly include storing program area and storage data area, wherein storing program area can Application program needed for storage program area, at least one function (such as sound-playing function, image player function etc.) etc.;It deposits Storage data field, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.In addition, memory It may include high-speed random access memory, can also include nonvolatile 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 parts.
Wherein, if the unit that the printer integrates is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in a computer readable storage medium.Based on this understanding, in present invention realization The all or part of the process in embodiment method is stated, relevant hardware can also be instructed to complete by computer program, institute The computer program stated can be stored in a computer readable storage medium, which, can when being executed by processor The step of realizing above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, the computer Program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer can Reading medium may include: any entity or device, recording medium, USB flash disk, mobile hard that can carry the computer program code Disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (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 above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (11)

1. a kind of printer, including controller, motor driving chip, the first transmission mechanism, stepper motor, paper-feed rubber roller and horse Up to driving power supply;Wherein, the stepper motor is formed by the first transmission mechanism and the paper-feed rubber roller and is sequentially connected, institute Drive motor chip is stated to be electrically connected with the stepper motor and motor driving power supply respectively;It is characterized in that, institute Stating controller includes memory and processor, and the memory, the drive motor chip are connected to the processor, institute It states and is stored with computer program in memory, the computer program can be executed by the processor to realize following steps:
Inquire current paper feed print out task state;
When judging currently without paper feed print out task, keep motor driving power supply for the power supply of motor driving chip, and control The input phase signal of motor driving chip processed is constant, and motor driving chip is made to enter PGC demodulation state;
Under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, with locking The phase of the stepper motor.
2. printer according to claim 1, the scheduled DC current is less than the motor under paper feed print state Driving current peak value.
3. printer according to claim 1, which is characterized in that further include adjusting feedback resistance circuit;It is described to adjust instead Feed resistance circuit control signal and controller control output end connect, it is described adjust feedback resistance circuit output end with The motor driving chip connection;
Then described under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, To lock the phase of the stepper motor, specifically:
The feedback resistance resistance value formed by adjusting the feedback resistance control circuit, to obtain scheduled DC current.
4. printer according to claim 3, which is characterized in that the adjusting feedback resistance circuit include the first metal-oxide-semiconductor Q1, Second metal-oxide-semiconductor Q2, first resistor R1, second resistance R2,3rd resistor R3, the 4th resistance R4 and the 5th resistance R5;Wherein:
The pole G of the first metal-oxide-semiconductor Q1 and the control output end of controller connect;
The first end of the first resistor R1 is connected to the pole G of the first metal-oxide-semiconductor Q1;The second termination of the first resistor R1 Ground;The first end of the first resistor R1 is connected to the pole G of the second metal-oxide-semiconductor Q2;
The first end of the second resistance R2 is connected to the pole D of the first metal-oxide-semiconductor Q1, and the second end of the second resistance R2 connects It is connected to the input terminal of the motor driving chip;
The first end of the 3rd resistor R3 is connected to the pole D of the second metal-oxide-semiconductor Q2, and the second end of the 3rd resistor R3 connects It is connected to the input terminal of the motor driving chip;
The first end of the 4th resistance R4 is grounded, and the second end of the 4th resistance R4 is connected to the defeated of the motor driving chip Enter end;
The first end of the 5th resistance R5 is grounded, and the second end of the 5th resistance R5 is connected to the motor driving chip Input terminal.
5. printer according to claim 1, which is characterized in that further include adjusting reference voltage circuit;The adjusting base The control signal of quasi- voltage resistance circuit and the control output end of controller connect, the output for adjusting reference voltage circuit End is connect with the motor driving chip;
Then described under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, To lock the phase of the stepper motor, specifically:
By adjusting the reference voltage value of the reference voltage control circuit, to obtain scheduled DC current.
6. printer according to claim 5, which is characterized in that the adjusting reference voltage circuit include third metal-oxide-semiconductor Q3, 6th resistance R6, the 7th resistance R7, the 8th resistance R8 and the 9th resistance R9;Wherein:
The first end of the 6th resistance R6 is connected to the voltage output end of motor driving chip, the 6th resistance R6 second end The electricity of the motor driving chip is then connected to after connecting with the first end of the 7th resistance R7, the first end of the 8th resistance R8 Press input terminal;
The second end of the 9th resistance R9 is grounded;The second end of the 8th resistance R8 is connected to the D of the third metal-oxide-semiconductor Q3 Pole;
The first end of the 9th resistance R9 is connected to the pole G of the third metal-oxide-semiconductor Q3, the second termination of the 9th resistance R9 Ground;
The pole G of the third metal-oxide-semiconductor Q3 and the control output end of controller connect.
7. printer according to claim 1, which is characterized in that the controller passes through with the motor driving chip I2C interface connection;
Then described under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, To lock the phase of the stepper motor, specifically:
It is configured by torque DAC register and feedback oscillator register of the I2C interface to motor driving chip, to pass through Change the register value of torque DAC register and feedback oscillator register to change driving current feedback quantity, to obtain pre- Fixed DC current;Wherein, the I2C on the processor is as main equipment.
8. printer according to claim 1, which is characterized in that the controller passes through with the motor driving chip SPI interface connection;
Then described under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, To lock the phase of the stepper motor, specifically:
It is configured by torque DAC register, feedback oscillator register of the SPI interface to motor driving chip, by changing Become the register value of torque DAC register and feedback oscillator register to change driving current feedback quantity, to be made a reservation for DC current.
9. a kind of motor phase control method characterized by comprising
Inquire current paper feed print out task state;
When judging currently without paper feed print out task, keep motor driving power supply for the power supply of motor driving chip, and control The input phase signal of motor driving chip processed is constant, and motor driving chip is made to enter PGC demodulation state;
Under PGC demodulation state, control motor driving chip exports scheduled DC current to the stepper motor, with locking The phase of the stepper motor.
10. a kind of motor phase control device characterized by comprising
Query unit, for inquiring current paper feed print out task state;
Judging unit, for when judging currently without paper feed print out task, keeping motor driving power supply for motor driving Chip power supply, and the input phase signal for controlling motor driving chip is constant, and motor driving chip is made to enter PGC demodulation state;
Control unit, under PGC demodulation state, control motor driving chip to be scheduled straight to stepper motor output Galvanic electricity stream, to lock the phase of the stepper motor.
11. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed Benefit requires motor phase control method described in 9.
CN201910100882.1A 2019-01-31 2019-01-31 Motor phase method, device, storage medium and printer Active CN109849536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100882.1A CN109849536B (en) 2019-01-31 2019-01-31 Motor phase method, device, storage medium and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100882.1A CN109849536B (en) 2019-01-31 2019-01-31 Motor phase method, device, storage medium and printer

Publications (2)

Publication Number Publication Date
CN109849536A true CN109849536A (en) 2019-06-07
CN109849536B CN109849536B (en) 2022-01-28

Family

ID=66897327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100882.1A Active CN109849536B (en) 2019-01-31 2019-01-31 Motor phase method, device, storage medium and printer

Country Status (1)

Country Link
CN (1) CN109849536B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113386475A (en) * 2021-04-30 2021-09-14 深圳市博思得科技发展有限公司 Paper feeding precision calibration method and calibration system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6378970B1 (en) * 1997-12-12 2002-04-30 Silverbrook Research Pty Ltd Power drive system for a print on demand digital camera system
CN2593276Y (en) * 2002-01-10 2003-12-17 何闻乐 Portable intelligent bar code integrating machine
CN1891884A (en) * 2005-06-22 2007-01-10 艾塞林-蒂博公司 Needling device for consolidating a fibre fleece
CN101301797A (en) * 2007-05-08 2008-11-12 上海鼎龙机械有限公司 Print groover with die-cutting portion equipped with rubber cushion roller speed-chasing mechanism
CN101659150A (en) * 2008-08-25 2010-03-03 佳能株式会社 Printing apparatus and method for detecting origin of conveying roller
CN201673240U (en) * 2010-05-17 2010-12-15 上海松宝科技发展有限公司 Electric machine combination property automatic test system
JP2014113042A (en) * 2014-01-06 2014-06-19 Ricoh Co Ltd Motor control device, motor control system, and image forming apparatus
CN103885305A (en) * 2012-12-21 2014-06-25 日本冲信息株式会社 Driving apparatus, image forming apparatus, driving method and image forming method
CN106585115A (en) * 2016-12-27 2017-04-26 艾体威尔电子技术(北京)有限公司 Method of using one hardware to realize thermosensitive printer driving
JP2018022968A (en) * 2016-08-02 2018-02-08 セイコーエプソン株式会社 Printer and control method for the same
CN108382077A (en) * 2018-03-29 2018-08-10 厦门汉印电子技术有限公司 The detent mechanism and its Portable printer of rubber roller evolution

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6378970B1 (en) * 1997-12-12 2002-04-30 Silverbrook Research Pty Ltd Power drive system for a print on demand digital camera system
CN2593276Y (en) * 2002-01-10 2003-12-17 何闻乐 Portable intelligent bar code integrating machine
CN1891884A (en) * 2005-06-22 2007-01-10 艾塞林-蒂博公司 Needling device for consolidating a fibre fleece
CN101301797A (en) * 2007-05-08 2008-11-12 上海鼎龙机械有限公司 Print groover with die-cutting portion equipped with rubber cushion roller speed-chasing mechanism
CN101659150A (en) * 2008-08-25 2010-03-03 佳能株式会社 Printing apparatus and method for detecting origin of conveying roller
CN201673240U (en) * 2010-05-17 2010-12-15 上海松宝科技发展有限公司 Electric machine combination property automatic test system
CN103885305A (en) * 2012-12-21 2014-06-25 日本冲信息株式会社 Driving apparatus, image forming apparatus, driving method and image forming method
JP2014113042A (en) * 2014-01-06 2014-06-19 Ricoh Co Ltd Motor control device, motor control system, and image forming apparatus
JP2018022968A (en) * 2016-08-02 2018-02-08 セイコーエプソン株式会社 Printer and control method for the same
CN106585115A (en) * 2016-12-27 2017-04-26 艾体威尔电子技术(北京)有限公司 Method of using one hardware to realize thermosensitive printer driving
CN108382077A (en) * 2018-03-29 2018-08-10 厦门汉印电子技术有限公司 The detent mechanism and its Portable printer of rubber roller evolution

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘国忠: "《现代电子技术及应用》", 28 February 2010 *
周小群: "激光打印机用无刷直流电动机的锁相控制", 《安徽电子信息职业技术学院学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113386475A (en) * 2021-04-30 2021-09-14 深圳市博思得科技发展有限公司 Paper feeding precision calibration method and calibration system

Also Published As

Publication number Publication date
CN109849536B (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US4906910A (en) Drive circuit for a stepping motor control device
CN101931355A (en) Motor drive device and electric equipment using this
JP2004187497A (en) Stepper motor not generating noise nor movement while re-zeroing
US20050088466A1 (en) Power supply adjustment
DE102011056901A1 (en) Control device of brushless motor and brushless motor
CN109849536A (en) A kind of motor phase method, apparatus, storage medium and printer
US20190356252A1 (en) Motor control apparatus for detecting stop position of rotor of motor and image forming apparatus
US9181057B2 (en) Stepping motor control device and conveying device provided with the same
CN109849534A (en) A kind of photo-printer, Method of printing, device and storage medium
CN110303775B (en) Method for adjusting printing speed of thermal printer, computer device and computer readable storage medium
EP0251776A2 (en) Method of controlling a line-feed stepping motor in a printer and a driver circuit therefor
JPH0746895A (en) Stepping motor drive circuit
JP5379833B2 (en) Thermal printer and program
CN215934754U (en) Closed-loop control device of 3D printing stepping motor
EP0273767A1 (en) Control device for a stepping motor
JP2012179806A (en) Thermal printer and program
JP3278271B2 (en) Printing device
JP2001002281A (en) Paper feeding device
KR102221826B1 (en) Control apparatus and method for DC motor
CN114312055A (en) Automatic paper width type detection method and system
JP3728857B2 (en) Load drive device
JP3675236B2 (en) Paper feeder
JP3037851B2 (en) Drive control method of pulse motor
JPS6011378A (en) Platen feed apparatus
JP2003339192A (en) Stepping motor driver and printer

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