英语翻译Conversion of the thermistor and setpoint potentiometer resistance values to temperature values utilize different approaches.For the thermistor,data is provided by the manufacturer to correlate resistance and temperature.For most NTC ther
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 02:37:46
英语翻译Conversion of the thermistor and setpoint potentiometer resistance values to temperature values utilize different approaches.For the thermistor,data is provided by the manufacturer to correlate resistance and temperature.For most NTC ther
英语翻译
Conversion of the thermistor and setpoint potentiometer resistance values to temperature values utilize different approaches.For the thermistor,data is provided by the manufacturer to correlate resistance and temperature.For most NTC thermistors,the data is provided only in 5-deg Celsius increments.For the purposes of a residential thermostat,the resistance values for the temperatures between these points have been interpolated linearly in one-degree increments.This data is represented in the software as a table,indexed by one-degree values.The software determines the index at which the resistance value falls,and adds this to the minimum temperature value (60°) to produce the current temperature.
In contrast,the setpoint potentiometer resistance is converted with an equation that seeks to span the temperature range (65° to 90°) across the resistance range of the circuit (4.7kΩ to 14.7kΩ).The resistance range is evenly distributed among the available number of degrees (26).With 65° being represented by the bottom of the range,this leaves 25 segments to be represented by 10k.There are 25 400Ω segments in this range.Keeping in mind that all resistances within the program code are represented as actual resistance divided by 100,a temperature value between 65-90° can be reached by subtracting 47 (4.7kΩ) from the potentiometer resistance and dividing by 4 (400Ω).For example,a potentiometer resistance of 14.7k is represented within the program as 147; subtracting 47 and dividing by 4 results in 90°.Note that the potentiometer value was carefully chosen so that the divisor would be a value of 2n.This allows the division to be handled by right-shift instructions,significantly reducing execution cycles and power draw.
To avoid the potential for rapid alteration between heat and cool when the current temperature is near the setpoint,a +/- 1 degree error is allowed when determining whether to “heat” or “cool”.If the current temperature is not within this range of the setpoint temperature,the appropriate heat/cool LED is driven.
英语翻译Conversion of the thermistor and setpoint potentiometer resistance values to temperature values utilize different approaches.For the thermistor,data is provided by the manufacturer to correlate resistance and temperature.For most NTC ther
热敏电阻的电阻值和设定电位器转换为温度值,利用不同的方法.对于热敏电阻,数据是厂家提供的关联性和温度.对于大多数NTC热敏电阻,仅提供数据,以5度摄氏递增.对于一个住宅恒温的目的,为的电阻值
这些点之间的温度已经被插在一个线性度递增.这个数据表示为表中的软件1度值的索引.该软件确定索引,电阻值下降,并增加了这最低温度值(60 °)来产生电流的温度.
与此相反,设定点电位器电阻是用一个公式转换,力求横跨电路的电阻范围(4.7kΩ上至14.7kΩ)温度范围(65°〜90°).该电阻范围是平均分配的学位数目(26).随着65 °正由底部为代表的范围,这使得25段由10K的代表.
有25个400Ω在这个范围内段.记住,在程序代码中的所有电阻除以100为代表的实际电阻保持一致,一间65-90·温度值可达到减去47电位器电阻(4.7kΩ上)和4(400Ω)分割.例如,一个电位器阻值的14.7k内表示,作为147计划;
减去47分和4个结果,在90°.请注意,电位器的值是经过精心选择,使除数将是2n个值.这使得该司负责处理右移指令,从而大大减少执行周期和功耗.
为了避免热之间的潜力,迅速改变目前的温度时,冷却附近的设定值,一个+/是- 1度时,允许误差是否要“热“或”冷“确定.如果当前的温度是不属于这个设定温度,适当的加热/制冷的LED驱动范围.