CN112104419A - Comparison filtering infrared communication circuit and implementation method - Google Patents
Comparison filtering infrared communication circuit and implementation method Download PDFInfo
- Publication number
- CN112104419A CN112104419A CN202010357672.3A CN202010357672A CN112104419A CN 112104419 A CN112104419 A CN 112104419A CN 202010357672 A CN202010357672 A CN 202010357672A CN 112104419 A CN112104419 A CN 112104419A
- Authority
- CN
- China
- Prior art keywords
- infrared
- resistor
- communication
- serial port
- comparison
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/40—Transceivers
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
The invention discloses a comparison filtering infrared communication circuit and an implementation method thereof, which overcome the problems of low near-end communication rate and poor communication reliability in the prior art, and comprise a single-chip microcomputer serial port, infrared emission and infrared reception, wherein a sending end of the single-chip microcomputer serial port is connected with an input end of the infrared emission, a receiving end of the single-chip microcomputer serial port is connected with an output end of the infrared reception, the comparison filtering infrared communication circuit also comprises a comparison circuit used for comparing an original signal with a reference voltage level, and the comparison circuit is positioned between the single-chip microcomputer serial port and the infrared reception. The invention adopts the comparison circuit to judge the voltage value of the original signal received by the infrared receiving end so as to determine the corresponding level, the invention can enhance the communication speed and the communication reliability, and can correctly transmit the code stream when the signal is weak at the conduction stage or a longer distance, thereby effectively improving the communication distance and the communication speed; after the comparator is added for judgment, the anti-interference capability and the communication distance of communication can be improved, and the error rate is reduced.
Description
Technical Field
The invention relates to the technical field of telecommunication, in particular to a comparative filtering infrared communication circuit with high communication speed multiplication and strong reliability and an implementation method thereof.
Background
Infrared communication is a communication method for transmitting information by using infrared rays. The information of language, character, data, image, etc. can be transmitted. The prior technical scheme comprises (1) an original signal infrared communication circuit; (2) infrared communication circuit with modulation.
(1) Original signal infrared communication circuit
As shown in fig. 1, the device comprises an MCU, an infrared transmitter and an infrared receiver, wherein when transmitting data, an MCU module converts a code stream to be transmitted into high and low levels, and transmits the high and low levels directly through an infrared transmitting tube; when receiving data, the MCU directly collects the high and low levels of the infrared receiving tube and then converts the high and low levels into corresponding code streams. Because the conduction degree of the infrared receiving tube is related to the strength of a received signal, the level anti-jamming capability of the receiving tube end is poor, so that the communication error rate is high and the communication speed is low;
(2) infrared communication circuit with modulation
As shown in fig. 2, the system comprises a serial port of a single chip, signal modulation, amplification and demodulation, infrared reception and infrared emission, wherein data needs to be amplified and modulated firstly during transmission, and needs to be amplified and demodulated during reception. The circuit has long communication distance and high communication reliability. But the circuit is complex, and meanwhile, the communication rate is extremely low due to the need of modulation, so that the method is only suitable for a simple small data communication scene.
Disclosure of Invention
The invention provides a comparison filtering infrared communication circuit and a realization method thereof in order to overcome the problems of low near-end communication rate and poor communication reliability in the prior art, and the invention meets the near-end communication requirements for scenes with low requirement on communication distance, large communication data volume and high sensitivity to cost.
In order to achieve the purpose, the invention adopts the following technical scheme:
a comparison filtering infrared communication circuit comprises a single chip microcomputer serial port, an infrared transmitting end and an infrared receiving end, wherein a transmitting end of the single chip microcomputer serial port is connected with an input end of the infrared transmitting end, a receiving end of the single chip microcomputer serial port is connected with an output end of the infrared receiving end, the comparison filtering infrared communication circuit also comprises a comparison circuit used for comparing an original signal with a reference voltage level, and the comparison circuit is located between the single chip microcomputer serial port and the infrared receiving end.
The invention adds a comparison circuit, and judges the voltage value of the original signal received by the infrared receiving end by the comparison circuit to determine the corresponding level.
Preferably, the comparison circuit comprises a voltage comparator U1, a triode Q1, an infrared emitting tube D1, an infrared receiving tube D2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5 and a capacitor C1; one end of a resistor R2 is connected with a serial port transmitting end IR _ TX, the other end of the resistor R2 is connected with a base of a triode Q1, an emitter of the triode Q1 is respectively connected with one end of a resistor R3, one end of a resistor R4, a voltage comparator U1VCC + end, one end of a power supply C1 and the VCC end, a collector of the triode Q1 is connected with a positive electrode of an infrared emitting tube D1, a negative electrode of the infrared emitting tube D1 is grounded through a resistor R1, the other end of the resistor R3 is respectively connected with an IN + end of a voltage comparator U1 and a negative electrode of an infrared receiving tube D2, a positive electrode of the infrared receiving tube D2 is grounded, an output end of the voltage comparator U1 is connected with the serial port receiving end IR _ RX, the other end of the resistor R4 is respectively connected with one end of a resistor R5 and an IN-end of the voltage comparator U1, and.
When the IR _ TX end is at a low level, the triode Q1 is conducted, the infrared transmitting tube D1 transmits infrared, the infrared receiving tube D2 receives the infrared conduction, and when the IN + end voltage is smaller than the IN-end voltage, the IR _ RX end is at a low level; when the IR _ TX end is at a high level, the triode Q1 is cut off, the infrared transmitting tube D1 does not transmit infrared rays, and the infrared receiving tube D2 does not receive infrared rays and is in a cut-off state; the IN + terminal voltage is greater than the IN-terminal voltage, and IR _ RX outputs a high level.
Preferably, the transistor Q1 is a PNP transistor.
A method for realizing a comparison filtering infrared communication circuit comprises the following steps:
s1: collecting an electric signal converted by an infrared receiving tube;
s2: comparing the electric signal converted by the infrared receiving tube with a reference voltage;
s3: judging that the electric signal converted by the infrared receiving tube is greater than the reference voltage, and considering the electric signal as a high level, otherwise, considering the electric signal as a low level;
s4: and determining the corresponding level and outputting the IR _ RX end level.
Preferably, the S3 includes the following steps:
s31: when the IR _ TX terminal is at low level, the infrared transmitting tube D1 transmits infrared, the infrared receiving tube D2 receives infrared conduction, and the IN + terminal voltage is less than the IN-terminal voltage, the IR _ RX terminal is at low level;
s32: when the IR _ TX terminal is at high level, the infrared transmitting tube D1 does not transmit infrared rays, the infrared receiving tube D2 does not receive infrared rays and is IN a cut-off state, the IN + terminal voltage is greater than the IN-terminal voltage, and the IR _ RX outputs high level.
Preferably, in S31, when the IR _ TX terminal is at a low level, the transistor Q1 is turned on.
Preferably, in S32, when the IR _ TX terminal is at a high level, the transistor Q1 is turned off.
Therefore, the invention has the following beneficial effects:
1. the invention adds a comparison circuit, and judges the voltage value of the original signal received by the infrared receiving end by adopting the comparison circuit so as to determine the corresponding level, so that the invention can enhance the communication speed and the communication reliability, and can correctly transmit the code stream when the signal is weaker at the just-conducting stage or a longer distance, thereby effectively improving the communication distance and the communication speed;
2. after the comparator is added for judgment, the anti-interference capability and the communication distance of communication can be improved, and the error rate is reduced.
Drawings
Fig. 1 is a block diagram of a raw signal infrared communication circuit.
Fig. 2 is a block diagram of an infrared communication circuit with modulation.
Fig. 3 is a block diagram of the architecture of the present invention.
Fig. 4 is a circuit diagram of the comparison circuit of the present embodiment.
Detailed Description
The invention is further described with reference to the following detailed description and accompanying drawings.
Example (b):
the comparative filtering infrared communication circuit comprises a serial port of a single chip microcomputer, an infrared transmitting circuit, an infrared receiving circuit and a comparing circuit, wherein a transmitting end of the serial port of the single chip microcomputer is connected with a receiving end of the infrared transmitting circuit, and the receiving end of the serial port of the single chip microcomputer is connected with a transmitting end of the infrared receiving circuit through the comparing circuit.
As shown in fig. 4, the comparison circuit includes a voltage comparator U1, a transistor Q1, an infrared emitting tube D1, an infrared receiving tube D2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, and a capacitor C1; one end of a resistor R2 is connected with an IR _ TX end (a serial port transmitting end), the other end of the resistor R2 is connected with a base of a triode Q1, an emitter of the triode Q1 is respectively connected with one end of a resistor R3, one end of a resistor R4, a voltage comparator U1VCC + end, one end of a power supply C1 and the VCC end, a collector of the triode Q1 is connected with a positive electrode of an infrared emitting tube D1, a negative electrode of the infrared emitting tube D1 is grounded through a resistor R1, the other end of the resistor R3 is respectively connected with an IN + end of a voltage comparator U1 and a negative electrode of an infrared receiving tube D2, a positive electrode of the infrared receiving tube D2 is grounded, an output end of the voltage comparator U1 is connected with the IR _ RX end (a serial port receiving end), the other end of the resistor R4 is respectively connected with one end of a resistor R5 and an IN-end of the voltage comparator U39; the transistor Q1 is a PNP transistor.
The invention also correspondingly provides an implementation method of the comparative filtering infrared communication circuit, which specifically comprises the following steps:
s1: and collecting the electric signal converted by the infrared receiving tube.
S2: the electrical signal converted by the infrared receiving tube is compared with a reference voltage.
S3: and judging that the electric signal converted by the infrared receiving tube is greater than the reference voltage, and considering the electric signal as a high level, otherwise, considering the electric signal as a low level.
Wherein, step S3 specifically includes the following steps:
s31: when the IR _ TX end is at a low level, the triode Q1 is conducted, the infrared transmitting tube D1 transmits infrared, the infrared receiving tube D2 receives the infrared conduction, and when the IN + end voltage is smaller than the IN-end voltage, the IR _ RX end is at a low level;
s32: when the IR _ TX end is at a high level, the triode Q1 is cut off, the infrared transmitting tube D1 does not transmit infrared rays, and the infrared receiving tube D2 does not receive infrared rays and is in a cut-off state; the IN + terminal voltage is greater than the IN-terminal voltage, and IR _ RX is high.
S4: and determining the corresponding level and outputting the IR _ RX end level.
The invention adds a comparison circuit, and judges the voltage value of the original signal received by the infrared receiving end by adopting the comparison circuit so as to determine the corresponding level, so that the invention can enhance the communication speed and the communication reliability, and can correctly transmit the code stream when the signal is weaker at the just-conducting stage or a longer distance, thereby effectively improving the communication distance and the communication speed; after the comparator is added for judgment, the anti-interference capability and the communication distance of communication can be improved, and the error rate is reduced.
Because the conduction success degree of the infrared receiving tube is related to the intensity of the received signal, when the received signal is weak at a longer distance, the voltage value of the electric signal is lower, meanwhile, the infrared starts to be conducted until the infrared is completely conducted for a certain time, and the corresponding voltage value of the electric signal has a rising process, so that if the electric signal converted by the infrared receiving tube is compared with a Vref reference voltage, if the electric signal is larger than the Vref reference voltage, the electric signal is considered to be a high level, and if the electric signal is smaller than the Vref reference voltage, the electric signal is. Therefore, a proper Vref reference voltage is selected through testing, the code stream can be correctly transmitted at the conduction stage or when the signal is relatively weak at a relatively long distance, and the communication distance and the communication speed are effectively improved.
IN the implementation, an original signal is compared with a signal output after passing through a comparison circuit, when an IR _ TX end is at a low level, a triode Q1 is conducted, an infrared emission tube D1 emits infrared, an infrared receiving tube D2 receives infrared conduction, and when an IN + end voltage is smaller than an IN-end voltage, the IR _ RX end is at a low level; when the IR _ TX end is at a high level, the triode Q1 is cut off, the infrared transmitting tube D1 does not transmit infrared rays, and the infrared receiving tube D2 does not receive infrared rays and is in a cut-off state; the IN + power-off voltage is greater than the IN-terminal voltage, and the IR _ RX outputs a high level; then, the signal is captured on the oscilloscope, and the low level of the original signal is much higher than the signal output by the comparison circuit when the signal received by the infrared receiving tube is weak, which can cause error codes, so that the function of improving the communication anti-interference capability and the communication distance can be improved after the comparison circuit is added for judgment.
The following table tests that the data error rate is more than three percent, the communication is considered to be abnormal, and the communication distance is tested to be 5 cm.
The table shows that the communication speed of the infrared communication circuit with voltage comparison is greatly improved.
TABLE 1
Baud rate | 115200 | 9600 | 4800 | 2400 | 1200 |
Infrared communication circuit with voltage comparison | Is normal | Is normal | Is normal | Is normal | Is normal |
Original signal infrared communication circuit | Abnormality (S) | Abnormality (S) | Abnormality (S) | Is normal | Is normal |
The above embodiments are described in detail for the purpose of further illustrating the present invention and should not be construed as limiting the scope of the present invention, and the skilled engineer can make insubstantial modifications and variations of the present invention based on the above disclosure.
Claims (7)
1. A comparison filtering infrared communication circuit comprises a single chip microcomputer serial port, an infrared transmitting end and an infrared receiving end, wherein a transmitting end of the single chip microcomputer serial port is connected with an input end of the infrared transmitting end, a receiving end of the single chip microcomputer serial port is connected with an output end of the infrared receiving end, and the comparison filtering infrared communication circuit is characterized by further comprising a comparison circuit used for comparing an original signal with a reference voltage level, and the comparison circuit is located between the single chip microcomputer serial port and the infrared receiving end.
2. The infrared communication circuit with the comparison filter function as claimed in claim 1, wherein the comparison circuit comprises a voltage comparator U1, a triode Q1, an infrared emission tube D1, an infrared receiving tube D2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5 and a capacitor C1; one end of a resistor R2 is connected with a serial port transmitting end IR _ TX end, the other end of the resistor R2 is connected with a base of a triode Q1, an emitter of the triode Q1 is respectively connected with one end of a resistor R3, one end of a resistor R4, a voltage comparator U1VCC + end and one end of a power supply C1 are connected with the VCC end, a collector of the triode Q1 is connected with an anode of an infrared emitting tube D1, a cathode of the infrared emitting tube D1 is grounded through a resistor R1, the other end of the resistor R3 is respectively connected with an IN + end of a voltage comparator U1 and a cathode of an infrared receiving tube D2, an anode of the infrared receiving tube D2 is grounded, an output end of the voltage comparator U1 is connected with a serial port receiving end IR _ RX end, the other end of the resistor R4 is respectively connected with one end of a resistor R5 and an IN-end of the voltage comparator U1.
3. The ir communication circuit of claim 2, wherein said transistor Q1 is a PNP transistor.
4. A method for implementing a comparison filtering infrared communication circuit, using the comparison filtering infrared communication circuit of any one of claims 1 to 3, comprising the steps of:
s1: collecting an electric signal converted by an infrared receiving tube;
s2: comparing the electric signal converted by the infrared receiving tube with a reference voltage;
s3: judging that the electric signal converted by the infrared receiving tube is greater than the reference voltage, and considering the electric signal as a high level, otherwise, considering the electric signal as a low level;
s4: and determining the corresponding level and outputting the IR _ RX end level.
5. The method of claim 4, wherein said step S3 comprises the steps of:
s31: when the IR _ TX terminal is at low level, the infrared transmitting tube D1 transmits infrared, the infrared receiving tube D2 receives infrared conduction, and the IN + terminal voltage is less than the IN-terminal voltage, the IR _ RX terminal is at low level;
s32: when the IR _ TX terminal is at high level, the infrared transmitting tube D1 does not transmit infrared rays, the infrared receiving tube D2 does not receive infrared rays and is IN a cut-off state, the IN + terminal voltage is greater than the IN-terminal voltage, and the IR _ RX outputs high level.
6. The method of claim 5, wherein in said S31, when the IR TX terminal is low, transistor Q1 is turned on.
7. The method of claim 5, wherein in said S32, when the IR TX is high, the transistor Q1 is turned off.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010357672.3A CN112104419A (en) | 2020-04-29 | 2020-04-29 | Comparison filtering infrared communication circuit and implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010357672.3A CN112104419A (en) | 2020-04-29 | 2020-04-29 | Comparison filtering infrared communication circuit and implementation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112104419A true CN112104419A (en) | 2020-12-18 |
Family
ID=73750318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010357672.3A Pending CN112104419A (en) | 2020-04-29 | 2020-04-29 | Comparison filtering infrared communication circuit and implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112104419A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6034802A (en) * | 1996-12-24 | 2000-03-07 | International Business Machines Corporation | Wireless communications systems with self threshold setting |
CN1610277A (en) * | 2003-10-24 | 2005-04-27 | 夏普株式会社 | Infrared transmitter circuit and electronic device |
CN102843185A (en) * | 2011-06-23 | 2012-12-26 | 苏州合欣美电子科技有限公司 | Infrared transmitting and receiving circuit |
CN202710758U (en) * | 2012-07-20 | 2013-01-30 | 佛山市顺德区瑞德电子实业有限公司 | Highly-anti-interference and low-power-consumption infrared detection circuit |
CN203630953U (en) * | 2013-12-17 | 2014-06-04 | 恬家(上海)信息科技有限公司 | Infrared emitting and receiving circuit of learning remote-controller |
CN105046860A (en) * | 2015-09-14 | 2015-11-11 | 北京世纪之星应用技术研究中心 | Intrusion detection system and method using Doppler effect of light waves |
CN205176132U (en) * | 2015-12-14 | 2016-04-20 | 威胜集团有限公司 | Infrared circuit of absorption formula and metering device who makes with this circuit |
CN107359934A (en) * | 2017-08-30 | 2017-11-17 | 重庆理工大学 | Single channel dual signal live transmission method and system |
-
2020
- 2020-04-29 CN CN202010357672.3A patent/CN112104419A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6034802A (en) * | 1996-12-24 | 2000-03-07 | International Business Machines Corporation | Wireless communications systems with self threshold setting |
CN1610277A (en) * | 2003-10-24 | 2005-04-27 | 夏普株式会社 | Infrared transmitter circuit and electronic device |
CN102843185A (en) * | 2011-06-23 | 2012-12-26 | 苏州合欣美电子科技有限公司 | Infrared transmitting and receiving circuit |
CN202710758U (en) * | 2012-07-20 | 2013-01-30 | 佛山市顺德区瑞德电子实业有限公司 | Highly-anti-interference and low-power-consumption infrared detection circuit |
CN203630953U (en) * | 2013-12-17 | 2014-06-04 | 恬家(上海)信息科技有限公司 | Infrared emitting and receiving circuit of learning remote-controller |
CN105046860A (en) * | 2015-09-14 | 2015-11-11 | 北京世纪之星应用技术研究中心 | Intrusion detection system and method using Doppler effect of light waves |
CN205176132U (en) * | 2015-12-14 | 2016-04-20 | 威胜集团有限公司 | Infrared circuit of absorption formula and metering device who makes with this circuit |
CN107359934A (en) * | 2017-08-30 | 2017-11-17 | 重庆理工大学 | Single channel dual signal live transmission method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101477147B (en) | Circuit for detecting radio frequency power | |
CN109462405B (en) | Single-wire transmission key detection circuit | |
CN110138407B (en) | Full-duplex backscattering communication device | |
CN105182447A (en) | Photoelectric correlation sensor detection system and method | |
CN112104419A (en) | Comparison filtering infrared communication circuit and implementation method | |
CN102323568B (en) | Radar responding device | |
CN217821585U (en) | MAX485 receiving and dispatching control signal generating device based on serial port sending signal | |
CN105657411A (en) | TV and TV feed detection method | |
CN214704618U (en) | Serial port communication multiplexing circuit | |
CN213906787U (en) | Receiving device for automatically gating video signal | |
JPH0823310A (en) | Optical signal transmitter | |
CN210016448U (en) | Isolation communication circuit for realizing self-checking | |
CN111010643B (en) | Earphone charging box and infrared remote control device | |
CN211236201U (en) | RS232 interface state detection circuit | |
CN113606761A (en) | Current loop communication circuit and air conditioner | |
CN219417761U (en) | Infrared emission tube detection circuit and system | |
CN109743052B (en) | Isolation communication circuit for realizing self-checking | |
CN208953949U (en) | New-energy automobile calibration tool system | |
CN220709309U (en) | Switch detection circuit and device | |
CN220210445U (en) | Ammeter system of checking meter based on infrared communication | |
CN220041091U (en) | Signal detection circuit and switching equipment | |
CN214796202U (en) | Transmitting head signal detection device | |
US20160226588A1 (en) | Communication system | |
CN117424644B (en) | Indoor voice transmission device based on infrared transmission protocol | |
CN213213461U (en) | Single-wire communication circuit capable of receiving and transmitting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201218 |