You are on page 1of 10

B Y DAV I D M A R S H • C O N T R I B U T I N G T E C H N I CA L E D I TO R

CAPACITIVE TOUCH SENSORS

GAIN FANS
CAPACITIVE PROXIMITY SENSORS EMBODY
AN OLD CONCEPT THAT TODAY’S IC TECH-
NOLOGIES PROMISE TO DELIVER. VENDORS
VIE TO WIN OVER NEW MARKETS IN THE
AUTOMOTIVE, CONSUMER, AND INDUSTRIAL
MARKETS USING METHODS THAT COMBINE
TRADITIONAL ANALOG WITH THE BEST OF
CONTEMPORARY DIGITAL TECHNIQUES.

48 EDN | JUNE 22, 2006


hile electronics engineers designs. So, how good are these new parts,

W
and how easy are they to design with?
struggle to embed more func-
The product of Russian-government-
tions into ever-shrinking size sponsored research into proximity sen-
and power-consumption foot- sors, the Theremin sensor, which
prints, product designers wres- Leonard Theremin invented in 1919,
represents possibly the first commercial
tle with a bigger but similarly use of capacitive sensing. The device
unchanging picture. Their senses the proximity of a musician’s hands
perspective, which resonates to a pair of antennas that modulate the
from the board room to the frequency and amplitude of two hetero-
dyning oscillators that form the heart of
consumer-product media, is the world’s first electronic music synthe-
that cutting-edge packaging sizer. Continuing this theme, in 1972,
and smart user interfaces ultimately sell products—sometimes designer David Cockerell at Electronic
Music Studios penned the KS keyboard
despite the underlying hardware. In the automotive industry, sim-
as a sequencer for the company’s range of
ilar presentation concerns dominate, even though the technolo- voltage-controlled synthesizers (Refer-
gies are complex, and the value of the end product is high. For ence 1). This intriguing device boasts
instance, Osram recently won the 2006 PACE (Premier a 30-note, touch-sensitive keyboard
whose inputs rely on the TTL character-
Automotive Suppliers’ Contribution to Excellence, www.trcpg. istics of two 74150 16-to-one-line multi-
com/pace.htm) innovation award for its color-on-demand LEDs, plexers. These devices scan the keyboard,
which offer car makers the opportunity to specify custom hues taking their clock inputs from a 4-bit
that differentiate their products from those of their competitors. binary ripple counter. A network biases
the inputs to the multiplexers to hold
Such simple stratagems sell. Meanwhile, back on the shop floor, them close to their switching threshold,
it’s always been a high priority for automation vendors to offer which a finger press then exceeds. At this
user interfaces that are as simple yet as powerful as possible— time, the appropriate data-selector output
goes low to latch the 4-bit code and the
not to mention utterly reliable.
multiplexer’s identity to create a 5-bit
These and countless other applications liable in sensitivity and stability, today’s address that represents key position.
depend upon two primary elements: touch switches are often cheaper and
switches and displays. Although displays more reliable than their electromechan- SHUNT FIELD SENSES OBJECTS
and enabling technologies, such as ical counterparts. Gone too are the days Surprisingly perhaps, today’s capaci-
OLEDs (organic LEDs) attract massive when choosing a touch switch or panel tive-sensor ICs from Analog Devices,
attention, the lowly switch partner often required custom manufacture, as a grow- Cypress Semiconductor, Freescale Semi-
receives scant recognition. But this tech- ing variety of capacitive-sensing ICs conductor, and Quantum Research
nology moves on too, with a new gener- makes even one-off designs affordable. Group similarly demonstrate different
ation of capacitive touch sensors provid- Crucially, such developments offer prod- approaches to sensing. These vendors also
ing compelling reasons for designers to uct designers the scope to differentiate offer evaluation kits that make it easy to
reconsider their switch-panel choices. their equipment and offer electronics compare the ease of design and relative
Traditionally difficult to design and unre- engineers the benefit of owning their complexity and robustness of their tech-
ital-conversion channels into a 32-pad, the CDC’s positive or negative input, and
AT A G L A N C E 55-mm leadless CSP (chip-scale pack- connect to the bias rail that drives an
 Capacitive touch sensors chal- age). A key feature of this device is its self- external shield conductor. This facility
lenge switches and resistive panels. calibration capability, which is essential provides the flexibility that’s necessary to
for its mobile-electronics target market. support different sensor types. For in-
 Available ICs demonstrate diverse The sensor works by generating a 240- stance, one button might connect to a
