diff --git a/.gitignore b/.gitignore index 28ffcd7..ddcef0f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ .*.sw? # generated config HEX files -utils/*.hex +eeprom_config/*.hex test/* !test/*.c diff --git a/eeprom_config/config_dps5005.yaml b/eeprom_config/config_dps5005.yaml new file mode 100644 index 0000000..23c90cd --- /dev/null +++ b/eeprom_config/config_dps5005.yaml @@ -0,0 +1,35 @@ +# Values for the cooler of the FT-817 radio. +flags: + USE_DCDC_CONTROL: true + + +config: + # temperature corridor definition + CORRIDOR_MIN_TEMPERATURE: 28.0 + CORRIDOR_MAX_TEMPERATURE: 32.0 + + # The fan is started when temperature rises above this temperature. + FAN_START_TEMPERATURE: 30.0 + + # The fan is stopped when the temperature falls below this point. + FAN_OFF_TEMPERATURE: 25.0 + + # Emergency temperature level. If this is reached, the duty cycle is directly + # set to the maximum to skip a long ramp-up phase. + EMERGENCY_TEMPERATURE: 40.0 + + # The fan PWM duty cycle cannot fall below this limit. It is held until + # temperature falls below the off-temperature. + DUTY_CYCLE_MIN: 25.0 + + # The fan PWM duty cycle cannot go above this limit. Should be set to 100. + DUTY_CYCLE_MAX: 100.0 + + # The fan is always started with this duty cycle. Do not set too low. + DUTY_CYCLE_START: 60.0 + + # gain unit: percent duty cycle change per °C deviation per update cycle (100 ms) + GAIN_T_HIGH_P: 2.000 + GAIN_T_HIGH_I: 0.125 + GAIN_T_LOW_P: 0.000 + GAIN_T_LOW_I: 0.125 diff --git a/eeprom_config/config_ft817.yaml b/eeprom_config/config_ft817.yaml index b335f2a..130f8e4 100644 --- a/eeprom_config/config_ft817.yaml +++ b/eeprom_config/config_ft817.yaml @@ -1,6 +1,6 @@ # Values for the cooler of the FT-817 radio. flags: - USE_DCDC_CONTROL: true + USE_DCDC_CONTROL: false config: @@ -20,13 +20,13 @@ config: # The fan PWM duty cycle cannot fall below this limit. It is held until # temperature falls below the off-temperature. - DUTY_CYCLE_MIN: 30.0 + DUTY_CYCLE_MIN: 5.0 # The fan PWM duty cycle cannot go above this limit. Should be set to 100. DUTY_CYCLE_MAX: 100.0 # The fan is always started with this duty cycle. Do not set too low. - DUTY_CYCLE_START: 70.0 + DUTY_CYCLE_START: 20.0 # gain unit: percent duty cycle change per °C deviation per update cycle (100 ms) GAIN_T_HIGH_P: 2.000 diff --git a/eeprom_config/config_test.yaml b/eeprom_config/config_test.yaml new file mode 100644 index 0000000..0bb8aa5 --- /dev/null +++ b/eeprom_config/config_test.yaml @@ -0,0 +1,35 @@ +# Values for the cooler of the FT-817 radio. +flags: + USE_DCDC_CONTROL: true + + +config: + # temperature corridor definition + CORRIDOR_MIN_TEMPERATURE: 24.0 + CORRIDOR_MAX_TEMPERATURE: 26.0 + + # The fan is started when temperature rises above this temperature. + FAN_START_TEMPERATURE: 20.0 + + # The fan is stopped when the temperature falls below this point. + FAN_OFF_TEMPERATURE: 0.0 + + # Emergency temperature level. If this is reached, the duty cycle is directly + # set to the maximum to skip a long ramp-up phase. + EMERGENCY_TEMPERATURE: 40.0 + + # The fan PWM duty cycle cannot fall below this limit. It is held until + # temperature falls below the off-temperature. + DUTY_CYCLE_MIN: 20.0 + + # The fan PWM duty cycle cannot go above this limit. Should be set to 100. + DUTY_CYCLE_MAX: 100.0 + + # The fan is always started with this duty cycle. Do not set too low. + DUTY_CYCLE_START: 60.0 + + # gain unit: percent duty cycle change per °C deviation per update cycle (100 ms) + GAIN_T_HIGH_P: 2.000 + GAIN_T_HIGH_I: 0.125 + GAIN_T_LOW_P: 0.000 + GAIN_T_LOW_I: 0.125