Temperature Control Using a Microcontroller
Temperature controlling method of refrigerator usi

专利名称:Temperature controlling method ofrefrigerator using microprocessor发明人:Jeong, Seong-wook,Kim, Jae-in, 707-908Jugong Apt.,Kang, Yung-seog, 3-812,Samsung Apt. 333-3申请号:EP95308573.5申请日:19951129公开号:EP0715236A1公开日:19960605专利内容由知识产权出版社提供专利附图:摘要:A temperature controlling method of a refrigerator by using a microprocessorincludes the steps of: sampling digitized temperature values counted by an analog-to-digital converter according to a predetermined temperature range by a predetermined frequency by using the microprocessor; when the number (X') of a temperature value (X) counted with the most frequency is not less than a desired frequency, selecting the temperature value with the most frequency as a controlling temperature; when the number (X') of the temperature value (X) counted with the most frequency is less than the desired frequency, selecting a value obtained by adding/subtracting a predetermined temperature value which is less than the predetermined temperature range to/from the temperature value (X) with the most frequency as the controlling temperature; and selecting a temperature value obtained by applying the steps to at least two temperature values (Y)(Z) counted with the second most frequency and the third most frequency, as the controlling temperature. Quantitative sampling is carried out on the temperature value less than resolving power of a microprocessor, and a controlling temperature value is then obtained from the sampled value and used for controlling the inner temperature of the refrigerator, so that the inner temperature can be maintained in the optimal condition.申请人:Samsung Electronics Co., Ltd.地址:416 Maetan 3-Dong, Paldal-gu Suwon-city, Kyungki-do 441-370 KR国籍:KR代理机构:Brandon, Paul Laurence更多信息请下载全文后查看。
可以调节温度作文英语

可以调节温度作文英语标题,The Importance of Temperature Control。
In our modern world, temperature control has become an integral aspect of our daily lives. From adjusting the thermostat in our homes to regulating the temperature ofour food, the ability to control temperature brings comfort, safety, and efficiency. In this essay, we will explore the significance of temperature control in various aspects oflife and its impact on society.First and foremost, temperature control plays a crucial role in maintaining a comfortable living environment. Whether it's during the scorching heat of summer or thebitter cold of winter, having the ability to adjust the temperature indoors ensures that individuals can escape extreme weather conditions and stay cozy and relaxed within their homes. This not only enhances the quality of life but also promotes overall well-being by reducing stress and discomfort.Moreover, temperature control is essential for preserving perishable goods and maintaining food safety. In industries such as agriculture, food processing, and healthcare, precise temperature regulation is critical for preserving the freshness and quality of products, preventing spoilage, and minimizing the risk of foodborne illnesses. From cold storage facilities to refrigerated transportation, temperature control technologies play a vital role in ensuring that food reaches consumers safely and remains safe for consumption.Furthermore, temperature control is indispensable in various industrial processes and manufacturing operations. Many industrial processes require specific temperature conditions to ensure optimal performance and product quality. For example, in the pharmaceutical industry, precise temperature control is necessary during drug manufacturing to maintain the stability and efficacy of medications. Similarly, in the electronics industry, controlling the temperature during the production of semiconductors and electronic components is essential toprevent defects and ensure product reliability.In addition to its practical applications, temperature control also has significant implications for energy efficiency and environmental sustainability. By optimizing temperature settings and implementing energy-efficient heating, ventilation, and air conditioning (HVAC) systems, individuals and businesses can reduce energy consumption, lower utility costs, and minimize their carbon footprint. Moreover, advancements in renewable energy technologies, such as solar heating and geothermal cooling, offer sustainable alternatives for temperature control, further reducing reliance on fossil fuels and mitigating climate change.Furthermore, temperature control plays a critical rolein healthcare and medical treatment. From maintaining the right temperature in hospital environments to regulatingthe temperature of medical equipment and storage facilities, precise temperature control is essential for ensuringpatient comfort, preserving medications and vaccines, and facilitating medical procedures. In situations such assurgeries and intensive care units, maintaining optimal body temperature through methods like thermoregulation devices is crucial for patient safety and recovery.In conclusion, temperature control is an indispensable aspect of modern life with far-reaching implications for comfort, safety, efficiency, and sustainability. Whetherit's maintaining a comfortable indoor environment, preserving food and perishable goods, optimizing industrial processes, conserving energy, or promoting healthcare, the ability to regulate temperature plays a vital role in enhancing our quality of life and shaping the future of society.(Word count: 475)。
温湿度控制中英文

