Summary of the invention
A kind of printing device is the object of the present invention is to provide to uncap the method for Intelligent Measurement, to solve the problem proposed in above-mentioned background technology.
For achieving the above object, the invention provides following technical scheme:
A kind of printing device is uncapped the method for Intelligent Measurement, comprise magnet and Hall element U5, magnet is embedded in the right side of paper Cang Gai, Hall element U5 is placed immediately below magnet, Hall element U5 is welded on the control panel of printing device, and the VCC power pin of Hall element U5 connects 3.3V power supply, GND ground pin ground connection, OUT pin, by the general I/O interface of resistance R20 connection control master chip, controls master chip and judges that printing device is closing lid or uncaps by the voltage difference of general I/O interface.
As the further scheme of the present invention: Hall element U5 is connected with resistance R20, resistance R20 with and general I/O interface between be connected, universal I/O port also connects stake resistance R22 and direct earth capacitance C17.
As the present invention's further scheme: after printing device powers on start, the main control chip of printing device can constantly read the universal I/O port magnitude of voltage be connected with the OUT pin of resistance R20, Hall element U5, then judge whether the difference of voltage and reference value is greater than the threshold voltage of setting, if the voltage difference detected is greater than the threshold values of setting, then judge that printing device is in closing lid state; If voltage difference is less than the threshold values of setting, then judge that printing device is in uncapped state.Universal I/O port is continuous cycle detection voltage after the power-up, real-time judge printing device uncapped state.
Compared with prior art, the invention has the beneficial effects as follows: structure of the present invention is simple, easy to assembly, with low cost, easy to use, not fragile.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1 ~ 3, in the embodiment of the present invention, printing device is uncapped the method for Intelligent Measurement, and comprise magnet 3 and Hall element U5, magnet 3 is embedded in the right side of paper storehouse lid 1, Hall element U5 is placed immediately below magnet 3, Hall element U5 is welded on the control panel of printing device 2, and in the process that paper storehouse lid 1 opens and closes, the relative distance of magnet and Hall element U5 changes, by the changes of magnetic field of Hall element U5 induced magnet 3, thus realize uncapping Intelligent Measurement.
The VCC power pin of Hall element U5 connects 3.3V power supply, GND ground pin ground connection, OUT pin is by the general I/O interface of resistance R20 connection control master chip, also connect stake resistance R22 and direct earth capacitance C17 between resistance R20 and general I/O interface, control master chip and judge that printing device is closing lid or uncaps by the voltage difference of universal I/O port.
After printing device 2 powers on start, the main control chip of printing device can constantly read the universal I/O port magnitude of voltage be connected with the OUT pin of resistance R20, Hall element U5, then judge whether the difference of voltage and reference value is greater than the threshold voltage of setting, if the voltage difference detected is greater than the threshold values of setting, then judge that printing device is in closing lid state; If voltage difference is less than the threshold values of setting, then judge that printing device is in uncapped state, universal I/O port is continuous cycle detection voltage after the power-up, real-time judge printing device uncapped state, ensures that printing device is working properly.
When closing lid, Hall element senses magnetic field, and the magnitude of voltage of output and the difference of reference value are comparatively large, send closing lid signal; When uncapping, Hall element can't detect the magnetic field of some strength, the magnitude of voltage of output and the difference of reference value less, then printing device is judged as uncapping.
Cassette mechanism structure of the present invention is simple: the uncap printer core structure of closing lid measuring ability of this intelligence is relatively simple, convenient for production.The uncap printer core of closing lid measuring ability of tradition structurally needs to increase button, and will to be uncapped the extraction of closing lid signal by wire, printing device judges the closing lid of uncapping of printing device by detection signal.
Printing device inner space is little: this intelligence uncap detection method need printing device inner space less, only need staying a roundlet slot at the edge of the paper Cang Gai of printing device, in printing device fuselage cover thereunder, staying the roundlet position of a similar size for placing Hall element.
The present invention is not fragile: this intelligent detecting method is by the mode of wireless induction magnetic field intensity, and intelligence carries out closing lid detection of uncapping.The detection signal lead-in wire be embedded in cassette mechanism structure is easy to damage when assembling, and causes using, even can not repair.
The present invention assembles simply: detecting sensor is welded on printing device and controls on mainboard, magnet is embedded in the circular groove position of printing device paper Cang Gai, because the detection in printer core is realized by mechanical means, and the element of the inside is very little, so the assembling more complicated of pick-up unit in printhead.
The present invention is easy to use: the printing device detected with closing lid of uncapping is very simple in use, if user opens paper Cang Gai, can automatically stop printing and revolution, thus protection printer, have prompting simultaneously.
The present invention is cost-saving: utilize the method for Hall element and magnet simple due to structure, reduce the volume of printing device, reduce production cost
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present invention or essential characteristic, the present invention can be realized in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the present invention.Any Reference numeral in claim should be considered as the claim involved by limiting.
In addition, be to be understood that, although this instructions is described according to embodiment, but not each embodiment only comprises an independently technical scheme, this narrating mode of instructions is only for clarity sake, those skilled in the art should by instructions integrally, and the technical scheme in each embodiment also through appropriately combined, can form other embodiments that it will be appreciated by those skilled in the art that.