Overcome the Top 4 Challenges of Capacitive Sense Design

Similar documents
AN957: TouchXpress Configuration and Profiling Guide

Smart Capacitive Sensing Design with EFM8 TM and Simplicity Studio TM

EFM32 Pearl Gecko Family QSG118: EFM32PG1 SLSTK3401A Quick- Start Guide

EFM32 Happy Gecko Family EFM32HG-SLSTK3400A Quick-Start Guide

EFM8 Busy Bee Family EFM8BB2-SLSTK2021A Quick Start Guide

QSG114: CPT007B SLEX8007A Kit Quick- Start Guide

Humidity/Temp/Optical EVB UG

EFM8 Laser Bee Family QSG110: EFM8LB1-SLSTK2030A Quick Start Guide

UG294: CPT213B SLEXP8019A Kit User's Guide

Date CET Initials Name Justification

QSG123: CP2102N Evaluation Kit Quick- Start Guide

UG254: CP2102N-MINIEK Kit User's Guide

QSG107: SLWSTK6101A Quick-Start Guide

UG369: Wireless Xpress BGX13P SLEXP8027A Kit User's Guide

QSG159: EFM32TG11-SLSTK3301A Quick- Start Guide

UG345: Si72xx Eval Kit User's Guide

Si1146 UVIRSlider2EK Demo Kit

Router-E and Router-E-PA Wireless Router PRODUCT MANUAL

Figure 1. Traditional Biasing and Termination for LVPECL Output Buffers

The process also requires the use of the following files found in the Micriµm Quick Start Package for the FRDM-KL46Z:

µc/probe on the Freescale FRDM-KL05Z without an RTOS

UG322: Isolated CAN Expansion Board User Guide

EFM8 Universal Bee Family EFM8UB2 Errata

QSG144: CP2615-EK2 Quick-Start Guide

Si1140-DK. Si1140 DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. Figure 1. Si1143 Evaluation Board

QSG119: Wizard Gecko WSTK Quick-Start Guide

UG274: Isolated USB Expansion Board User Guide

Wireless Development Suite (WDS) is a software utility used to configure and test the Silicon Labs line of ISM band RFICs.

QSG107: SLWSTK6101A/B Quick-Start Guide

AN999: WT32i Current Consumption

CP2104-EK CP2104 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup USBXpress Driver Development Kit

CP2103-EK CP2103 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup USBXpress Driver Development Kit

AN976: CP2101/2/3/4/9 to CP2102N Porting Guide

AN1106: Optimizing Jitter in 10G/40G Data Center Applications

EFM32 EFM32GG11 Giant Gecko Family QSG149: EFM32GG11-SLSTK3701A Quick-Start Guide

Figure 1. CP2108 USB-to-Quad UART Bridge Controller Evaluation Board

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

CP2105-EK CP2105 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup USBXpress Driver Development Kit

UG313: Thunderboard Sense 2 Bluetooth Low Energy Demo User's Guide

ETRX3DVK Development Kit Quick-Start Guide

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

AN690. Si4010 DEVELOPMENT KIT QUICK-START GUIDE. 1. Purpose. 2. Kit Content. Table 1. Kit Content

Si7005USB-DONGLE. EVALUATION DONGLE KIT FOR THE Si7005 TEMPERATURE AND HUMIDITY SENSOR. 1. Introduction. 2. Evaluation Kit Description

AN0885: EFM8UB Low Energy USB Overview

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

CP2114 Family CP2114 Errata

EFR32MG13, EFR32BG13 & EFR32FG13 Revision C and Data Sheet Revision 1.0

AN888: EZR32 Quick Start Guide

AN0059.1: UART Flow Control

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

AN888: EZR32 Simple TRX Application Quick Start Guide

AN125 INTEGRATING RAISONANCE 8051 TOOLS INTO THE S ILICON LABS IDE. 4. Configure the Tool Chain Integration Dialog. 1. Introduction. 2.

UDP UPPI Card UG UDP UPPI CARD USER S GUIDE. 1. Introduction. Figure 1. UPPI Cards with and without Radio

Translate HCSL to LVPECL, LVDS or CML levels Reduce Power Consumption Simplify BOM AVL. silabs.com Building a more connected world. Rev. 0.

QSG107: SLWSTK6101A/B Quick-Start Guide

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

UG361: Si70xx Evaluation Tools User's Guide

EFM8 Universal Bee Family EFM8UB1 Errata

AN0059.0: UART Flow Control

UG271: CP2615-EK2 User's Guide

SMBus. Target Bootloader Firmware. Master Programmer Firmware. Figure 1. Firmware Update Setup

AN1117: Migrating the Zigbee HA Profile to Zigbee 3.0

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

C8051F36x-DK. C8051F36x DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents. 3. Hardware Setup Using a USB Debug Adapter

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

AN1137: Bluetooth Mesh Network Performance

AN116. Power Management Techniques and Calculation. Introduction. Key Points. Power Saving Methods. Reducing System Clock Frequency

TS7001 Demo Board. A Micropower, 2-channel, ksps, Serial-Output 12-bit SAR ADC FEATURES

TS9004 Demo Board FEATURES ORDERING INFORMATION

C8051F411-EK C8051F411 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Kit Overview. 3. Evaluation Board Interface LCD User Interface

Software Release Note

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

Table 1. Kits Content. Qty Part Number Description. Si4010 Simplified Key Fob Demo Kit 868 MHz

Also available for purchase separately are socket daughter boards for the QFN-11 and QFN-10 packages.

AN1143: Using Micrium OS with Silicon Labs Thread

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

C8051F00x/01x-DK C8051F00X/01X DEVELOPMENT KIT USER S GUIDE. 1. Kit Contents. 2. Hardware Setup using a USB Debug Adapter

Figure 1. Precision32 AppBuilder

WT12 EVALUATION KIT DATA SHEET. Monday, 09 September Version 1.7

Date CET Initials Name Justification

USBXpress Family CP2102N Errata

UG370: Wireless Xpress AMW007 Kit User's Guide

The Si50122-Ax-EVB is used to evaluate the Si50122-Ax. Table 1 shows the device part number and corresponding evaluation board part number.

EFM32G Product Revision E

ADC Evaluation Platform GUI User s Guide

UG103.13: Application Development Fundamentals: RAIL

EFR32 Mighty Gecko Family EFR32MG1 with Integrated Serial Flash Errata History

USB Debug. Adapter USB DEBUG ADAPTER. J4 Silicon Laboratories. Stop Power. Run AC/DC. Adapter. Figure 1. Hardware Setup Using a USB Debug Adapter

Selector Switch SDA. Pin 1. SCL Pin 2. I2C Bus. Pin 7. Pin 8. Pin 1. Pin 2. Pin 7 Pin 8. Pin 1 Pin 2. Pin 7 Pin 8

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

AN1139: CP2615 I/O Protocol

2. Key Points. F93x F92x F91x F90x. Figure 1. C8051F93x-C8051F90x MCU Family Memory Size Options

EFM32LG890 Errata, Chip Rev. E

QSG153: Micrium s μc/probe Tool Quick- Start Guide

QSG166: WF200 Wi-Fi Development Kit Quick Start Guide

EFM32 Zero Gecko EFM32ZG Errata

8-bit MCU Family C8051F93x/92x Errata

QSG155: Using the Silicon Labs Dynamic Multiprotocol Demonstration Applications

AN1154: Using Tokens for Non-Volatile Data Storage

AN1138: Zigbee Mesh Network Performance

Transcription:

Overcome the Top 4 Challenges of Capacitive Sense Design By Parker Dorris, Applications Engineer, Silicon Labs www.silabs.com Smart. Connected. Energy-Friendly.

Introduction From light switches to washing machines, developers are adding capacitive sense to hundreds of devices that need a sleek, low-profile interface surface, improved long-term reliability compared to mechanical buttons, and a customized interface. All capacitive sensing solutions essentially perform the same task. Sensors use integrated CMOS designs combined with external capacitive components to measure minute analog changes. Then, post-sample processing interprets these changes to characterize user touches. Although capacitive sensing solutions have been on the market for decades, this technology still has formidable design barriers, especially in early-stage development. Engineers must do the following to create an optimal solution: Balance the often-conflicting priorities of touch robustness and current consumption Focus on sensor layout, stack-up and other system-level considerations Create firmware that filters interference, qualifies touches, and produces reliable touch data Additionally, any sensitive analog sub-system in a mixed-signal design faces the challenge of performing optimally in systems where almost every factor in a system (ie. current draw, timing) work in concert to degrade performance. In order to minimize these complexities and streamline the development process, developers must determine if an integrated approach is better than a fixed-function one for their application. Integrated vs. Fixed Function Approach The numerous capacitive sensing solutions on the market today can be divided into two camps: those that require some firmware development and those that do not require any coding. Before developers begin evaluating solutions, they must determine which type of solution is right for their product. Option A: Integrated Solution An MCU-based, integrated solution is beneficial when multiple responsibilities need to come from one microcontroller because the device has space constraints 1

