Capacitive Touch Sensing on STM32U083RCT6 (PB5, PB6, PB7)
Hi All,
We are currently working with the STM32U083RCT6 microcontroller for a capacitive touch switch and LED drive design. While all other functions are working correctly, we are encountering issues with the touch sensing functionality on pins PB5, PB6, and PB7.
Here are the details of our setup and the issue:
- Capacitive Sensing Pins: PB5 (Pin 57), PB6 (Pin 58), and PB7 (Pin 59) are configured for capacitive touch sensing.
- Touch Pad: A capacitive touch pad is placed between these pins. We have used a 1kΩ resistor as part of the design, but the touch sensing does not seem to respond correctly.
- Other Functions: All other functions, including LED driving and general I/O operations, are functioning properly.
Could you kindly provide guidance on the following points:
- Pin Functionality: Are PB5, PB6, and PB7 suitable for capacitive touch sensing on the STM32U083RCT6? If not, could you suggest the appropriate pins for this purpose?
- Resistor Value: We are currently using a 1kΩ resistor. Is this value appropriate, or should it be adjusted (e.g., using a 10kΩ to 100kΩ resistor) to improve touch sensing performance?
- Touch Sensing Configuration: Are there specific settings or parameters that we should consider in our schematic or firmware (e.g., threshold values, debounce time, or calibration) to optimize the capacitive touch functionality?
- Schematic Improvement: If there are any recommendations for improving our schematic to ensure reliable touch sensing, especially concerning pin connections, capacitive pad design, or other components, we would greatly appreciate your advice.
- Software Settings: Any tips on ensuring that the STM32CubeMX settings and HAL libraries are correctly configured for capacitive sensing would be helpful.
We have verified the capacitive pad design, and environmental factors (such as grounding, shielding, and power supply quality) seem fine. Still, we are struggling with getting a reliable touch response.
We appreciate your time and assistance resolving this issue and look forward to your expert guidance.
