Skip to content

Commit

Permalink
v116
Browse files Browse the repository at this point in the history
## v116:
* Revert ADC multisampling - not working good
  • Loading branch information
nliaudat authored Jun 22, 2024
1 parent 5e1995a commit 085376d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# change log
## v116:
* Revert ADC multisampling - not working good
## v115:
* esphome changes in 2024.6.1 release :
* Add ADC multisampling
Expand Down
16 changes: 8 additions & 8 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "15min"
bemf_trigger_initial_value: "0.33" # 0.105" for esphome < 2024.6
bemf_trigger_initial_value: "0.105" # 0.105" for esphome < 2024.6
tanh_steepness: "0.70" ### new parameter for heating_channel_tanh.yaml only
# do not change :
bemf_sensor_adc: BEMF_1_2_sensor_ADC
Expand Down Expand Up @@ -219,7 +219,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "16min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_1_2_sensor_ADC
Expand Down Expand Up @@ -253,7 +253,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "17min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_3_4_sensor_ADC
Expand Down Expand Up @@ -286,7 +286,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "18min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_3_4_sensor_ADC
Expand Down Expand Up @@ -326,7 +326,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "15min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_5_6_sensor_ADC
Expand Down Expand Up @@ -360,7 +360,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "16min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_5_6_sensor_ADC
Expand Down Expand Up @@ -393,7 +393,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "17min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_7_8_sensor_ADC
Expand Down Expand Up @@ -426,7 +426,7 @@ packages:
visual_max_temperature: "30 °C"
visual_temperature_step: "0.1 °C"
check_interval: "18min"
bemf_trigger_initial_value: "0.33"
bemf_trigger_initial_value: "0.105"
tanh_steepness: "0.70"
## do not change :
bemf_sensor_adc: BEMF_7_8_sensor_ADC
Expand Down
24 changes: 17 additions & 7 deletions sensor_adc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ sensor:
update_interval: 100ms # the start of motor need a lot of current (>480 mv), it must be averaged to not trigger the endstop. If 10ms, it always stop. The BEMF trigger must be approx 0.32mv
attenuation : 0db
accuracy_decimals: 3
samples: 10
# samples: 10
filters:
- offset: -0.075 # stall voltage : https://github.com/nliaudat/floor-heating-controller/wiki/BEMF-trigger-calculation
# - sliding_window_moving_average:
# window_size: 9
# send_every: 9
- sliding_window_moving_average:
window_size: 9
send_every: 9
id : BEMF_1_2_sensor_ADC

- platform: adc
Expand All @@ -24,9 +24,13 @@ sensor:
update_interval: 100ms
attenuation : 0db
accuracy_decimals: 3
samples: 10
# samples: 10
filters:
- offset: -0.075
- sliding_window_moving_average:
window_size: 9
send_every: 9

id : BEMF_3_4_sensor_ADC

- platform: adc
Expand All @@ -35,9 +39,12 @@ sensor:
update_interval: 100ms
attenuation : 0db
accuracy_decimals: 3
samples: 10
# samples: 10
filters:
- offset: -0.075
- sliding_window_moving_average:
window_size: 9
send_every: 9
id : BEMF_5_6_sensor_ADC

- platform: adc
Expand All @@ -46,9 +53,12 @@ sensor:
update_interval: 100ms
attenuation : 0db
accuracy_decimals: 3
samples: 10
# samples: 10
filters:
- offset: -0.075
- sliding_window_moving_average:
window_size: 9
send_every: 9
id : BEMF_7_8_sensor_ADC


Expand Down

0 comments on commit 085376d

Please sign in to comment.