-
Notifications
You must be signed in to change notification settings - Fork 1
input hardware
The input module offers extensive support for measuring and converting voltages.
- pin limitations (ADC2 and WiFi)
- averaging
The input pins of the ESP32 can only measure up
It is a good idea to limit the current to about
As the input is limited to measuring voltages, a variable resistance can only be evaluated indirectly, by using both a reference voltage and a reference resistor. Up to a few
and the reference resistor
By using the resistance under test
For maximum accuracy the reference resistor should be chosen considering the maximum expected resistance
Furthermore the maximum current of
An electrical current cannot be measured directly, instead the voltage drop across a known resistor
simply multiply the voltage with
Thermistors are cheap components and therefore quite common ways to measure temperatures. Their resistance significantly depends on the temperature, which is why it can be used as a proxy to measure temperature.
To carry out a measurement, first the resistance needs to be evaluated. This resitance can then be converted to a temperature, if the normal temperature, normal resistance and temperature coefficient are provided. Lastly, if a measurement in an offset temperature scale like Celsius is favored, the absolute temperature can be converted by subtracting the corresponding offset.