基于温度传感器DS18B20的水温控制系统(电子设计大赛
水温控制系统(C题)重庆大学光电工程学院 参赛队员:吴 蔡 傅摘要 本水温控制系统是基于MSP430单片机为主控芯片,键盘输入设定温度,并在LCD1602上显示设定温度和实时温度。通过DS18B2
水温控制系统(C题) 重庆大学光电工程学院参赛队员:吴蔡傅 摘要 本水温控制系统是基于MSP430单片机为主控芯片,键盘输入设定温度,并在 LCD1602上显示设定温度和实时温度。通过DS18B20温度传感器对水温进行采样,将采得的 数字温度信号送给单片机,单片机对温度进行PID算法,通过改变加热控制方波的占空比达 到精确控制温度的目的。本水温控制系统的静态误差≤0.2°C,当设定的温度比实时温度高 0.12°C时,则启动风扇降温,10分钟左右到达稳定状态。本系统能够很精确地实现水温控 制,是一个很好的水温控制方案。 MSP430PID算法DS18B20温度传感器 关键字 :ThetemperaturecontrolsystemisbasedontheMSP430microcontrollerasthemaster Abstract chip,controltemperatureissetthroughkeyboardandtheLCD1602displaythecontrol temperatureandthereal-timetemperature.TemperaturesensorDS18B20samplesthewater temperatureandsentsthedigitalsignaltothemicrocontroller,themicrocontrolleronthe temperatureofPIDalgorithmchangesthedutycycleofheatingcontrolsquarewavetoachieve precisecontroloftemperature.Thetemperaturecontrolsystemofstaticerror≤0.2°C.whenthe settemperaturehigherthanthereal-timetemperature0.12°C,thenthefanstartstocool, reachingthesteadystatecostabout10minutes.Thesystemcanachieveaveryprecise temperaturecontrol,thistemperaturecontrolisagoodprogram. MSP430PIDalgorithmtemperaturesensorDS18B20 Keywords:

