【正文】
ical technology, medical physiotherapy equipment tends to be highprecision, high intelligence to play the physical efficacy of traditional Chinese medicine. Designed a PID algorithmbased Chinese medicine treatments thermostatic control system on the working principle of the system hardware circuit and software design, discusses the principle of digital PID controller and its constant temperature control system. Controller by the microcontroller, temperature acquisition module, temperature control module, display modules and other modules can be bined with onsite temperature and the target temperature set by the user, using PID algorithms and PWM technology, the temperature is gradually stable set by the user target. The application button is set target temperature, heating time, the LCD display realtime, temperature and heating countdown display is being heated, timer countdown, alarm status of the three green, yellow, red lantern. The controller can meet the the physiotherapy temperature control equipment needs and control accuracy, more convenient, intelligent, with the majority of the market demand. Key words: PID , Constant temperature control , Physiotherapy 本科畢業(yè)論文 III 目 錄 第一章 緒論 ............................................................................................................ 1 選題的背景與意義 ............................................................................................... 1 .................................................................................................. 1 .................................................................................................. 1 研究現(xiàn)狀及發(fā)展趨勢(shì) ............................................................................................ 1 .................................................................................................. 1 展趨勢(shì) .................................................................................................. 2 論文研究的目標(biāo)及主要內(nèi)容 ................................................................................. 2 ........................................................................................... 2 .................................................................................... 2 第二章 硬件電路設(shè)計(jì) .................................................................................................... 4 系統(tǒng)硬件總體框圖 .............................................................................................. 4 系統(tǒng)主要模塊方案的設(shè)計(jì)與論證 .......................................................................... 4 測(cè)溫模塊 ................................................................................................. 4 ........................................................................................... 5 .................................................................................................. 5 STC89C52 單片機(jī)最小系統(tǒng) .................................................................................. 5 STC89C52單片機(jī)簡(jiǎn)介 ............................................................................... 5 單片機(jī)復(fù)位電路 ..................................................................................... 6 單片機(jī)時(shí)鐘電路 ..................................................................................... 7 控制器 I/O口分配 .................................................................................. 7 按鍵接口電路 ...................................................................................................... 7 顯 示電路 ............................................................................................................ 8 LCD1602概述 ......................................................................................... 8 LCD1602引腳功能 .................................................................................. 8 指示燈與報(bào)警電路 .............................................................................................. 9 溫度采集電路 .................................................................................................. 10 DS18B20簡(jiǎn)介 ......................................................................................... 10 DS18B20測(cè)溫原理 .................................................................................. 10 DS18B20與單片機(jī)接口電路 .................................................................... 10 溫度控制電路 ................................................................................................... 11 PWM波控制 ............................................................................................ 11 ............................................................................................ 12 串行通信電路 .................................................................................................... 12 DS1302時(shí)鐘電路 ........................................................................................... 13 DS1302的結(jié)構(gòu) ..................................................................................... 13 DS1302與單片機(jī)接口電路 .................................................................... 14 供電電路 .................................................................................................. 14 第三章 系統(tǒng)軟件設(shè)計(jì) .................................................................................................... 16 系統(tǒng)總體程序流程圖 ....................................................................................... 16 本科畢業(yè)論文 IV 按鍵功能程序 .................................................................................................. 18 顯示程序 .......................................................................................................... 22 溫度采集程序 ................................................................................................... 23 溫度控制程序 ........................................................................