Objective
In the projects leading up to this one, we've been using the 'V' in the AVR® symbol as our touch button. To demonstrate the Adjacent Key Suppression™ feature, we need more than one touch sensor. In this project, we will configure two additional touch buttons (the 'A' and the 'R' in the AVR logo on the ATmega328PB Xplained Mini) and observe the touch status when AKS is disabled. We will then add all three sensors to a single AKS group and observe the results.
This tutorial builds on the Intro to PTC and Analyze Touch Data Using QTouch® Analyzer projects. Make sure you've completed those before continuing with this hands-on exercise.
Materials
Hardware Tools
Tool | About | Purchase |
---|---|---|
| |
Software Tools
Tool | About | Installers |
Installation
Instructions |
||
---|---|---|---|---|---|
Windows | Linux | Mac OSX | |||
Atmel® Studio
Integrated Development Environment |
| | | | |
Procedure
1
Stop Reading
If you've just completed the Changing the Detect Hysteresis project, you should click on Stop Reading.
4
Assign Pins
In the Project Builder Workflow window, click on the 'Pin Selection' tab.
Based on the following table, select the pins that are connected to the QTouch buttons.A | PE2 | Y6 |
V | PE3 | Y7 |
R | PC3 | Y3 |
AKS Grouping
For the next part of this lab, we are now going to add all three sensors to a single AKS group and observe the difference in touch status.
11
Open the QTouch Project Builder
In the Solution Explorer window, double click on the .qtdgn file.
13
Set AKS Group for Button1 and Button2
Similarly, set the 'AKS Group' as AKS_Group_1 for the rest of the buttons (Button1 and Button2).
When a group of sensors is in the same AKS group, only the sensor with the strongest delta will report detection. Using this parameter is important in designs where the sensors are close together or configured for high sensitivity as it will avoid multiple sensors to report a touch detection simultaneously.
Results
You have now learned how to configure the AKS parameter in a QTouch Project.