touch_haptic#
Overview#
The user interface of a product is a key element that design engineers need to address to provide a compelling user experience. Touchpads, slides and rotaries offer a more intuitive and effective way of user interaction than traditional buttons. And, designing a touch-based user interface is simplified with the NXP Touch solution. This solution includes software that is designed to work simply and seamlessly with NXP’s capacitive touch sensing hardware IP that’s available on Kinetis KE15Z/KE16Z/KE17Z/MCX-N9XX MCUs. Key benefits of the NXP Touch solution include:
Robust EMC performance, noise immunity with IEC61000-4-6 standard certification with the 3V and 10V tests
Self-cap and mutual-cap modes supporting up to 6x6 matrix touchpads
Effective performance even with liquid substances such as water, salt water, oil, cold steam, etc.
High sensitivity with a boost feature to use when the touch overlay on the user interface is thick (acrylic, glass)
Supported Boards#
FRDM-KE15Z
Hardware requirements
Micro USB cable
FRDM-KE15Z board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or brightness and demonstrating mutual sensing keypad)
Personal Computer
Board settings
The default 5 voltage power supply is recommended for correct demo operation.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on FRDM-KE15Z board should change the color after detected touch event. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).