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
Public Attributes | List of all members
KTY81_1xxCommonConfig Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ lut_size

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

◆ lut_temp_kty81_110_120

std::array<float, 32> KTY81_1xxCommonConfig::lut_temp_kty81_110_120
Initial value:
{
-55.0 , -48.16279303, -41.39749472, -34.8911357 ,
-28.54294667, -22.192432 , -15.83544756, -9.56004681,
-3.43833483, 2.66313257, 8.80135444, 14.90432723,
20.97767882, 27.03976174, 33.13792626, 39.28966437,
45.38382931, 51.48407173, 57.67841773, 63.97159787,
70.30279723, 76.61562129, 83.00362829, 89.50586837,
96.07234208, 102.68301035, 109.39886725, 116.34253305,
123.5137051 , 131.2558412 , 139.76912438, 150.0}

◆ lut_temp_kty81_121

std::array<float, 32> KTY81_1xxCommonConfig::lut_temp_kty81_121
Initial value:
{
-55.0 , -48.22273805, -41.51141124, -34.84623091,
-28.34434926, -22.05459193, -15.78849403, -9.53746745,
-3.3772341 , 2.7675195 , 8.9372679 , 15.0916243 ,
21.14820431, 27.2082161 , 33.34543424, 39.41134763,
45.57173941, 51.73398583, 57.85244115, 64.10680179,
70.45422093, 76.763773 , 83.14712256, 89.64071316,
96.17984636, 102.82297981, 109.58309561, 116.4296579 ,
123.60532846, 131.27866698, 139.78106609, 150.0}

◆ v_in_fsr_lower_lin

int32_t KTY81_1xxCommonConfig::v_in_fsr_lower_lin = 886

Voltages defining full-scale-range in mV

◆ v_in_fsr_lower_lut

int32_t KTY81_1xxCommonConfig::v_in_fsr_lower_lut = 596

Voltages defining full-scale-range in mV


The documentation for this struct was generated from the following file: