Summary of the invention
The purpose of this utility model is, a kind of air-conditioner temperature control device is provided, be used for to realize demonstration, the temperature of air-conditioner temperature setting, air-conditioning control and limit warm warning function.
A kind of air-conditioner temperature control device, comprise display, also comprise display, temperature sensor, sound light alarming circuit, single-chip microcomputer, keyboard input circuit, clock circuit and reset circuit, wherein keyboard input circuit, clock circuit and reset circuit link to each other with the input of single-chip microcomputer respectively, and display, temperature sensor and sound light alarming circuit link to each other with the output of single-chip microcomputer respectively.
The utility model also has the other technologies characteristics:
Described single-chip microcomputer is selected the ATmega16L single-chip microcomputer for use.
Described LCD display is connected by serial ports with single-chip microcomputer for adopting LCD LCDs 1602.
The utility model realized demonstration, the temperature of temperature setting, air-conditioning control and limit warm warning function, the both perfect function of air-conditioning has been simplified control and the operation of air-conditioning again; Not only satisfied the different requirements of different user to environment temperature, and can the interior temperature of complete intelligent conditioning chamber.
The specific embodiment
Among Fig. 1, a kind of air-conditioner temperature control device, comprise display, also comprise display, temperature sensor, sound light alarming circuit, single-chip microcomputer, keyboard input circuit, clock circuit and reset circuit, wherein keyboard input circuit, clock circuit and reset circuit link to each other with the input of single-chip microcomputer respectively, and display, temperature sensor and sound light alarming circuit link to each other with the output of single-chip microcomputer respectively.
Preferably, single-chip microcomputer is selected the ATmega16L single-chip microcomputer for use, and it comprises 8 AVR microprocessors of high-performance, low-power consumption, advanced risc architecture, erasable 10,000 times of the EEPROM of 512 bytes, four-way PWM, 8 tunnel 10 ADC.
Preferably, the LCD display circuit adopts LCD LCDs 1602.Effective area is big, and picture effect is good.
Preferably, ambient temperature detection circuit adopts temperature sensor DS18820, and this device does not in use need peripheral cell, needs an I/O line with single-chip microcomputer exchange message instrument.Power supply can derive from the I/O line of single-chip microcomputer, and need not external power source.
Preferably, the keyboard input circuit can be set by the button temperature.
Preferably, sound light alarming circuit be included as indicator lamp flash of light and provide the oscillating circuit part of electric energy, for loudspeaker provide electric energy the audio oscillator circuit part, realize the power amplifying part between flash of light and sounding synchronous control section, audio oscillator circuit and the loudspeaker, be mainly used under the situation of overtemperature, sounding and light, realize reporting to the police.
Power circuit provides power supply for device.
Clock circuit produces clock and drives single-chip microcomputer, makes single-chip microcomputer finish different command functions.Reset circuit resets single-chip microcomputer when starting, so that single-chip microcomputer is in original state when starting, and work under original state.
Directly be connected with air-conditioning at device of the present utility model, external temperature becomes 8 data signal to the analog signal conversion of input through temperature sensor DS18b20, is sent to single chip computer AT mega16L by the parallel port.Single chip computer AT mega16L handles the data signal decoding that receives, and by LCD1602 temperature is shown.Single chip computer AT mega16L also will scan the button design temperature simultaneously, the temperature signal of handling is compared with device button design temperature value range, when the temperature signal temperature is lower than the lower limit of button design temperature, send the sound and light alarm signal line space modulation hot working of going forward side by side; When the temperature signal temperature belongs to the value range of button design temperature, carry out the air-conditioning state that quits work; When temperature signal is higher than the higher limit of button design temperature, sends the sound and light alarm signal line space of going forward side by side and modulate cold duty; Formation three kinds of duties of can effectively controlling air conditioner refrigerating, heat and quit work like this, thus realize the intellectuality of air-conditioning.In addition, keyboard input aspect has adopted software to revise the maloperation input, namely Shu Ru temperature range must be in the determined scope of device hardware, directly reduce because the risk that maloperation brings has improved the reliability of installing, embodied the device design principle of hommization.
Among Fig. 2, be workflow diagram of the present utility model.Concrete working procedure is as follows:
(a) beginning, device initialization, beginning thermometric, displays temperature;
(b) temperature is converted to binary-coded decimal by 16 systems;
(c) if temperature surpasses limiting temperature, then carry out sound and light alarm; Otherwise and the device design temperature relatively;
(d) freeze heating or work functions not according to comparative result;
(e) return the thermometric program of carrying out.