mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
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:
parent
6a90cd8cfc
commit
d1e7907930
@ -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:
|
||||
------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user