1. Technical Field
The present disclosure relates to mobile terminals, and particularly to, a mobile terminal capable of weighing an object placed on the mobile terminal and a weighing method.
2. Description of Related Art
People buy a lot of merchandizes in daily life. Sometimes, they will weigh some merchandizes or objects themselves. However, it is inconvenient for people to carry a set of scales.
Therefore, there is room for improvement within the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
Referring to
The resistive touch panel 11 includes a first electronic conduction layer and a second electronic conduction layer. The two electronic conduction layers are separated. A touch point is created when the two electronic conduction layers contact each other due to the pressure.
The obtaining module 12 obtains the touch resistance of the touch point of the two electronic conduction layers. The touch resistance corresponding to the pressure attached to the resistive touch panel 11. A formula: Rtouch=R2*(Z2/Z1−1) is satisfied. Z1 is the x-coordinate value of the touch point of the first electronic conduction layer, and Z2 is a value of the touch point along Y axis of the first electronic conduction layer, R2 is a resistance between the contact point and a negative electrode of the X axis of the second electronic conduction layer. R2 satisfies: R2=Rx-palte*Xposition/4096. Rx-palte is a resistance between the positive electrode of the X axis of the second electronic conduction layer and the negative electrode of the X axis of the second electronic conduction layer. Rx-palte is a known quantity. Xposition on is a value of the touch point along the X axis of the second electronic conduction layer.
The gravity sensing module 13 detects a gravity direction of the object and calculate an angle between the resistive touch panel 11 and the gravity direction.
The calculating module 14 calculates the weight of the object placed on the resistive touch panel 11 according to the angle and the tough resistance. The calculating module 14 includes a storing unit 141 and a calculating unit 142. The storing unit 141 stores difference pressure values corresponding to different resistances. The calculating unit 142 calculating the weight according to a pressure value and the angle, for example, formula: M=F*sin θ/g is satisfied. Wherein the pressure value is F, and the angle is θ, the weight of the object is M, and the acceleration of gravity is g. The value displaying module 15 displays the weight of the object on the resistance touch panel 11.
Referring to
In step S301, the obtaining module 12 obtains a touch resistance on the touch point of the resistive touch panel 11, when an object is put on the touch panel 11.
In step S302, the calculating module 14 calculates the weight of the object according to the touch resistance and an angle between the resistive touch panel 11 and the gravity direction afforded by the touch panel 11. The process is that the calculating unit 142 selects a pressure value corresponding to the touch resistance from the storing unit 141 and calculates the weight of the object according to the pressure value and the angle.
In step S303, the value display module 15 displays the weight of the object on the resistance touch panel 11.
It is to be understood, however, that even though numerous characteristics and advantages of the embodiments have been set forth in the foregoing description, together with details of the structure and function of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and the arrangement of parts within the principles of the present disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Depending on the embodiment, certain of the steps of a method(s) described may be removed, others may be added, and the sequence of steps may be altered. It is also to be understood that the description and the claims drawn for a method may include some indication in reference to certain steps. However, the indication used is only to be viewed for identification purposes and not as a suggestion as to an order for the steps.
Number | Date | Country | Kind |
---|---|---|---|
100105887 | Feb 2011 | TW | national |