ESP-LiveControl
1.99.1
HTTP server, AJAX API backend and Vue.js web application implementing self-contained, zero-install WiFi remote control of hardware modules attached to the Espressif ESP32 SoC
|
Configuration constants and Look-Up-Table values which are supposed to be the same for all sensors. More...
#include <sensor_kty81_1xx.hpp>
Public Attributes | |
adc_atten_t | adc_ch_attenuation = ADC_ATTEN_DB_6 |
Suggested ADC input voltage Range for ESP32 using ADC_ATTEN_DB_6 is 150 ~ 1750 millivolts according to the SDK documentation for function adc1_config_channel_atten(). With reduced accuracy, FSR is approx. 2.2V. | |
size_t | averaged_samples = 32 |
size_t | moving_average_filter_len = 32 |
float | temp_fsr_lower_lin = 0.0f |
float | temp_fsr_upper_lin = 100.0f |
int32_t | v_in_fsr_lower_lin = 886 |
int32_t | v_in_fsr_upper_lin = 1428 |
int32_t | v_in_fsr_lower_lut = 596 |
int32_t | v_in_fsr_upper_lut = 1646 |
size_t | lut_size = 32 |
Look-Up-Table temperatures for 31 equidistant voltage steps. Table only valid for linearised circuit using 2.2 kOhms series resistor where ADC input voltage steps correspond to the following temperature values in °C. More... | |
std::array< float, 32 > | lut_temp_kty81_121 |
std::array< float, 32 > | lut_temp_kty81_110_120 |
Configuration constants and Look-Up-Table values which are supposed to be the same for all sensors.
This is instantiated as a static constexpr shared by all sensor instances.
size_t KTY81_1xxCommonConfig::lut_size = 32 |
Look-Up-Table temperatures for 31 equidistant voltage steps. Table only valid for linearised circuit using 2.2 kOhms series resistor where ADC input voltage steps correspond to the following temperature values in °C.
For LUT values, see ../util/kty81_1xx_sensor_generate_lut/kty81_lut.py
std::array<float, 32> KTY81_1xxCommonConfig::lut_temp_kty81_110_120 |
std::array<float, 32> KTY81_1xxCommonConfig::lut_temp_kty81_121 |
int32_t KTY81_1xxCommonConfig::v_in_fsr_lower_lin = 886 |
Voltages defining full-scale-range in mV
int32_t KTY81_1xxCommonConfig::v_in_fsr_lower_lut = 596 |
Voltages defining full-scale-range in mV