Currently designing a POC project, Arduino based. Arduino (Adafruit's Flora, but standard Arduino code) project has 2 analog FSR sensors and a BT module (will provide pin wiring schematic). Focus is to initially load into an 'idle' state and not transmit touch event data (via BT) until specific user event of a 'double tap' on sensor is detected.
After leaving 'idle' state any subsequent user touch spike data would be transmitted via BT as a touch event. Touch event would be compared against a rolling baseline reading since background 'noise' from FSR can create false positives, so touch detection needs to be read as a 'spike' in data (over a certain threshold of force reading) in front of changing background FSR reading.
After certain time of inactivity of user touch events, would enter into 'idle' state until user 'double tap' is detected again. During this 'idle' state, touch events will not be transmitted via BT. Once the user 'double taps' the FSR, would leave 'idle' state and resume listening for and transmitting 'touch event' data via BT.
Already have program logic mapped out, but will take suggestions on better performance or methods (or libraries, such as a Fourier transform or any fuzzy analog data compare/handler) to accomplish code goals and be as accurate as possible to prevent false positive readings/events. Program logic is fairly simple and shouldn't take too long to code, but the need for reducing false positive events is the important goal.