Baseline calculation for sensor system
A method may include receiving an input signal, generating a baseline signal based on the input signal, generating a corrected input signal by subtracting the baseline signal from the input signal, determining a threshold level change of the input signal when the corrected input signal exceeds a level change threshold, and responsive to the threshold level change, updating the baseline signal to the level change threshold.
1 . A method comprising:
receiving an input signal;
generating a baseline signal based on the input signal;
generating a corrected input signal by subtracting the baseline signal from the input signal;
determining a threshold level change of the input signal when the corrected input signal exceeds a level change threshold; and
responsive to the threshold level change:
updating the baseline signal to the level change threshold;
generating an output flag indicative of the threshold level change; and
outputting the generated output flag.
2 . The method of claim 1 , wherein determining the threshold level change comprises determining a number of a plurality of level change thresholds exceeded by the corrected input signal.
3 . The method of claim 2 , further comprising:
determining a threshold level increase if the corrected input level exceeds a threshold for incrementing a threshold level of the input signal; and
determining a threshold level decrease if the corrected input level falls below a threshold for decrementing the threshold level of the input signal.
4 . The method of claim 1 , wherein generating the baseline signal on the input signal comprises low-pass filtering the input signal.
5 . The method of claim 1 , wherein the input signal is generated by a force sensor.
6 . The method of claim 5 , wherein the force sensor is configured to sense a force associated with a human interaction with a virtual button.
7 . The method of claim 5 , wherein the force sensor comprises one of a capacitive displacement sensor, an inductive force sensor, a resistive-inductive-capacitive sensor, a strain gauge, a piezoelectric force sensor, a force sensing resistor, a thin film force sensor, or a quantum tunneling composite-based force sensor.
8 . A system comprising:
an input for receiving an input signal;
an output for generating a baseline signal based on the input signal; and
a baseline calculation engine configured to:
generate a corrected input signal by subtracting the baseline signal from the input signal;
determine a threshold level change of the input signal when the corrected input signal exceeds a level change threshold; and
responsive to the threshold level:
update the baseline signal to the level change threshold;
generate an output flag indicative of the threshold level change; and
output the generated output flag.
9 . The system of claim 8 , wherein determining the threshold level change comprises determining a number of a plurality of level change thresholds exceeded by the corrected input signal.
10 . The system of claim 9 , the baseline calculation engine further configured to:
determine a threshold level increase if the corrected input level exceeds a threshold for incrementing a threshold level of the input signal; and
determine a threshold level decrease if the corrected input level falls below a threshold for decrementing the threshold level of the input signal.
11 . The system of claim 8 , wherein generating the baseline signal on the input signal comprises low-pass filtering the input signal.
12 . The system of claim 8 , wherein the input signal is generated by a force sensor.
13 . The system of claim 12 , wherein the force sensor is configured to sense a force associated with a human interaction with a virtual button.
14 . The system of claim 12 , wherein the force sensor comprises one of a capacitive displacement sensor, an inductive force sensor, a resistive-inductive-capacitive sensor, a strain gauge, a piezoelectric force sensor, a force sensing resistor, a thin film force sensor, or a quantum tunneling composite-based force sensor.