<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis MicrocontrollersのトピックNoise adapation on electrode</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1733699#M65600</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project successfully running with a MKE17Z. I have several electrodes configured for two TSI modules. Some of them are working together as sliders while others are simple buttons grouped in a keypad.&lt;/P&gt;&lt;P&gt;Under "normal" conditions everything works just fine, but in some specific circumstances I am experiencing an issue on a button used to increase a timer value ('+' button). Each button press increases the timer value in 1 unit and if the button is kept pressed, the timer increases faster up to a certain level.&lt;/P&gt;&lt;P&gt;When the user presses this button many times continuously (Imagine the user wants to go from 0 to 45 minutes), the noise increases quite fast and therefore the deadband is updated accordingly. This evolution of the noise is rising the deadband really close to the signal so the button press is suddenly not detected.&lt;/P&gt;&lt;P&gt;The point is that once we reach this situation, and even if the user stops pressing this button, the noise decreases very very slowly and the button press is not detected for a long time.&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. Why are these continuous button presses rising the noise level when all of them are above the deadband by quite a wide margin?&lt;/P&gt;&lt;P&gt;2. Why the noise level rises quite fast while it then falls slowly?&lt;/P&gt;&lt;P&gt;3. Is there any specific parameter I can adjust to avoid/improve this situation?&lt;/P&gt;&lt;P&gt;The current configuration for this electrode is:&lt;/P&gt;&lt;P&gt;truct nt_keydetector_usafa nt_keydetector_usafa_El_11 = {&lt;BR /&gt;.signal_filter.coef1 = 2,&lt;BR /&gt;.base_avrg.n2_order = 12,&lt;BR /&gt;.non_activity_avrg.n2_order = 15,&lt;BR /&gt;.entry_event_cnt = 7,&lt;BR /&gt;.deadband_cnt = 2,&lt;BR /&gt;.signal_to_noise_ratio = 3,&lt;BR /&gt;.min_noise_limit = 250,&lt;BR /&gt;.dc_track_enabled = 1,&lt;BR /&gt;.dc_track_cnt = 200,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;The screenshot attached shows this situation. You can see the noise rising with the button presses and suddenly the margin of the signal over the deadband is not enough.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 11:29:47 GMT</pubDate>
    <dc:creator>afcec</dc:creator>
    <dc:date>2023-10-04T11:29:47Z</dc:date>
    <item>
      <title>Noise adapation on electrode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1733699#M65600</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project successfully running with a MKE17Z. I have several electrodes configured for two TSI modules. Some of them are working together as sliders while others are simple buttons grouped in a keypad.&lt;/P&gt;&lt;P&gt;Under "normal" conditions everything works just fine, but in some specific circumstances I am experiencing an issue on a button used to increase a timer value ('+' button). Each button press increases the timer value in 1 unit and if the button is kept pressed, the timer increases faster up to a certain level.&lt;/P&gt;&lt;P&gt;When the user presses this button many times continuously (Imagine the user wants to go from 0 to 45 minutes), the noise increases quite fast and therefore the deadband is updated accordingly. This evolution of the noise is rising the deadband really close to the signal so the button press is suddenly not detected.&lt;/P&gt;&lt;P&gt;The point is that once we reach this situation, and even if the user stops pressing this button, the noise decreases very very slowly and the button press is not detected for a long time.&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. Why are these continuous button presses rising the noise level when all of them are above the deadband by quite a wide margin?&lt;/P&gt;&lt;P&gt;2. Why the noise level rises quite fast while it then falls slowly?&lt;/P&gt;&lt;P&gt;3. Is there any specific parameter I can adjust to avoid/improve this situation?&lt;/P&gt;&lt;P&gt;The current configuration for this electrode is:&lt;/P&gt;&lt;P&gt;truct nt_keydetector_usafa nt_keydetector_usafa_El_11 = {&lt;BR /&gt;.signal_filter.coef1 = 2,&lt;BR /&gt;.base_avrg.n2_order = 12,&lt;BR /&gt;.non_activity_avrg.n2_order = 15,&lt;BR /&gt;.entry_event_cnt = 7,&lt;BR /&gt;.deadband_cnt = 2,&lt;BR /&gt;.signal_to_noise_ratio = 3,&lt;BR /&gt;.min_noise_limit = 250,&lt;BR /&gt;.dc_track_enabled = 1,&lt;BR /&gt;.dc_track_cnt = 200,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;The screenshot attached shows this situation. You can see the noise rising with the button presses and suddenly the margin of the signal over the deadband is not enough.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1733699#M65600</guid>
      <dc:creator>afcec</dc:creator>
      <dc:date>2023-10-04T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Noise adapation on electrode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1734048#M65602</link>
      <description>&lt;P&gt;Application note AN12709 has a specific section with the following comment:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If we change the “base_avrg” filter order from 10 to 8, the noise level adaptation will be 4x faster than before, so that it can update&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the deadband threshold much faster and react to the increased noise. Note that the noise level recovers automatically, when the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;noise signal is gone. &lt;STRONG&gt;The noise level recovery speed is hardcoded to be 16x faster than the noise accumulation, which is suitable&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;for most cases, but it can be accelerated in the SW if desired&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I do not quite understand this sentence highlighted in bold. Noise level recovery speed is hardccoded? Isn´t this recovery speed controlled with base_avrg filter? How can I modify this behavior in SW?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1734048#M65602</guid>
      <dc:creator>afcec</dc:creator>
      <dc:date>2023-10-05T06:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Noise adapation on electrode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1746130#M65649</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194245"&gt;@afcec&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;We apologize for the delay to answer you.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please try modifying the following values as &lt;A href="https://style.nxp.com/docs/en/application-note/AN12709.pdf" target="_self"&gt;AN12709 NXP Touch Development Guide&lt;/A&gt; recommends managing noise? Look at Section. 8.4 Key detector uSAFA tuning (.&lt;EM&gt;signal_to_noise_ratio&lt;/EM&gt;) and Section 8.4.1 Noise level adaptation (.&lt;EM&gt;base_avrg&lt;/EM&gt;).&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="lia-align-justify"&gt;&lt;EM&gt;Isn´t this recovery speed controlled with base_avrg filter?&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="lia-align-justify"&gt;Yes, actually that section recommends modifying the &lt;EM&gt;base_avrg&lt;/EM&gt; filter.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="lia-align-justify"&gt;&lt;EM&gt;Is there any specific parameter I can adjust to avoid/improve this situation?&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="lia-align-justify"&gt;For your software development, have you used any example from the SDK to help you? If so, have you tried to call the TSI_EnableNoiseCancellation in case you are using self-cap mode. Also, there are other application notes that could be helpful take a look at:&lt;/P&gt;
