1. You are right, it should be project/board specific, you can assign that pin properly based on your hardware, the desciption in the project doc is based on the PSoC4 BLE kit.
2. You may just directly use it with CYBLE-22411-00, I remember the ADC of the two chips(the one used in the original project and the CYBLE-22411-00) is same.
3. I think these values apply to CR2032.
1 of 1 people found this helpful
3. The "percent battery charge" is based on the expected SoC for each voltage level for the CR2033 lithium battery. Unless it has different voltage ratings (I can't find the datasheet for the CR2033), then similar voltage and type of battery with only a small difference in the amount of total charge it stores should have a similar SoC to voltage correlation, which means that it should work. Basically, the percentage battery life is estimated from the voltage for the type of battery, and similar batteries will have a similar estimation.
Where can I find information what pin to use? I could not find it in the CYBLE-224110-00 data sheet
The Pin P3 looks fine when I build your project; Are you expecting a certain pin for use by the ADC to get the Vref?
The example project shows an external Capacitor wired to the Vref pin. If you are wanting to measure the battery voltage without external components, then see here: http://www.cypress.com/blog/psoc-hacker-blog/measuring-vdd-battery-volts-psoc4
(If you directly reference the Vref, then on a comparison between battery voltage and the Vref, it will almost always come back with 100/100%)
I'm a bit confused with the terminology. By "external" do you mean a physical part that has to be connected to the PSoC ? Or is it a logical component? I started reading the article you mentioned and the same question applies. Thank you
When documentation for the PSoC chips uses "external" they generally mean a part or component that is NOT inside of the CYBLE module, or whatever chip you are using, and thus it would be a component that you need to wire to the pins on the cypress module using one of the IO pins, PCB traces, jumper wires, etc.
When they refer to "internal" they are generally referring to something already included, and within the cypress module/chip.
For example, the ADC itself is internal to the cypress module, but the pin it reads from can be external.
In the top design schematics on PSoC schematics, the blue "penned" looking wires, resistors, capacitors, etc. all refer to documentation on externally wired components for the project. Thus, the article referenced is using an external resistor divider bridge to read the ADC values from. That means, that you would need to dedicate a pin for the use of measuring battery voltage level.
Tl;Dr; Yes, external means a physical part that needs to be connected/wired to the PSoC.
Thank you for clarifying, this is very helpful. I'm looking for a solution that does not require any external parts. Is there such a solution?
Not as far as I know, but someone else would probably know better.
Support for an internal VDD battery measurement with the ADC would require a different chip, or manufacturing changes afaik.
Sorry, but good luck