Step 4. Optimal press detection threshold selection

mTouch

mTouch Cap Library Help
Step 4. Optimal press detection threshold selection

 

The big noise can decrease sensitivity more than in 4 times. So the recommended value for the press detection threshold is 1/8th of the sensor signal amplitude (delta). To calculate the optimal threshold value MTouchDebugThreshold(…) function can be used. It waits for the user presses the sensor and returns the optimal threshold value as 1/8th of the detected amplitude. The calculated optimal value should be passed for initialization to MTouchSetSensor(…).

Microchip mTouchCap Software Library 1.41 - [July 18, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.