sensing methods. kHz square-wave signal that drives one of single CDC input, or two buttons might
each button’s electrodes to create an elec- connect differentially across both inputs.
 A 3-D-sense field widens applica- tric field that a partner electrode assess- Either of these options requires a single
tion opportunities. es. A switch matrix multiplexes the stage of capacitance-to-digital conversion
receiver electrodes’ signals to a 16-bit to resolve a single button press; pressing
 Charge transfer minimizes sense- sigma-delta ADC that performs the both buttons in the differential arrange-
plate count. capacitance-to-digital transformation. ment results in the recognition of neither.
The presence of a finger or another con- A slider requires the differential connec-
 Evaluation kits speed robustness ductor shunts the background capaci- tion and two conversion stages, in which
and ease-of-use assessment. tance of the appropriate button, causing the first detects sensor activation—that
the ADC’s output code to change; when is, the proximity of an object—and the
nologies (see sidebar “What’s in the box?” this change exceeds a programmable second resolves its relative position. The
at the Web version of this article at www. threshold value, the sensor registers a key chip’s sequencer supports as many as 12
edn.com/060622cs). Here, “robustness” press (Figure 1). stages of conversion per measurement
refers to the ability to reliably determine Each of the AD7142’s channels has its sequence, and you can optimize perform-
key-press information across a range of own result register that the host reads ance by balancing the number of con-
user profiles and environments. Any using an SPI or I2C interface. The chip versions and the decimation rate that the
touch sensor has a background capaci- can generate interrupts to signal exceed- acquisition block applies. ADI recom-
tance, a signal level, or both that is a ing a sensor’s threshold level, completing mends setting the time for a full conver-
product of its environment and a higher a conversion sequence, and detecting an sion sequence to 35 to 40 msec.
level above which threshold the sensor event on the device’s general-purpose I/O The proximity-detection function is
records a key-press event. Accordingly, pin. At the measurement level, each important for holding off the chip’s inter-
mobile devices present significant chal- input channel has its own 2-bit field with- nal recalibration routine, which runs after
lenges. One minute, the mobile device in a configuration register that determines every conversion sequence to assess
may be in free space, and, the next how it connects to the CDC (capaci- changes in background capacitance. Reg-
minute, its user places it beside a PC, cell tance-to-digital-converter) block. The isters allow designers to adjust the cali-
phone, or other electronic equipment options are: no connection, connect to bration hold-off time for the chip’s full-
that emits unpredictable frequency com-
ponents at various field strengths (see
sidebar “Don’t try this at home!” also at
the Web version of this article at www.
edn.com/060622cs). Electrostatic dis-
charges are other potential sources of mis-
triggering, and water and other contam-
inants can cause similar problems. To
overcome these and other issues, such as
drift with temperature and time, touch-
sensor ICs often embed logic and analog
subsystems that continually calibrate the
system. By characterizing individual
channels, such techniques can also
accommodate keypads that have widely
different user fingerprints and key profiles,
improving both detection and the prod- RECEIVER TRANSMITTER
uct designer’s options.
16-BIT 240-kHz
The issues are clear to see using the DATA
SIGMA-DELTA EXCITATION
new AD7142 from Analog Devices as an SIGNAL
ADC
example and apply in varying measure to
any of the other chips that are available
today. With a base price of $1.65 (1000), Figure 1 Shunt capacitance disturbs the sense field that the AD7142 creates.
the AD7142 packs 14 capacitance-to-dig-

50 EDN | JUNE 22, 2006