&lt;UL class="lia-align-justify" type="disc"&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/KE17ZDTSIUG.pdf" target="_blank"&gt;KE17Z Dual TSI User Guide&lt;/A&gt;,&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://Arm%20Cortex-M0+|Kinetis KE1xZ 32-bit 5V MCUs with Touch Interface | NXP Semiconductors" target="_self"&gt;KE15Z Touch Sensing Interface User Guide,&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11157.pdf" target="_blank"&gt;AN11157 Capacitive touch sensing with high EMC performance&lt;/A&gt;&amp;nbsp;and,&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN3863.pdf" target="_blank"&gt;AN3863, Designing Touch Sensing Electrodes - Application Notes&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="lia-align-justify"&gt;Why are these continuous button pre&lt;EM&gt;sses rising the noise level when all of them are above the deadband by quite a wide margin?&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;EM&gt;Why the noise level rises quite fast while it then falls slowly?&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="lia-align-justify"&gt;This could be cause for a couple of reasons. For example, &lt;A href="https://www.nxp.com/docs/en/application-note/AN3863.pdf" target="_blank"&gt;AN3863, Designing Touch Sensing Electrodes - Application Notes&lt;/A&gt; mentions: "&lt;EM&gt;Larger electrodes easily detect the presence and absence of a finger. However, in some cases, they can be more sensitive to electrical noise or undesirable surrounding objects&lt;/EM&gt;."&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 16:49:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Noise-adapation-on-electrode/m-p/1746130#M65649</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-10-25T16:49:25Z</dc:date>
    </item>
  </channel>
</rss>

