what will be the side-effects if we disable IDAC auto-calibration and do manually setting on mudulator IDAC & Gain IDAC in one of our Psoc Capsense tuning project?

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

cross mob
anzh_4716821
Level 2
Level 2
First like received First like given

Dear Cypress Developer Community:

thanks so much for Motoo Tanaka's reply for our last inquiry on the differences between PDL3.1.1 & PDL3.1.2 . It really helped us a lot.
why we inquiried on the differences between PDL3.1.1 & PDL3.1.2 is that,
we're aiming to step into a vendor pool at our enduser customer side for a washer touch panel project which has been applied with ITO touch sending film and a Psoc4 MCU by the name of CY8C4126AXI-S433.

we met some obstacles on sensor tuning. but after doing several tests, we decided to try disabling the IDAC auto-calibration function and doing manually setting on mudulator IDAC & Gain IDAC, so that we can make our touch sensing film(a FPCB sheet actually) have good sensitivity.

we'd like to invite Cypress Community experts to review on our project in attached file and give us sincere suggestions and advices.

pls see attached file for our detailed tech-support demands from Cypress Community.

1 Solution
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

Seems sensor cp of PEDOT material is bigger than ITO sensor, if you use standard auto-calibration algorithm the calculated modulator IDAC of PETOD sensor is bigger than ITO sensor too.  Sensor_Sensitivity = (2^N * Fswitch * Vref)/Imodulator, bigger modulator idac current means lower sensitivity. Of course, there is also a certain relationship between the signal amount of the sensor and the resistance of sensor material, but this effect is much smaller than the effect of modulator IDAC ( we have no specific quantitative data of sensor signal VS material resistance).

I recommend you disable the auto-calibration function in CapSense component, replace to use a customize calibrate algorithm - Fix modulator IDAC of each channel, only calibrate compensate IDAC value to adjust sensor rawdata to target level.

Example code is attached, to use this algorithm you should:

1. Disable the auto-calibration but enable compensation IDAC in CapSense component.

2. Set fixed modulator IDAC value of each sensor channel in CapSense component.

3. Place CompIdacCalibrationApp() function just behind CapSense_Start() in firmware, for example:

int main(void)

{

    uint8 i;

    CyGlobalIntEnable; /* Enable global interrupts. */

    returnvalue = CapSense_Start();

    CompIdacCalibrationApp();

  

    CapSense_ScanAllWidgets(); /* Scan all widgets */

    while(CapSense_IsBusy())

    {

        CySysPmSleep();

    }

    CapSense_FtInitialize();

    CapSense_InitializeAllBaselines();

    for(;;)

    {

        CapSense_ScanAllWidgets(); /* Scan all widgets */

        while(CapSense_IsBusy())

        {

            CySysPmSleep();

        }

        CapSense_ProcessAllWidgets();

        CyDelay(1);

    }

}

View solution in original post

4 Replies
taas_3144281
Level 5
Level 5
Distributor - Marubun (Japan)
25 sign-ins 50 replies posted 25 replies posted

Hi,

I asked a similar question before.

Could you refer to the discussion below?

About CapSense IDAC calibration method

And about the "flat spot" please refer to the KBA225128

Setting CapSense Parameters for Designs with Temperature, Humidity, and other Gradual Environmental ...

Best Regards,

Asanuma

Dear Asanuma:

thanks for your sincere reply.
we will take your history discussion contents as important references when we evaluate on our tuning parameters.

and thanks so much for reminding us of "flat spot" as one of the side effects , it really means a lot.

Thanks again.

Ann

12th.July,2020

0 Likes
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

Seems sensor cp of PEDOT material is bigger than ITO sensor, if you use standard auto-calibration algorithm the calculated modulator IDAC of PETOD sensor is bigger than ITO sensor too.  Sensor_Sensitivity = (2^N * Fswitch * Vref)/Imodulator, bigger modulator idac current means lower sensitivity. Of course, there is also a certain relationship between the signal amount of the sensor and the resistance of sensor material, but this effect is much smaller than the effect of modulator IDAC ( we have no specific quantitative data of sensor signal VS material resistance).

I recommend you disable the auto-calibration function in CapSense component, replace to use a customize calibrate algorithm - Fix modulator IDAC of each channel, only calibrate compensate IDAC value to adjust sensor rawdata to target level.

Example code is attached, to use this algorithm you should:

1. Disable the auto-calibration but enable compensation IDAC in CapSense component.

2. Set fixed modulator IDAC value of each sensor channel in CapSense component.

3. Place CompIdacCalibrationApp() function just behind CapSense_Start() in firmware, for example:

int main(void)

{

    uint8 i;

    CyGlobalIntEnable; /* Enable global interrupts. */

    returnvalue = CapSense_Start();

    CompIdacCalibrationApp();

  

    CapSense_ScanAllWidgets(); /* Scan all widgets */

    while(CapSense_IsBusy())

    {

        CySysPmSleep();

    }

    CapSense_FtInitialize();

    CapSense_InitializeAllBaselines();

    for(;;)

    {

        CapSense_ScanAllWidgets(); /* Scan all widgets */

        while(CapSense_IsBusy())

        {

            CySysPmSleep();

        }

        CapSense_ProcessAllWidgets();

        CyDelay(1);

    }

}

Dear XiaoweiZ:

your professional advices helped us a lot.

according to your  suggestions,
we detailedly re-read below files:
<AN85951_PSoC4 CapSense Design Guide> 
<CE195286_PSoC4 CapSense Tuner> 
<PSoC4 CapSense CSD_v2.6_Capacitive Sensing>

and we also took your below 2 infomation as very important references:
1. in auto-calibration algorithm, the auto-calculated modulator IDAC always goes out the result that the Imodulator of PEDOT sensor is bigger than ITO sensor's, according to Sensor_Sensitivity = (2^N * Fswitch * Vref)/Imodulator, bigger modulator idac current means lower sensitivity. 
2. the certain relationship between the signal amount of the sensor and the resistance of sensor material, its effect actually is much smaller than the effect of modulator IDAC.

Now we understood how to well set parameters for both ITO & PEDOT. 

a newly fixed CapSense configure setting has been done, and from tomorrow, we gonna do spot-inspection on more ITO samples & PEDOT samples, in order to to collect their sensitivity result and do the data-consistency test respectively.

If we have more technical questions during above spot-inspection test and data-consistency test, we will let you be updated again~

Thank you for your sincere help.

Best Regards!

Ann
12th.July,2020

0 Likes