and low-power operating modes, which
helps guard against a user’s finger hover-
ing over the key for an excessive time, dis-
abling the calibration routine. The user’s
finger depositing moisture on the panel
can create this hovering effect, so forcing
a recalibration helps the sensor to main-
tain optimal detection performance.
The chip’s adaptive threshold-and-sensi-
tivity algorithm continuously monitors
each sensor’s output levels, automatical-
ly scaling the threshold levels to com-
pensate for changes in sensor area due to
factors such as different finger sizes.
All capacitive sensors incur some
trade-off among the amount of power a
device uses to support its detection tech-
nique, the frequency of its key-press
updates, and the overall power budget. Figure 2 Freescale’s 3-D e-field sensor expands application opportunities.
The AD7142 offers full-power, low-
power, and device-shutdown operating
modes. In full-power mode, all sections of for connection to the analog inputs of a closed-door detection and imbalance
the device are on, and it continuously microcontroller, which can then take compensation in spinning appliance
converts and recalibrates at a constant measurements and apply corrections. An drums: “Because interelectrode capaci-
rate. The low-power mode reduces con- ISO-9141 physical-layer interface eases tance is inversely proportional to dis-
version frequency to, for instance, once connection to this 10.4-kbps, UART- tance, our sensors are finding new mar-
per 400 msec until it detects a key press, based bus that’s one of three legally man- kets in correcting wobble in dryers and
whereupon it reverts to a 40-msec dated onboard diagnostic-communica- other domestic appliances,” he says. He
sequence. (These timings are program- tions structures that North American claims that designers tend to regard elec-
mable.) Meanwhile, a proximity timer vehicles must support. trode design as something of a black art,
counts down, and—providing that no The MC33794 applies a 5V p-p, 120- whereas the reality is that it’s most often
other key presses occur—the sensor kHz sine wave to its sensor electrodes simple: “We recommend a 1010-mm
returns to its 400-msec cycle. For these through a 22-k resistor that forms one- area for a button on standard FR4” (Ref-
timings, low-power mode reduces the half of a voltage divider; the sensor elec- erence 2). Automatic ice makers and
chip’s full-power drain of around 1 mA to trode and a partner ground plate form the refrigerator-defrost systems are also
an average level of approximately 50 A. other half. The choice of a relatively low- potential applications, along with sensing
The shutdown mode reduces quiescent- frequency sine wave minimizes EMC liquid levels or even detecting spills
current drain to approximately 2 A. issues, including interference avoidance around a stove’s burners (Figure 2).
with the AM radios that most American Targeting use in consumer and gener-
3-D IMAGING vehicles carry. A synchronous demodu- al industrial applications, the new MC-
Brad Stewart, a product specialist at lator, rectifier, and lowpass filter smooth 34940 dispenses with automotive-specif-
Freescale, explains that the company’s the resulting signal level that an object ic features to drive seven electrodes and
MC33794 electric-field sensor accom- creates by shunting a greater proportion a shield from its 24-pin wide-SOIC pack-
modates as many as nine sensing and two of the drive signal to ground. age. This arrangement allows the use of
reference electrodes to suit challenging The capacitance between the elec- as many as 28 touchpad sensors. Freescale
automotive applications, such as seat sen- trodes is proportional to the area of the offers C-code drivers to implement func-
sors that require large-area, 3-D imaging electrodes and the dielectric constant of tions such as sliders, adjacent-key sup-
to optimize air-bag deployment for dif- the separating material, and it is inverse- pression, and periodic recalibration,
fering occupants and seating positions. ly proportional to the distance between together with a project environment that
Available at a base price of $2.22 (1000), them: C(kOA)/d, where k is the mate- runs under the CodeWarrior IDE (inte-
the 54-pin SOIC device features an active rial’s dielectric constant, O is the per- grated development environment) to suit
shield driver to compensate for capacitive mittivity of free space, A is the area of the microcontrollers, including the compa-
effects when using coaxial cables to con- plates in square meters, and d is the dis- ny’s recently introduced S08 core-based
nect to remote sensing plates. Critical tance between them in meters. Stewart portfolio. Using the 68HC908QY4 mi-
internal nodes, such as the detection-sig- notes that the relationship suits alterna- crocontroller to furnish its intelligence,
nal level, are available from device pins tive sensing applications, such as open/ the DEMO1985MC34940E develop-

52 EDN | JUNE 22, 2006


