Summary of the invention
In view of above content, preferred embodiment of the present invention provides a kind of electronic installation, thus its type that can discern touch control object handle accordingly respectively make click or input action more accurate.
In view of above content, preferred embodiment of the present invention provides the method for a kind of electronic installation identification touch control object, thus its type that can discern touch control object handle accordingly respectively make click or input action more accurate.
Described electronic installation is equipped with contact panel and analog to digital converter, and described electronic installation comprises:
The unit is set, is used to be provided with the critical value of the resistance value on the described contact panel Z-direction, described critical value is used to distinguish the touch control object type;
Acquiring unit is used for obtaining the current resistance value on the described contact panel Z-direction when touch control object is pushed the contact panel of described electronic installation; And
The touch control object recognition unit, the critical value size that is used to compare current resistance value on the Z-direction of obtaining and setting is to discern the type of current touch control object.
The method of described electronic installation identification touch control object, this electronic installation is equipped with contact panel and analog to digital converter, and the method comprising the steps of:
The critical value of the resistance value on the described contact panel Z-direction is set, and described critical value is used to distinguish the touch control object type;
Touch control object is pushed the contact panel of described electronic installation;
Obtain the current resistance value on the described contact panel Z-direction; And
The current resistance value on the Z-direction that comparison is obtained and the critical value size of setting are to discern the type of current touch control object.
Compared to prior art, the method for described electronic installation and identification touch control object thereof, thus it can be discerned the touch control object type and adopts corresponding processing mode to obtain the higher coordinate of accuracy.By utilizing the present invention, can improve the accuracy of input.
Embodiment
Consulting shown in Figure 1ly, is the structural representation of electronic installation of the present invention.Described electronic installation 1 comprises a contact panel 14, A/D (Analog to Digital, a modulus) converter 15 and a processor 16.
In this preferred embodiment, described contact panel 14 (as shown in Figure 3) is an electric resistance touch-control panel, and it mainly comprises four-wire type, five-line and eight line formula contact panels.Because the cost of the contact panel of four-wire type is lower and technology is ripe, therefore becomes the most general a kind of specification at present.
For convenience of description, be example with four-wire type electronic type contact panel in the present embodiment, described contact panel 14 is having the transparent insulation point between the two-layer ITO of plating (indium tin oxide) up and down, and allowing up and down when not pushing panel, two-layer ITO possesses certain air layer and allows it handle not conduction state.When finger tip, nib or other object can make up and down two-layer contact and conduct electricity when pressing.Wherein, the upper strata of this contact panel is considered as X-axis, lower floor is considered as Y-axis, respectively install two conducting wires additional at the edge of levels, these two conducting wires are called X-axis conductive layer and Y-axis conductive layer, respectively set a fixed voltage in levels simultaneously, make it become a uniform electric field.The magnitude of voltage that the X-axis conductive layer is measured is responsible for transmission by the Y-axis conductive layer, the magnitude of voltage that the Y-axis conductive layer is measured is responsible for transmission by the X-axis conductive layer, so rapidly alternately and with this above-mentioned magnitude of voltage be sent to A/D converter 15 to convert the coordinate figure of corresponding digital signal to, described coordinate figure will be sent to processor 16 clicking action or importing stroke etc. with the identification user.In addition, described contact panel 14 also comprises a Z axle, and it is mainly used in weighs the resistance value between the two-layer ITO up and down.
Described electronic installation 1 can be the electronic installation that mobile phone, PDA (personal digital assistant, personal digital assistant), handheld device, digital camera or palm PC etc. are equipped with contact panel 14 and A/D converter 15.
Described electronic installation 1 comprises that also unit 10, acquiring unit 11, touch control object recognition unit 12 and accuracy are set optimizes unit 13.
Described the critical value that unit 10 is used to be provided with resistance value on the Z-direction is set, described critical value is mainly used in the touch control object type of distinguishing the described contact panel 14 of touch-control.In this preferred embodiment, described touch control object type mainly is meant nib and finger tip.As shown in Figure 4, the resistance value on the Z-direction when the described contact panel 14 of touch control object touch-control is during greater than described critical value, and then discerning this touch control object is nib; Yet as shown in Figure 5, the resistance value on the Z-direction when the described contact panel 14 of touch control object touch-control is during less than described critical value, and discerning this touch control object is finger tip.
Described acquiring unit 11 is used for obtaining current resistance value and the magnitude of voltage on its Z-direction when the described contact panel 14 of touch control object touch-control.
Described touch control object recognition unit 12 is used to compare the current resistance value on the described Z-direction of obtaining and the critical value of setting, discerns described touch control object type according to its comparison result.Particularly, when the current resistance value on the described Z-direction of obtaining during greater than the critical value that is provided with, then discerning this touch control object is nib; On the contrary, the current resistance value on the described Z-direction of obtaining is less than the critical value that is provided with, and then discerning this touch control object is finger tip.
Described accuracy is optimized unit 13 and also is used for utilizing methods such as filtering unnecessary noise point and lines smoothing that the touch-control coordinate is carried out the accuracy optimization when the described touch control object of identification is finger tip.
Fig. 2 is the workflow diagram of the method for electronic installation identification touch control object of the present invention.
Step S201 is provided with the critical value of a resistance value on the Z-direction, and described critical value is used to distinguish the touch control object type of the described contact panel 14 of touch-control, and in this preferred embodiment, described touch control object type mainly is meant nib and finger tip.Resistance value on the Z-direction when the described contact panel 14 of touch control object touch-control is during greater than described critical value, and then discerning this touch control object is nib; Yet the resistance value on the Z-direction when the described contact panel 14 of touch control object touch-control is during less than described critical value, and discerning this touch control object is finger tip.
After step S202, user utilize the described contact panel 14 of touch control object touch-control, the magnitude of voltage that produces when obtaining the current resistance value on the described Z-direction and obtaining described contact panel 14.
Step S203 judges that current resistance value on the described Z-direction is whether greater than the critical value that is provided with.
Step S204, when the current resistance value on the described Z-direction during greater than the critical value that is provided with, discerning this touch control object is nib.As shown in Figure 4, the current resistance value on the described Z-direction is greater than critical value.
Step S205 when identification after this touch control object is nib, is sent to A/D converter 15 to convert the coordinate figure of X, Y-axis to the magnitude of voltage of this generation.
Step S206, processor 16 is discerned this stroke or is clicked action according to described coordinate figure.
Step S207 judges whether described contact panel 14 receives the some pressure of described nib.When the point that does not receive nib was pressed, then flow process was returned step S205; On the contrary, then flow process finishes.
In step S203, when the resistance value on the described Z-direction during, enter step S208 less than critical value, then discerning this touch control object is finger tip.As shown in Figure 5, the current resistance value on the described Z-direction is less than critical value.
Step S209 when identification after this touch control object is finger tip, is sent to described A/D converter 15 to convert the coordinate figure of X, Y-axis to the magnitude of voltage of this generation.
Step S210 utilizes methods such as filtering noise point and lines smoothing to carry out the accuracy optimization to obtain coordinate figure more accurately.
Step S211, this processor 16 is discerned this stroke or is clicked action according to described coordinate figure.
Step S212 judges whether described contact panel 14 receives the some pressure of described finger tip.When the point that does not receive finger tip was pressed, then flow process was returned step S209; On the contrary, then flow process finishes.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to above better embodiment, those of ordinary skill in the art should be appreciated that and can make amendment or be equal to the spirit and scope that replacement should not break away from technical solution of the present invention technical scheme of the present invention.