Invention content
The technical problem to be solved in the present invention is, provide a kind of can be remotely controlled one or more according to the control instruction of reception
The infrared remote control module of a electrical equipment and infrared control system with the infrared remote control module.
The technical solution adopted by the present invention to solve the technical problems is:A kind of infrared remote control module is constructed, can be used for distant
The one or more electrical equipments of control, including:Memory module, infrared conversion module, infrared emission tube drive circuit, infrared emission mould
Block and processor;
The memory module, is stored with infrared code library, and the infrared code library includes and the electrical equipment matched first
Infrared coded data;
The processor is communicated to connect with the memory module and the infrared conversion module, for receiving control instruction
And it is forwarded to the infrared conversion module, and obtained corresponding described the in the memory module according to control instruction selection
One infrared coded data, and it is forwarded to the infrared conversion module;
The infrared conversion module, for being encoded and being modulated first infrared coded data received, shape
It is exported at the second infrared coded data of required format, and by second infrared coded data, described in receiving
Control instruction generates driving control signal output;
The infrared emission tube drive circuit is communicated to connect with the infrared conversion module, infrared for receiving described second
Coded data and the driving control signal, and according to the driving control signal, second infrared coded data is carried out
The third infrared coded data formed after enhanced processing, and the third infrared coded data is exported;
The infrared transmission module is connect with the infrared emission tube drive circuit, for receiving and according to the third
Infrared coded data emits infrared signal outward.
In the infrared remote control module of the present invention, the processor includes:
Ad hoc network module is used for hoc Wireless Local Area Network, connects the infrared conversion module and the transmission control refers to
The intelligent terminal and/or enviromental monitoring equipment of order;
Command reception judging unit for receiving the control instruction, and judges respectively to export different control instructions;
Ad hoc network control unit is communicated to connect with the ad hoc network module, and judging unit is received for receiving described instruction
The networking control instruction in control instruction is exported, the ad hoc network modular organisation WLAN is controlled;
First retransmission unit communicates to connect with the ad hoc network module, refers to for receiving the modulation in the control instruction
It enables, and by the ad hoc network module, the modulation instructions is sent to the infrared conversion module, to control described infrared turn
First infrared coded data is encoded and is modulated by mold changing block, also generates the driving control signal.
In the infrared remote control module of the present invention, the processor includes the second retransmission unit, second retransmission unit
Judging unit communication connection is received with described instruction, passes through I between second retransmission unit and the memory module2C buses
Connection;
Second retransmission unit receives the infrared code calling that described instruction receives in judging unit output control instruction and refers to
It enables, and I is passed through according to the infrared code call instruction2C buses obtain in the corresponding memory module described first infrared
After coded data, then pass through I2C buses export first infrared coded data to the infrared conversion module.
In the infrared remote control module of the present invention, the ad hoc network module is:For set up blueteeth network bluetooth module,
For setting up the zigbee modules of zigbee network, for setting up any one in the wifi module of wifi network.
In the infrared remote control module of the present invention, the infrared remote control module further includes for the entire infrared remote control module
The power supply VDD of power supply is provided.
In the infrared remote control module of the present invention, the infrared conversion module includes:Infrared conversion chip, with I2C buses
Connection;
Pull-up power supply MVDD;
First pull-up resistor R4, is connected on I2Between the SDA line of C buses and the pull-up power supply MVDD;
Second pull-up resistor R5, is connected on I2Between the SCK line of C buses and the pull-up power supply MVDD;
Second divider resistance R2, is connected on I2Between the BUSY lines of C buses and the BUSY pins of the infrared conversion chip;
Third divider resistance R3, a termination I2The BUSY lines of C buses, other end ground connection, the second divider resistance R2, the
Three divider resistance R3 are divider resistance, the level for matching the processor and the infrared conversion chip;
The infrared remote control module further includes infrared receiving module and the first divider resistance R1, wherein described infrared to connect
Receipts module is infrared receiving tube D1;
The power supply VDD, the infrared receiving tube D1, the first divider resistance R1, the infrared conversion chip
RMT pins be sequentially connected in series, the first divider resistance R1 flows into the infrared conversion core for limiting the power supply VDD
The electric current of piece RMT pins.
In the infrared remote control module of the present invention, the power supply VDD is the button cell with charge function, described
The outer layer in the infrared remote control module is arranged in the interface socket of button cell.
The present invention also provides a kind of infrared control systems, including wireless router, intelligent terminal and/or enviromental monitoring equipment
And infrared remote control module described in any one of the above embodiments,
The intelligent terminal and/or enviromental monitoring equipment connect the wireless router, the intelligent terminal and/or environment
Monitoring device sends out control instruction to the wireless router;
The wireless router connects the infrared remote control module, and control instruction is forwarded to described by the wireless router
Infrared remote control module.
In the infrared control system of the present invention, the infrared remote control module includes ad hoc network module;The ad hoc network mould
Block further includes RF antennas, and wireless router is connected by the RF antennas.
In the infrared control system of the present invention, the infrared control system includes:One or more can use infrared control
Electrical equipment, the electrical equipment receives the infrared signal that the infrared transmission module of the infrared remote control module is sent out, and executes
Operation corresponding with the control instruction.
In the infrared control system of the present invention, the intelligent terminal and/or enviromental monitoring equipment by wireless network or
Cable network remotely connects the wireless router, and sends out the control instruction to the wireless router;
The intelligent terminal is one or more in mobile phone, tablet computer, laptop, PDA;
The enviromental monitoring equipment is temperature monitoring equipment, humidity detection equipment, one kind in PM2.5 monitoring devices or more
Kind.
Implement the present invention at least to have the advantages that:The present invention has infrared code library in a storage module, when needing to control
Corresponding infrared equipment is made, only need to select corresponding infrared coded data from memory module according to control instruction, to
It realizes control to different infrared equipments, has the advantages that simple system, easy to control.
It further, can be by ad hoc network module come hoc Wireless Local Area Network, to which intelligent terminal and/or environmental monitoring are set
Standby can be established with infrared conversion module connects, and realizes control, data sharing control of household electrical appliances etc..
Further, which is also provided with several infrared transmitting tubes in different directions, so as to control
The infrared equipment of different direction processed has the advantages that control range is wide.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
As shown in Figure 1, in the infrared remote control module first embodiment of the present invention comprising memory module 1, infrared conversion
Module 2, infrared emission tube drive circuit 3, infrared transmission module 4, processor 5.It should be understood that such circuit, module can be with
In a shell, and it is placed into suitable position, in order to be remotely controlled control to electrical equipment.
The memory module 1 is stored with infrared code library, and infrared code library includes several first infrared coded datas.This is first infrared
The infrared coding of coded data and electrical equipment matches, so as to be realized pair by calling first infrared coded data
The correspondence straighforward operation of electrical equipment.Preferably, memory module 1 can be flash storage;It is of course also possible to use other
Storage medium.
Processor 5 is communicated to connect with memory module 1 and infrared conversion module 2.The processor 5 refers to according to the control received
It enables, selection acquisition the first infrared coded data corresponding with the control instruction from memory module 1, and red by the first of acquisition
Outer coding data forwarding is to infrared conversion module 2.Further, which will also receive control instruction and is forwarded to infrared turn
Block 2 is changed the mold, so that infrared conversion module 2 is handled.In the present embodiment, processor 5 can be MCU (Microcontroller
Unit, micro-control unit) or the control processors such as microcontroller.
Infrared conversion module 2 is communicated to connect with infrared emission tube drive circuit 3, processor 5.The infrared conversion module 2 will
The first infrared coded data received is encoded and is modulated, formed needed for format the second infrared coded data, and by the
Two infrared coded datas are exported to infrared emission tube drive circuit 3.Further, infrared conversion module 2 is also according to receiving
Control instruction generates driving control signal and exports to infrared emission tube drive circuit 3.
Infrared emission tube drive circuit 3 is communicated to connect with infrared conversion module 2, infrared transmission module 4, receives infrared conversion
The second infrared coded data and driving control signal that module 2 exports, and according to driving control signal, by the second infrared coding number
According to being amplified the third infrared coded data that is formed after processing, and third infrared coded data is exported.
Infrared transmission module 4 is connect with infrared emission tube drive circuit 3, receives 3 output of infrared emission tube drive circuit
Third infrared coded data, and infrared signal is emitted according to third infrared coded data outward, and then control corresponding electric appliance and set
It is standby.Wherein, infrared transmission module 4 may include several infrared transmitting tube D2, D3 ..., Dm, and be arranged in different directions, with
Convenient for opposite with the electrical equipment of surrounding, infrared signal is received convenient for electrical equipment.Preferably, several infrared transmitting tube D2,
D3 ..., Dm can be uniformly arranged in 360 degree, m >=4.
As shown in Figure 1, in the present embodiment, which further includes infrared receiving module 7, power supply
VDD6, ADC battery sampling circuit 9, battery capacity indication lamp 8 etc.;Certainly, such module, circuit can be selected according to actual needs
Select setting.
The infrared receiving module 7 is connect with infrared interconnecting module 2, and communication can be attached with electrical equipment, is carried out pair
Code setting, and then the infrared coding rule of electrical equipment can be learnt, and converted by infrared conversion module 2, through processing
Device is stored to the infrared code library of memory module 1, and the first infrared coded data to match with electrical equipment is formed.
Power supply VDD6 provides working power for entire infrared remote control module.In the present embodiment, power supply
VDD6 can select button cell, the interface socket of button cell that the outer layer in infrared remote control module is arranged.Preferably, button electricity
The interface socket in pond is arranged in the bottom of infrared remote control module, and is buckled and fixed by structure.In the present embodiment, button cell carries
It is used to above-mentioned infrared remote control module for 3V power supplys.The present invention high, light-weight battery using built-in capacity, such as lithium manganese button
Battery CR series is such as attached to wall, is attached in household appliance, on ceiling light, avoids the prior art, it can be achieved that arbitrary arrangement
Middle the defects of needing the inconvenient for use of external independent current source, installation inconvenience, have many advantages, such as easy to use, easy for installation.In addition,
The ad hoc network module of super low-power consumption, such as bluetooth module can be coordinated to improve the continuation of the journey energy of battery to realize prolonged continuation of the journey
Power extends the usage time of infrared remote control module.
Battery level information is provided the user with for convenience, and battery capacity is supervised using ADC battery samplings circuit 9
Control, and the current voltage of monitoring is sent to processor 5, and realize battery detection.
Further, battery capacity indication lamp 8 can also be set, connect with processor 5, it, can be with when the low battery of monitoring
It is indicated by battery capacity indication lamp 8, timely finds that battery owes electricity convenient for user, replace battery in time, so as to entire red
Outer remote control module normal use.The battery capacity indication lamp 8 can be LED light.
Further, be as shown in Figure 2 processor one embodiment functional block diagram, the processor 5 include ad hoc network
Module 50, the first retransmission unit 51, ad hoc network control unit 52, command reception judging unit 53, the second retransmission unit 54, RF days
Line 55 etc..
Ad hoc network module 50 is used for hoc Wireless Local Area Network, connects infrared conversion module 2, and send the intelligence of control instruction
It can terminal and/or enviromental monitoring equipment.The processor 5 can also connect wireless router by RF antennas 55, for intelligent end
End and/or enviromental monitoring equipment are communicatively coupled by telecommunication network with wireless router, and intelligent terminal and/or ring are accessed
The control instruction of border monitoring device output.
Command reception judging unit 53 is judged different control instruction difference is defeated for receiving control instruction
Go out.
Ad hoc network control unit 52 is communicated to connect with ad hoc network module 50, is exported for receiving command reception judging unit 53
Networking control instruction in control instruction, 50 hoc Wireless Local Area Network of control ad hoc network module.
First retransmission unit 51 is communicated to connect with ad hoc network module 50, for receiving the modulation instructions in control instruction, and
By ad hoc network module 50, modulation instructions are sent to infrared conversion module 2, it is infrared by first to control infrared conversion module 2
Coded data is encoded and is modulated, and the first retransmission unit 51 also generates driving control signal after receiving modulation instructions.
Second retransmission unit 54 is communicated to connect with command reception judging unit 53, and also passes through I between memory module 12C
Bus connects.
Second retransmission unit 54 receives the infrared code call instruction in 53 output control instruction of command reception judging unit, and
According to infrared code call instruction, pass through I2After C buses obtain the first infrared coded data in corresponding memory module 1, then lead to
Cross I2C buses export the first infrared coded data to infrared conversion module 2.
Further, ad hoc network module 50 is:For setting up the bluetooth module of blueteeth network, for setting up zigbee network
Zigbee modules, for setting up any one in the wifi module of wifi network.It can be by intelligence by ad hoc network module 50
Energy terminal and/or enviromental monitoring equipment, infrared remote control module etc. form local area network, and then realize the shared of data.For example, from
Networking module 50 is bluetooth module;Corresponding bluetooth module is provided in intelligent terminal and/or enviromental monitoring equipment, you can establish
Communication, to which the control instruction that intelligent terminal and/or enviromental monitoring equipment generate can be sent to infrared distant by bluetooth communication
After being handled in control module, corresponding infrared signal is formed, to control corresponding electrical equipment.
In the present embodiment, which further includes electric power detection unit 56, and electric power detection unit 56 and ADC batteries are adopted
Sample circuit 9 and battery capacity indication lamp 8 connect, and the current voltage for detecting power supply VDD6 is unsatisfactory for presetting in current voltage
Requirement when, control battery capacity indication lamp 8 work, with remind user carry out battery altering.
As shown in figure 3, being the circuit diagram of the infrared conversion module 2 of the infrared remote control module of the present invention, infrared conversion module 2
Including infrared conversion chip 21, pull-up power supply MVDD, the first pull-up resistor R4, the second pull-up resistor R5, the second divider resistance R2,
Third divider resistance R3.
Infrared conversion chip 21 and I2C buses connect.
First pull-up resistor R4 is connected on I2Between the SDA line and pull-up power supply MVDD of C buses.
Second pull-up resistor R5 is connected on I2Between the SCK line and pull-up power supply MVDD of C buses.
Second divider resistance R2 is connected on I2Between the BUSY lines of C buses and the BUSY pins of infrared conversion chip.
A termination I of third divider resistance R32The BUSY lines of C buses, other end ground connection, the second divider resistance R2, third
Divider resistance R3 is divider resistance, is used for the level of matched-field processors 5 and infrared conversion chip, prevents infrared conversion module 2
Electric current pours in down a chimney to processor 5.
Further, as shown in figs. 1 and 3, infrared remote control module further includes infrared receiving module 7 and the first divider resistance
R1, wherein infrared receiving module 7 can be an infrared receiving tube D1, and infrared conversion chip 21 also has the function of infrared learning, from
And the infrared signal that electrical equipment is sent out can be received, coding study is carried out, specifically, infrared remote control module is from infrared code library
The first infrared coded data is called, is sent to electrical equipment, if the electrical equipment does not respond to, then continues to call in infrared code library
Next group of the first infrared coded data, until electrical equipment respond, realize coding study function.
Power supply VDD6, infrared receiving tube D1, the first divider resistance R1, infrared conversion chip RMT pins go here and there successively
Connection, the first divider resistance R1 is for limiting the electric current that power supply VDD6 flows into infrared conversion chip RMT pins.
Further, as shown in figure 3, infrared conversion module 2 further includes the capacitance C1 for filtering, capacitance C1 first ends
Ground connection, second end connection power supply VDD6.
Further, be as shown in Figure 4 infrared remote control module ADC battery sampling circuits one embodiment signal
Figure, ADC battery samplings circuit 9 include the 6th resistance R6 of resistance, the 7th resistance R7, the 8th resistance R8.
Processor 5, the 6th resistance R6, the 7th resistance R7, power supply VDD6 are sequentially connected in series, the 8th one end resistance R8 and the
Tie point between six resistance R6, the 7th resistance R7 is connected, the other end is grounded, wherein the 6th resistance R6, the 8th resistance R8 groups
At bleeder circuit, the current voltage of power supply VDD6 is judged by the 6th resistance R6 change in pressure drop.
When the voltage of power supply VDD6 changes, then the pressure drop on the 6th resistance R6 changes, and passes through ADC
Analog-to-digital conversion mouth allows processor 5 to judge power supply VDD6 current voltages, to realize the monitoring to power supply VDD6.
Further, as shown in figure 5, Fig. 5 shows infrared emission tube drive circuit figure, infrared emission tube drive circuit 3
Including the 9th resistance R9, the tenth resistance R10, the second capacitance C2, metal-oxide-semiconductor Q1, and with infrared transmitting tube D2, D3 ..., Dm pairs
Divider resistance R11, R12 for answering ..., Rn, wherein n=m+9.
Power supply VDD6 is connect with second one end capacitance C2, the poles S of metal-oxide-semiconductor Q1, the tenth one end resistance R10 respectively, the
The two capacitance C2 other ends are grounded, and the poles G of metal-oxide-semiconductor Q1 connect with the other end of the tenth resistance R10 and by the 9th resistance R9 connections
The output pin of infrared conversion chip, the poles D of metal-oxide-semiconductor Q1 respectively by divider resistance R11, R12 ..., Rn connections it is corresponding
Infrared transmitting tube D2, D3 ..., Dm, infrared transmitting tube D2, D3 ..., Dm other end ground connection, metal-oxide-semiconductor Q1 receives drive control
It is connected after signal.Infrared conversion module 2 is by sending out infrared pulse i.e. low and high level signal, the conducting of control metal-oxide-semiconductor Q1 and pass
It is disconnected, to control the break-make of power supply VDD6, drive infrared transmitting tube D2, D3 ..., Dm to send out by the electric current of amplified signal
Go out stronger infrared light, to realize infrared driving.
In another embodiment of the invention, a kind of infrared control system is also provided, which includes wireless router, intelligence
The infrared remote control module of energy terminal and/or enviromental monitoring equipment and above-mentioned any embodiment.
Intelligent terminal and/or enviromental monitoring equipment are communicated to connect with wireless router, for sending out control instruction to wireless
Router.Intelligent terminal and/or enviromental monitoring equipment can remotely connect wireless routing by wireless network or cable network
Device, and control instruction is sent out to wireless router.
Wherein, intelligent terminal can be one or more in mobile phone, tablet computer, laptop, PDA.The intelligence
Terminal can input the control instruction for the electrical equipment for needing to control, hair by the operation interface of the offers such as APP, plug-in
It send to wireless router.The enviromental monitoring equipment can be in temperature monitoring equipment, humidity detection equipment, PM2.5 monitoring devices
It is one or more.The enviromental monitoring equipment can be by monitoring current environmental data, such as temperature, humidity, PM2.5 etc., and
It is sent to infrared remote control module using current environment parameter as control instruction, so that remote control air conditioner is removed again, humidifier, dehumidifier,
The electrical equipments such as air purifier.
It is remotely controlled module using the new infrared in the embodiment of the present invention, can allow and implement function such as:The infrared code utilized
The infrared learning function of library or remote controler controls multiple distinct devices with infrared receiver function.The infrared remote control
Module is also provided with several infrared transmitting tubes in different directions, so as to control the infrared equipment of different direction.
The infrared remote control module of the present invention is provided with button cell, because without plug-in power supply, product can arbitrary cloth
It sets.The high light-weight battery of built-in capacity is pasted such as li-Mn button cell CR series, it can be achieved that arbitrary arrangement, is such as attached on wall
In household appliance, it is attached on ceiling light.
In addition, the infrared remote control module can with intelligent terminal (such as mobile phone, tablet etc.), electrical equipment (such as intelligent router,
Intelligent bulbs, intelligent socket etc.) wireless communication, to realize remote control, electrical equipment control etc..
More infrared transmitting tubes may be selected in the infrared remote control module, by the calculating of angle and distance, by good red
The selection of outer transmitting tube and layout are placed, it can be achieved that being controlled without dead angle any angle.
This programme is because use battery, built-in ad hoc network module 50 that can select the bluetooth BLE schemes of super low-power consumption
To realize prolonged continuation of the journey;Using Bluetooth communication can with support the intelligent terminals of bluetooth BLE schemes, enviromental monitoring equipment,
Infrared remote control module etc. carries out group-net communication;By infrared revolving die block 2 can by from bluetooth be transmitted through come control signal change into it is red
Outer code is remotely controlled infrared equipment, and wireless application and control scene are simply listed below:
1) the corresponding remote control APP of mobile phone terminal installation, after being simply arranged and connecting, mobile phone can replace all devices
The remote controler of itself, a mobile phone can control all infrared equipments;
2) with enviromental monitoring equipment by bluetooth connection after, data sharing can be carried out with other electrical equipments, such as can
To obtain the temperature humidity of current environment, to automatically control the working condition of the electrical equipments such as air-conditioning, humidifier;
3) user can remotely connect the product in other places, to the electrical equipment of remote control family, such as turn off electric light,
Turn off socket.
It should be understood that above example only expresses the preferred embodiment of the present invention, description is more specific and detailed
Carefully, but it cannot be construed as a limitation to the scope of the present invention;It should be pointed out that for the common skill of this field
For art personnel, without departing from the inventive concept of the premise, above-mentioned technical characterstic can be freely combined, can also be done
Go out several modifications and improvements, these are all within the scope of protection of the present invention;Therefore, all to be done with scope of the invention as claimed
Equivalents and modification, should all belong to the covering scope of the claims in the present invention.