Adjust analog-sw thresholds, Disable logging (loglevel)

=> tested system with new stripboard and actual hardware: system
works as expected with new all combinations of the 4 switches
connected to 1 adc

- Adjust lookup voltage for switch combinations, after connecting the
stripboard to actualy used pcb (apparently there was a >100
difference using an other adc channel + pcb)

- define loglevel for analogswitches to WARN
This commit is contained in:
jonny_l480 2022-09-12 13:19:54 +02:00
parent 451981b165
commit 3a99b8bc5c
2 changed files with 16 additions and 15 deletions

View File

@ -80,6 +80,7 @@ extern "C" void app_main()
//define loglevel
esp_log_level_set("*", ESP_LOG_INFO);
esp_log_level_set("buzzer", ESP_LOG_ERROR);
esp_log_level_set("switches-analog", ESP_LOG_WARN);
esp_log_level_set("control", ESP_LOG_INFO);
//create task for controlling the machine

View File

@ -17,21 +17,21 @@ int match_index = 0;
const int lookup_voltages[] = {
//ADC, S3 S2 S1 S0
4095, //0000
3642, //0001
3243, //0010
2887, //0011
2628, //0100
2413, //0101
2274, //0110
2112, //0111
1864, //1000
1748, //1001
1671, //1010
1579, //1011
1488, //1100
1418, //1101
1360, //1110
1294 //1111
3780, //0001
3390, //0010
3040, //0011
2760, //0100
2542, //0101
2395, //0110
2225, //0111
1964, //1000
1845, //1001
1762, //1010
1664, //1011
1573, //1100
1485, //1101
1432, //1110
1363 //1111
};