11 Replies Latest reply on Oct 20, 2020 10:19 PM by BragadeeshV_41

# How to Measure capacitor and Resistor using PSOC 3?

I am trying to make a measurement unit for Resistor and Capacitor value. How to measure the value using PSOC3? And display the measurement value in LCD.

• ###### 1. Re: How to Measure capacitor and Resistor using PSOC 3?

To measure the resistance you can use one of the analog to digital converters in the chip.  There are a bunch of example programs built into PSoC Creator showing these exact measurements.

As to how to display on the LCD it depends heavily on which display you are talking about.

As to the capacitance.  It depends heavily on the range of the capacitance you are trying to measure.  If it is within the range of the CapSense block you can use that.  There are bunches of example projects with CapSense.  If it is above the range then you have a much more difficult problem to solve.

I suppose to really answer you question you are going to need to give us more specifics about what your system problems and constraints are.

Alan

1 of 1 people found this helpful
• ###### 2. Re: How to Measure capacitor and Resistor using PSOC 3?

aansi,

How to measure small capacitors by switching ouput Pin’s drive mode + Timing measurement?

/odissey1

1 of 1 people found this helpful
• ###### 3. Re: How to Measure capacitor and Resistor using PSOC 3?

Thank you for immediate response. for the above query I want to add few more data as you ask me.

1. Resistance value to measure is 1ohms to 10ohms with sensitivity of 2ohms

2. Capacitance value to measure is 1.2nF to 7.2nF with 1nF sensitivity.

I have made the schematic for resistor measurement with your idea of voltage divider technique V o u t = V i n ∗ R 2 R 1 + R 2 where R2 is known value for me.

How to setup for capacitor measurement? can you suggest me the calculation and schematic.

Thank you

• ###### 4. Re: How to Measure capacitor and Resistor using PSOC 3?

AnSi,

For precision low-ohms resistor measurement you can try PSoC3/5 RTD component. Please read this App Note

https://www.cypress.com/documentation/application-notes/an70698-psoc-3-psoc-4-and-psoc-5lp-temperature-measurement-rtd

/odissey1

1 of 1 people found this helpful
• ###### 5. Re: How to Measure capacitor and Resistor using PSOC 3?

HI, BoTa_264741

I got to know about the resistor measurement. Capacitor measurement is still not working. I used Cap sense but not showing correct result. I want to measure 2nF to 7.2nF.

Regards

AK

• ###### 6. Re: How to Measure capacitor and Resistor using PSOC 3?

AnSi,

I believe that capsense technique is useful for measuring capacitances in pF range. I am not sure if it will be useful up to 10nF.

/odissey1

• ###### 8. Re: How to Measure capacitor and Resistor using PSOC 3?

hi BoTa,

I did the same way. Now I read sensor raw data. how do i convert the raw value to capacitor value.? is there any calculation formula?

Thank you'

AK

• ###### 9. Re: How to Measure capacitor and Resistor using PSOC 3?

AnSi,

I am not sure what you are asking about. Do you want to convert capsense raw counts into capacitor value?

/odissey1

• ###### 10. Re: How to Measure capacitor and Resistor using PSOC 3?

Yes, I want to convert the value. Not getting the value. raw data is reading.

• ###### 11. Re: How to Measure capacitor and Resistor using PSOC 3?

Hi AnSi_331471,

Yes, we have a raw count equation that helps you to back calculate capacitance from raw counts.