1. Related Applications
Relevant subject matter is disclosed in a copending application entitled, “ELECTRONIC DEVICE WITH INFRARED TOUCH PANEL AND METHOD FOR CONFIGURING THE INFRARED TOUCH PANEL”, filed **** (Atty. Docket No. US29383), and assigned to the same assignee as named herein.
2. Technical Field
The present disclosure relates to electronic devices with touch panels and, particularly, to an electronic device with an infrared touch panel, and a touch input method thereof.
3. Description of Related Art
Nowadays, electronic devices equipped with touch panels are very popular. Infrared matrix type touch panels are commonly used. A conventional infrared matrix type touch panel has horizontal and vertical infrared emission and detection arrays that are arranged on four sides of the panel to produce infrared rays in the shape of very close cross stripes on the panel. When an object touches a spot on the panel, the object blocks an infrared ray passing through the touched spot, and the position information of the touched spot is determined by detecting which infrared ray is blocked.
However, in conventional infrared matrix type touch panels, the emission and detection arrays need the same numbers of emitters and detectors, which increase the cost.
Therefore, it is desirable to provide an electronic device with infrared touch panels, which can overcome the above-mentioned limitations.
Many aspects of the present disclosure should 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 present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Embodiments of the present disclosure will now be described in detail below, with reference to the accompanying drawings.
Referring to
Referring also to
Referring also to
The infrared lines La1˜La8 and the infrared lines Lb1˜Lb8 form cross-points (not labeled). Each cross-point corresponds to a touch position of the infrared touch panel 1. The display unit 3 is capable of displaying icons and other graphic user interface (GUI) elements under the control of the processing unit 2. The phrase “GUI element” means an icon or a label, which is displayed on the display unit and is capable of triggering a function in response to user's touch. In the embodiment, each GUI element is corresponding to a touch position, thus when a touch position of the infrared panel 1 is touched by the user, the GUI element corresponding to the touch position will be determined by the processing unit 2 and the function corresponding to the GUI element is executed by the processing unit 2. In the embodiment, the phrase “touch” means contact the infrared touch panel 1 or in proximity to rather than contact.
The microcontroller 13 is further configured to output control signals to turn on or turn off the infrared emitters 11a and 11b in sequence. When the infrared emitter 11a is turned on, the infrared emitter 11a sends infrared signals to the infrared receivers 10a˜10h. When the infrared emitter 11b is turned on, the infrared emitter 11b sends infrared signals to the infrared receiver 10a˜10h. For example, when the control signal output by the microcontroller 13 is “0”, the infrared emitter 11a is turned on and sends the infrared signal to the infrared receivers 10a˜10h. When the control signal output by the microcontroller 13 is “1”, the infrared emitter 11b is turned on and sends the infrared signal to the infrared receivers 10a˜10h. The control signal is changed periodically to turn on or turn off the infrared emitter 11a and 11b alternately.
The microcontroller 13 detects whether an infrared receiver does not receive the infrared signal. If an infrared receiver does not receive the infrared signal, the microcontroller 13 further determines which of the infrared emitters 11a or 11b is currently turned on according to the control signal output by it. The microcontroller 13 then determines that the infrared line between the infrared receiver, which does not receive the infrared signal and the infrared emitter, which is turned on, is blocked.
Referring to
The microcontroller 13 transmits first information including the first blocked infrared line and second information including the second blocked infrared line to the processing unit 2, the processing unit 2 determines the touch position according to the blocked infrared line La5 and Lb4. In the embodiment, the infrared emitter 11a and 11b, and the infrared receivers 10a˜10h each correspond to a coordinate/position of a coordinate system, such as an X-Y coordinate system. The processing unit 2 determines the two infrared receivers 10d and 10e, which do not receive the infrared signal according to the blocked infrared line La5 and Lb4. The processing unit 2 then calculates the coordinate of the cross-point of the infrared line La5 and Lb4 according to the coordinates of the infrared emitter 11a and 11b, and the infrared receiver 10d and 10e, thus determining the touch position corresponding to the cross-point of the infrared line La5 and Lb4. The processing unit 2 further determines the GUI element corresponding to the touch position, and executes the function of the GUI element. For example, if the processing unit 2 determines the icon displayed on the display unit 3 is an email icon, then the microcontroller 13 executes email function.
After the processing unit 2 executes the function, the processing unit 2 deletes the first information and the second information.
In step S11, the microcontroller 13 controls one of the infrared emitters 11 to emit infrared signals. In one embodiment, in a cycle, the microcontroller 13 first controls the infrared emitter 11a to emit infrared signals, and then controls the infrared emitter 11b to emit infrared signals.
In step S12, the microcontroller 13 determines whether an infrared receiver does not receive the infrared signal when the infrared emitter 11 emits an infrared signal.
If the microcontroller 13 determines that all of the infrared receivers 10 have received the infrared signal, the process goes to step S17. Otherwise, in step S13, the microcontroller 13 determines that the infrared line corresponding to the infrared receiver 10, which does not receive the infrared signal, is blocked by an object and transmits the first information including the blocked infrared line to the processing unit 2.
In step S14, the microcontroller 13 controls the other infrared emitters 11 to emit infrared signals, determines another infrared line blocked by the object, and transmits second information including the another blocked infrared line to the processing unit 2.
In step S15, the processing unit 2 determines the touch position according to the two blocked infrared lines, determines the icon displayed on the display unit 3 corresponding to the touch position, and executes the function of the icon.
In step S16, the processing unit 2 deletes the first information and the second information, and the process ends and starts a new cycle.
In step S17, the microcontroller 13 determines whether all of the infrared emitters have already emitted the infrared signal.
If all of the infrared emitters have emitted the infrared signal, the process ends and a new cycle starts. Otherwise, in step S18, the microcontroller 13 controls the next infrared emitter to turn on and emit infrared signals, and the process returns to step S12.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200910308696.3 | Oct 2009 | CN | national |