QTouch®: Generate Low-Power Sensor Project

 Objective

The following step-by-step guide shows you how to create a low-power sensor project and configure low-power parameters in Atmel START. This project is generated using the ATtiny3217 Xplained Pro along with the QT7 Xplained Pro Extension Kit.
Low-power with event system The CPU is put into standby mode and a periodic RTC/Timer event triggers a touch sensor measurement on the configured low power sensor. In this mode, only a single button or lump sensor (a single group of buttons/sliders/wheels) can be configured as a low-power wake-up sensor. This is also called an Event-Driven Low-Power Mode.
Low-power without event system A periodic RTC/Timer interrupt wakes up the CPU from standby mode to trigger a touch measurement on the configured low-power sensor. In this mode, a combination of buttons/lump sensors/slider or wheel sensors can be configured as low-power wake-up sensors. This is also called Software-Driven Low-Power Mode.
Lump A lump is a group of two or more buttons or slider or wheel in any combination. In addition, a lump can be configured as low-power with or without an event system.

 Materials

Hardware Tools

Tool About Purchase
board-50px.png
ATtiny3217 Xplained Pro
ATTINY3217-XPRO
board-50px.png
QT7 Xplained Pro Extension Kit
ATQT7-XPRO

Software Tools

Tool About Installers
Installation
Instructions
Windows Linux Mac OSX
Atmel® START (ASF4)
Integrated Software Framework
Web Based

 Procedure

Creating a Low Power Sensor

1

QT7 Configuration

Add the QT7 sensor configuration (i.e., two buttons, one slider) to the QTouch® device canvas page.

Refer to the "Generate User Board Touch Project" page for more details on how to create an Atmel START Project.

QT7Config.png

Event-Driven Low-Power

1

Selecting Low-Power Sensor

Right-click on the desired sensor to be selected as the low-power sensor and click 'Configure as low power'.

ConfigureLowPower.png

After configuring the button as a low-power sensor, the button turns green.

GreenSensor.png

If a button is configured as a low-power sensor using the steps above, it is configured as ‘Event-Driven Low-Power Mode’. If a slider or wheel is configured as low-power, then ‘Software-Driven Low-Power Mode’ is configured.

2

Configuring Lump as Low-Power

Select the three sensors and click ‘Add Lump’. The lump sensor will be displayed in the bottom of the page.

AddLump2.png
  1. Click ‘Configure as low power’ to add this lump as a low-power lump.
  2. By hovering the mouse over the lump, all the lumped sensors will be highlighted in yellow.
YellowSensor.png

The configuration parameters below are based on event-driven low-power mode.

ConfigParameters.png

The 'Configuring all unused pins as output low' checkbox is optional and only to be selected after configuring all PTC, UART lines, etc.

  1. The sensor saturation must be taken care of while handling the lumps.
  2. The lump sensor threshold should be the same as the low-power detect threshold.

Software-Driven Mode

1

Selecting Low-Power Sensor

Right-click on the desired sensor to be selected as low-power and click 'Configure as low power'.

LowPowerSensor.png

After configuring the button as a low-power sensor, the button turns green.

LowPowerGreen.png

2

Enable Software-Driven Mode

Navigate to QTouch > Parameters > Low Power and uncheck the 'Configure event system' checkbox to enable the Software-Driven Mode.

EventSystem.png

Multiple buttons or sliders or wheels can be configured as low-power in this mode.

3

Select Sensors

Select two buttons and a slider and right-click to configure them as a low-power sensors.

LowPowerSensors.png

This indicates all the sensors now act as Low-Power Software-Driven sensors.

SoftwareDriven.png

Switching back to Event-Driven Mode from Software-Driven Mode

1

Enable the 'Configure event system' checkbox.

2

Select any one of the sensors in the ‘Sensor Selection dialog’ drop-down box to configure as an Event-Driven Low-power sensor.

SensorSelection.png
© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
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.