A kind of device that function of infrared remote control is realized by audio signal
Technical field
The present invention relates to remote control technology, more particularly to a kind of dress that function of infrared remote control is realized by audio signal
It puts.
Background technology
Remote control is accomplished by the following way in current controlled plant:
1. pass through mating remote controler;Different controlled plants needs different remote controlers, if the controlled plant of user
More, then remote controler quantity increase can cause inconvenient to use, be unable to control if remote controler is lost or need to look for alternative
The device of control.
2. pass through Bluetooth technology;Remote controler by bluetooth with control by device talk to achieve the purpose that remote control, then requirement by
Control equipment is provided with corresponding bluetooth module, higher to the setting requirements of controlled plant and increase cost.
3. pass through wireless network;Remote controler and controlled plant to achieve the purpose that remote control, then will by wireless signal communication
Controlled plant is asked to be provided with corresponding wireless module, to the more demanding of controlled plant and increases cost.
Invention content
Part in view of above-mentioned deficiencies of the prior art is realized the purpose of the present invention is to provide one kind by audio signal red
The device of outer distant control function can export corresponding infrared signal according to audio signal and realize remote control, solve bluetooth in the prior art
Or wireless communication mode is higher to the setting requirements of controlled plant and the problem of cost increase.
In order to achieve the above object, this invention takes following technical schemes:
A kind of device that function of infrared remote control is realized by audio signal, including:
For obtaining the connector of audio signal;
Amplified signal and the level switch module transmitted are formed for being amplified processing to audio signal;
For the carrier frequency module for generating the carrier frequency of predeterminated frequency square wave and exporting;
The amplified signal of carrier frequency and level switch module conversion for carrier frequency module to be generated carries out hybrid modulation, is formed
Modulated signal and the mixing module transmitted;
For whether sending out the infrared transmission module of infrared signal according to the low and high level of modulated signal control LED light;
The connector, level switch module, mixing module, infrared transmission module are sequentially connected, and the carrier frequency module connects
Connect mixing module.
The described device that function of infrared remote control is realized by audio signal, wherein, the connector include first resistor,
Second resistance and the first capacitance;One end connection audio signal input end of first capacitance;The other end of first capacitance point three
Road:The first via is grounded by first resistor, and the second tunnel connects power end, third road connection level switch module by second resistance
The 1st end.
The described device that function of infrared remote control is realized by audio signal, wherein, the level switch module includes the
One triode, 3rd resistor and the 4th resistance;The base stage of first triode connects the another of the first capacitance by 3rd resistor
One end, the collector of the first triode connect power end, the 1st end for being also connected with mixing module, the one or three pole by the 4th resistance
The emitter ground connection of pipe.
The device that function of infrared remote control is realized by audio signal, wherein, it is brilliant that the carrier frequency module includes first
It shakes, the first phase inverter, the second phase inverter, the second capacitance, third capacitance, the 5th resistance and the 6th resistance;First crystal oscillator
One end is divided into three tunnels:The first via connects the input terminal of the first phase inverter by the 6th resistance by third capacity earth, the second tunnel,
Third road connects the other end of the first crystal oscillator by the 5th resistance;The other end of first crystal oscillator connects the defeated of the first phase inverter
The input terminal of outlet and the second phase inverter also passes through the second capacity earth;The output terminal connection second of first phase inverter is anti-
The input terminal of phase device, the 2nd end of the output terminal connection mixing module of the second phase inverter.
The device that function of infrared remote control is realized by audio signal, wherein, the mixing module includes first
Effect pipe and the first diode;The grid of first field-effect tube connects the collector of the first triode, the first field-effect tube
Drain electrode connection the second phase inverter output terminal and the first diode cathode, the first field-effect tube source electrode connection infrared emission
1st end of module and the anode of the first diode.
The device that function of infrared remote control is realized by audio signal, wherein, the infrared transmission module includes LED
Lamp, the second field-effect tube, the 7th resistance and the 8th resistance;The grid of second field-effect tube connects the source of the first field-effect tube
Pole also passes through the 8th resistance eutral grounding, the cathode to drain through the 7th resistance connection LED light of the second field-effect tube, second effect
Should pipe source electrode ground connection;The anode connection power end of LED light.
The device that function of infrared remote control is realized by audio signal, wherein, first triode is tri- poles of NPN
Pipe.
The device that function of infrared remote control is realized by audio signal, wherein, first field-effect tube is NMOS
Pipe.
The device that function of infrared remote control is realized by audio signal, wherein, second field-effect tube is NMOS
Pipe.
Compared to the prior art, a kind of device that function of infrared remote control is realized by audio signal provided by the invention leads to
It crosses connector and obtains audio signal, the amplified signal of mixing module needs is converted audio signals into level switch module,
The carrier frequency of predeterminated frequency square wave that carrier frequency module generates and amplified signal are mixed, modulate to form modulation letter by mixing module
Number, infrared transmission module controls the light on and off of LED light according to the low and high level of modulated signal, then sends out infrared signal when LED light is bright,
Infrared signal is not sent out when LED light is gone out, has achieved the purpose that infrared remote control, converts the audio into and facilitates making for user for infrared control
With, and realization method is simple, cost is relatively low.
Description of the drawings
Fig. 1 is the infrared signal schematic diagram of prior art IR remote controller output.
Fig. 2 is the structure diagram for the device preferred embodiment that the present invention realizes function of infrared remote control by audio signal.
Fig. 3 is the circuit diagram for the device preferred embodiment that the present invention realizes function of infrared remote control by audio signal.
Fig. 4 is the waveform combination that the modules for the device that the present invention realizes function of infrared remote control by audio signal export
Schematic diagram.
Specific embodiment
The present invention provides a kind of device that function of infrared remote control is realized by audio signal.To make the purpose of the present invention, skill
Art scheme and effect are clearer, clear and definite, and the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.It should manage
Solution, specific embodiment described herein only to explain the present invention, are not intended to limit the present invention.
The infrared signal of currently used IR remote controller output is as shown in Figure 1, remote signal is by a fixed frequency
(Generally 36K or 38K)Square-wave signal(That is carrier frequency)Discontinuously send realization.Fig. 1's(1)△ T1 represent 0 in part, i.e.,
There is the low level for becoming 1.5mS after 0.5mS in carrier frequency;△ T2 represent 1, i.e. the low electricity for becoming 2.5mS after 0.5mS occurs in carrier frequency
It is flat.Fig. 1's(2)Part represents T1 sections of amplified waveforms of carrier frequency.Multiple carrier frequency sections occur according to the time of setting or are lower i.e.
Can form corresponding remote signal code value, the above-mentioned carrier frequency section for receiving lasting break-make is obtained 0 by receiving terminal by established rule, 1,
The corresponding code value such as beginning or end.In Fig. 1, it is worth when being 1 and controls special spectrum(The generally infrared light of 930nm or so)LED
Lamp shines, and LED light does not shine when being 0;Modulated signal is shown as into regular shine of LED light and forms infrared signal, will be remotely controlled
Signal is converted to infrared signal to realize function of infrared remote control.It is provided by the invention that function of infrared remote control is realized by audio signal
Device on the basis of based on current code value setting, existing audio frequency apparatus is utilized to export collected audio signal, will
Corresponding frequency band, which is converted into, in the audio signal input present apparatus realizes infrared remote control LED light light on and off to be controlled to generate infrared signal
Function.It please refers to the device that function of infrared remote control is realized by audio signal described in Fig. 2 and includes connector 10, level switch module
20th, carrier frequency module 30, mixing module 40 and infrared transmission module 50.The connector 10, level switch module 20, mixing module
40th, infrared transmission module 50 is sequentially connected, and the carrier frequency module 30 connects mixing module 40.Power end VCC provides the present apparatus and needs
The operating voltage wanted.Connection relation between above-mentioned module is:The input terminal connection audio signal input end of connector 10, connection
1st end of the output terminal connection level switch module 20 of device 10;The of the 2nd end connection mixing module 40 of level switch module 20
1 end, the output terminal of the 2nd end connection carrier frequency module 30 of mixing module 40, the 3rd end connection infrared transmission module of mixing module 40
50 the 1st end.It is described to realize that the device of function of infrared remote control may be configured as audio remote controller by audio signal, pass through sound control
The transmitting of infrared signal processed.
Please refer to Fig. 3, the connector 10 is for obtaining audio signal, including first resistor R1, second resistance
R2 and the first capacitance C1.One end connection audio signal input end of the first capacitance C1 receives the audio letter of audio frequency apparatus output
Number;The other end of first capacitance C1 point, three tunnels:The first via is grounded by first resistor R1, and the second tunnel is connected by second resistance R2
Power end VCC, third road connect the 1st end of level switch module 20.Audio signal is corresponding with the make-and-break time of remote signal,
When audio signal is high, it is equivalent to control carrier frequency and opens;When audio signal is low, it is equivalent to control carrier frequency and disconnects, in Fig. 4
The waveform of audio signal.It is 0.5mS or so that in setting, the interval of audio signal transformation is most short, and maximum duration is 3mS or so, is turned
It is about 330Hz -20000Hz to change frequency.General audio frequency apparatus can export the audio signal of above-mentioned requirements.It is being embodied
When remote signal is first defined according to required distant control function, by one audio file of software development, make the waveform of audio signal
Meet the code value requirement of remote signal.In use, the audio letter that corresponding distant control function represents can be obtained by playing the audio file
Number.Connector 10 can by earphone interface etc. obtain audio signal, after audio signal is biased output to level switch module into
Row amplification.
The level switch module 20 is used to zooming into audio signal into the amplification for meeting 40 input requirements of mixing module letter
Number and transmit, including the first triode Q1,3rd resistor R3 and the 4th resistance R4;First triode Q1 is NPN triode.Institute
The base stage for stating the first triode Q1 passes through the other end of 3rd resistor R3 the first capacitances of connection C1, the collector of the first triode Q1
By the 4th resistance R4 connection power ends VCC, it is also connected with the 1st end of mixing module, the emitter ground connection of the first triode Q1.From
The collector of first triode Q1 is exported in amplified amplified signal to mixing module 40.Level conversion mould in the present embodiment
Block 20 plays the role of voltage amplification, is the low level in amplified signal by the negative level corresponding conversion in audio signal, by sound
The voltage amplification of positive level in frequency signal, the waveform of audio signal as shown in Figure 4 to amplified signal.It should be noted that
It is that the level switch module 20 can also use block isolating circuit, amplifying circuit, level shifting circuit etc., as long as can be by audio
Signal waveform as shown in Figure 4 is converted into the amplified signal waveform shown in Fig. 4 for meeting 40 input requirements of mixing module, all should
In the scope of the present invention.
The carrier frequency module 30 is used to generate carrier frequency and the output of predeterminated frequency square wave, including the first crystal oscillator Y1, first
Phase inverter inv1, the second phase inverter inv2, the second capacitance C2, third capacitance C3, the 5th resistance R5 and the 6th resistance R6;Described
One end of one crystal oscillator Y1 is divided into three tunnels:The first via is grounded by third capacitance C3, and the second tunnel passes through the 6th resistance R6 connections first
The input terminal of phase inverter inv1, the other end that third road passes through the 5th resistance R5 the first crystal oscillators of connection Y1;The first crystal oscillator Y1
The other end connect the first phase inverter inv1 output terminal and the second phase inverter inv2 input terminal, also connect by the second capacitance C2
Ground;The output terminal of the first phase inverter inv1 connects the input terminal of the second phase inverter inv2, the output of the second phase inverter inv2
2nd end of end connection mixing module 40.Carrier frequency is made of the square wave of predeterminated frequency, and predeterminated frequency is set according to actual requirement,
In the present embodiment the frequency of carrier frequency be 38K, duty ratio 50%.The square wave is that the first crystal oscillator Y1 is persistently generated, such as institute in Fig. 4
Show the waveform of carrier frequency.The first phase inverter inv1 and the second phase inverter inv2 is used to convert the phase of square wave and smooth work
With.In the specific implementation, the carrier frequency module 30 can generate square wave, such as oscillating circuit by other circuits;Of phase inverter
Number can be according to requiring to set or being changed to other devices, as long as carrier frequency module 30 can continue to generate the square wave of a fixed frequency size
.
The amplified signal that the carrier frequency and level switch module 20 that the mixing module 40 generates carrier frequency module 30 are converted into
Row hybrid modulation forms modulated signal and transmits, including the first field-effect tube Q2 and the one or two pole D1;First field-effect tube Q2
For NMOS tube.The grid of the first field-effect tube Q2 connects the collector of the first triode Q1, the leakage of the first field-effect tube Q2
Pole connects the output terminal of the second phase inverter inv2 and the cathode of the first diode D1, and the source electrode connection of the first field-effect tube Q2 is infrared
1st end of transmitting module 50 and the anode of the first diode D1.One or two pole D1 plays a protective role to the first field-effect tube Q2.
When amplified signal is high level, mixing module 40 exports carrier frequency;When amplified signal is low level, mixing module 40 exports low
Level.Thus carrier frequency can be made discontinuously to export according to amplified signal low and high level, be combined into corresponding code value, formed such as Fig. 4 institutes
The modulated signal shown.In the specific implementation, mixing module 40 can also be used adds phase inverter etc. with door, switching circuit, NAND gate
A variety of circuit structures, this is not limited by the present invention.
The infrared transmission module 50 controls whether LED light sends out infrared signal according to the low and high level of modulated signal,
Including LED light D2, the second field-effect tube Q3, the 7th resistance R7 and the 8th resistance R8;Second field-effect tube Q3 is NMOS tube.It is described
The grid of second field-effect tube Q3 connects the source electrode of the first field-effect tube Q2, is also grounded by the 8th resistance R8, the second field-effect
The drain electrode of pipe Q3 passes through the cathode of the 7th resistance R7 connection LED light D2, the source electrode ground connection of the second field-effect tube Q3;LED light D2's
Anode connection power end VCC.The infrared transmission module 50 further includes to play a protective role to the second field-effect tube Q3
The anode of second diode D3, the second diode D3 connects the source electrode of the second field-effect tube Q3, and the second diode D3's is negative
Pole connects the drain electrode of the second field-effect tube Q3.LED light D2, which is used, can send out LED light of the spectrum for 930nm or so infrared lights.Modulation
Signal is input to the grid of the second field-effect tube Q3, LED light D2 intervals is made to shine by the variation of low and high level, that is, has issued phase
The infrared signal answered.When modulated signal is high level, LED light D2 sends out infrared light, that is, generates infrared signal;When modulation is believed
Number be low level when, LED light D2 does not shine, then does not generate infrared signal.
Fig. 3 and Fig. 4 are please referred to, in the specific implementation, the dress that function of infrared remote control is realized by audio signal
It puts and first passes through connector 10 and obtain pre-set audio signal(The waveform of audio signal as shown in Figure 4), level conversion mould
Block 20 forms amplified signal and is input to the grid of the first field-effect tube Q2 in mixing module 40, control after being amplified to audio signal
The carrier frequency that carrier frequency module 30 processed exports opens or off, that is, when amplified signal is high level, carrier frequency output;When amplification is believed
Number be low level when, carrier frequency is truncated, export low level.Mixing module 40 makes carrier frequency interrupted according to the low and high level of amplified signal
Output forms the modulated signal with code value and is input to the grid of the second field-effect tube Q3 in infrared transmission module 50, passes through
The low and high level of modulated signal controls the second field-effect tube Q3 on or off.Then LED light D2 is sent out for second field-effect tube Q3 conductings
Go out infrared light, then LED light D2 does not shine for cut-off.Discontinuously sending out for infrared light forms infrared signal and launches, you can real
Existing function of infrared remote control.Present apparatus function module is simple, and sound control is more convenient, avoids existing bluetooth or wireless network
The restriction set to controlled plant internal module is remotely controlled, and cost is relatively low.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills
Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention
Protect range.