STC-1000p-STM8 USER MANUAL<br>
=====================
Mats Staffansson / Emile
© 2014-2020
# Changelog
2016-11-04: First version of STC-1000p for STM8<br>
2016-12-05: Direct- (heating-loop) or reverse-acting (cooling-loop) PID now selectable with **Hc** parameter<br>
2020-02-29: Option added (**Pb** = 2) to control a refrigerator and the compressor fan
# Features
* Fahrenheit or Celsius display selectable with **CF** parameter
* Minutes or hours time-base selectable with **Hrs** parameter
* PID-controller selectable with adjustable **Kc**, **Ti**, **Td** and **Ts** parameters
* PID-output polarity selectable with **Kc** parameter. Forward-acting (heating-loop) or reverse-acting (cooling-loop)
* PID-output signal (slow PWM, T=12.5 sec) present at **S3 output** for connection to a Solid-State Relay (SSR)
* Standard thermostat functionality available when PID-controller is disabled (**TS** parameter set to 0)
* Second temperature probe functionality selectable with **Pb2** parameter. If **Pb2** is set to 0, no second temperature probe is connected.
..+ With **Pb2** set to 1, the second temperature probe should measure the outside temperature. Used in thermostat control.
..+ With **Pb** set to 2, the second temperature probe should measure the compressor temperature of a refrigerator. Used in refrigerator mode to also control the compressor fan.
* Up to 4 profiles with up to 6 setpoints (6 profiles with 10 setpoints if the STM8S003F3 is replaced with a STM8S103FS µC)
* Each setpoint can be held for 1-999 hours (i.e. up to ~41 days) or 1-999 minutes (i.e. up to ~16 hours)
* Approximative ramping
* Somewhat intuitive menus for configuring
* Separate delay settings for cooling and heating
* Configurable hysteresis (allowable temp swing) from 0.0 to 2.5°C or 0.0 to 5.0°F
* User definable alarm when temperature is out of or within range
* Easy displaying of setpoint, thermostat/PID-mode, actual temperature (default), 2nd temperature and PID-output (%)
# Using the STC-1000p-STM8 firmware
## Navigation and menus
By default the current temperature is displayed in °C or °F on the display, depending on the **CF** parameter. Pressing the 'S' button enters the menu. Pressing button 'Up' and 'Down' scrolls through the menu items.
Button 'S' selects and 'Power' button steps back or cancels current selection.
The menu is divided in two steps. When first pressing 'S', the following choices are presented:
|Menu item|Description|
|--------|-------|
|Pr0|Set parameters for profile 0|
|Pr1|Set parameters for profile 1|
|Pr2|Set parameters for profile 2|
|Pr3|Set parameters for profile 3|
|Pr4|Set parameters for profile 4 (STM8S103F3 only)|
|Pr5|Set parameters for profile 5 (STM8S103F3 only)|
|Set|Settings menu|
*Table 2: Menu items*
Selecting one of the profiles enters the submenu for that profile.
Pr0-3 submenus have the following items:
|Sub menu item|Description|Values|
|--------|-------|-------|
|SP0|Set setpoint 0|-40.0 to 140͒°C or -40.0 to 250°F|
|dh0|Set duration 0|0 to 999 hours|
|...|Set setpoint/duration x|...|
|dh4 (dh8 with STM8S103F3)|Set duration 4 (8)|0 to 999 hours|
|SP5 (SP9 with STM8S103FS)|Set setpoint 5 (9)|-40.0 to 140°C or -40.0 to 250°F|
*Table 3: Profile sub-menu items*
You can change all the setpoints and durations associated with that profile from here. When running the programmed profile, *SP0* will be the initial setpoint, it will be held for *dh0* hours (unless ramping is used).
After that *SP1* will be used as setpoint for dh1 hours. The profile will stop running when a duration (*dh*) of 0 hours OR last step is reached (consider *dh5* implicitly 0). When the profile has ended, STC-1000p-STM8 will automatically switch to thermostat mode with the last reached setpoint. (So I guess you could also consider a *dh* value of 0 as infinite hours).
The settings menu has the following items:
|Sub menu item|Description|Values|
|---|---|---|
|SP|Set setpoint|-40 to 140°C or -40 to 250°F|
|hy|Set hysteresis|0.0 to 5.0°C or 0.0 to 10.0°F|
|hy2|Set hysteresis for 2nd temp probe|0.0 to 25.0°C or 0.0 to 50.0°F|
|tc|Set temperature correction|-5.0 to 5.0°C or -10.0 to 10.0°F|
|tc2|Set temperature correction for 2nd temp probe|-5.0 to 5.0°C or -10.0 to 10.0°F|
|SA|Setpoint alarm|0 = off, -40 to 40°C or -80 to 80°F|
|St|Set current profile step|0 to 4 (8)|
|dh|Set current profile duration|0 to 999 hours|
|cd|Set cooling delay|0 to 60 minutes|
|hd|Set heating delay|0 to 60 minutes|
|rP|Ramping|0 = off, 1 = on|
|cF|Celsius or Fahrenheit display|0 = Celsius, 1 = Fahrenheit|
|Pb2|Enable second temp probe for use in thermostat control|0 = off, 1 = on, 2 = refrigerator mode with compressor fan control|
|HrS|Select Hours or Minutes time-base|0 = minutes, 1 = hours|
|Hc|Kc parameter for PID-controller in %/°C|-9999 to 9999|
|Ti|Ti parameter for PID-controller in seconds|0 to 9999|
|Td|Td parameter for PID-controller in seconds|0 to 9999|
|Ts|Ts parameter for PID-controller in seconds|0 to 9999|
|rn|Set run mode|Pr0 to Pr5 and th|
*Table 4: Settings sub-menu items*
**Setpoint**, well... The desired temperature to keep. The way STC-1000p-STM8 firmware works, setpoint is *always* the value the thermostat or the PID-controller strives towards, even when running a profile. What the profile does is simply setting the setpoint at given times.
**Hysteresis**: This parameter is used when the thermostat controls the temperature (**Ts** is set to 0). This parameter then controls the allowable temperature range around the setpoint where the thermostat will not change state. For example, if temperature is greater than setpoint + hysteresis AND the time passed since last cooling cycle is greater than cooling delay, then cooling relay will be engaged. Once the temperature reaches setpoint again, cooling relay will be disengaged.
**Hysteresis 2**, This parameter is used when the thermostat controls the temperature (**Ts** is set to 0). Futhermore if **Pb2** is set to 1, temperature probe 2 should measure the environmental temperature. Now the allowable temperature range around the setpoint for temperature probe 2 is controlled. For example, if temperature 2 is less than **SP - hy2**, the cooling relay will cut out even if **SP - hy** has not been reached for temperature. Also, cooling will not be allowed again, until temperature 2 exceeds **SP - 0.5 \* hy2** (that is, it has regained at least half the hysteresis).<br>
If **Pb2** is set to 2, then this parameter controls the compressor fan (which should be connected to the heater output). For example: if **Hysteresis 2** is set to 100 E-1 °C, the compressor fan is switched on when probe 2 temperature exceeds 35 °C (30 + **Hysteresis 2**/2) and switched off when probe 2 temperature is below 25 °C (30 - **Hysteresis 2**/2). Temperature probe 2 should in this case be attached to one of the compressor output pipes (which should get hot when the compressor is turned on).
**Temperature correction**, will be added to the temperature sensor, this allows the user to calibrate the temperature reading. It is best to calibrate with a precision resistor of 10 k Ohms (1% tolerance). Replace the temperature sensor with such a resistor, let the STC-1000p-STM8 run for at-least half an hour and adjust this parameter such that the temperature display is set to 25.0 °C.
**Temperature correction 2**, same as *temperature correction*, but for the second temperature probe. If you remove the existing 2-pin terminal-block and replace it with a 5-pin terminal-block (see below for details), you can connect a second temperature sensor. The 1st temperature sensor is connected to pins 2 and 3 (seen from the left), the 2nd temperature sensor can now be connected between 1 and 2. Enable this 2nd sensor with the **Pb2** parameter.
**Setpoint alarm**, if setpoint alarm is greater than 0.0, then the alarm will sound once temperature differs from *SP* by more than *SA* degrees (this can be useful to warn against ma
没有合适的资源?快使用搜索试试~ 我知道了~
用于 STM8微控制器的 STC1000p (硬件版本 WR-032)_Assembly_代码_相关文件_下载
共147个文件
i:28个
o:26个
jpg:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 162 浏览量
2022-07-07
22:40:58
上传
评论
收藏 4.71MB ZIP 举报
温馨提示
版本的 STC-1000p (STC-1000p-STM8) 在很大程度上基于 Mats Staffansson 的精美作品,他在其中创建了固件的开源实现) 用于 STC-1000 双级恒温器。Mats 版本被许多家庭酿酒商用于自动化他们的啤酒厂/气候室。硬件由一个相当有限的PIC16F1828微控制器 (µC) 控制。尽管有这些限制,Mats 还是成功地添加了 6 个配置文件,每个配置文件最多包含 9 个温度-时间对。 我买了几个 STC-1000 设备,它们有另一个带有完全不同板载硬件的 µC。它是STM8S003F3 µC。作为一名电气工程师,我想对硬件进行逆向工程,创建原理图和新电路板,并(如 Mats)添加新功能。您可以在此处找到所有原理图(带有 Eagle 设计文件)。我也开始使用 Mats 软件,但需要对其进行大量修改才能在新的硬件平台上运行。 添加了以下附加功能,这些功能在 Mats 的固件中不存在(有关更多详细信息,请参阅用户手册): 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
用于 STM8微控制器的 STC1000p (硬件版本 WR-032)_Assembly_代码_相关文件_下载
(147个子文件)
stc1000p.Release.cspy.bat 2KB
stc1000p.Debug.cspy.bat 2KB
stc1000p.pbd.browse 335KB
stc1000p.pbd.browse 295KB
stc1000p_lib.c 47KB
stc1000p.c 23KB
ovbsc.c 11KB
scheduler.c 7KB
pid.c 5KB
adc.c 5KB
eep.c 3KB
stc1000p_lib.pbi.cout 11KB
scheduler.pbi.cout 11KB
stc1000p.pbi.cout 11KB
adc.pbi.cout 11KB
eep.pbi.cout 11KB
stc1000p_lib.pbi.cout 11KB
scheduler.pbi.cout 11KB
stc1000p.pbi.cout 11KB
pid.pbi.cout 11KB
adc.pbi.cout 11KB
eep.pbi.cout 11KB
main.pbi.cout 11KB
stc1000p.dbgdt 63KB
stc1000p.dni 992B
stc1000p.dnx 3KB
stc1000p.ewd 15KB
stc1000p.ewp 56KB
Backup of stc1000p.ewp 42KB
stc1000p.ewt 155KB
stc1000p_dev.eww 152B
.gitattributes 378B
.gitignore 753B
stc1000p_lib.h 16KB
stc1000p.h 6KB
scheduler.h 2KB
adc.h 1KB
pid.h 1KB
eep.h 1KB
stc1000p_stm8s103f3_6pr_9tt_4digits.hex 19KB
stc1000p_stm8s103f3_6pr_9tt.hex 19KB
stc1000p_stm8s003f3_4pr_5tt.hex 18KB
stc1000p_lib.i 183KB
stc1000p.i 180KB
adc.i 139KB
eep.i 137KB
scheduler.i 65KB
pid.i 54KB
EW4385.tmp.i 63B
EW8745.tmp.i 63B
EW536F.tmp.i 63B
EWD82C.tmp.i 63B
EW2634.tmp.i 63B
EW62E7.tmp.i 63B
EW4A33.tmp.i 63B
EW787F.tmp.i 63B
EW71A3.tmp.i 63B
EW69B2.tmp.i 63B
EW634B.tmp.i 63B
EWF3FE.tmp.i 63B
EWFBE7.tmp.i 63B
EWD829.tmp.i 63B
EW2289.tmp.i 63B
EW4BD9.tmp.i 63B
EW8DBD.tmp.i 63B
EW5EAC.tmp.i 63B
EWB79.tmp.i 62B
EWF59.tmp.i 62B
EWDE5.tmp.i 62B
EW712.tmp.i 62B
M05 connector-2.jpg 858KB
swim_interface.jpg 557KB
SSR_stc1000.jpg 227KB
backplane_wr032_v2_changes.jpg 162KB
backplane_wr032_v2.jpg 160KB
wr032_v2_changes.jpg 138KB
stc1000_top.jpg 78KB
s3_output.jpg 76KB
stc1000_v2_top.jpg 73KB
frontpanel_backplane.jpg 72KB
R5_position.jpg 72KB
R5_position.jpg 72KB
temp_probe2.jpg 49KB
frontpanel_bottom_view.jpg 43KB
stm8s_removed.jpg 24KB
LICENSE 34KB
stc1000p.map 36KB
README.md 13KB
OVBSC.md 12KB
WR-032-v2-2016-4-7.md 4KB
README.md 29KB
stc1000p.o 60KB
stc1000p_lib.o 58KB
scheduler.o 19KB
adc.o 14KB
pid.o 14KB
eep.o 8KB
main.o 3KB
EW23A5.tmp.o 2KB
EW9631.tmp.o 2KB
共 147 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功