Design Automation


Open-source touch sensing library

1 April 2009 Design Automation

To help engineers implement touch-sensitive controls with minimum additional effort, cost and size, STMicroelectronics has made available an open-source capacitive touch sensing software library for its 8-bit STM8 MCU platform.

The software library transforms any 8-bit STM8 MCU into a capacitive touch-key controller. Designers can combine touch sensing functions through multiple configurations, such as touch keys, wheels or sliders, while preserving the traditional STM8 MCU features for the application firmware, including communication, LED control, beeper and LCD control. The software is provided as royalty-free C source code and offers engineers the flexibility to configure, adapt or accommodate the library according to application needs.

Human touch is detected by monitoring the charge and the discharge timing cycle of an RC network formed by a single resistor and the touch electrode capacitance. Depending on which STM8 variant is used, as many as 24 individual touch pads can be supported. The touch sensing library only uses a small amount of the chip’s memory and processing capability, allowing designers to combine other application tasks in a single device. To optimise power consumption, the software also takes advantage of the STM8’s low-power modes.

The touch sensing library embeds advanced tools to help define keys, slider controls or rotary sensors, and to optimise touch sensitivity by adjusting parameters such as the touch detection threshold and the resolution of sliders or rotary controls. There are also innovative programmable features to optimise measurement accuracy and make the final application immune to noise.

An embedded automatic calibration software layer saves final adjustment during manufacturing and enables faster time to market. To maximise long-term reliability the library contains an environmental change system (ECS), which compensates for natural fluctuations in operating voltage and capacitance, as well as environmental effects such as temperature and humidity.

As well as source code for the touch-sensing software library, full supporting documentation includes the API description, a user manual for the software library, application notes and board layout recommendations, as well as code examples.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Why LabVIEW is critical to South Africa’s automation future
Design Automation
[Sponsored] In a world increasingly defined by connected systems, edge intelligence, and accelerating automation, the ability to build scalable, responsive, and maintainable engineering applications has never been more essential, and at the heart of this evolution lies LabVIEW.

Read more...
Wi-Fi 6 and Bluetooth LE co-processor
Altron Arrow Telecoms, Datacoms, Wireless, IoT
STMicroelectronics has released its ST67W611M1, a low-power Wi-Fi 6 and Bluetooth LE combo co-processor module.

Read more...
Empowering innovation with ST’s AI processors
Altron Arrow AI & ML
Artificial intelligence is no longer just a futuristic concept – it is here, and it is transforming industries at an unprecedented pace.

Read more...
1-Wire EEPROM with secure authenticator
Altron Arrow DSP, Micros & Memory
The DS28E54 secure authenticator combines FIPS 202-compliant secure hash algorithm (SHA-3) challenge and response authentication with secured electrically erasable programmable read-only memory.

Read more...
Take analogue designs from idea to reality
Design Automation
Bringing your analogue design ideas to life is simple with Microchip’s Analog Development Tool Ecosystem, part of its extensive range of solutions for both analogue and digital engineers.

Read more...
Accurate power estimation
Design Automation
AMD Power Design Manager 2025.1 is now available – with support for AMD Versal AI Edge and Prime Series Gen 2 SoCs and production support for AMD Spartan UltraScale+ devices.

Read more...
The 6 GHz band radio solution
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Analog Devices’ 16 nm transceiver family offers a highly integrated solution for this new frequency band, featuring low power consumption and high performance.

Read more...
New clock generator family
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Based on Skyworks’ fifth generation DSPLL and MultiSynth technologies, these devices enable any-frequency, any-output clock generation.

Read more...
Dual accelerometers on the same die
Altron Arrow Analogue, Mixed Signal, LSI
The LSM6DSV320X is the first mainstream inertial sensor to house a gyroscope alongside two accelerometers, one capable of sensing up to ±16 g and one sensing up to a staggering ±320 g.

Read more...
Ultra-low-power wireless module
Altron Arrow Telecoms, Datacoms, Wireless, IoT
The STM32WBA5MMG from STMicroelectronics is an ultra-low-power, small form factor, certified 2,4 GHz wireless module that supports Bluetooth LE, Zigbee 3.0, OpenThread, and IEEE 802.15.4 proprietary protocols.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved