The content of the invention
The present invention solves the technical problem of how to solve the considerations such as computer room, electric room to be freezed, lacked with air-conditioning
The problem of temperature control that is orderly and having feedback causes a large amount of waste of energy.
In view of this, in a first aspect, the present invention proposes a kind of indoor temperature control device, the indoor temperature control device
Including sampling module, analysis module and control module, wherein:The sampling module is used in real-time collection room and outdoor
Temperature information;The analysis module is used to judge whether indoor temperature is less than outdoor temperature;The control module is used for when interior
When temperature is higher than outdoor temperature, control wind turbine is opened, and closes air-conditioning;The control module is used for when indoor temperature is less than outdoor temp
When spending, control air-conditioning freezes, and closes wind turbine.
Wherein, the indoor temperature control device control air-conditioning, which carries out refrigeration, includes:The analysis module judges Indoor Temperature
Whether degree is less than preset value;When less than preset value, the control module controls the temperature of the air-conditioning higher than preset value once;
When higher than preset value, the control module controls the temperature of the air-conditioning lower than preset value once.
Wherein, after the control module controls the air conditioner refrigerating indoor temperature is reached preset value, the control module
Control the air-conditioner temperature consistent with preset value.
Wherein, the indoor temperature control device further includes setup module, and the setup module is used to pre-set temperature
Preset value.
Wherein, the analysis module is additionally operable to judge whether the wind turbine is in malfunction, when in malfunction,
The control module sends alarm.
Second aspect, the present invention provide a kind of control method of indoor temperature, including:In the real-time collection room of controller and
Outdoor temperature information;Judge whether indoor temperature is less than outdoor temperature;If indoor temperature is higher than outdoor temperature, the controller
Control wind turbine to open, close air-conditioning;If indoor temperature is less than outdoor temperature, the controller control air-conditioning freezes, closes
Wind turbine.
Wherein, the controller control air-conditioning, which carries out refrigeration, includes:Controller judges whether indoor temperature is less than preset value;
If being less than preset value, the controller controls the temperature of the air-conditioning higher than preset value once;If it is higher than preset value, the control
Device controls the temperature of the air-conditioning lower than preset value once.
Wherein, after the controller controls the air conditioner refrigerating indoor temperature is reached preset value, the controller control
The air-conditioner temperature is consistent with preset value.
The third aspect, the present invention provide a kind of equipment, and the equipment includes processor, memory and receiver, described
Processor is respectively coupled to the memory and the receiver, wherein:The processor uses process in the terminal device
In, judge whether indoor temperature is less than outdoor temperature, if indoor temperature is higher than outdoor temperature, the processor control wind turbine is beaten
Open, close air-conditioning, if indoor temperature is less than outdoor temperature, the processor control air-conditioning freezes, and closes wind turbine;It is described to connect
Receive device and be used for temperature information in real-time reception room and outdoor;The memory is used to store default temperature information.
Relative to the prior art, beneficial effects of the present invention:The present invention is utilized according to indoor and outdoor temperature difference
Wind turbine or air-conditioning are controlled indoor temperature, start wind turbine when indoor temperature is higher than outdoor, automatic using outdoor empty
Gas give computer room cooling, achieve the purpose that it is energy saving, when outdoor than interior it is high when start air conditioner refrigerating, such mechanism saves largely
Electric energy, and the present invention can be according to default temperature, and dynamic adjusts air-conditioning output cold, keeps computer room temperature to be in constant temperature shape
State.
Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme is described in detail:
In view of this, in a first aspect, referring to Fig. 1 and Fig. 2, the present invention proposes a kind of indoor temperature control device, Indoor Temperature
Degree control device includes sampling module, analysis module and control module, wherein:Sampling module be used for real-time collection room in and
Outdoor temperature information;Analysis module is used to judge whether indoor temperature is less than outdoor temperature;Control module is used to work as Indoor Temperature
When degree is higher than outdoor temperature, control wind turbine is opened, and closes air-conditioning;Control module is used for when indoor temperature is less than outdoor temperature,
Control air-conditioning freezes, and closes wind turbine.
Herein, refering to Fig. 2, the specific module of the present embodiment is illustrated:
Sampling module, sampling module include indoor temperature transmitter and outdoor temperature sensor, are each responsible in collection room
With outdoor temperature.
Indoor temperature transmitter and outdoor temperature sensor, are connected by 485 ports with RS485 communication chips respectively,
RS485 communication chips connect main control chip by serial ports;
Control module includes, and main control chip includes but are not limited to AT89C51 types microcontroller or other performance ratios, and it is more excellent
Processor chips more, are mainly used for controlling modules, and all functions of the invention are all based on main control chip realization,
The main control chip is connected by I/O ports with other modules, specific port control information reference Fig. 1;
Air conditioner remote module, the module is mainly by forming the microprocessor chip, amplifying transistor, infrared hair of remote signal
Optical diode forms, and main control chip receives the command signal sent by analysis module, and command signal is converted to accordingly
Air-conditioning is turned on and off the command signal being turned on and off with wind turbine, is sent into the micro-chip processor of air conditioner remote module, is output to
Encoder, by modulators modulate over the carrier signal, forms the high-frequency pulse string for including functional information, by transistor BG
Amplification, promotes infrared light-emitting diode to launch pulse-modulated signal, air-conditioning is remotely controlled;
The specific circuit of the air conditioner remote module is:The output serial ports of MCU mono- divides two-way, connect all the way resistance R4 be followed by+
3.3V voltages, another way connection resistance R3 are followed by the ground level of triode Q2, the emitter ground connection of triode Q2, the collection of triode Q2
Electrode connects one end of infrared light-emitting diode, and another terminating resistor R5 of infrared light-emitting diode is followed by+3.3V voltages;
Especially, the present apparatus can also be connected by communication module with PC ends or mobile terminal, and PC ends or mobile terminal can be with
The preset value of set temperature, wherein, communication module can be RS485 communication chips or other communication cores better than its performance
Piece, by this communication module, can make mobile terminal remote set preset value and control the operating status of air-conditioning and wind turbine.
Especially, wind turbine is connected by the input/output terminal of insulator chain and on-off circuit and MCU, and insulator chain includes:
The output terminal of one end connection wind turbine of photoelectrical coupler, the other end divide two-way, and connecting resistance R6 is followed by+3.3V voltages all the way, another
Road connects the input port of MCU;On-off circuit includes:The input that intermediate relay KA1 switch contacts both ends connect wind turbine respectively is defeated
Outlet;Coil one end connection diode D1 one end of intermediate relay KA1 is followed by+5V voltages, other end connection diode D1's
The other end is followed by the collector of triode Q1, the emitter ground connection of triode Q1, and the ground level connection resistance R1 of triode Q1 is followed by
The output terminal of one end connection MCU of resistance R2, the other end of resistance R2 are grounded after being connected with the emitter of triode Q1.
Especially, after control module control air conditioner refrigerating makes indoor temperature reach preset value, control module control air-conditioning temperature
Degree is consistent with preset value.
Especially, indoor temperature control device further includes setup module, and setup module is used to pre-set the default of temperature
Value.
Especially, analysis module is additionally operable to judge whether wind turbine is in malfunction, when in malfunction, controls mould
Block sends alarm.
Second aspect, refering to Fig. 3, the present invention provides a kind of control method of indoor temperature, including:
S101:The temperature information of in the real-time collection room of controller and outdoor;
S102:Judge whether indoor temperature is less than outdoor temperature;
S103:If indoor temperature is higher than outdoor temperature, controller control wind turbine is opened, and closes air-conditioning;
S104:If indoor temperature is less than outdoor temperature, controller control air-conditioning freezes, and closes wind turbine.
Especially, controller control air-conditioning, which carries out refrigeration, includes:Controller judges whether indoor temperature is less than preset value;If
Less than preset value, the temperature of controller control air-conditioning is higher than preset value once;If being higher than preset value, controller controls the temperature of air-conditioning
Degree is lower than preset value once.
Especially, controller control air conditioner refrigerating indoor temperature is reached preset value after, controller control air-conditioner temperature with
Preset value is consistent.
The third aspect, refering to Fig. 4, the present invention provides a kind of equipment, and equipment includes processor, memory and receiver,
Processor is respectively coupled to memory and receiver, wherein, processor judges that indoor temperature is during terminal device use
No to be less than outdoor temperature, if indoor temperature is higher than outdoor temperature, processor control wind turbine is opened, and air-conditioning is closed, if indoor temperature
Less than outdoor temperature, processor control air-conditioning freezes, and closes wind turbine;Receiver is used in real-time reception room and outdoor
Temperature information;Memory is used to store default temperature information.
Relative to the prior art, beneficial effects of the present invention:The present invention is utilized according to indoor and outdoor temperature difference
Wind turbine or air-conditioning are controlled indoor temperature, start wind turbine when indoor temperature is higher than outdoor, automatic using outdoor empty
Gas give computer room cooling, achieve the purpose that it is energy saving, when outdoor than interior it is high when start air conditioner refrigerating, such mechanism saves largely
Electric energy, and the present invention can be according to default temperature, and dynamic adjusts air-conditioning output cold, keeps computer room temperature to be in constant temperature shape
State.
The foregoing is merely the embodiment of the present invention, is not intended to limit the scope of the invention, every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.