the sensor must use a less-common serial or parallel interface to communicate to the larger system system level requirements fall outside the capabilities of fixed function solutions However, this isn t a foolproof option. Integrating capacitive sensing into a central MCU creates additional challenges, including coding issues and resource constraints. 1. In-house coding expertise. The worst case is when a developer has chosen an MCU from a vendor that doesn t have comprehensive capacitive sensing firmware and software support;; therefore, all sensing firmware must be developed in-house. Coding, debugging, and finally optimizing capacitive sensing firmware against all of the factors that can degrade performance in the field is a task that companies easily devote entire teams to deliver. Ideally, developers will find a way to avoid this treacherous path and instead choose a vendor that provides firmware to be used as a starting point. However, even in the case where an MCU is running thoroughly tested code, integration challenges remain. 2. MCU resource constraints. In an MCU that is responsible for multiple tasks in a system, capacitive sensing sample and processing time must be shared among all other responsibilities. Resource sharing requires careful examination of expected worst-case runtime scenarios so that a balance can be struck among components;; otherwise, the capacitive sensing component could become a 'starved thread' that isn't responsive or reliable enough to be product-ready. Current consumption is another aspect of resource sharing that must be taken into consideration. MCUs chosen to perform many tasks are often relatively power-hungry. Without careful tuning of capacitive sensing sample time, such an MCU could be forced into a higher power state for a percentage of time that blows through a product's current budget. Option B: Fixed-Function Solution Fixed-function capacitive solutions eliminate the challenges presented by the integrated approach. This option frees them from the low-level coding concerns of touch qualification and nuanced state maintenance. It also gives them more development cycles to hone the product features and optimize other system-level concerns. Since all of the touch qualification and interference filtering techniques are baked into the fixed function device, developers avoid costly firmware development. Instead of managing all the close-to-the-metal details of conversion and processing, the developer will be presented with an interface that is geared toward providing information as concisely and promptly as possible. A fixed-function device requires that a host MCU be present in a system, monitoring the device for capacitive sensing events and other responsibilities. At first glance, this might seem to present a current draw issue 2

compared to a solution using the integrated approach;; however, since these devices are optimized to perform a narrowly defined task, they use minimal current draw. Simultaneously, these devices are usually designed to signal a host MCU in an event-driven manner, meaning they don't require constant polling from a host. This use-model enables a host MCU to remain in its lowest power state for a higher percentage of time while monitoring the fixed-function, signaling pin as a wake-up source. In cases such as these, a two-chip solution results in lower system current draw. The larger chip remains in deep sleep mode while the smaller, more current-conscientious chip efficiently scans capacitive sensing inputs. Real World Example: Remote Control Either approach often works;; however, developers should examine how consumers will use their product to determine which option is best. For example, let s look at remote control devices, which are increasingly using capacitive sensing surfaces for user input. In its simplest form, a remote control only has a few components: a user input system, IR transmitter circuit, and an MCU to control the system. Because the product requirements are not resource-intensive, an integrated approach might seem ideal to help eliminate the resource-sharing challenges between the capacitive sensing and the IR output components. A closer examination of this use case reveals how a fixed-function device may lead to a more optimized, energyefficient system. Because all remote control behavior begins with user input - specifically a user pressing one of 3

