The "Capacitive Touch Sensor Design" document provides detailed information on how to design buttons, sliders, wheels, and surface/proximity touch sensors. The guidelines provided in this article must be used in addition to the guidelines provided in the "Capacitive Touch Sensor Design" document.
Details on how touch performance is influenced by LEDs and PWM signals (irrespective of its usage with LEDs) and recommended solutions for such problems are provided here.
PWM can change a pin state from low to high during touch measurement. This state change can inject or remove charge to a nearby electrode or touch sense trace during the ‘share’ stage of touch acquisition. This is observed as noise in the touch signal. Isolating the PWM signal from the sensor and sense lines fixes this issue.
PWM can cause noise in the Vdd pin. Adding a decoupling capacitor (typically 100 nF) on the power line can help to reduce the noise level. Multiple decoupling capacitors can also be used to remove various frequency noise.
An open-drain driver has an inherent difference in reference coupling between the ‘driven’ and ‘floating’ states. When an open drain driver changes its state, it causes a delta on the touch signal (even without PWM). If LEDs or open-drain circuits are close to the touch sensor or sensor traces (less than 4 mm away) they must be bypassed with a capacitor that has a typical value of 1 nF. An additional capacitor needs to be added closer to the LED to make sure that a sudden surge in current does not create noise in the power supply. The typical value of these capacitors is 100 nF.
In general, touch sensors are covered by a front panel (also known as an overlay). These overlays inherently protect touch sensors from ESD. The typical materials used for front panels are dielectric, for example:
Care should be taken while designing the front panel (material and thickness) such that:
Even though the possibility of ESD striking the touch electrode is very small (if mechanically taken care of), we always recommend protective options in the electrical circuit to take care of the unlikely event.
Note: Touch parameters will have to be re-tuned if a resistor value or any aspect of the touch sensing line is changed.
EFT noise is injected into the power lines and therefore EFT is not a touch-specific issue. EFT can cause the MCU to behave erratically and therefore influence touch. Refer to the "EMI, EMC, EFT, and ESD Circuit Design Consideration for 32-bit Microcontrollers Application Note" document for detailed information on preventing EFT failures.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.