Under what conditions is the CapSense Component Baseline updated?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NaMo_1534561
Level 5
Level 5
Distributor - Macnica (Japan)
100 replies posted 100 sign-ins 50 replies posted

Hello,

Under what conditions is the Baseline of the PSoC4 CapSense component updated?

MPN  CY8C4014SXI-420

 

0 Likes
1 Solution
Arpit_S
Moderator
Moderator
Moderator
50 likes received 250 replies posted 100 solutions authored

Hi @NaMo_1534561 , @MAO ,

"Baseline stops updating when the raw count increases by a certain amount (Raw-Base > NoiseThreshold).
This is to get Diff Count as Sensor On event" - Yes, that is correct.

"On the other hand, if the Raw count decreases, first the sensor turns off at the stage of Diff < FingerThreshold – Hysteresis, then the Raw value further decreases and the Diff  Count output becomes 0 at RawCounts < NoiseThreshold"


I'd recommend you to refer to https://www.infineon.com/dgdl/Infineon-AN85951_PSoC_4_and_PSoC_6_MCU_CapSense_Design_Guide-Applicati... Section 5.3.2.3.2 Baseline update algorithm 

 

If the current raw count is below baseline minus negative noise threshold, baseline again remains constant at a
value equal to prior baseline value for Low baseline reset number of sensor scans. If the raw count continuously
remains lower than baseline minus noise threshold for low baseline reset number of scans, the baseline is reset
to the current raw count value and starts getting updated again.

 

Low Baseline Reset:

This parameter is used along with the negative noise threshold parameter. It counts the number of abnormally
low raw counts required to reset the baseline as Figure 67 shows.
If a finger is placed on the sensor during device startup, the baseline is initialized to the high raw count value at
startup. When the finger is removed, raw counts fall to a lower value. In this case, the baseline should track the
low raw counts. The Low Baseline Reset parameter helps to handle this event. It resets the baseline to the low
raw count value when the number of low samples reaches the low baseline reset number.

 

Hope this helps!
Thanks!
Kind Regards

Arpit Srivastav

 

View solution in original post

2 Replies
MAO
Level 5
Level 5
Distributor - Macnica (Japan)
5 solutions authored 50 replies posted 100 sign-ins

Baseline stops updating when the raw count increases by a certain amount (Raw-Base > NoiseThreshold).
This is to get Diff Count as Sensor On event.

On the other hand, if the Raw count decreases, first the sensor turns off at the stage of Diff < FingerThreshold – Hysteresis, then the Raw value further decreases and the Diff output becomes 0 at Diff < NoiseThreshold.

AN64846 Getting started with CAPSENSE
https://www.infineon.com/dgdl/Infineon-AN64846_Getting_Started_with_CapSense-ApplicationNotes-v26_00...

0 Likes
Arpit_S
Moderator
Moderator
Moderator
50 likes received 250 replies posted 100 solutions authored

Hi @NaMo_1534561 , @MAO ,

"Baseline stops updating when the raw count increases by a certain amount (Raw-Base > NoiseThreshold).
This is to get Diff Count as Sensor On event" - Yes, that is correct.

"On the other hand, if the Raw count decreases, first the sensor turns off at the stage of Diff < FingerThreshold – Hysteresis, then the Raw value further decreases and the Diff  Count output becomes 0 at RawCounts < NoiseThreshold"


I'd recommend you to refer to https://www.infineon.com/dgdl/Infineon-AN85951_PSoC_4_and_PSoC_6_MCU_CapSense_Design_Guide-Applicati... Section 5.3.2.3.2 Baseline update algorithm 

 

If the current raw count is below baseline minus negative noise threshold, baseline again remains constant at a
value equal to prior baseline value for Low baseline reset number of sensor scans. If the raw count continuously
remains lower than baseline minus noise threshold for low baseline reset number of scans, the baseline is reset
to the current raw count value and starts getting updated again.

 

Low Baseline Reset:

This parameter is used along with the negative noise threshold parameter. It counts the number of abnormally
low raw counts required to reset the baseline as Figure 67 shows.
If a finger is placed on the sensor during device startup, the baseline is initialized to the high raw count value at
startup. When the finger is removed, raw counts fall to a lower value. In this case, the baseline should track the
low raw counts. The Low Baseline Reset parameter helps to handle this event. It resets the baseline to the low
raw count value when the number of low samples reaches the low baseline reset number.

 

Hope this helps!
Thanks!
Kind Regards

Arpit Srivastav