外文原文Single chip microcomputer and the development of the temperature and humidity sensorAbstract:Temperature control system has been widely used over the past decades. In this paper, a general architecture of distributed temperature control system is put forward based on multi-sensor data fusion and CAN bus. A new method of multi-sensor data fusion based on parameter estimation is proposed for the distributed temperature control system. The major feature of the system is its generality, which is suitable for many fields of large scale temperature control. Experiment shows that this system possesses higher accuracy, reliability, good real—time characteristic and wide application prospectBorn in the 1970 s single chip microcomputer, and experience the SCM, MCU, SOC three phases.(1) SCM namely Single Chip computer stage, main is to seek out the monolithic forms of the embedded system best system structure. "Innovation mode" success, laid the SCM and general computer completely different development road.(2) MCU namely Micro Controller (Micro Controller Unit) stage, the main technological development direction is: expanding meet embedded application, the object system requirements of various peripheral circuit and interface circuit, dash forward show its object the intelligent control ability.(3) MCU is embedded system independent development way, to a key factor to the development of MCU stage, is to seek application system on a chip in the maximization of the solution; Therefore, special MCU development natural form the SOC tendency. With microelectronics technology, IC design, EDA tools development, based on the single chip microcomputer application system SOC design can have larger development.Temperature is a basic physical quantities, everything in nature is closely related with the process of temperature. The temperature sensoris the earliest development, the most widely used kind of sensor. From 17 th century people began to use temperature measuring. The temperature sensor there are four main types: thermocouple, thermal resistance, resistance temperature detector (RTD) and temperature sensor IC. IC temperature sensor and including analog output and digital output two types. Contact temperature sensor detection part and the tested object has a good contact, and calls the thermometer. The thermometer through the transmission or convection reach thermal equilibrium, thus make the thermometer and value can be measured directly says the temperature of the objects. General measurement precision. In a certain temperature range, the thermometer can also be measuring objects of internal temperature distribution. But for sports body, small target or heat capacity is very small objects will produce larger measurement error, commonly used a thermometer have two-metal thermometer, glass liquid thermometer, pressure type thermometer, resistance thermometers, thermistors and temperature difference electric dipole, etc. Contactless temperature sensor sensitive components and tested object each other is not contact, again say non-contact highlighted.it table. This instrument can be used to measure movement object, small goals and heat capacity small or temperature change quickly (transient) the surface temperature of the object, also can used for the measurement of the temperature distribution.Distributed temperature control system has been widely used in our daily life and production, including intelligent building, greenhouse, constant temperature workshop, large and medium granary, depot, and soon[1]. This kind of system should ensure that the environment temperaturecan be kept between two predefined limits. In the conventional temperature measurement systems we build a network through RS-485 Bus using a single-chip metering system based on temperature sensors. With the aid of the network, we can carry out centralized monitoring and controlling. However, when the monitoring area is much more widespread and transmission distance becomes farther, the disadvantages of RS-485 Bus become more obvious. In this situation, the transmission and response speed becomes lower, the anti-interference ability becomes worse. Therefore, we shouldseek out a new communication method to solve the problems produced by RS-485 Bus.During all the communication manners, the industrial control-oriented field bus technology can ensure that we can break through the limitation of traditional point to point communication mode and build up a real distributed control and centralized management system. As a serial communication protocol supporting distributed real-time control, CAN bus has much more merits than RS-485 Bus, such as better error correction ability, better real-time ability, lower cost and so on. Presently, it has been extensively used in the implementation of distributed measurement and control domains.With the development of sensory technology, more and more systems begin to adopt multi-sensor data fusion technology to improve their performances. Multi-sensor data fusion is a kind of paradigm for integrating the data from multiple sources to synthesize the newinformation so that the whole is greater than the sum of its parts [3][4][5].And it is a critical task both in the contemporary and future systems which have distributed networks of low-cost, resource-constrained sensors1.AVR devices profileA VR MCU is 1997 by ATMEL company developed of enhanced the built-in Flash RISC (Reduced Instruction Set CPU) Reduced Instruction Set high speed eight microcontroller. AVR single-chip can be widely used in computer external equipment, industrial real-time control, instrument and apparatus, communication equipment, household electrical appliances, etc. In 1997, the Atmel company Norway design center of Mr. A and V sir, the use of the new technology Atmel company Flash, to research the RISC reduced instruction set high speed eight microcontroller, hereinafter referred to as the AVR.Avr microcontroller characteristicsAVR microcontroller hardware structure take eight machine and 16 machine of compromise strategies that use local registers of deposit (32 register file) and monomer high-speed input/output scheme (i.e. input capture registers, output is matching register and the corresponding control logic). Improve the instruction execution speed (1 Mips/MHz), overcome the bottlenecks, and enhance the function; At the same time, reduce the cost of the management of foreign set, relative simplified the hardware structure, reduce the costs. So AVR microcomputer in the soft/hardware cost, speed, performance and cost many has made optimization balance, is a cost-effective microcontroller.AVR SCM's I/O line can be set on the all take pull-up resistors, set separately for input/output, can be set (initial) the high impedance input,driving ability (can save power drive devices) features, make the I/O mouth flexible and powerful and resources can be fully used.Single chip microcomputer automatic power AVR reset circuit, independent watchdog circuit, low voltage detection circuit BOD, multiple reset source (automatic reset and external reset and electricity, the watchdog reset, BOD reset), can be set to start delay to run the program, enhance the reliability of the embedded system.AVR SCM has a variety of province electricity sleep mode, and wide voltage operation (5-1.8 V), the anti-interference ability is strong, can reduce the average 8 bits of software anti-interference design work machine and the usage of the hardware.AVR microcontroller technology embodies the single-chip microcomputer collect A variety of devices including FLASH program memory, the watchdog, EEPROM, with/asynchronous serial mouth, TWI, SPI, A/D converter module, timer/counter, etc) and A variety of functions (enhance the reliability of the system, reduce the power consumption reduction of anti-interference sleep mode and many varieties of all categories interrupt system, with input and output is matching and capture the timer function of diversification, replace function with/counter the I/O port...) at A suit, fully embodies the microcontroller technology from "piece of self conduct war" to "chip systems SoC" the development direction of the transition.2.Integrated temperature sensorAD590Integrated temperature sensor AD590 to, its temperature resolution for the 0.3 degrees Celsius. The analog signal is output AD590 to, when the temperature of 0 degrees, output current 273.2 microamps, and current variation and temperature variation in a linear relationship, temperature, and once every change, the output current change 1 microamps, the temperature sensor of working temperature range is-30 degrees-150 degrees. If use AD590 to make the temperature sensor, sensor peripheral circuit is simple, just put sampling resistance and AD590 to link and then to amplify the signal, and then using voltage comparator compared to output voltage, voltage comparator output signals can be directly as PLC the input signal.3.Humidity sensorThere are many ways of measuring the air humidity, its principle isbased on certain material from the surrounding air absorb water caused by physical or chemical properties of the change, indirectly from the material of water quantity and the surrounding air humidity. Capacitive and resistive and wet go up wet type according to its original susceptibility were macromolecule material moisture absorption after the dielectric constant and resistivity and volume change and humidity measurementSolution a: the HOS-201 wet sensors. HOS-201 wet sensor for high humidity sensor switches, it's the job of the voltage of ac 1 V the following, frequency for frequency 50 HZ ~ 1 KHZ, humidity measurement range of 0 ~ 100% RH, working temperature range is 0 ~ 50 ℃, impedance in 75% RH (25 ℃) for 1 M Ω. The sensor is used to switch the sensor, not on the wideband range detection humidity, therefore, mainly for the judgment or under more than e. humidity level. However, the sensor to a certain range, have a good use of the linear, and can be effectively using the linear characteristics.Scheme ii: the HS1100 / HS1101 humidity sensor. HS1100 / HS1101 capacitance sensor, in a circuit of equivalent to a capacitor, it has the capacity as the air humidity increases while. Do not need to complete interchangeability of calibration, high reliability and long-term stability, fast response time, patent design of solid polymer structure, the top contact (HS1100) and lateral contact (HS1101) two kinds of packaging products, apply to linear output voltage and frequency output two circuit, is suitable for making automatic assembly line of the plugin and automatic assembly process, etc.Relative humidity at 1%-100% RH range; The capacity to change by 16 pF 200 pF, the error is not more than plus or minus 2% RH; Response time less than 5 S; The temperature coefficient is 0.04 pF / ℃. Visible is higher accuracy.A comprehensive comparison of scheme and scheme ii, plan one although meet the precision and the requirements of the measure humidity range, but its limited to certain scope, have a good use of the linear, and can be effectively using the linear characteristics. And still do not have in this design system of temperature-30 to 50 ℃ request, so we chose this design as the second scheme humidity sensor.4.MC14433 A/D converterMC14433 is three and A half double integral type of the A/D converter, with high precision, good anti-jamming performance advantages, its shortcoming is conversion rate low, about 1-10 times/SEC. Without the requirement of high speed switching occasions, for example, in low speed data acquisition system, is widely used. MC14433A a/D converter and domestic product 5 G14433 are all the same, can be interchanged.5.Multi-sensor data fusonThe aim to use data fusion in the distributed temperature control system is to eliminate the uncertainty, gain a more precise and reliable value than the arithmetical mean of the measured data from finite sensors. Furthermore, when some of the sensors become invalid in the temperature sensor groups, the intelligent CAN node can still obtain the accurate temperature value by fusing the information from the other valid sensors.5.1. Consistency verification of the measured dataDuring the process of temperature measurement in our designed distributed temperature control system, measurement error comes into being inevitably because of the influence of the paroxysmal disturb or the equipment fault. So we should eliminate the careless mistake before data fusion.We can eliminate the measurement errors by using scatter diagram method in the system equipped with little amount of sensors. Parametersto represent the data distribution structure include median—TM, upperquartile number—Fv , lower quartile number—FLand quartiledispersion—dF.It is supposed that each sensor in the temperature control systemproceeds temperature measurement independently. In the system, there are eight sensors in each temperature sensor group of the intelligent CAN node. So we can obtain eight temperature values in each CAN node at the same time. We arrange the collected temperature data in a sequence from small to large:T 1, T 2, …, T 8In the sequence, T 1 is the limit inferior and T 8 is the limit superior.We define the median —T M as:(1)The upper quartile —F v is the median of the interval [T M , T 8].The lowerquartile number —F L is the median of the interval [T 1, T M ].The dispersion of the quartile is:(2)We suppose that the data is an aberration one if the distance from the median is greater than adF, that is, the estimation interval of invalid data is:(3)In the formula, a is a constant, which is dependent on the system measurement error, commonly its value is to be 0.5, 1.0, 2.0 and so on. The rest values in the measurement column are considered as to be the valid ones with consistency. And the Single-Chip in the intelligent CAN node will fuse the consistent measurement value to obtain a fusion result6.The research significanceThe collection of temperature and humidity monitoring in daily life has a wide range of USES, the temperature and humidity monitor based on this and design, the biggest advantage is that it can display the current temperature and humidity measurement, and the current temperature and preset temperature carries on the comparison, more than when the current temperature and humidity preset temperature alarm, realize the historicaldata monitoring, collection and analysis purposes. The temperature and humidity monitoring alarm low power consumption, can use the minimal resource for different temperature for high precision measurement, reliable performance, convenient operation information, complex work through software programming to complete, easy to get results, in actual use for the ideal effect. This design has realized to the real-time control of the temperature, flexible control precision and reliability, high, can meet the product preliminary test the requirements of the aging. In the processing of constant temperature and heating temperature, formed a complete set of control plan, can transplantation for constant temperature, heating the house and equipment many aspects. Therefore, this design research results and the design idea can be good in other design transplantation, did it and the actual good union, with strong practical significance.译文单片机及温湿度传感器的发展摘要:在过去的几十年,温度控制系统已经被广泛的应用。
TEMPERATURE CONTROLLER

专利名称:TEMPERATURE CONTROLLER 发明人:SUGIOKA HIROAKI 申请号:J P 74 60289 申请日:19890327 公开号:JPH02253316A 公开日:19901012
摘要:PURPOSE:To decrease the number of sensors and to redice the sensor attachment manhour by performing a prescribed computing operation with use of the temperature signal received from only a temperature sensor that is set near a specific position among those temperature control means. CONSTITUTION:A temperature controller contains the heaters H1 - H8 set vertically in an area 1 to undergo the temperature control, a temperature sensor 2 set near a specific heater H8, and a temperature controller 3 which totally controls the heaters H1 - H8. The controller 3 receives the temperature information (temperature signal) received from the sensor 2 and an arithmetic part 32 calculates the difference between the measured temperature and the set one. An output coefficient part 31 multiples the arithmetic result by each output ratio (output coefficient) and applies the multi-point output to each heater H to perform the total control of the temperatures of those heaters H. Thus it is not required to prepare the temperature sensors in number corresponding to the heaters H nor to prepare a controller. As a result, the number of sensors are decreased together with reduction of the sensor attachment manhour.
TEMPERATURE CONTROLLER

专利名称:TEMPERATURE CONTROLLER发明人:KAKITA KENICHI,WAKUTA HIROSHI,OGINO TSUYOSHI,IGARI MICHIYOSHI,SUGIOKAICHIRO申请号:JP26215587申请日:19871016公开号:JPH01103716A公开日:19890420专利内容由知识产权出版社提供摘要:PURPOSE:To obtain a temperature controller which does not change a load at the time of setting a target, by providing a target temperature setting means which sets the target temperature. CONSTITUTION:Signals from a temperature setting means 10, to which signals from a push switch 7 which sets the target temperature and a variable resistor 8 are inputted, and a temperature detector 9 which detects an input temperature are inputted to a temperature control means 11. The signal from the temperature control means 11 is inputted to a load control means 12, and the signal from the load control means 12 is outputted to a load 13. Then, the load for temperature setting is kept in the state before temperature setting. Thus, the temperature controller is obtained which does not change the load at the time of setting the target.申请人:MATSUSHITA REFRIG CO LTD更多信息请下载全文后查看。
Digital thermometer

英文Digital thermometerTemperature is common in industrial production, one of the process parameters, any physical change and chemical reaction process is closely related with the temperature, so temperature control is an important task automation. For the different production conditions and process requirements under the temperature control, using the heating, fuel, control program is also different. Since the 18th century industrial revolution, industrial development can master the temperature has an absolute link. In metallurgy, iron and steel, petrochemicals, cement, glass, medicine, and so the industry can be said that almost 80% of the industrial sector had to take into account the temperature factor, for the production of the temperature measurement and control problems frequently encountered by proposed single-chip microcomputer system as the core of the Temperature measurement and control instrument design, through the value and range of temperature settings, the design can monitor this temperature and can output control signals directly on the object without having to through the converter, significant cost savings, while the system is also designed with a compact structure , high measurement accuracy, anti-interference ability. A wide range of temperature. For chemical plants, the chemical products for the temperature requirements and strict, and do not have to keep the temperature control and the reality, it will cause a great impact, for chemical products, the required accuracy is very high, if the temperature is slightly does not it will affect the entire chemical production; for life, we often use the thermometer, he can measure body temperature at any time, with this data doctors can prescribe the right remedy according to your current situation, not only in time to safeguard their health, but also for the doctor to determine condition provides a convenient; Thus, the temperature in our everyday life play a very important role, but will also provide us with a lot of convenience;The first temperature measuring instruments as thermometers, such equipment for the plant can not be applied to achieve automatic control, he needs constant observation of temperature and manual control valves and switches, but with this design is able to remove it a disadvantage, he pass the temperature sensor is sampled and extraction, and then to determine and set the temperature control relay and then create action, so as to achieve the effect of intelligent automation, and this design, low cost, cost-effective, while the emergence of this design is also to promote the further development of temperature measurement and control instrument.In this design study, we use the microcontroller chip ST89C51 as the main control system, using DS18B20 as the temperature measurement sensors, this system is mainly controlled by the microcontroller DS18B20 achieved, the temperature sensor size is small, simple and easy to control, hardware connection, using a simple is a very good choice; microcontroller also known as single-chip microcontroller, it is not the completion of a logic function of a chip, but to a computer system integrated into a chip. General point of view: a chip has become a computer. Its small size, light weight, low price, for learning, application and development of facilities provided. At the same time, learning to use microcontrollers to understand the principle and structure of the computer the best choice. This microcontroller has a very wide field of use, such as smart meters, real-time industrial control, communications equipment, navigation systems, home appliances and so on, for example, used to control the traffic lights at road junctions bright eliminate bus-stop. Once the microcontroller were using a variety of products, you can serve to upgrade the effectiveness of the product, often in the product name is preceded by the adjective - "smart", such as washing machines and so intelligent. MCS-51 microcontroller is a U.S. INTE company products introduced in 1980, the typical products of 8031 (internal program memory, there is no actual use has been out of the market), 8051 (chip HMOS, power consumption is 630mW, is a 89C51 5 times, the actual use has been eliminatedby market forces), and 8751 and other generic products, and even today, MCS-5 1-compatible microcontroller core family is still the mainstream product applications (such as the current popular 89S51, has been discontinued 89C51, etc.), All colleges and universities and professional schools, training materials are still with the MCS-51 microcontroller as the representatives of the theoretical basis for learning. Some literature even refers to the 8051 series MCS-51 microcontroller, 8051 is the most typical representative of the early, due to MCS-51 microcontroller influence is extremely far-reaching, and many companies have introduced a compatible series of microcontrollers, that MCS-51 core has in fact to become a standard 8-bit microcontroller. Other products are the company's 51 MCS and MCS-51 core-compatible products to. The same section of programs in various microcomputer hardware manufacturers to run on the results are the same, such as the ATMEL's 89C51 (discontinued), 89S51, PHILIPS (Philip), and WINBOND (Winbond), etc., we often say that already discontinued 89C51 refers to the ATMEL Corporation AT 89C51 microcontroller, is also based on the original number of enhanced features, such as clock and more outstanding by the Flash (program memory contents can be rewritten at least 1000 times) memory to take with the The original ROM (write-once), AT89C51 performance relative to 8051 is considered a very superior of. However, in market-oriented context, 89C51 camp has been the challenge of PIC microcontrollers, 89C51 most fatal flaw is that does not support the ISP (Online Update) function, you must add new features such as ISP feature can be a better continuation of the legend of MCS-51. ST89C51 is in this context to replace the 89C51, but now, ST89C51 practical application has become the new darling of the market, in this design, we use ST89C51 chips as the main control system, this can make it easier to download. For all of us are no strangers Microcontroller sensor DS18B20 with smaller, higher accuracy, wider application of voltage, using first-line bus, could be networking, etc., in the practical application of the temperature achieved good results to support "first-line bus," interface, temperature sensor, in its internal use of the on-board (ON-B0ARD) patented technology. All sensor and conversion circuit integrated into the shape of a transistor within the integrated circuit. "First-line bus" unique and economical features, allowing users to easily set up sensor networks, in order to build the measurement system to introduce a new concept. Now, a new generation of DS18B20 smaller, more economical and more flexible. So that you can give full play to "first-line bus," advantages. With the DS1820, like, DS18B20 also supports the "first-line bus" interface, measuring temperature range of -55 ° C ~ +125 ° C, at -10 ~ +85 ° C, within an accuracy of ±0.5 °C. Temperature directly to the scene, "bus line" digital mode transmission, greatly improved the system interference. Harsh environment of the site is suitable for temperature measurement, such as: environmental control, equipment or process control, temperature class consumer electronics products. With the previous generation of products, the new product support 3V ~ 5.5V voltage range, making the system design more flexible and convenient. And a new generation of cheaper, smaller and moreThe design system's main functions are: controlling the digital tube display, digital display tube of the anode, because the total anode LED display's brightness high, low for the microcontroller output can drive its light; by the MCU to complete the temperature sensor ds18b20 information transmission and exchange, and the transformation and delivery time from the timer microcomputer control; driving lights lit, that is, the output of measurement and control instrument; drive buzzer, through to the 8550 base-0 input signal to control the drive buzzer audible sound; the design also has a temperature setting feature, you can set the temperature and measure temperature to determine the size of a button to toggle through the judge or the judge is greater than is less than,and thus the output of different states, to control other machine.An analog-to-digital converterAn analog-to-digital converter(ADC) is used to convert a continuously variable signal to a corresponding digital form which can take any one of a fixed number of possible binary values. If the output of the transducer does not vary continuously, no ADC is necessary. In this case the signal conditioning section must convert the incoming signal to a form which can be connected directly to the next part of the interface, the input/output section of the microcomputer itself.The I/O section converts digital “on/off” voltage signals to a form which can be presented to the processor via the system buses. Here the state of each input line, whether it is “on” or “off”, is indicated by a corresponding “1” or “0”. In the analog inputs which have been converted to digital form, the patterns of ones and zeros in the internal representation will form binary numbers corresponding to the quantity being converted.Feedback ControlThe class of control problems to be examined here is one of considerable engineering interest. We shall consider systems with several inputs, some known as controls because they may be manipulated and others called external disturbances, which are quite unpredictable. For example, in an industrial furnace we may consider the fuel flow, the ambient temperature, and the loading of material into the furnace to be inputs. Of these, the fuel flow is accessible and can readily be controlled, while the latter two are usually unpredictable disturbances.In such situations, one aspect of the control problems is to determine how the controls should be manipulated so as to counteract the effects of the external disturbances on the state of the system. One possible approach to the solution of this problem is to use a continuous measurement of the disturbances, and from this and the known system equations to determine what the control inputs should be as functions of time to give appropriate control of the system state.Digital Interface CircuitsThe signals used within microcomputer circuits are almost always too small to be connected directly to the “outside world” and some kind of interface must be used to translate them to a more appropriate form. The design of section of interface circuits is one of the most important tasks facing the engineer wishing to apply microcomputers. We have seen that in microcomputers information is represented as discrete patterns of bits; this digital form is most useful when the microcomputer is to be connected to equipment which can only be switched on or off, where each bit might represent the state of a switch or actuator.Care must be taken when connecting logic circuits to ensure that their logic levels and current ratings are compatible. The output voltages produced by a logic circuit are normally specified in terms of worst case values when sourcing or sinking the maximum rated currents. Thus V oh is the guaranteed minimum “high” voltage when sourcing the maximum rated “high” ou tput current Ioh, while V ol is the guaranteed minimum “low” output voltage when sinking the maximum rated “low” output current Iol. There are corresponding specification for logic inputs which specify the minimum input voltage which will be recognized as a logic “high” state Vih, and the maximum input voltage which will be regarded as a logic “low” state Vil.For input interface, perhaps the main problem facing the designer is that of electrical noise. Small noises signals may cause the system to malfunction, while larger amounts of noise can permanently damage it. The designer must be aware of these dangers from the outset. There are many methods to protect interface circuits and microcomputer from various kinds of noise. Following are some example:1.Input and output electrical isolation between the microcomputer system and external devices using an opto-isolator or a transformer.2.Removing high frequency noise pulses by a low-pass filter and Schmitt-trigger.3.Protecting against excessive input voltages using a pair of diodes to power supply reversibly biased in normal direction.For output interface, parameters V oh,V ol,Ioh and Iol of a logic device are usually much tolow to allow loads to be connected directly, and in practice an external circuit must be connected to amplify the current and voltage to drive a load. Although several types of semiconductor devices are now available for controlling DC and AC powers up to many kilowatts, there are two basic ways in which a switch can be connected to a load to control it.With series connection, the switch allows current to flow through the load when closed, while with shunt connection closing the switch allows current to bypass the load. Both connections are useful in low-power circuits, but only the series connection can be used in high-power circuits because of the power wasted in the series resistor R.AT89C52Compatible with MCS-51™ Products8K Bytes of In-System Reprogrammable Flash MemoryEndurance: 1,000 Write/Erase CyclesFully Static Operation: 0 Hz to 24 MHzThree-level Program Memory Lock256 x 8-bit Internal RAM32 Programmable I/O LineThree 16-bit Timer/CountersEight Interrupt SourceProgrammable Serial ChannelLow-power Idle and Power-down ModeDescriptionThe AT89C52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, three 16-bit timer/counters, a six-vector two-level interrupt architecture, a full-duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT89C52 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Power-down mode saves the RAM contents but freezes the oscillator, disabling all other chip functions until the next hardware reset.AT89C52 Timer 2Timer 2 is a 16-bit Timer/Counter that can operate as either a timer or an event counter. The type of operation is selected by bit C/T2 in the SFR T2CON (shown in Table 2). Timer 2 has three operating modes: capture, auto-reload (up or down counting), and baud rate generator. The modes are selected by bits in T2CON, as shown in Table 3. Timer 2 consists of two 8-bit registers, TH2 and TL2. In the Timer function, the TL2 register is incremented every machine cycle. Since a machine cycle consists of 12 oscillator periods, the count rate is 1/12 of the oscillator frequency. In the Counter function, the register is incremented in response to a 1-to-0 transition at its corresponding external input pin, T2. In this function, the external input is sampled during S5P2 of every machine cycle. When the samples show a high in one cycle and a low in the next cycle, the count is incremented. The new count value appears in the register during S3P1 of the cycle following the one in which the transition was detected. Since two machine cycles (24 oscillator periods) are required to recognize a 1-to-0 transition, the maximum count rate is 1/24 of the oscillator frequency. To ensure that a given level is sampled at least once before it changes, the level should be held for at least one full machine cycle.Capture ModeIn the capture mode, two options are selected by bit EXEN2 in T2CON. If EXEN2 = 0, Timer 2 is a 16-bit timer or counter which upon overflow sets bit TF2 in T2CON. This bit can then be used to generate an interrupt. If EXEN2 = 1, Timer 2 performs the same operation, but a 1- to-0 transition at external input T2EX also causes the current value in TH2 and TL2 to be captured into RCAP2H and RCAP2L, respectively. In addition, the transition at T2EX causesbit EXF2 in T2CON to be set. The EXF2 bit, like TF2, can generate an interrupt. The capture mode is illustrated in FigureAuto-reload (Up or Down Counter)Timer 2 can be programmed to count up or down when configured in its 16-bit auto-reload mode. This feature is invoked by the DCEN (Down Counter Enable) bit located in the SFR T2MOD. Upon reset, the DCEN bit is set to 0 so that timer 2 will default to count up. When DCEN is set, Timer 2 can count up or down, depending on the value of the T2EX pin.Baud Rate Generator 360毕业设计网 Timer 2 is selected as the baud rate generator by setting TCLK and/or RCLK in T2CON. Note that the baud rates for transmit and receive can be different if Timer 2 is used for the receiver or transmitter and Timer 1 is used for the other function. Setting RCLK and/or TCLK puts Timer 2 into its baud rate generator mode. The baud rate generator mode is similar to the auto-reload mode, in that a rollover in TH2 causes the Timer 2 registers to be reloaded with the 16-bit value in registers RCAP2H and RCAP2L, which are preset by software. The baud rates in Modes 1 and 3 are determined by Timer 2’s overflow rate according to the following equation.The Timer can be configured for either timer or counter operation. In most applications, it is configured for timer operation (CP/T2 = 0). The timer operation is different for Timer 2 when it is used as a baud rate generator. Normally, as a timer, it increments every machine cycle (at 1/12 the oscillator frequency). As a baud rate generator, however, it increments every state time (at 1/2 the oscillator frequency). The baud rate formula is given below.where (RCAP2H, RCAP2L) is the content of RCAP2H and RCAP2L taken as a 16-bitunsigned integer. Timer 2 as a baud rate generator is shown in Figure 4. This figure is valid only if RCLK or TCLK = 1 in T2CON. Note that a rollover in TH2 does not set TF2 and will not generate an interrupt. Note too, that if EXEN2 is set, a 1-to-0 transition in T2EX will set EXF2 but will not cause a reload from (RCAP2H, RCAP2L) to (TH2, TL2). Thus when Timer 2 is in use as a baud rate generator, T2EX can be used as an extra external interrupt. Note that when Timer 2 is running (TR2 = 1) as a timer in the baud rate generator mode, TH2 or TL2 should not be read from or written to. Under these conditions, the Timer is incremented every state time, and the results of a read or write may not be accurate. The RCAP2 registers may be read but should not be written to, because a write might overlap a reload and cause write and/or reload errors. The timer should be turned off (clear TR2) before accessing the Timer 2 or RCAP2 registers.Modes 1 and 3 Baud Rate= Oscillator Frequency32*[65536-(RCAP2H,RCAP2L)]Modes 1 and 3 Baud Rate =Timer2Overflow Rate/16中文数字温度计温度是工业生产中常见的工艺参数之一,任何物理变化和化学反应过程都与温度密切相关,因此温度控制是生产自动化的重要任务。
英文原文-单片机温度控制

Temperature Control Using a Microcontroller:An Interdisciplinary Undergraduate Engineering Design ProjectJames S. McDonaldDepartment of Engineering ScienceTrinity UniversitySan Antonio, TX 78212AbstractThis paper describes an interdisciplinary design project which was done under the author’s supervision by a group of four senior students in the Department of Engineering Science at Trinity University. The objective of the project was to develop a temperature control system for an air-filled chamber. The system was to allow entry of a desired chamber temperature in a prescribed range and to exhibit overshoot and steady-state temperature error of less than 1 degree Kelvin in the actual chamber temperature step response. The details of the design developed by this group of students, based on a Motorola MC68HC05 family microcontroller, are described. The pedagogical value of the problem is also discussed through a description of some of the key steps in the design process. It is shown that the solution requires broad knowledge drawn from several engineering disciplines including electrical, mechanical, and control systems engineering.1 IntroductionThe design project which is the subject of this paper originated from a real-world application. A prototype of a microscope slide dryer had been developed around an OmegaTM model CN-390 temperature controller, and the objective was to develop a custom temperature control system to replace the Omega system. The motivation was that a custom controller targeted specifically for the application should be able to achieve the same functionality at a much lower cost, as the Omega system is unnecessarily versatile and equipped to handle a wide variety of applications.The mechanical layout of the slide dryer prototype is shown in Figure 1. The main element of the dryer is a large, insulated, air-filled chamber in which microscope slides, each with a tissue sample encased in paraffin, can be set on caddies. In order that the paraffin maintain the proper consistency, the temperature in the slide chamber must be maintained at a desired (constant) temperature. A second chamber (the electronics enclosure) houses a resistive heater and the temperature controller, and a fan mounted on the end of the dryer blows air across the heater, carrying heat into the slide chamber. This design project was carried out during academic year 1996–97 byfour students under the author’s supervision as a Senior Design project in the Department of Engineering Science at Trinity University. The purpose of this paper isto describe the problem and the students’ solution in some detail, and to discuss some of the pedagogical opportunities offered by an interdisciplinary design project of this type. The students’ own report was presented at the 1997 Nat ional Conference on Undergraduate Research [1]. Section 2 gives a more detailed statement of the problem, including performance specifications, and Section 3 describes the students’ design. Section 4 makes up the bulk of the paper, and discusses in some detail several aspects of the design process which offer unique pedagogical opportunities. Finally, Section 5 offers some conclusions.2 Problem StatementThe basic idea of the project is to replace the relevant parts of the functionality of an Omega CN-390 temperature controller using a custom-designed system. The application dictates that temperature settings are usually kept constant for long periods of time, but it’s nonetheless important that step changes be tracked in a―reasonable‖ manner. Thus the mai n requirements boil down to·allowing a chamber temperature set-point to be entered,·displaying both set-point and actual temperatures, and·tracking step changes in set-point temperature with acceptable rise time,steady-state error, and overshoot.Although not explicitly a part of the specifications in Table 1, it was clear that the customer desired digital displays of set-point and actual temperatures, and thatset-point temperature entry should be digital as well (as opposed to, say, through a potentiometer setting).3 System DesignThe requirements for digital temperature displays and setpoint entry alone are enough to dictate that a microcontrollerbased design is likely the most appropriate. Figure 2 shows a block diagram of the students’ design.The microcontroller, a MotorolaMC68HC705B16 (6805 for short), is the heart of the system. It accepts inputs from a simple four-key keypad which allow specification of the set-point temperature, and it displays both set-point and measured chamber temperatures using two-digit seven-segment LED displays controlled by a display driver. All these inputs and outputs are accommodated by parallel ports on the 6805. Chamber temperature is sensed using a pre-calibrated thermistor and input via one of the 6805’s an alog-to-digital inputs. Finally, a pulse-width modulation (PWM) output on the 6805 is used to drive a relay which switches line power to the resistive heater off and on.Figure 3 shows a more detailed schematic of the electronics and their interfacing to the 6805. The keypad, a Storm 3K041103, has four keys which are interfaced to pins PA0{ PA3 of Port A, configured as inputs. One key functions as a mode switch. Two modes are supported: set mode and run mode. In set mode two of the other keys are used to specify the set-point temperature: one increments it and one decrements. The fourth key is unused at present. The LED displays are driven by a Harris Semiconductor ICM7212 display driver interfaced to pins PB0{PB6 of Port B, configured as outputs. The temperature-sensing thermistor drives, through a voltage divider, pin AN0 (one of eight analog inputs). Finally, pin PLMA (one of two PWM outputs) drives the heater relay.Software on the 6805 implements the temperature control algorithm, maintains the temperature displays, and alters the set-point in response to keypad inputs. Because it is not complete at this writing, software will not be discussed in detail in this paper. The control algorithm in particular has not been determined, but it is likely to be a simple proportional controller and certainly not more complex than a PID. Some control design issues will be discussed in Section 4, however.4 The Design ProcessAlthough essentially the project is just to build a thermostat, it presents many nice pedagogical opportunities. The knowledge and experience base of a senior engineering undergraduate are just enough to bring him or her to the brink of a solution to various aspects of the problem. Yet, in each case, realworld considerations complicate the situation significantly.Fortunately these complications are not insurmountable, and the result is a very beneficial design experience. The remainder of this section looks at a few aspects ofthe problem which present the type of learning opportunity just described. Section 4.1discusses some of the features of a simplified mathematical model of the thermal properties of the system and how it can be easily validated experimentally. Section 4.2 describes how realistic control algorithm designs can be arrived at using introductory concepts in control design. Section 4.3 points out some important deficiencies of such a simplified modeling/control design process and how they can be overcome through simulation. Finally, Section 4.4 gives an overview of some of the microcontroller-related design issues which arise and learning opportunities offered.4.1 MathematicalModelLumped-element thermal systems are described in almost any introductory linear control systems text, and just this sort of model is applicable to the slide dryer problem. Figure 4 shows a second-order lumped-element thermal model of the slide dryer. The state variables are the temperatures Ta of the air in the box and Tb of the box itself. The inputs to the system are the power output q(t) of the heater and the ambient temperature T¥. ma and mb are the masses of the air and the box, respectively, and Ca and Cb their specific heats. μ1 and μ2 are heat transfer coefficients from the air to the box and from the box to the external world, respectively.It’s not hard to show that the (linearized) state equationscorresponding to Figure 4 areTaking Laplace transforms of (1) and (2) and solving for Ta(s), which is the output of interest, gives the following open-loop model of the thermal system:where K is a constant and D(s) is a second-order polynomial.K, tz, and the coefficients of D(s) are functions of the variousparameters appearing in (1) and (2).Of course the various parameters in (1) and (2) are completely unknown, but it’s not hard to show that, regardless of their values, D(s) has two real zeros. Therefore the main transfer function of interest (which is the one from Q(s), si nce we’ll assume constant ambient temperature) can be writtenMoreover, it’s not too hard to show that 1=tp1 <1=tz <1=tp2, i.e., that the zero lies between the two poles. Both of these are excellent exercises for the student, and the result is the openloop pole-zero diagram of Figure 5.Obtaining a complete thermal model, then, is reduced to identifying the constant K and the three unknown time constants in (3). Four unknown parameters is quite a few, but simple experiments show that 1=tp1 _ 1=tz;1=tp2 so that tz;tp2 _ 0 are good approximations. Thus the open-loop system is essentially first-order and can therefore be written(where the subscript p1 has been dropped).Simple open-loop step response experiments show that,for a wide range of initial temperatures and heat inputs, K _0:14 _=W and t _ 295 s.14.2 Control System DesignUsing the first-order model of (4) for the open-loop transfer function Gaq(s) and assuming for the moment that linear control of the heater power output q(t) is possible, the block diagram of Figure 6 represents the closed-loop system. Td(s) is the desired, or set-point, temperature,C(s) is the compensator transfer function, and Q(s) is the heater output in watts.Given this simple situation, introductory linear control design tools such as the root locus method can be used to arrive at a C(s) which meets the step response requirements on rise time, steady-state error, and overshoot specified in Table 1. The upshot, of course, is that a proportional controller with sufficient gain can meet all specifications. Overshoot is impossible, and increasing gains decreases bothsteady-state error and rise time.Unfortunately, sufficient gain to meet the specifications may require larger heat outputs than the heater is capable of producing. This was indeed the case for this system, and the result is that the rise time specification cannot be met. It is quite revealing to the student how useful such an oversimplified model, carefully arrived at, can be in determining overall performance limitations.4.3 Simulation ModelGross performance and its limitations can be determined using the simplified model of Figure 6, but there are a number of other aspects of the closed-loop system whose effects on performance are not so simply modeled. Chief among these are ·quantization error in analog-to-digital conversion of the measured temperature and· the use of PWM to control the heater.Both of these are nonlinear and time-varying effects, and the only practical wayto study them is through simulation (or experiment, of course).Figure 7 shows a SimulinkTM block diagram of the closed-loop system which incorporates these effects. A/D converter quantization and saturation are modeled using standard Simulink quantizer and saturation blocks. Modeling PWM is more complicated and requires a custom S-function to represent it.This simulation model has proven particularly useful in gauging the effects of varying the basic PWM parameters and hence selecting them appropriately. (I.e., the longer the period, the larger the temperature error PWM introduces. On the other hand, a long period is desirable to avoid excessive relay ―chatter,‖ among other things.) PWM is often difficult for students to grasp, and the simulation model allows an exploration of its operation and effects which is quite revealing.4.4 The MicrocontrollerSimple closed-loop control, keypad reading, and display control are some of the classic applications of microcontrollers, and this project incorporates all three. It is therefore an excellent all-around exercise in microcontroller applications. In addition, because the project is to produce an actual packaged prototype, it won’t do to use a simple evaluation board with the I/O pins jumpered to the target system. Instead, it’s necessary to develop a complete embedded application. This entails the choice of an appropriate part from the broad range offered in a typical microcontroller family and learning to use a fairly sophisticated development environment. Finally, a custom printed-circuit board for the microcontroller and peripherals must be designed and fabricated.Microcontroller Selection. In view of existing local expertise, the Motorola line of microcontrollers was chosen for this project. Still, this does not narrow the choice down much. A fairly disciplined study of system requirements is necessary to specify which microcontroller, out of scores of variants, is required for the job. This is difficult for students, as they generally lack the experience and intuition needed as well as the perseverance to wade through manufacturers’ selection guides.Part of the problem is in choosing methods for interfacing the various peripherals (e.g., what kind of display driver should be used?). A study of relevant Motorola application notes [2, 3, 4] proved very helpful in understandingwhat basic approaches are available, and what microcontroller/peripheral combinations should be considered.The MC68HC705B16 was finally chosen on the basis of its availableA/D inputs and PWMoutputs as well as 24 digital I/O lines. In retrospect this is probably overkill, as only one A/D channel, one PWM channel, and 11 I/O pins are actually required(see Figure 3). The decision was made to err on the safe side because a complete development system specific to the chosen part was necessary, and the project budget did not permit a second such system to be purchased should the firstprove inadequate.Microcontroller Application Development. Breadboarding of the peripheral hardware, development of microcontroller software, and final debugging and testing of a custom printed-circuit board for the microcontroller and peripherals all require a development environment of some kind. The choice of a development environment, like that of the microcontroller itself, can be bewildering and requires some faculty expertise. Motorola makes three grades of development environment ranging from simple evaluation boards (at around $100) to full-blown real-time in-circuit emulators (at more like $7500). The middle option was chosen for this project: the MMEVS, which consists of _ a platform board (which supports all 6805-family parts), _ an emulator module (specific to B-series parts), and _ a cable and target head adapter (package-specific). Overall, the system costs about $900 and provides, with some limitations, in-circuit emulation capability. It also comes with the simple but sufficient software development environment RAPID [5].Students find learning to use this type of system challenging, but the experience they gain in real-world microcontroller application development greatly exceeds the typical first-course experience using simple evaluation boards.Printed-Circuit Board. The layout of a simple (though definitely not trivial) printed-circuit board is another practical learning opportunity presented by this project. The final board layout, with package outlines, is shown (at 50% of actual size) in Figure 8. The relative simplicity of the circuit makes manual placement and routing practical—in fact, it likely gives better results than automatic in an application like this—and the student is therefore exposed to fundamental issues of printed-circuit layout and basic design rules. The layout software used was the very nice package pcb,2 and the board was fabricated in-house with the aid of our staff electronics technician.。
TEMPERATURE CONTROLLER

专利名称:TEMPERATURE CONTROLLER 发明人:NASU ICHIRO,IWASA TAKASHI 申请号:JP18314280申请日:19801223公开号:JPH0213327B2公开日:19900404专利内容由知识产权出版社提供摘要:PURPOSE:To exercise high-precision, high-stability temperature control by leading a sensor signal to the earch during a positive-half-cycle period when the sensor signal has distortion. CONSTITUTION:A positive-cycle-pulse generating circuit 19 which generates a pulse Vp during a positive-half-cycle period and a grounding circuit for a sensor signal which is turned on by the pulse Vp and composed of a switching transistor (TR) 20 are added. A TR18 normally turns off and the collector current of the TR8 is integrated in a capacitor 10, but when the circuit 19 generates the pulse Vp, the TR20 turns on to ground the collector current of the TR8. Namely, a sensor signal is grounded during the positive-half-cycle period when the sensor signal has distortion. Consequently, an accurate temperature signal irrelevant to whether a heater is powered up or not is obtained, and thus high- precision, high-stability temperature control is exercised.申请人:MATSUSHITA ELECTRIC IND CO LTD更多信息请下载全文后查看。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Temperature Control Using a Microcontroller:An Interdisciplinary Undergraduate Engineering Design ProjectJames S. McDonaldDepartment of Engineering ScienceTrinity UniversitySan Antonio, TX 78212AbstractThis paper describes an interdisciplinary design project which was done under the author’s supervision by a group of four senior students in the Department of Engineering Science at Trinity University. The objective of the project was to develop a temperature control system for an air-filled chamber. The system was to allow entry of a desired chamber temperature in a prescribed range and to exhibit overshoot and steady-state temperature error of less than 1 degree Kelvin in the actual chamber temperature step response. The details of the design developed by this group of students, based on a Motorola MC68HC05 family microcontroller, are described. The pedagogical value of the problem is also discussed through a description of some of the key steps in the design process. It is shown that the solution requires broad knowledge drawn from several engineering disciplines including electrical, mechanical, and control systems engineering.1 IntroductionThe design project which is the subject of this paper originated from a real-world application. A prototype of a microscope slide dryer had been developed around an OmegaTM model CN-390 temperature controller, and the objective was to develop a custom temperature control system to replace the Omega system. The motivation was that a custom controller targeted specifically for the application should be able to achieve the same functionality at a much lower cost, as the Omega system is unnecessarily versatile and equipped to handle a wide variety of applications.The mechanical layout of the slide dryer prototype is shown in Figure 1. The main element of the dryer is a large, insulated, air-filled chamber in which microscope slides, each with a tissue sample encased in paraffin, can be set on caddies. In order that the paraffin maintain the proper consistency, the temperature in the slide chamber must be maintained at a desired (constant) temperature. A second chamber (the electronics enclosure) houses a resistive heater and the temperature controller, and a fan mounted on the end of the dryer blows air across the heater, carrying heat into the slide chamber. This design project was carried out during academic year 1996–97 byfour students under the author’s supervision as a Senior Design project in the Department of Engineering Science at Trinity University. The purpose of this paper isto describe the problem and the students’ solution in some detail, and to discuss some of the pedagogical opportunities offered by an interdisciplinary design project of this type. The students’ own report was presented at the 1997 National Conference on Undergraduate Research [1]. Section 2 gives a more detailed statement of the problem, including performance specifications, and Section 3 describes the students’ design. Section 4 makes up the bulk of the paper, and discusses in some detail several aspects of the design process which offer unique pedagogical opportunities. Finally, Section 5 offers some conclusions.2 Problem StatementThe basic idea of the project is to replace the relevant parts of the functionality of an Omega CN-390 temperature controller using a custom-designed system. The application dictates that temperature settings are usually kept constant for long periods of time, but it’s nonetheless important that step changes be tracked in a―reasonable‖ manner. Thus th e main requirements boil down to·allowing a chamber temperature set-point to be entered,·displaying both set-point and actual temperatures, and·tracking step changes in set-point temperature with acceptable rise time,steady-state error, and overshoot.Although not explicitly a part of the specifications in Table 1, it was clear that the customer desired digital displays of set-point and actual temperatures, and thatset-point temperature entry should be digital as well (as opposed to, say, through a potentiometer setting).3 System DesignThe requirements for digital temperature displays and setpoint entry alone are enough to dictate that a microcontrollerbased design is likely the most appropriate. Figure 2 shows a block diagram of the students’ desi gn.The microcontroller, a MotorolaMC68HC705B16 (6805 for short), is the heart of the system. It accepts inputs from a simple four-key keypad which allow specification of the set-point temperature, and it displays both set-point and measured chamber temperatures using two-digit seven-segment LED displays controlled by a display driver. All these inputs and outputs are accommodated by parallel ports on the 6805. Chamber temperature is sensed using a pre-calibrated thermistor and input via one of the 6805’s analog-to-digital inputs. Finally, a pulse-width modulation (PWM) output on the 6805 is used to drive a relay which switches line power to the resistive heater off and on.Figure 3 shows a more detailed schematic of the electronics and their interfacing to the 6805. The keypad, a Storm 3K041103, has four keys which are interfaced to pins PA0{ PA3 of Port A, configured as inputs. One key functions as a mode switch. Two modes are supported: set mode and run mode. In set mode two of the other keys are used to specify the set-point temperature: one increments it and one decrements. The fourth key is unused at present. The LED displays are driven by a Harris Semiconductor ICM7212 display driver interfaced to pins PB0{PB6 of Port B, configured as outputs. The temperature-sensing thermistor drives, through a voltage divider, pin AN0 (one of eight analog inputs). Finally, pin PLMA (one of two PWM outputs) drives the heater relay.Software on the 6805 implements the temperature control algorithm, maintains the temperature displays, and alters the set-point in response to keypad inputs. Because it is not complete at this writing, software will not be discussed in detail in this paper. The control algorithm in particular has not been determined, but it is likely to be a simple proportional controller and certainly not more complex than a PID. Some control design issues will be discussed in Section 4, however.4 The Design ProcessAlthough essentially the project is just to build a thermostat, it presents many nice pedagogical opportunities. The knowledge and experience base of a senior engineering undergraduate are just enough to bring him or her to the brink of a solution to various aspects of the problem. Yet, in each case, realworld considerations complicate the situation significantly.Fortunately these complications are not insurmountable, and the result is a very beneficial design experience. The remainder of this section looks at a few aspects of the problem which present the type of learning opportunity just described. Section 4.1discusses some of the features of a simplified mathematical model of the thermal properties of the system and how it can be easily validated experimentally. Section 4.2 describes how realistic control algorithm designs can be arrived at using introductory concepts in control design. Section 4.3 points out some important deficiencies of such a simplified modeling/control design process and how they can be overcome through simulation. Finally, Section 4.4 gives an overview of some of the microcontroller-related design issues which arise and learning opportunities offered.4.1 MathematicalModelLumped-element thermal systems are described in almost any introductory linear control systems text, and just this sort of model is applicable to the slide dryer problem. Figure 4 shows a second-order lumped-element thermal model of the slide dryer. The state variables are the temperatures Ta of the air in the box and Tb of the box itself. The inputs to the system are the power output q(t) of the heater and the ambient temperature T¥. ma and mb are the masses of the air and the box, respectively, and Ca and Cb their specific heats. μ1 and μ2 are heat transfer coefficients from the air to the box and from the box to the external world, respectively.It’s not hard to show that the (linearized) state equationscorresponding to Figure 4 areTaking Laplace transforms of (1) and (2) and solving for Ta(s), which is the output of interest, gives the following open-loop model of the thermal system:where K is a constant and D(s) is a second-order polynomial.K, tz, and the coefficients of D(s) are functions of the variousparameters appearing in (1) and (2).Of course the various parameters in (1) and (2) are completely unknown, but it’s not hard to show that, regardless of their values, D(s) has two real zeros. Therefore the main transfer function of interest (which is the one from Q(s), since we’ll assume constant ambient temperature) can be writtenMoreover, it’s not too hard to show that 1=tp1 <1=tz <1=tp2, i.e., that the zero lies between the two poles. Both of these are excellent exercises for the student, and the result is the openloop pole-zero diagram of Figure 5.Obtaining a complete thermal model, then, is reduced to identifying the constant K and the three unknown time constants in (3). Four unknown parameters is quite a few, but simple experiments show that 1=tp1 _ 1=tz;1=tp2 so that tz;tp2 _ 0 are good approximations. Thus the open-loop system is essentially first-order and can therefore be written(where the subscript p1 has been dropped).Simple open-loop step response experiments show that,for a wide range of initial temperatures and heat inputs, K _0:14 _=W and t _ 295 s.14.2 Control System DesignUsing the first-order model of (4) for the open-loop transfer function Gaq(s) and assuming for the moment that linear control of the heater power output q(t) is possible, the block diagram of Figure 6 represents the closed-loop system. Td(s) is the desired, or set-point, temperature,C(s) is the compensator transfer function, and Q(s) is the heater output in watts.Given this simple situation, introductory linear control design tools such as the root locus method can be used to arrive at a C(s) which meets the step response requirements on rise time, steady-state error, and overshoot specified in Table 1. The upshot, of course, is that a proportional controller with sufficient gain can meet all specifications. Overshoot is impossible, and increasing gains decreases bothsteady-state error and rise time.Unfortunately, sufficient gain to meet the specifications may require larger heat outputs than the heater is capable of producing. This was indeed the case for this system, and the result is that the rise time specification cannot be met. It is quite revealing to the student how useful such an oversimplified model, carefully arrived at, can be in determining overall performance limitations.4.3 Simulation ModelGross performance and its limitations can be determined using the simplified model of Figure 6, but there are a number of other aspects of the closed-loop system whose effects on performance are not so simply modeled. Chief among these are ·quantization error in analog-to-digital conversion of the measured temperature and· the use of PWM to control the heater.Both of these are nonlinear and time-varying effects, and the only practical wayto study them is through simulation (or experiment, of course).Figure 7 shows a SimulinkTM block diagram of the closed-loop system which incorporates these effects. A/D converter quantization and saturation are modeled using standard Simulink quantizer and saturation blocks. Modeling PWM is more complicated and requires a custom S-function to represent it.This simulation model has proven particularly useful in gauging the effects of varying the basic PWM parameters and hence selecting them appropriately. (I.e., the longer the period, the larger the temperature error PWM introduces. On the other hand, a long period is desirable to avoid excessive relay ―chatter,‖ among other things.) PWM is often difficult for students to grasp, and the simulation model allows an exploration of its operation and effects which is quite revealing.4.4 The MicrocontrollerSimple closed-loop control, keypad reading, and display control are some of the classic applications of microcontrollers, and this project incorporates all three. It is therefore an excellent all-around exercise in microcontroller applications. In addition, because the project is to produce an actual packaged prototype, it won’t do to use a simple evaluation board with the I/O pins jumpered to the target system. Instead, it’s necessary to develop a complete embedded application. This entails the choice of an appropriate part from the broad range offered in a typical microcontroller family and learning to use a fairly sophisticated development environment. Finally, a custom printed-circuit board for the microcontroller and peripherals must be designed and fabricated.Microcontroller Selection. In view of existing local expertise, the Motorola line of microcontrollers was chosen for this project. Still, this does not narrow the choice down much. A fairly disciplined study of system requirements is necessary to specify which microcontroller, out of scores of variants, is required for the job. This is difficult for students, as they generally lack the experience and intuition needed as well as the perseverance to wade through manufacturers’ selection guides.Part of the problem is in choosing methods for interfacing the various peripherals (e.g., what kind of display driver should be used?). A study of relevant Motorola application notes [2, 3, 4] proved very helpful in understandingwhat basic approaches are available, and what microcontroller/peripheral combinations should be considered.The MC68HC705B16 was finally chosen on the basis of its availableA/D inputs and PWMoutputs as well as 24 digital I/O lines. In retrospect this is probably overkill, as only one A/D channel, one PWM channel, and 11 I/O pins are actually required(see Figure 3). The decision was made to err on the safe side because a complete development system specific to the chosen part was necessary, and the project budget did not permit a second such system to be purchased should the firstprove inadequate.Microcontroller Application Development. Breadboarding of the peripheral hardware, development of microcontroller software, and final debugging and testingof a custom printed-circuit board for the microcontroller and peripherals all require a development environment of some kind. The choice of a development environment, like that of the microcontroller itself, can be bewildering and requires some faculty expertise. Motorola makes three grades of development environment ranging from simple evaluation boards (at around $100) to full-blown real-time in-circuit emulators (at more like $7500). The middle option was chosen for this project: the MMEVS, which consists of _ a platform board (which supports all 6805-family parts), _ an emulator module (specific to B-series parts), and _ a cable and target head adapter (package-specific). Overall, the system costs about $900 and provides, with some limitations, in-circuit emulation capability. It also comes with the simple but sufficient software development environment RAPID [5].Students find learning to use this type of system challenging, but the experience they gain in real-world microcontroller application development greatly exceeds the typical first-course experience using simple evaluation boards.Printed-Circuit Board. The layout of a simple (though definitely not trivial) printed-circuit board is another practical learning opportunity presented by this project. The final board layout, with package outlines, is shown (at 50% of actual size) in Figure 8. The relative simplicity of the circuit makes manual placement and routing practical—in fact, it likely gives better results than automatic in an application like this—and the student is therefore exposed to fundamental issues of printed-circuit layout and basic design rules. The layout software used was the very nice package pcb,2 and the board was fabricated in-house with the aid of our staff electronics technician.5 ConclusionThe aim of this paper has been to describe an interdisciplinary, undergraduate engineering design project: a microcontroller- based temperature control system with digital set-point entry and set-point/actual temperature display. A particular design of such a system has been described, and a number of design issues which arise—from a variety of engineering disciplines—have been discussed. Resolution of these issues generally requires knowledge beyond that acquired in introductory courses, but realistically accessible to advance undergraduate students, especially with the advice and supervision of faculty.Desirable features of the problem, from a pedagogical viewpoint, include the use of a microcontroller with simple peripherals, the opportunity to usefully apply introductorylevel modeling of physical systems and design of closed-loop controls, and the need for relatively simple experimentation (for model validation) and simulation (for detailed performance prediction). Also desirable are some of the technologyrelated aspects of the problem including practical use of resistive heaters and temperature sensors (requiring knowledge of PWM and calibration techniques, respectively), microcontroller selection and use of development systems, and printedcircuit design.AcknowledgementsThe author would like to acknowledge the hard work, dedication, and ability shown by the students involved in this project: Mark Langsdorf, Matt Rall, PamRinehart, and David Schuchmann. It is their project, and credit for its success belongs to them. References[1] M. Langsdorf, M. Rall, D. Schuchmann, and P. Rinehart,―Temperature control of a microscope slide dryer,‖ in1997 National Conference on Undergraduate Research,(Austin, TX), April 1997. Poster presentation.[2] Motorola, Inc., Phoenix, AZ, Temperature Measurementand Display Using the MC68HC05B4 and the MC14489, 1990. Motorola SemiconductorApplicationNote AN431.[3] Motorola, Inc., Phoenix, AZ, HC05 MCU LED Drive Techniques Using the MC68HC705J1A, 1995. Motorola Semiconductor Application Note AN1238.[4] Motorola, Inc., Phoenix, AZ, HC05MCU Keypad Decoding Techniques Using the MC68HC705J1A, 1995. Motorola Semiconductor Application Note AN1239.[5] Motorola, Inc., Phoenix, AZ, RAPID Integrated Development Environment User’s Manual, 1993. (RAPID wasdeveloped by P & E Microcomputer Systems, Inc.).。