forked from ArakniD/picoReflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py.EXAMPLE
112 lines (87 loc) · 3.29 KB
/
config.py.EXAMPLE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import logging
########################################################################
#
# General options
### Logging
log_level = logging.INFO
log_format = '%(asctime)s %(levelname)s %(name)s: %(message)s'
### Server
listening_ip = "0.0.0.0"
listening_port = 8081
### Cost Estimate
kwh_rate = 0.26 # Rate in currency_type to calculate cost to run job
currency_type = "EUR" # Currency Symbol to show when calculating cost to run job
########################################################################
#
# GPIO Setup (BCM SoC Numbering Schema)
#
# Check Orange Pi Zero doco from orangepi_PC_gpio_pyH3
#
### Outputs
gpio_reset = PA1 # Reset line for the MCP23008 chip
gpio_cool = PA2 # 38Vdc blower enable
gpio_watchdog = PA6 # watchdog, 250ms tickle
### Outputs via GPIO expander module
i2c_gpio_element_0 = 7
i2c_gpio_element_1 = 6
i2c_gpio_element_2 = 5
i2c_gpio_element_3 = 4
i2c_gpio_element_4 = 3
i2c_gpio_element_5 = 2
i2c_gpio_case = 1 # internal case cooling fan
i2c_gpio_air = 0 # re-circulate relay
i2c_gpio_bus = 0 # i2c bus used for GPIO expander
### Watchdog timer via i2c ds1371 chipset
i2c_watchdog_bus = 1
i2c_watchdog_id = 0x68
i2c_watchdog_reg = 0x07
i2c_watchdog_val = 0x0E
heater_invert = 0 # switches the polarity of the heater control
heater_ac_pattern = 6 # Number of AC element channels to cycle
heater_ac_time_ms = 10 # Half wave 50Hz
heater_ac_time_period = 10 # ten periods per cycle increment
### Inputs
gpio_door = -1
### Thermocouple Adapter selection:
# max31855 - bitbang SPI interface
# max31855spi - kernel SPI interface
# max6675 - bitbang SPI interface
max31850 = 1
max31855 = 0
max6675 = 0
max31855spi = 0 # if you use this one, you MUST reassign the default GPIO pins
## w1 thermocouple Connections
w1_id_top=3b-2cfc0958c4cc
w1_id_bottom=3b-2cfc0958c4e3
w1_id_hotair=3b-2cfc0958c4ee
### Thermocouple Connection (using bitbang interfaces)
gpio_sensor_cs = 27
gpio_sensor_clock = 22
gpio_sensor_data = 17
### Thermocouple SPI Connection (using adafrut drivers + kernel SPI interface)
spi_sensor_chip_id = 0
### amount of time, in seconds, to wait between reads of the thermocouple
sensor_time_wait = .5
########################################################################
#
# PID parameters
pid_ki = 0.1 # Integration
pid_kd = 0.4 # Derivative
pid_kp = 0.5 # Proportional
########################################################################
#
# Simulation parameters
sim_t_env = 25.0 # deg C
sim_c_heat = 100.0 # J/K heat capacity of heat element
sim_c_oven = 2000.0 # J/K heat capacity of oven
sim_p_heat = 3500.0 # W heating power of oven
sim_R_o_nocool = 1.0 # 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
########################################################################
#
# Time and Temperature parameters
temp_scale = "c" # c = Celsius | f = Fahrenheit - Unit to display
time_scale_slope = "s" # s = Seconds | m = Minutes | h = Hours - Slope displayed in temp_scale per time_scale_slope
time_scale_profile = "s" # s = Seconds | m = Minutes | h = Hours - Enter and view target time in time_scale_profile