ment tool includes embedded-code sam- VDD
ples along with a PC-resident application
that’s written in a pre-.Net version of
VisualBasic, enabling programmers to
modify this code to suit requirements.
Available now, the kit costs $57.65; the
FOUT
price for the MC34940 is $2.12 (1000).
CP VTH
10 TO 30 pF  TIMER 16
SCANNING PANELS
TYPICAL
Cypress adopts a different sensing tech- CAPTURE
nique with its CapSense products. Its CY- PWM
8C21x34 and CY8C24x94 build on the GATE
company’s PSoC (programmable-system-
on-chip) mixed-signal microcontrollers to Figure 3 PSoC sensors from Cypress measure frequency changes in a relaxation
implement relaxation oscillators. In this oscillator.
arrangement, the capacitance between a
sensor electrode and a ground electrode
forms the timing element in a sawtooth PSoC Designer suite provides a method interference—such as ESD events—that
generator. A constant-current source of visualizing the necessary connections: firmware must currently accommodate.
charges the capacitor until the voltage “PSoC Designer is a step up in abstraction
ramp reaches a threshold, whereupon a that enables users to think in terms of CONQUERING WATER
switch discharges the capacitor, and the connecting up modules on a pc board,” With touch sensors as its specialist mar-
cycle repeats (Figure 3). Because the says Berry. Each module has a data sheet ket, British fabless-chip designer Quan-
capacitance and its charging current that describes electrical specifications and tum Research Group distinguishes itself
determine the oscillator’s frequency, the suggests design strategies. The develop- from broad-line device vendors by offer-
circuit senses the presence of the user’s fin- ment environment provides drivers and ing a wide range of ICs that employ
ger by measuring the difference in fre- APIs (application-programming inter- charge-transfer technology. The compa-
quency that the accompanying capaci- faces) that include register settings and ny’s founder and managing director, Hal
tance increase causes. Cypress publishes a function calls in C or assembly code. Cru- Philipp, explains that the human body
range of application notes that covers the cially for many small systems, the embed- presents about 100 to 300 pF to ground
operational principles and describes suit- ded microcontroller can enable single- in free space, with a finger contributing
able pad layouts for this type of sensor. chip systems. only a few picofarads. To meet the needs
Available in four package options from At the application level, Berry concurs of applications such as domestic appli-
16-pin SOIC to 55-mm MLF, the CY8- that handheld devices present the great- ances—one of his company’s biggest mar-
C21x34 features 8 kbytes of flash, 512 est challenges due to their unpredictable kets—any capacitive-sensing technique
bytes of RAM, and both I2C and SPI environments. To compensate, an API must be able to resolve this level in the
ports. The CY8C24x94 uses a 56-pin, 8 allows designers to periodically run a cor- presence of water and other contami-
8-mm MLF to accommodate 16 kbytes of rection algorithm that updates each elec- nants, such as the dirt and grease buildup
flash, 1 kbyte of RAM, an SPI, and a full- trode’s baseline-level register. You can set that accompany stove-burner and similar
speed USB port. The base price for the both noise and detection thresholds, applications.
devices spans $1.90 to $2.85 (1000). enabling continual software correction Referring readers to Larry Baxter’s clas-
Steven Berry, marketing manager for for systems that experience frequent envi- sic text for the best-available coverage of
CapSense products at Cypress, observes ronmental changes. You can also balance capacitive-sensing schemes (Reference
that the company’s PSoC devices differ the device’s power consumption and 3), Philipp explains that Quantum’s QT
from conventional microcontrollers in detection sensitivity by adjusting the (charge-transfer) scheme relies on the
offering various combinations of analog sensing algorithm to accommodate sen- conservation-of-charge principle: “Our
blocks to complement a configurable dig- sor patterns and material overlays. Berry QT sensor is essentially a microcontroller
ital core: “The core is a state machine to notes that, although the constant-cur- that’s programmed to charge a sense plate
which users can add function blocks, such rent-source approach rejects voltage of unknown capacitance to a known
as UARTs and timers, simply by setting changes, the company is working on a potential. The sense plate can be any-
registers,” he says. Similarly, the tech- patentable method for temperature com- thing conductive, from a pc-board pad to
nology supports analog-function blocks pensation to maintain the current an area of optically clear indium-tin-
that include continuous-time devices source’s accuracy. A forthcoming part will oxide over a display screen.” By measur-
such as op amps, comparators, and resis- offer an onboard linear regulator and ing the charge on this plate after one or
tor arrays, as well as switched-capacitor lower power consumption. Cypress is also more charge/transfer cycles, the chip
circuits that build filters, ADCs, and exploring new techniques in silicon to determines the sense plate’s capacitance;
DACs. A floorplanner tool within the reduce susceptibility to noise and other objects such as a finger disturb the charge

54 EDN | JUNE 22, 2006


