This example showcases a mutual-capacitance touch sensor application using the ATtiny3217 Xplained Pro board in combination with the T10 Xplained Pro extension board. The project offers user feedback for touch events either through the on-board LEDs on the T10 XPRO or by displaying data on a PC using MPLAB® Data Visualizer over USB.
- MPLAB® X IDE v6.25.0 or newer
- MPLAB® XC8 v3.0.0 or newer
- MPLAB® Code Configurator (MCC) v5.6.2 or newer
- Microchip ATtiny Series DFP v3.3.272 or newer
- ATtiny3217 Xplained Pro
- T10 Xplained Pro Extension Kit
- USB Type-C® cable
The ATtiny3217 Xplained Pro features two Xplained Pro Extension Headers, supporting both Self and Mutual-Capacitance Touch Extension Kits, along with two power configuration options. In this project, the ATtiny3217 Xplained Pro serves as the circuit interface, connecting the extension header 1 to the extension header 3 of the T10 Xplained Pro board, as illustrated below.
Once the setup is ready, open the application project in IDE, build the project and program the target board. The Button/Slider touch events are indicated by LEDs on the T10 XPRO and can also be monitored in the MPLAB® Data Visualizer.
- The project supports bidirectional tuning
Pre-requisite: MPLAB Data Visualizer and Touch Plugin. For the installation procedure, refer to Touch Plugin Installation.
- Configure the COM Port:
- Select the correct COM port in the Connection tab
- Update the Baud Rate to 38400 in COM Settings
- Start streaming for COM data
- COM Port on Touch:
- Select Touch in the Connection tab
- For data source, from the drop-down menu, select the configured COM port as the source
- Start streaming on Touch
For a more detailed procedure for Data Visualization, refer to Visualize Touch Data Using MPLAB® Data Visualizer.
None.
This example project showcases how to interface the T10 Mutual-Capacitance extension header with the ATtiny3217 microcontroller. It leverages the Peripheral Touch Controller (PTC) to enable touch sensing and supports Universal Asynchronous Receiver and Transmitter (UART) communication on the ATtiny3217. The application detects touch inputs from the mutual capacitance buttons and slider on the T10 XPRO board. When a touch is registered, the corresponding LED for each button or slider position lights up. Additional touch parameters can be monitored using the Touch Plug-in in MPLAB® Data Visualizer.