Patent ID: 8547351

Claim:
A touch sensor device, comprising: a touch sensor; average value calculating means for calculating an average value of output voltages sent out from an output section of the touch sensor; threshold value calculating means for calculating a threshold value based on the average value; comparing/determining means for comparing the output voltage with the threshold value and, when determining that the output voltage exceeds the threshold value, outputting a determination signal; wherein the average value calculating means comprises sampling means for sampling the output voltages periodically, and recording the sampled output voltages as output voltage data in a recording section, and calculating means for calculating a moving average value of the output voltages recorded in the recording section, and sending out the calculated moving average value to the threshold value calculating means, and voltage drop detecting means connected to the output section, wherein the voltage drop detecting means includes, detecting means for outputting a signal indicating a drop in the voltage when detecting that the output voltage has dropped, and recorded data erasing means for erasing the output voltage data in the recording section in accordance with the signal indicating the drop in the voltage.