on the sense plate to allow detection. resistive material compromises light
Philipp emphasizes that applying a low- transmission.
impedance source to the sense electrode To safeguard against false triggering due
and then sampling a narrow-width pulse to momentary unintentional touches, an
ensure reliable finger detection even in object’s proximity, or ESD events, voting
the presence of substantial moisture lev- filters require the system to detect a num-
els: “From an electrical-admittance ber of successful samples before register-
viewpoint, water films have a far greater ing a touch. The signal-processing logic
disturbing effect at low frequencies due to also implements adjacent-key suppres-
the 2-D RC network formed by the film sion, an iterative technique that repeat-
itself and its capacitance loading to the edly measures each key’s signal strength.
local environment,” he observes. It determines the user’s true selection by
Quantum refines this model by switch- identifying the area of greatest signal-
ing VCC to the sense electrode using a level change. Providing that the select-
spread-spectrum, burst-mode technique. ed key’s signal remains above a threshold
Randomizing the charge pulses and level, the sensor then ignores adjacent
inserting long delays between bursts min- keys.
imize EMC issues and further boost All of the company’s chips implement
robustness. Individual pulses can be as automatic drift-compensation schemes,
short as 5% or less of the intraburst pulse which Philipp asserts are sufficiently
spacing, which also lowers power con- responsive to maintain detection per-
sumption and cross-sensor interference: formance in applications such as micro-
“Most noise sources [that affect capacitive wave-oven panels that can experience
sensors] are either monotonic or occupy temperature slew rates of 1
C/sec or more.
narrow bandwidths,” Philipp says. The An algorithm periodically assesses each
company’s sensors typically use sampling input’s baseline-signal level when no one
frequencies of approximately 100 kHz, but is touching the sensor, adjusting the detec-
some of its devices realize effective fre- tion threshold to maintain constant sen-
quencies of 10 MHz and more by using sitivity. Depending on the type of QT
sample times on the order of 100 nsec. device, designers set the threshold level
The result is a sensor that can resolve using reference capacitors or software:
objects through more than 50 mm of glass “Although the signal change that’s nec-
or proportionally less through materials essary to ensure reliable detection doesn’t
with lesser dielectric constants. For change much over time, the baseline level
instance, conventional glass has a value changes quite significantly,” Philipp says.
of approximately 7.8, FR4 fiberglass is A range of ICs suits single or multiple
about 5.2, and most plastics are approxi- keys, matrix keyboards, touch sliders and
mately 2.7 (Reference 4). In particular, wheels, touchscreens, and combinations
the technology’s sensitivity suits replacing of these styles. Demonstrating many fea-
resistive touchscreens, in which the tra- tures that are common throughout these
ditional requirement for two layers of products, the QT118H single-key sensor

Figure 4 Quantum’s wheel sensors can use a three-terminal interleaved-metal structure


to resolve 128 points.

56 EDN | JUNE 22, 2006


senses through as much as 100 mm of glass software: “Our CAD technician used
and consumes approximately 12 A from CorelDraw to create the pattern and then
a 3.3V supply. The chip includes multi- imported a dxf-format file into our pc-
plexing logic and a 14-bit-resolution, board-design environment,” he says.
switched-capacitor ADC that sequen- Three sense lines connect to this new
tially sources pulses and measures the sen- structure, with the chip’s logic interpo-
sor’s charge level, performing recalibra- lating between electrodes to resolve 128
tions on the fly. A single capacitor sets the discrete positions. Three reference ca-
device’s sensitivity. The charge-transfer pacitors, whose values depend on the
sampling period is 2 sec, and pulse bursts thickness and dielectric constant of the
vary from 0.5 to 7 msec with around 95- panel material, set the circuit’s sensitivi-
msec separation. Consensus logic requires ty, with the device outputting a 7-bit
four consecutive active samples to regis- number through its SPI port. A host
ter a key press, which acts as a debounce microcontroller sets acquisition timings
filter. Accordingly, following an initial and operating parameters, such as a syn-
detection, the chip reduces interburst chronized mode that optimizes ac-line
spacing to 20 msec to yield an average interference rejection. The QT511 costs
response time of approximately 95 msec. approximately $1.50 (10,000) in a 14-pin
Two option pins configure the chip’s out- SOIC.
put pin as an active-low signal of 10- or Quantum’s multiple-key sensors pro-
60-sec duration; as a 10-sec-long toggle- vide for setting individual sensitivity for
action output; or to generate a 75-msec each key, allowing product designers max-
active-low pulse for every new detection. imum flexibility in using keys of different
A three-state “heartbeat” pulse of about sizes and shapes. Further flexibility
350 sec superimposes all output types to comes from using a custom microcon-
signal that the sensor is working correct- troller core, which the company can mod-
ly. Widely available from catalog distrib- ify to address the needs of small-system
utors, such as Digi-Key and Farnell In- applications, such as food blenders, with-
One, the QT118H costs less than $1 in a single chip. Philipp concludes, “QT
(10,000) in an eight-pin SOIC or DIP, technology has a dynamic range of sev-
and an evaluation board is available for eral decades, and, unlike traditional
$19.95. capacitive sensors, QT sensors don’t
Respectively suiting linear sliders and require coils, oscillators, RF components,
touch wheels, the QT411 and QT511 special cable, RC networks, or a lot of dis-
employ three electrode sections to create crete parts.”EDN
a position-sensing touch area. For in-
stance—and forming a cheaper and sim- You can reach Contributing Editor David
pler alternative to the 18-electrode struc- Marsh at forncett@btinternet.com.
ture and its resistors that appear in the
current version of the device’s data REFERENCES
sheet—the QT511 can use just three arcs 1 www.hinton-instruments.co.uk/
of interleaved metal that are also usually ems/ks.gif.
built onto an FR4 substrate (Figure 4). 2 “Touch Panel Applications Using

