摘要 |
<p>Method for the detection of a body (5) with respect of a surface (1), said surface (1) comprising a capacitive sensor (2) whose capacitance (C) is variable, said method comprising the following steps: measuring the sensor (2) voltage; comparing the sensor (2) voltage with a reference voltage; generating a first signal (S1) representing the sensor (2) voltage, said signal (S1) taking two states: a high state, wherein the sensor (2) voltage is equal to or greater than the reference voltage, a low state, wherein the sensor (2) voltage is smaller than the reference voltage; if the first signal (S1) is in the high state: incrementing a variable with respect to a clock (17) as long as the first signal (S1) is in the high state; comparing the variable with a threshold value; when the variable reaches the threshold value, emitting an output signal (S2); if the first signal (S1) is in the low state, initializing said variable.</p> |