The STEVAL-IHI002V1 is a demonstration board designed to modernize, or even fully
replace, a conventional mechanical keyboard.
The demonstration board is based on the STMPE1208S 12-bit GPIO expander with an
additional 12-channel capacitive sensor, which is capable of interfacing a main MCU
through an I²C bus. The demonstration board is designed to work as a daughterboard for
the STEVAL-IHI001V1 demonstration board (washing machine user interface).
Once connected, the STEVAL-IHI002V1 will be automatically detected by the motherboard,
replacing the mechanical keys with a wheel, a slider and 5 buttons.
The STMPE1208S is a 12-bit GPIO device with additional 12-channel capacitive sensors,
which is capable of interfacing a main MCU through an I²C bus.
The sensors in the device detect finger contact through the additional capacitance
introduced to the sensor, providing fast and accurate results at very low power consumption.
Figure 1.STMPE1208S block diagram
!-V
When a sensor is touched, the increase in capacitance causes a delay in the clock signal on
the relevant sensing pin. The signal is then compared with a reference clock. The difference
is a direct representation of the additional capacitance introduced by the finger touch.
Environment factors, such as temperature and humidity, can affect the measured
capacitance value. The calibration unit ensures consistent key sensitivity, even in the
presence of significant shifts in temperature, humidity, device lot and PCB characteristics.
The output from the calibration unit provides an instantaneous touch/no-touch status. This
signal is sent to the data filtering stage, which is made up of an integration unit, a filter unit
and a noise filtering unit.
The sensors can be affected by high-frequency noise if working near highly emissive circuits
such as a DC-DC converters or PWM controllers. The noise filtering helps the device
distinguish between a real touch or an emission-related false touch.
The STMPE1208S communicates with a main MCU through an I²C bus interface. It is
configured as a slave device, and supports both standard mode (up to 100 Kbps) and fast
mode (up to 400 Kbps), as well as 7-bit and 10-bit addressing modes.
The device can manage 2 types of interrupt events: a general interrupt related to the GPIO
ports, and a touch interrupt which occurs when touching a sensor.
Doc ID 15112 Rev 23/9
Application schematicAN2843
2 Application schematic
The STEVAL-IHI002V1 is a daughterboard intended to be connected to the STEVALIHI001V1 demonstration board (please refer to user manual UM0557 for further
information). The +5 VDC (VDD) power supply is provided by the STEVAL-IHI001V1
demonstration board through connectors J1 and J2. The STMPE1208S needs only a few
capacitors to run properly: a decoupling capacitor (C1), a reference capacitor (C2), and a
capacitor to stabilize the internal voltage regulator (C3).
The reset pin is pulled up by a resistor and is directly controlled by the main MCU. The
STMPE1208S communicates with the main MCU via an I²C bus. ID_0 and ID_1 set the
device address. Interrupt events GINT and TINT are sent to the main MCU as well. The
slider is designed using 3 capacitive sensing pins (S-T0, S-T1, S-T2). The wheel is also
implemented using 3 capacitive sensing pins (S-T8, S-T9, S-T10). Each button is connected
to a single capacitive sensing pin, from S-T3 to S-T7, for a total of 5 buttons. The graphic
design of the slider, the wheel, and the 5 buttons is generated directly on the PCB surface
through modeling of the copper area. The corrective capacitors C5-C16 are optional. Their
values are in the range of very few pF. They are necessary in cases where the PCB routes
between the capacitive sensing keys and the STMPE1208S are too long and vary
significantly from one to the other. Such corrective capacitors have not been mounted in the
STEVAL-IHI002V1. The GPIO ports are set as outputs and connected to 12 LEDs through a
series resistor. Each LED is an image of the respective capacitive sensing pin. This means
the LED will turn-on as soon as a touch is detected. The demonstration board is equipped
with connector J3 to allow an external board other than the STEVAL-IHI001V1 to be
connected to the STMPE1208S via I²C bus.
Figure 5.STEVAL-IHI002V1 connected to the STEVAL-IHI001V1
6/9Doc ID 15112 Rev 2
AM01728v1
AM01729v1
AN2843STEVAL-IHI002V1 demonstration board photos
Figure 6.Angle view
AM01730v1
Doc ID 15112 Rev 27/9
Revision historyAN2843
5 Revision history
Table 2.Document revision history
DateRevisionChanges
21-Jan-20091Initial release
09-Nov-20092
Changed the title of Section 1 to “STMPE1208S: 12-channel
capacitive touchkey controller”
8/9Doc ID 15112 Rev 2
AN2843
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.