make example config same as standard config

This commit is contained in:
jbruce12000 2022-04-05 16:58:36 -04:00
parent 1acc57733c
commit 273ef866cc

View File

@ -1,5 +1,7 @@
import logging
from lib.max31856 import MAX31856
# uncomment this if using MAX-31856
#from lib.max31856 import MAX31856
########################################################################
#
@ -35,7 +37,8 @@ gpio_heat = 23 # Switches zero-cross solid-state-relay
max31855 = 1
max31856 = 0
# see lib/max31856.py for other thermocouple_type, only applies to max31856
thermocouple_type = MAX31856.MAX31856_S_TYPE
# uncomment this if using MAX-31856
#thermocouple_type = MAX31856.MAX31856_S_TYPE
### Thermocouple Connection (using bitbang interfaces)
gpio_sensor_cs = 27
@ -61,16 +64,10 @@ sensor_time_wait = 2
# well with the simulated oven. You must tune them to work well with
# your specific kiln. Note that the integral pid_ki is
# inverted so that a smaller number means more integral action.
pid_kp = 25 # Proportional
pid_ki = 200 # Integral
pid_kd = 200 # Derivative
# from experimentation
#pid_kp = 10 # Proportional
#pid_ki = 50 # Integral
#pid_kd = 100 # Derivative
# from ZN tuning
pid_kp = 3.0662264423638184
pid_ki = 61.295706065671204
pid_kd = 144.07164331295013
########################################################################
#
@ -86,12 +83,12 @@ stop_integral_windup = True
########################################################################
#
# Simulation parameters
simulate = False
simulate = True
sim_t_env = 60.0 # deg C
sim_c_heat = 100.0 # J/K heat capacity of heat element
sim_c_oven = 5000.0 # J/K heat capacity of oven
sim_p_heat = 5450.0 # W heating power of oven
sim_R_o_nocool = 1.0 # K/W thermal resistance oven -> environment
sim_R_o_nocool = 0.1 # K/W thermal resistance oven -> environment
sim_R_o_cool = 0.05 # K/W " with cooling
sim_R_ho_noair = 0.1 # K/W thermal resistance heat element -> oven
sim_R_ho_air = 0.05 # K/W " with internal air circulation
@ -121,7 +118,7 @@ emergency_shutoff_temp = 2264 #cone 7
# wanted temperature, the schedule will run forever. This is often used
# for heating as fast as possible in a section of a kiln schedule/profile.
kiln_must_catch_up = True
kiln_must_catch_up_max_error = 10 #degrees
kiln_must_catch_up_max_error = 5 #degrees
# thermocouple offset
# If you put your thermocouple in ice water and it reads 36F, you can
@ -143,3 +140,11 @@ temperature_average_samples = 40
# Thermocouple AC frequency filtering - set to True if in a 50Hz locale, else leave at False for 60Hz locale
ac_freq_50hz = False
# There are all kinds of emergencies that can happen including:
# - temperature is too high (emergency_shutoff_temp exceeded)
# - lost connection to thermocouple
# - unknown error with thermocouple
# - too many errors in a short period from thermocouple
# and some people just want to ignore all of that and just log the emergencies but do not quit
ignore_emergencies = False