Update resistance.rst (#2725)

* Update resistance.rst

Spent many hours to figure it out why my NTC reading are incorrect. Found out that ADC readings must be multiplied by 3.3 because built-in voltage divider on ADC pin on some boards.

* Update resistance.rst
This commit is contained in:
Petr Kejval 2023-03-06 20:23:01 +01:00 committed by GitHub
parent 6a90cd8cfc
commit d1e7907930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -44,6 +44,19 @@ is close to GND (DOWNSTREAM) or it is closer to VCC (UPSTREAM).
id: source_sensor
pin: A0
Note:
------------------------
Some boards like NodeMCUv2 needs to multiply ADC reading by 3.3 to provide accurate result because they have built-in voltage divider on ADC pin (https://arduino.stackexchange.com/a/71952)
.. code-block:: yaml
# Example source sensor:
- platform: adc
id: source_sensor
pin: A0
filters:
- multiply: 3.3
Configuration variables:
------------------------