CN109374965B - Single infrared diode communication circuit - Google Patents
Single infrared diode communication circuit Download PDFInfo
- Publication number
- CN109374965B CN109374965B CN201811116461.XA CN201811116461A CN109374965B CN 109374965 B CN109374965 B CN 109374965B CN 201811116461 A CN201811116461 A CN 201811116461A CN 109374965 B CN109374965 B CN 109374965B
- Authority
- CN
- China
- Prior art keywords
- triode
- resistor
- infrared diode
- chip microcomputer
- single chip
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
- G01R22/06—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
- G01R22/061—Details of electronic electricity meters
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R11/00—Electromechanical arrangements for measuring time integral of electric power or current, e.g. of consumption
- G01R11/02—Constructional details
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21117—Universal I-O, same pin is input or output, bidirectional
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Power Engineering (AREA)
- Electronic Switches (AREA)
- Optical Communication System (AREA)
Abstract
The invention discloses a single infrared diode communication circuit which comprises a first triode, a second triode, a third triode, an infrared diode, a first resistor, a second resistor, a third resistor and a single chip microcomputer. The singlechip controls the on-off of the first triode, the second triode and the third triode, the circuit applies forward voltage or reverse voltage to the infrared diode, the infrared diode is switched to achieve the receiving function and the sending function, and when the circuit for communication through the single infrared diode is used, the operation is simpler and more convenient, and the applicability is stronger.
Description
Technical Field
The invention relates to an electric energy meter metering device in the field of power electronics, and relates to a single infrared diode communication circuit.
Background
The current electronic type electric energy meter metering device generally adopts a transmitting tube and a receiving tube to cooperate, carries out half-duplex communication, in actual operation, needs accurate butt joint transmitting tube and receiving tube just can realize communicating, and there is great limitation similar to electric energy meter metering device's communication mode.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the single infrared diode communication circuit with strong compatibility and strong operability is provided.
In order to solve the technical problems, the invention adopts the technical scheme that: a single infrared diode communication circuit comprises a first triode, a second triode, a third triode, an infrared diode, a first resistor, a second resistor, a third resistor and a singlechip;
the collector of the first triode is connected with a power supply, the base of the first triode is connected with the TXD1 end of the single chip microcomputer, the emitter of the first triode is connected with the anode of the infrared diode through a first resistor, the cathode of the infrared diode is connected with the I/O end of the single chip microcomputer, the I/O end of the single chip microcomputer is also connected with the base of the second triode and the collector of the third triode respectively, the collector of the third triode is also connected with the RXD1 end of the single chip microcomputer, the emitter of the first triode is connected with the collector of the second triode through a second resistor, and the emitter of the second triode is grounded; and the anode of the infrared diode is connected with the base electrode of the third triode through a third resistor, and the emitting electrode of the third triode is grounded.
The invention has the beneficial effects that: the singlechip controls the on-off of the first triode, the second triode and the third triode, the circuit applies forward voltage or reverse voltage to the infrared diode, the infrared diode is switched to achieve the receiving function and the sending function, and when the circuit for communication through the single infrared diode is used, the operation is simpler and more convenient, and the applicability is stronger.
Drawings
Fig. 1 is a circuit diagram of a single infrared diode communication circuit according to a first embodiment of the present invention.
Description of reference numerals:
q1, the first triode; q2, the second triode; q3, third triode;
d1, infrared diode; d2, clamp diode; C. a capacitor;
r1, a first resistor; r2, a second resistor; r3, third resistor; r4, fourth resistor; r5, fifth resistor; r6, sixth resistor; r7 and a seventh resistor.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The most key concept of the invention is as follows: the singlechip controls the on-off of the first triode, the second triode and the third triode, and the circuit applies forward voltage or reverse voltage to the infrared diode, so that the infrared diode is switched to realize a receiving function and a sending function.
Referring to fig. 1, a single infrared diode communication circuit includes a first transistor Q1, a second transistor Q2, a third transistor Q3, an infrared diode D1, a first resistor R1, a second resistor R2, a third resistor R3, and a single chip microcomputer;
a collector of the first triode Q1 is connected with a power supply, a base of the first triode Q1 is connected with a TXD1 end of the single chip microcomputer, an emitter of the first triode Q1 is connected with an anode of the infrared diode D1 through a first resistor R1, a cathode of the infrared diode D1 is connected with an I/O end of the single chip microcomputer, the I/O end of the single chip microcomputer is further connected with a base of the second triode Q2 and a collector of the third triode Q3 respectively, a collector of the third triode Q3 is further connected with an RXD1 end of the single chip microcomputer, an emitter of the first triode Q1 is connected with a collector of the second triode Q2 through a second resistor R2, and an emitter of the second triode Q2 is grounded; the anode of the infrared diode D1 is connected to the base of the third transistor Q3 through a third resistor R3, and the emitter of the third transistor Q3 is grounded.
The working principle of the invention is briefly described as follows: when a low level is input at the TXD1 end, the first triode is conducted, the second triode and the third triode are disconnected, the infrared diode obtains a forward voltage, and the infrared diode is in a working state of sending signals; when the I/O end and the RXD1 end input high level simultaneously, TXD1 is set to high level subsequently, the first triode is turned off, the second triode and the third triode are turned on, the infrared diode obtains reverse voltage, and the infrared diode is in the working state of receiving signals.
From the above description, the beneficial effects of the present invention are: the singlechip controls the on-off of the first triode, the second triode and the third triode, the circuit applies forward voltage or reverse voltage to the infrared diode, the infrared diode is switched to achieve the receiving function and the sending function, and when the circuit for communication through the single infrared diode is used, the operation is simpler and more convenient, and the applicability is stronger.
Further, the transistor also comprises a clamping diode D2 and a fourth resistor R4, and the base of the third triode Q3 is connected with the emitter of the third triode Q3 through the clamping diode D2 and the fourth resistor R4 in sequence.
According to the above description, the clamping diode and the fourth resistor which are connected in series prevent the third triode from being conducted in saturation due to the fact that the infrared signal is too strong, the time for the third triode to exit from saturation is shortened, and the communication speed is improved.
Further, the circuit also comprises a fifth resistor R5, a sixth resistor R6 and a seventh resistor R7, wherein the fifth resistor R5 is connected between the base of the first triode Q1 and the TXD1 end of the single chip microcomputer; the sixth resistor R6 is connected between the base of the second triode Q2 and the I/O end of the singlechip; the seventh resistor R7 is connected between the collector of the third triode Q3 and the I/O end of the single chip microcomputer.
As can be seen from the above description, the fifth resistor, the sixth resistor and the seventh resistor are current limiting diodes and play a role in protection.
Further, the resistance value of the third resistor R3 is greater than that of the first resistor.
According to the description, the branch circuit where the third resistor is located has a small shunting effect on the circuit where the first resistor is located, and the influence on the infrared diode is reduced.
Furthermore, the transistor also comprises a capacitor C, and the collector of the first triode Q1 is grounded through the capacitor C.
Example one
Referring to fig. 1, a first embodiment of the present invention is: a single infrared diode communication circuit comprises a first triode Q1, a second triode Q2, a third triode Q3, an infrared diode D1, a first resistor R1, a second resistor R2, a third resistor R3 and a single chip microcomputer;
a collector of the first triode Q1 is connected with a power supply, a base of the first triode Q1 is connected with a TXD1 end of the single chip microcomputer, the first triode Q1 further comprises a capacitor C, the collector of the first triode Q1 is grounded through the capacitor C, an emitter of the first triode Q1 is connected with an anode of the infrared diode D1 through a first resistor R1, a cathode of the infrared diode D1 is connected with an I/O end of the single chip microcomputer, the I/O end of the single chip microcomputer is further connected with a base of a second triode Q2 and a collector of a third triode Q3 respectively, the collector of the third triode Q3 is further connected with an RXD1 end of the single chip microcomputer, the emitter of the first triode Q1 is connected with a collector of a second triode Q2 through a second resistor R2, and an emitter of the second triode Q2 is grounded; the anode of the infrared diode D1 is connected with the base of the third triode Q3 through a third resistor R3, the emitter of the third triode Q3 is grounded, the resistance of the third resistor R3 is larger than that of the first resistor R1, and the communication device using the single infrared diode communication circuit can communicate only by aligning the center position, so that the communication device is convenient and fast.
The three-transistor-series-connected-type signal transmission circuit further comprises a clamping diode D2 and a fourth resistor R4, the base electrode of the third triode Q3 is connected with the emitter electrode of the third triode Q3 sequentially through the clamping diode D2 and the fourth resistor R4, and the clamping diode D2 and the fourth resistor R4 which are connected in series can improve the signal transmission rate.
In this embodiment, the electronic ballast further includes a fifth resistor R5, a sixth resistor R6 and a seventh resistor R7, wherein the fifth resistor R5 is connected between the base of the first triode Q1 and the TXD1 end of the single chip microcomputer; the sixth resistor R6 is connected between the base of the second triode Q2 and the I/O end of the singlechip; the seventh resistor R7 is connected between the collector of the third triode Q3 and the I/O end of the single chip microcomputer.
In summary, according to the single infrared diode communication circuit provided by the invention, the single chip microcomputer controls the on/off of the first triode, the second triode and the third triode, and the circuit applies forward voltage or reverse voltage to the infrared diode, so that the infrared diode is switched to realize a receiving function and a sending function, and when the circuit which uses a single infrared diode for communication is used, the operation is simpler and more convenient, and the applicability is stronger; the clamping diode and the fourth resistor which are connected in series can improve the communication speed; the third resistor with a large resistance value reduces the influence on the infrared diode.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.
Claims (5)
1. A single infrared diode communication circuit, its characterized in that: the infrared detector comprises a first triode, a second triode, a third triode, an infrared diode, a first resistor, a second resistor, a third resistor and a singlechip;
the emitting electrode of the first triode is connected with a power supply, the base electrode of the first triode is connected with the TXD1 end of the single chip microcomputer, the collector electrode of the first triode is connected with the anode of the infrared diode through a first resistor, the cathode of the infrared diode is connected with the I/O end of the single chip microcomputer, the I/O end of the single chip microcomputer is also connected with the base electrode of the second triode and the collector electrode of the third triode respectively, the collector electrode of the third triode is also connected with the RXD1 end of the single chip microcomputer, the collector electrode of the first triode is connected with the collector electrode of the second triode through a second resistor, and the emitting electrode of the second triode is grounded; and the anode of the infrared diode is connected with the base electrode of the third triode through a third resistor, and the emitting electrode of the third triode is grounded.
2. The single infrared diode communication circuit of claim 1, wherein: the base electrode of the third triode is connected with the emitting electrode of the third triode sequentially through the clamping diode and the fourth resistor.
3. The single infrared diode communication circuit of claim 1, wherein: the circuit also comprises a fifth resistor, a sixth resistor and a seventh resistor, wherein the fifth resistor is connected between the base of the first triode and the TXD1 end of the single chip microcomputer; the sixth resistor is connected between the base electrode of the second triode and the I/O end of the single chip microcomputer; and the seventh resistor is connected between the collector of the third triode and the I/O end of the singlechip.
4. The single infrared diode communication circuit of claim 1, wherein: the resistance value of the third resistor is larger than that of the first resistor.
5. The single infrared diode communication circuit of claim 1, wherein: the triode is characterized by further comprising a capacitor, and an emitter of the first triode is grounded through the capacitor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811116461.XA CN109374965B (en) | 2018-09-25 | 2018-09-25 | Single infrared diode communication circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811116461.XA CN109374965B (en) | 2018-09-25 | 2018-09-25 | Single infrared diode communication circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109374965A CN109374965A (en) | 2019-02-22 |
CN109374965B true CN109374965B (en) | 2021-03-26 |
Family
ID=65402412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811116461.XA Active CN109374965B (en) | 2018-09-25 | 2018-09-25 | Single infrared diode communication circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109374965B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112217571B (en) * | 2019-07-09 | 2022-02-22 | 博通集成电路(上海)股份有限公司 | CMOS single-tube infrared transceiver |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202275508U (en) * | 2011-10-28 | 2012-06-13 | 武汉阿迪克电子有限公司 | Multifunctional electric energy meter and infrared communication device thereof |
CN202956887U (en) * | 2012-10-29 | 2013-05-29 | 成都卓程科技有限公司 | Data acquisition system based on infrared communication |
CN103680020A (en) * | 2013-11-27 | 2014-03-26 | 成都捷康特科技有限公司 | Remote control infrared transmitting circuit of infrared alarm |
CN204575706U (en) * | 2015-04-07 | 2015-08-19 | 浙江永阳科技有限公司 | Electronic type intelligent electric energy meter |
CN105245090A (en) * | 2015-11-11 | 2016-01-13 | 重庆理工大学 | Drive circuit, based on infrared isolation communication, of switch type power conversion module |
CN205081675U (en) * | 2015-11-11 | 2016-03-09 | 重庆理工大学 | Drive circuit of on -off power conversion module based on infrared communication |
CN205318612U (en) * | 2015-12-18 | 2016-06-15 | 长江大学 | Infrared ray communication system based on singlechip |
CN106411411A (en) * | 2016-09-21 | 2017-02-15 | 广西大学 | Infrared voice and data transmission communication system |
CN206272631U (en) * | 2016-12-29 | 2017-06-20 | 烟台航天德鲁节能科技有限公司 | A kind of infrared communication for hydro-thermal table is received and signal processing circuit |
CN107064580A (en) * | 2016-12-13 | 2017-08-18 | 浙江恒业电子有限公司 | Intelligent electric energy meter |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752921B (en) * | 2012-06-21 | 2014-07-09 | 叶选锋 | Light-controlled switch |
-
2018
- 2018-09-25 CN CN201811116461.XA patent/CN109374965B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202275508U (en) * | 2011-10-28 | 2012-06-13 | 武汉阿迪克电子有限公司 | Multifunctional electric energy meter and infrared communication device thereof |
CN202956887U (en) * | 2012-10-29 | 2013-05-29 | 成都卓程科技有限公司 | Data acquisition system based on infrared communication |
CN103680020A (en) * | 2013-11-27 | 2014-03-26 | 成都捷康特科技有限公司 | Remote control infrared transmitting circuit of infrared alarm |
CN204575706U (en) * | 2015-04-07 | 2015-08-19 | 浙江永阳科技有限公司 | Electronic type intelligent electric energy meter |
CN105245090A (en) * | 2015-11-11 | 2016-01-13 | 重庆理工大学 | Drive circuit, based on infrared isolation communication, of switch type power conversion module |
CN205081675U (en) * | 2015-11-11 | 2016-03-09 | 重庆理工大学 | Drive circuit of on -off power conversion module based on infrared communication |
CN205318612U (en) * | 2015-12-18 | 2016-06-15 | 长江大学 | Infrared ray communication system based on singlechip |
CN106411411A (en) * | 2016-09-21 | 2017-02-15 | 广西大学 | Infrared voice and data transmission communication system |
CN107064580A (en) * | 2016-12-13 | 2017-08-18 | 浙江恒业电子有限公司 | Intelligent electric energy meter |
CN206272631U (en) * | 2016-12-29 | 2017-06-20 | 烟台航天德鲁节能科技有限公司 | A kind of infrared communication for hydro-thermal table is received and signal processing circuit |
Also Published As
Publication number | Publication date |
---|---|
CN109374965A (en) | 2019-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201854007U (en) | High-precision overcurrent protection circuit | |
CN105306024B (en) | A kind of peak voltage detection circuit | |
CN109374965B (en) | Single infrared diode communication circuit | |
CN101262220A (en) | Optical coupling acceleration circuit | |
CN106712764B (en) | Communication isolation and level conversion circuit | |
EP1491076B1 (en) | Interface for digital communication | |
CN204613802U (en) | A kind of voltage-current converter circuit | |
CN211606181U (en) | Power supply switching circuit and electronic equipment | |
CN206322174U (en) | One kind accelerates three light-coupled isolation type RS485 circuits | |
CN214756076U (en) | MOS pipe control circuit and device | |
CN209571817U (en) | IC chip protects circuit | |
CN103338012B (en) | A kind of current-limited power amplification driving circuit of power line carrier communication | |
CN208833908U (en) | A kind of electro-optical distance measurement circuit | |
CN206460610U (en) | A kind of LCDs infrared emission remote control for possessing power regulation functions | |
CN216820151U (en) | Color temperature switching circuit and driving power supply based on discrete component | |
CN217335422U (en) | IGBT drive circuit | |
CN102655320A (en) | Voltage control protection circuit | |
CN219718527U (en) | High-precision 0-10V dimming control circuit | |
CN208063165U (en) | A kind of linear large power microwave switch triode switch protection driving circuit | |
CN221239415U (en) | LED control circuit and electronic equipment | |
CN216599614U (en) | Bidirectional rapid transmission isolation circuit | |
CN212785296U (en) | PWM signal transmission circuit | |
CN204720978U (en) | Power supply switch circuit and electronic equipment | |
CN207677429U (en) | A kind of LED switch power input under-voltage protecting circuit | |
CN217445352U (en) | Single-wire serial port communication circuit used between different ground potential reference devices |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |