Development of program of a universal thermostat using ATmega8 microcontroller
Keywords:
microcontroller, Arduino, thermistiors, LabVIEW program, ATmega8, PWM, Arduino and LabVIEW program’s flowchart, universal thermostatAbstract
In the modern world broad application more and more acquires implementation of new technique, both in industrial economy, and in domestic needs. Methods of effective use of energy are developed for improving of any technique. One of such devices are microcontrollers. For improving and automatization of operations the modern technologies and their products, for example air humidity, a difference of temperatures are used. For different a working condition it is necessary different parts of the used product and therefore it is necessary will reduce as much as possible auxiliary sensors. Compact and universal sensors and programs of its implementation are for this purpose developed. Article is devoted to development of model of the universal thermostat on the ATmega8 microcontroller. The used devices and methods of their connection to the microcontroller are described. The program runtime algorithm in the special environment CodeVisionAVR is developed. The diagram of the device is created, debugging of the program in the simulator of the diagrams ISIS Proteus is made. The program code firmware in the ATmega8 microcontroller is made. It is possible to realize it PWM both a program, and hardware method. The first of them to us doesn't resemble as it captures all resources of the microcontroller, and we still need to organize inquiry of the sensor. Therefore we selected the hardware method using internal resources of the computer. For its implementation the operator
WriteAnalog() which can be executed in the background is used. Results of operation both the hardware, and program part is executed in full and explained in the present article. The universal thermostat is the best analog of all temperature sensors and is simple in its use.