Although contemporary pc-board-layout MC34940/MC33794 E-Field ICs,”


packages, such as those from Pulsonix, Freescale Semiconductor Application
include polar grids that make it easy to lay Note, AN1985, April 2006, www.
out the original 18-electrode radial pat- freescale.com/files/analog/doc/
tern, Philipp acknowledges that the new app_note/AN1985.pdf.
structure challenges most board-design 3 Baxter, Larry K, Capacitive sensors:

Design and Applications, John Wiley,


MORE AT EDN.COM 1996, ISBN 078035351X.
4 “Secrets of a Successful QTouch
+ In addition to the Web-exclusive Design,” Application Note AN-KD02,
sidebars you can read at www.edn.com/ Quantum Research Group, August
060622cs, you’ll find this article’s 2005, www.channel-microelectronic.
associated vendor box and can post a de/ch_html_de/halbleiter/sensor-ics/
comment at the Feedback Loop link. notes/pdf/an-kd02_102-touch_
secrets.pdf.

58 EDN | JUNE 22, 2006


F O R M O R E I N F O R M AT I O N
Analog Devices FTDI
www.analog.com www.ftdichip.com
Corel ImageCraft
www.corel.com www.imagecraft.com
Cypress Microchip Technology
Semiconductor www.microchip.com
www.cypress.com Osram Opto
Digi-Key Semiconductors
www.digikey.com www.osram-os.com
Electronic Music Pulsonix
Studios www.pulsonix.com
www.ems- Quantum Research
synthi.demon.co.uk Group
Farnell InOne www.qprox.com
www.farnellinone.com
Freescale
Semiconductor
www.freescale.com

DON’T TRY THIS AT HOME!