the buttons on the remote - the MCU controlling other components of the system (ie. IR output) can be placed in a deep sleep to minimize current draw and increase battery life. Also, because the system requirements of the MCU are likely not stringent in this type of application, using an optimized, fixed-function solution means that the controlling MCU needs fewer port pins to operate, because it will not need to sense each input on its own. A lower pin count MCU is likely a lower-cost MCU, potentially enabling a developer to design in an MCU that is 'just good enough' rather than a chip that is more functionally dense and geared toward 'system on a chip'-style use. Solution to Capacitive Sensing Design Challenges Let s continue to focus on the remote control example. While capacitive sensing poses some challenges throughout the entire development cycle of this application, most issues occur because of decisions made during the proof-of-concept stage. Here are the top four early-stage design challenges: 1. Rely heavily on sample code. Vendors frequently provide capacitive sensing-enabled code examples that run well in demo environments and during proofs-of-concept;; however, when dropped into product firmware, the sample code lacks production-ready features. This misstep slows progress and creates panicked and expensive revisions, incorporating sub-optimal hacks to get the device released on time. 2. Test too late. One rule of thumb is that a design never works better than it does when it s on the developer s desk. In many ways, a workstation can be an ideal environment for capacitive sensing because so many environmental variables are carefully controlled. Stress testing later in development often reveals susceptibility to interference, which can be an insidious problem and hard to characterize. 3. Turn sensitivity and robustness firmware to the max. In many cases, developers begin work on an isolated system such as a vendor evaluation board. A tendency to turn every knob toward sensitivity and robustness in early firmware without noticing that in almost every case improving those metrics comes at the cost of increased current draw and sensing time. As with most analog measurements, capacitive-sensing touch qualification benefits from sampling more data, more frequently. Unfortunately, sampling at higher frequencies tends to put capacitive sensors into states where current draw is relatively high. Additionally, turning robustness-related features to their maximum can cause touch qualification response time to decrease. The impact of this decreased responsiveness is not fully apparent at first because the system in the proof-of-concept stage might still be responsible for only monitoring for touches. 4

In later-stage development when the microcontroller (MCU) cycles are shared between capacitive sensing and other responsibilities, the decreased responsiveness can be exacerbated. 4. Experience sensor design complexity. Sensor design challenges cause multiple prototype builds and schedule delays. The shape of a capacitive sense electrode and its proximity to ground pour on a PCB or other board components can lead to interference problems and other issues. Because in many cases the developer's first tests of a capacitive sensing solution are designed on vendor evaluation boards, they are unencumbered by design constraints of a developer's final product. When the solution moves to a board with a different layout, sensing performance may degrade. Silicon Labs created an end-to-end fixed-function capacitive sensing solution that helps eliminate these challenges and provides the following: Reliable touch qualification Best-in-class current consumption Easy configuration through sophisticated software tools Our CPT007 and CPT112S fixed-function devices give developers a streamlined path toward adding button and slider capacitive inputs to a design. If a developer chooses a Silicon Labs CPT device, they can enter the proofof-concept phase using the evaluation kits. These kits have sensor designs onboard that simulate buttons in the final product. Additionally, the CPT device interface can be wired to a host MCU, while the CPT device's configuration and data interface can connect to Simplicity Studio, an integrated software development environment. This software includes specialized items, including the following: XPress Configurator: easily configure characteristics of each sensor Capacitive Sense Profiler: properly examine real-time capacitive output Once developers design a prototype board, they can use Simplicity Studio to optimize and improve a CPT device in-system through a two-wire interface that can be routed to pads or vias on the prototype board. This feature helps developers overcome challenges that occur when first moving a system away from 'optimal' proof-ofconcept designs using vendor evaluation boards. Developers can prototype a product's enclosure and different types of overlays without losing critical visibility into how each design choice effects capacitive sensing performance. Furthermore, our documentation guiding sensor design ensures that a developer designs a board that performs optimally, even in a tightly integrated system. 5

Conclusion Focusing on the minutia of a product's capacitive sensing feature is a waste of time. The more effort poured into tweaking firmware or spinning new boards to avoid crippling interference coupling, the less time you can devote to making innovative products. The Silicon Labs CPT sensing devices offer a combination of robust hardware and supporting software that can help you overcome the many pitfalls of capacitive sensing design, clearing a path for product design creativity. About the Author Parker Dorris is a senior applications engineer supporting the Silicon Labs microcontroller product line. He specializes in the areas of human interface and USB embedded system design and holds a BSEE from The University of Texas at Austin. Copyright 2015, Silicon Laboratories Inc. All Rights Reserved. Silicon Laboratories, Silicon Labs, SiLabs and the Silicon Labs logo, CMEMS, EFM, EFM32, EFR, Energy Micro, Energy Micro logo and combinations thereof, "the world s most energy friendly microcontrollers", Ember, EZLink, EZMac, EZRadio, EZRadioPRO, DSPLL, ISOmodem, Precision32, ProSLIC, SiPHY, USBXpress and others are trademarks or registered trademarks of Silicon Laboratories Inc. All other products or brand names mentioned herein are trademarks of their respective holders. 6