Touch panel device
10122360 ยท 2018-11-06
Assignee
Inventors
Cpc classification
H03K2217/960705
ELECTRICITY
G06F3/0418
PHYSICS
G06F3/04166
PHYSICS
International classification
Abstract
When sampling an A/D-converted data of a voltage signal that a touch IC outputs at a fixed period, a microcomputer of a touch panel device monitors a variation in data values within a monitoring time, and changes a timing of sampling the data when a frequency of the variation exceeds an allowed value. Then, the timing is kept constant and the data is sampled when the frequency of the variation is within a range of the allowed value.
Claims
1. A touch panel device comprising: a touch panel operated by AC power supply, the touch panel being configured to receive an input of an operation instruction, from a user, controlling an apparatus; a signal output unit in communication with the touch panel, the signal output unit A/D converting a voltage signal corresponding to a change of capacitance in the touch panel and outputting converted data based on the converted voltage signal; and a control circuit in communication with the signal output unit, the control circuit being configured to: sample the converted data from the signal output unit at a predetermined period of time; determine whether a touch operation received by the touch panel has occurred or not based on the converted data acquired by sampling; output a determination result to the signal output unit; monitor and detect a variation of values of the converted data for the predetermined period of time; upon detecting that a frequency of the variation of the values exceeds an allowed value, change a timing of sampling the data to determine whether the touch operation of the touch panel occurred within the predetermined period of time; and upon detecting that the frequency of the variation of the values does not exceed the allowed value, maintain the timing and continue to sample the data.
2. The touch panel device according to claim 1, wherein, the control circuit sets a sampling period to of a period of the AC power supply; and the timing for sampling the data is changed at less than of the period of the AC power supply.
3. The touch panel device according to claim 2, wherein, the control circuit obtains a difference value between currently sampled data and previously sampled data, and monitors the variation according to a presence or absence of the difference value.
4. The touch panel device according to claim 3, wherein, the apparatus is an air conditioner.
5. The touch panel device according to claim 2, wherein, the apparatus is an air conditioner.
6. The touch panel device according to claim 1, wherein, the control circuit obtains a difference value between currently sampled data and previously sampled data, and monitors the variation according to a presence or absence of the difference value.
7. The touch panel device according to claim 6, wherein, the apparatus is an air conditioner.
8. The touch panel device according to claim 1, wherein, the apparatus is an air conditioner.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) In the accompanying drawings:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(11) An embodiment will be described below with reference to the drawings.
(12)
(13) A building 3 has three Zones (rooms) 1-3, and air of which the temperature is controlled by an air conditioner 2 (A/C, an apparatus) is sent to the Zones 1-3 via ducts 3.
(14) A master unit 4 is disposed on a wall of the Zone 1.
(15) The master unit 4 is connected to the air conditioner 2 via a communication line 5, and transmits a control command directly to the air conditioner 2.
(16) In addition, the master unit 4 is capable of receiving control information transmitted from the air conditioner 2.
(17) Further, slave units 6, 7 are disposed on walls of Zone 2 and Zone 3, respectively, and the slave units 6, 7 are connected to the master unit 4 through the communication lines 8, 9, respectively.
(18) The master unit 4 and the slave units 6, 7 are supplied with a commercial AC power source, and are operated by generating an operating DC power supply from the AC power source.
(19) Each of the master unit 4 and the slave units 6, 7, is provided with a touch panel device 4P, 5P, 7P, and an operation instruction of the air conditioner 2 is entered by a user touch-operating the touch panel device 4P, 6P, 7P by a finger.
(20) When the touch panel devices 6P, 7P of the slave units 6, 7 are touch-operated, the operation instructions are sent to the air conditioner 2 via the master unit 4
(21)
(22) AC input terminals or rectifier circuit 11, which is constituted by a diode bridge, are connected to the commercial AC power source 12, and DC output terminals thereof are connected to a power supply IC 13 and a circuit ground GND of the device.
(23) The power IC 13 steps down a voltage rectified by the rectifier circuit 11 after smoothed by capacitors (not shown), and supplies a low voltage of the DC power supply to a touch IC 14 (a signal output unit).
(24) The touch. IC 14 is connected to the touch panel 15, and has a built-in amplifier and an A/D converter (both not shown) or the like.
(25) When the user touch-operates the touch panel 15, a change in capacitance is generated. The touch IC 14 captures the change in capacitance as a change of a voltage signal (C/V conversion). The touch IC 14 A/D-converts the voltage signal at a predetermined period and outputs the converted data to a microcomputer. 16 (a control circuit).
(26) When the microcomputer 16 samples the A/D-converted data that is inputted, the microcomputer 16 determines whether a touch operation of the touch panel by the user has occurred or not based on a change in sampled data values.
(27) Here, the touch IC 14 is asynchronous to the microcomputer 16, and performs A/D conversion at a fixed period, for example, an order of ms or s. The microcomputer 16 only samples the data that the touch IC 14 sequentially outputs.
(28) As shown in
(29) Since the A/D converter built into the touch IC 14 also performs A/D conversion using the circuit ground GND as a reference potential, the A/D-converted data that the touch IC 14 outputs to the microcomputer 16 changes when influenced by noise applied to the circuit ground GND.
(30) Therefore, in the present embodiment, when the microcomputer 16 reads the data that the touch IC 14 outputs, timing of the sampling is adjusted so as to eliminate the influence of the noise.
(31) That is, since the noise fluctuates at the AC power source frequency, the influence of noise is eliminated by reading the data at a timing synchronized with the AC power supply voltage so that the noise is always at a constant value.
(32) Next, functions of the present embodiment will be described with reference to
(33)
(34) The microcomputer 16 sets a sampling period of the data to 8.3 ms that corresponds to of the commercial AC power supply period (when the frequency is 60 Hz. When the frequency is 50 Hz, the period is set to 10 ms), and starts sampling (step S1).
(35) Here, a reason for setting the sampling period to of the AC power supply period is to perform the sampling at the timing synchronized with a zero point of the level fluctuation due to noise.
(36) In other words, assuming that the voltage fluctuation spans across both positive and negative polarities, the zero point of the change occurs twice, i.e., when the polarity changes from positive to negative and when the polarity so changes from negative to positive within one period.
(37) Therefore, by sampling the data at the timing synchronized with the zero point, it becomes possible for the microcomputer 16 to acquire more stable data values.
(38) After a difference between a currently sampled value and previously sampled value obtained in the subsequent step S2, it is determined whether the value of the difference (difference value) is zero or not (step S3).
(39) If the difference value is zero (YES, i.e., no variation), the process proceeds to step S5, while if the difference value is not zero (NO, i.e., variation present), then a counter is incremented for counting a frequency of occurrence of the variation (S4), and the process proceeds step S5.
(40) In step S5, it is determined whether or not a monitoring time for a timing adjustment (for example, about several seconds, a predetermined period) has elapsed, and if not elapsed (NO), the process returns to step S2.
(41) When the monitoring time has elapsed during repeatedly executing a loop from step S2 to S5 (S5; YES), it is determined whether a value of the counter (counter value) at that time is within the range of the allowed value or not (S6).
(42) If it is not within the range of the allowed value (NO), the timing of sampling the data is shifted, for example, by 1 ms (S7), and the process returns to step S2.
(43) When the counter value becomes within the range of the allowed value (S6: YES) by repeatedly executing the above process, the timing of sampling is fixed at this timing (S8), and an adjusting process is completed.
(44) In a state in which the counter value becomes within the range of the allowed value in step S6 means that the timing of the microcomputer 16 sampling the A/D-converted data matches the timing of a constant fluctuation level that becomes substantially constant every time even if the potential of the circuit ground GND is fluctuated under the influence of noise.
(45) The only timing at which the power supply noise level becomes constant at half cycle intervals is when the fluctuation value becomes zero.
(46) That it, at this time, the influence of the periodic noise on the A/D-converted data is eliminated.
(47)
(48)
(49) Data values during the period of performing the touch operation are stable in a range of 151.
(50)
(51) Further,
(52) The data values in
(53) Then, in
(54) According to the present embodiment as described above, the microcomputer 16 of the touch panel device P monitors differences between data values when sampling the A/D-converted data of the voltage signal that the touch IC 14 outputs at a fixed period, and changes the timing for sampling the data when the frequency of the variation exceeds the allowed value.
(55) Then, when the frequency of the variation is within the range of the allowed value, the timing is kept constant and the data are sampled.
(56) This can eliminate the influence of the noise having periodicity to the A/D-converted data, and A/D-converted values of a period in which the user is performing the touch operation on the touch panel 15 are stabilized.
(57) Therefore, the microcomputer 16 will not erroneously determine the presence or absence of the touch operation on the touch panel 15.
(58) Further, the microcomputer 16 sets the sampling period to be of the AC power supply period, and changes the timings for sampling the data at less than of the sampling period.
(59) When the frequency of occurrence of variability is within the range of the allowed value under this condition, the timing that the microcomputer 16 samples the data is in a state in which the noise that varies in the AC power supply period matches with the zero level that reach every half cycle.
(60) Therefore, the microcomputer 16 will be able to get more accurate A/D-converted data, and can perform determination of the presence or absence of the touch operation with high response.
(61) In addition, the microcomputer 16 obtains a difference value between the currently sampled data and the previously sampled data, and monitors the variation according to the presence or absence of the difference value.
(62) That is, if the potential of the circuit ground GND and the potential of the earth E are matched, the value of the A/D-converted data obtained continuously does not change in each state that the touch operation has occurred or not, thus the difference in data values between the currently sampled data and previously sampled data does not occur.
(63) On the other hand, if the circuit ground GND is under the influence of the periodic noise, the difference occurs in the data values between the currently sampled data and previously sampled data, thus the variation may be monitored according to the presence or absence of the difference value.
(64) The present disclosure is not limited only to the embodiments described above or the embodiments described in the drawings, but the following variations or extensions may be possible.
(65) The time to adjust the sampling timing is not limited to 1 ms, but it may be set according to individual design in a range of less than of the AC power supply period.
(66) Further, the sampling may be performed in one period of the commercial AC power supply period, and in this case, the time to adjust the sampling timing may be set in a range of less than the AC power supply period.
(67) If it is necessary to eliminate the influence of noise with a known periodicity other than the noise derived from the AC power source, the sampling period may be set based on the period, and the sampling timing may be adjusted in a range of less than the sampling period.
(68) The microcomputer having a function of the control circuit may be integrally provided with a touch IC as a signal output unit.
(69) In other words, a voltage signal may be A/D-converted by an A/D converter that the microcomputer has.
(70) Devices for performing an input operation are not necessarily separated into a master unit and a slave unit.
(71) Further, the touch panel device P may be attached to a main body of the air conditioner 2.