You may wonder how hand tool’s small hous- motor soon crashed the scale’s development kit
robust these touch-sen- ing. The peaky nature of Cypress board, but the for its MC34940 e-field
sor technologies appear its low-frequency RF ADI and Quantum prod- sensor contains the
in the presence of poten- interference also promis- ucts somehow ignored 8247-mm system board,
tial interference. Looking es to compromise sensi- this severe irritant. a sensor board of seven
around the lab suggests tive sensors whose oper- By comparison, moving electrodes beneath about
several sources that— ating frequencies typical- the QT401 board around— 2 mm of clear Perspex,
although hardly scientific ly lie within a few hun- let alone close to the face RS-232 cable, and a CD.
tests—should stimulate dreds of kilohertz. of the CRT, where it regis- The system board carries
erratic responses from In practice, Analog tered the mesh as a valid the sensor IC, host micro-
any susceptible devices. Devices’ Scrollwheel-3 press—consistently gener- controller, power supply,
These sources comprise a became confused when ated signal errors that and RS-232 interface. A
phase-controlled dimmer close to the triac- required a software 16-pin header makes it
driving a 100W incandes- switched dimmer, losing restart, presumably to possible to program the
cent bulb, a 400W electric its ability to resolve a fin- reset the chip’s baseline- 68HC908-series micro-
drill, a 21-in. CRT monitor, ger press and requiring a signal calibration. This controller using the com-
a 433-MHz ISM (industri- power cycle to restore same exercise caused the pany’s MON08 interface.
al/scientific/medical)- normal operation. ADI board not to recog- Running the application
band transmitter of 10- Similarly, the Cypress nize its sensor area cor- software produces a hori-
dBm output power, and a CY3212 CapSense board rectly, requiring power zontal-bar display that
pair of 900- and 1800- lost control of its but- cycling to fix. None of charts each of the elec-
MHz GSM (Global tons-and-slider routine, these antics could disturb trode’s signal levels. The
System for Mobile-com- but the individual buttons the Cypress board, even sensor detects individual
munication) cell phones. and slider routines cor- when running its buttons- channels or combina-
Degaussing the monitor rectly identified a finger’s and-slider routine and tions, so user software
and turning the cell presence—even with ac- degaussing the monitor can also implement a
phones on within 10 mm line-switching conductors with the board pressed slider function by interpo-
or less of the respective lying directly across the against the CRT’s face. lating between individual
sensor assemblies tem- panel’s face. The Quan- Unsurprisingly maybe, channels. The display
porarily maximized the tum QT106 slider detect- none of the boards recorded the dimmer’s
electromagnetic field for ed the mains wiring’s showed any deviant wiring and the CRT’s
these sources. Of all the proximity at approximate- behavior in the presence mesh directly on its face-
electronic equipment, the ly 10 mm but also worked of any of the RF sources, plate as a presence of
electric drill—a virtually faultlessly while showing with the Quantum prod- about half the value of a
unsuppressed relic from slightly more pronounced uct simply detecting the finger, and the electric-
the 1970s—is especially output-code jitter. metallic antenna’s prox- drill torture didn’t faze it.
nasty as its variable- Holding the drill a few imity, just as for any other Similarly, none of the RF
speed, ac-line-powered millimeters above the object. transmitters upset it.
motor uses brushes to panel while repeatedly Arriving just in time for
maximize torque within a starting and stopping its inclusion here, Free-
WHAT’S IN THE BOX?
Before taking the time to nects the two assemblies. registers, and the software base to display system
check out competing ca- At first glance, this hard- continuously reports the status.
pacitive-touch-sensor tech- ware seems to be a lot to capacitance-to-digital con- The kit includes a CD
nologies, many designers perform a simple function. verter’s output values. The that contains installation
question the technology’s In practice, the Cypress Scrollwheel demo shows files for PSoC Designer
major historic failings: lack microcontroller provides the user’s finger position and PSoC Programmer,
of robustness and difficulty only the USB interface, around the eight sensing together with support files
of design. As a result, ven- and the company does not zones and 128 possible and documentation. As
dors offer an array of eval- recommend it for new output codes. The applica- always, it’s wise to check
uation boards that help design. Many simpler and tion differentiates between for updates and additional
prospective users assess cheaper alternatives sup- finger position and finger material on the Web,
such issues for them- port stand-alone operation taps that can signal mode which revealed a set of
selves. The vendors kindly for microcontrollers with- changes in a target appli- eight new CapSense proj-
submitted a few examples out the interface, such as cation. The demo also ects, as well as the SP3
for our inspection. FTDI’s chips that convert graphs the relative output update to PSoC Designer
Familiar to many exhibi- between USB and RS-232 from the sensor zones in 4.2. It’s first necessary to
tion attendees, the Scroll- for easy connection to any histogram format, plotting install the base application
wheel-3 from Analog De- UART. The ADuC841 con- the overall output against before downloading 77
vices comes in a 67 67  trols the sensor chip a timeline (Figure A). Mbytes of zipped update
28-mm ABS (acryoloni- through an SPI connection These facilities provide a files that add the crucial
trite-butadiene-styrene) and communicates with method for assessing the CapSense User Module.
plastic box that encloses the USB-interface chip effect of changing the Because the first kit
two pc boards. The top of through general-purpose chip’s register settings. release didn’t include the
the main board carries an I/O. The heart of the sys- The default values demon- second CD that now fur-
ADuC841 microcontroller, tem is the sensor chip and, strate smooth and continu- nishes training material,
a Cypress CY7C68013A-56 most interestingly, its sen- ous response, with mini- this test uses the
microcontroller, a 3.3V reg- sor board. This flexible mal jitter between adja- CapSense projects that
ulator, and a pair of clock substrate divides its sens- cent code values. appear on the Web. All
oscillators. The underside ing zones into eight equal- For $89, the CY3212 that’s then necessary is to
adds a USB transient-volt- ly sized radial sectors. ADI CapSense training kit from unzip the package and run
age-suppressor chip, a 64- notes that, although sim- Cypress comprises a 127  the .soc project file of
kbit serial EEPROM that ple button sensors require 77-mm baseboard that’s interest from within PSoC
the Cypress chip boots no driver software, joy home to a CY8C21001 Designer and download it
from, and a hex-Schmitt- pads and sliders require chip, plus a 5V linear to the board using the
trigger gate. Two pushbut- host-resident routines to power supply, a buzzer, MiniProg programmer,
ton switches provide for interpolate between sens- and sensing areas for which powers the CY3212
reset and program inputs, ing zones. The company seven buttons and a linear board from the host’s USB
with a four-pin header estimates the code foot- slider. The special-purpose port.
making the ADuC841’s print for a slider at about 3 CY8C21001 emulates all Or, that’s the theory;
transmitter/receiver lines kbytes of ROM and 500 the CapSense PSoCs (pro- plugging in the program-
available for an external bytes of RAM and recom- grammable systems on mer produced the familiar
device programmer. mends a 1-MIPS or better chips), making available “new-hardware-found”
Similar hardware appears processor. an emulation port. A pair message from XP Pro,
on the company’s Eval- The Scrollwheel soft- of headers accesses the with a prompt demanding
AD7142 board that’s avail- ware adds a sample MP3- chip’s I2C port and the in- configuration files that the
able on the Web for $199, player application to the system-programming lines installer deposits in the
and this version offers freely downloadable evalu- for the supplied PSoC application drivers’ subdi-
buttons of different sizes, ation-board package. The MiniProg programmer, rectory. Running any of the
two 64-position linear slid- demo hardware downloads together with a mini-USB examples from PSoC
ers, and an eight-way this single-sensor applica- cable for connection to a Designer subsequently
switch. The Scrollwheel tion at start-up, and the host PC. An RJ45 socket failed to compile, returning
demo unit is naked by evaluation board loads attaches the optional ICE- the message: “Operation
comparison, with its sec- demo routines for its but- Cube in-circuit emulator, terminated. Compiler
ond assembly home to the tons and sliders. Common which is the key compo- license invalid.” At this
AD7142 chip and a 27-mm- features include the ability nent of the $599 CY3215- point, it became clear that
diameter pc board that to set the AD7142’s oper- DK PSoC-development kit. these button and slider
forms the sensor. A 10- ating mode and to inspect A two-line, 16-character examples require the $145
way flat cable intercon- and modify any of its many LCD board plugs into the extra-cost C compiler,

