Preparation
Front Panel
- The Front Panel should securely adhere to the sensor Printed Circuit Board (PCB).
- There should not be any air gaps. Air gaps:
- Cause unit-to-unit variation.
- Reduce sensitivity significantly
- Cause unpredictable touch behavior
- The assembly should be representative of the final product assembly; if not, retuning may be required for production.
External Resistor
Refer to the following table for the recommended initial series resistor configuration for tuning. If the target noise immunity is unknown, select the resistor value based on the power supply.
| Self-capacitance | Self-capacitance + Driven Shield | Mutual Capacitance | |
|---|---|---|---|
| Targe Noise Immunity (Conducted Immunity) | |||
| High (10V) | 100 KΩ | 50 KΩ | 1 KΩ (100 KΩ internal). |
| Medium (3V) | 50 KΩ | 10 KΩ | 1 KΩ (50 KΩ internal). |
| Low (1V) | 1 KΩ | 1 KΩ | 1 KΩ (0Ω internal). |
| Power Supply | |||
| Battery Operated | 1 KΩ | 1 KΩ | 1 KΩ (0Ω internal). |
| Mains Power Supply | 10 KΩ | 5 KΩ | 1 KΩ (10K internal) |
Power Supply
- Initial touch tuning, such as charge time, sensitivity, etc., must be done with a stable power supply.
- Use a bench supply to power the device until basic tuning is completed.
Project Generation
For tuning the touch sensor, it would be good to have a project with just the touch application and tune (debug) data available in MPLAB® Data Visualizer.
Refer to the Generate a Touch Project With MPLAB® Code Configurator (MCC) Melody page for generating touch projects for 8-bit or 16-bit MCUs.
Refer to the Generate a Touch Project With MPLAB® Code Configurator (MCC) Harmony page for generating touch projects for 32-bit MCUs.
Refer to the Guide to View Touch Tune Data page for information on viewing touch tune data in MPLAB Data Visualizer.
While creating the project:
Configure the touch pins.
Configure the debug pins.
Enable the Sensor Charge Time auto-tune option.
Enable the Frequency Hop auto-tune option (if Target Noise Immunity is medium or high).
Keep the other parameters to default values.
Download a copy of the project with the Sensor Charge Time auto-tune option disabled.