Figure A ADI’s Scrollwheel software Figure B Cypress’ PSoC Designer offers a full-blown Figure C Quantum’s QT160 six-
graphs finger position versus rela- IDE together with powerful drag-and-drop controls. key sensor offers stand-alone
tive signal strength over its 128- operation.
point area.

which, according to the example appeared more requires an external 10- an ABS plastic panel. The
online store, was out of responsive than the but- MHz resonator to clock aggregate sensing dis-
stock, quoting delivery of tons-and-slider version in its logic and typically con- tance through FR4 and
four to six weeks. Happily, this respect, when it sumes 2.5 mA from a 5V ABS is about 3 mm. A 10-
the zip-download files proved possible to lose supply. The demo kit wire unshielded cable
contain precompiled hex the LCD’s messaging even includes a 9V battery, connects the board to an
files in the respective out- with a finger right in the which proves that no interface box that con-
put subdirectories, which center of the sensing power-supply ground con- tains an SPI-to-USB con-
trying to compile the C area; interestingly, this nection is necessary for verter built from a
sources using the response seemed to the charge-transfer tech- Microchip PIC16F873A
“rebuild-all” command improve with time. No nique to function reliably. microcontroller and an
clears. Beguilingly, PSoC sensor would detect a fin- The QT160 features adja- FT232BM UART-to-USB-
Designer promises all of ger on the opposite side cent-key suppression, interface chip from FTDI.
the features of a full- of the pc board, and all with capacitors setting (Quantum usefully
blown IDE (integrated required a positive touch the sensitivity for individ- includes another cable-
development environ- rather than sensing prox- ual channels, and gener- and-connector assembly
ment) that programmers imity—characteristics that ates six active-high logic- for users who wish to
will find appealing, plus could prove beneficial in level outputs. It also sup- construct their own inter-
drag-and-drop block-con- some applications. Al- ports a toggle-switch faces, together with a
figuration controls that though executives refuse mode and adds maximum couple of spare QT401s.)
justify fuller investigation to address this point, recalibration-time-out The product’s CD contains
than is possible here industry rumor has it that options that cater to a small PC-resident rou-
(Figure B). PSoC technology powers unusually long key press- tine that continuously
Downloading the the iconic iPod’s wheel es. The adjacent-key-sup- polls the board to return
respective button, slider, interface. pression capability is an finger position. At more
and buttons-and-slider Dispensing with the especially prominent fea- than 10 mm in the track
files onto the board using need for configuration ture of this demonstrator, center and little less in
the MiniProg and running software, Quantum’s allowing a maximum of any other plane, the sys-
the code confirm that the QT160 detects as many as three concurrent detec- tem’s proximity-detection
hardware is operational. six key presses through tions. ability is impressive. With
Although the LCD reports glass panels as thick as The company’s E401 a positive finger press
robust button behavior 100 mm—which explains demo slider assembly and the default setup val-
given a normal finger test, the sturdy construction of similarly requires no user ues, the response has
the slider examples its $75 E160 evaluation programming. Costing worst-case jitter of just
require precise finger board (Figure C). Target- $95, the kit comprises a one value in its 128-point
positioning to return ing detection in perma- QT401 device and a lin- output range.
accurate positional data. nently powered indoor ear-format, 18-electrode
At first, the slider-only environments, the chip pc board that adheres to

You might also like