CN103744321B - Automotive air-conditioning system optocoupler coding circuit - Google Patents

Automotive air-conditioning system optocoupler coding circuit Download PDF

Info

Publication number
CN103744321B
CN103744321B CN201310680469.XA CN201310680469A CN103744321B CN 103744321 B CN103744321 B CN 103744321B CN 201310680469 A CN201310680469 A CN 201310680469A CN 103744321 B CN103744321 B CN 103744321B
Authority
CN
China
Prior art keywords
voltage
chip microcomputer
triode
power supply
vehicle
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
Application number
CN201310680469.XA
Other languages
Chinese (zh)
Other versions
CN103744321A (en
Inventor
梅燕
张庆薇
余凌辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yanfeng Visteon Electronic Technology Shanghai Co Ltd
Original Assignee
Yanfeng Visteon Electronic Technology Shanghai Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yanfeng Visteon Electronic Technology Shanghai Co Ltd filed Critical Yanfeng Visteon Electronic Technology Shanghai Co Ltd
Priority to CN201310680469.XA priority Critical patent/CN103744321B/en
Publication of CN103744321A publication Critical patent/CN103744321A/en
Application granted granted Critical
Publication of CN103744321B publication Critical patent/CN103744321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Air-Conditioning For Vehicles (AREA)

Abstract

A kind of automotive air-conditioning system optocoupler coding circuit, including single-chip microcomputer and photoelectrical coupler, the positive pole connection vehicle power supply of the light emitting diode of primary side in photoelectrical coupler, negative pole is connected with the colelctor electrode of first triode, the emitter stage of the triode of secondary is connected with single-chip microcomputer, the colelctor electrode of secondary triode is connected with the positive pole of a power supply chip, the emitter stage of first triode after a resistor in series with being grounded, the base stage of first triode and the positive pole of power supply chip are connected, and resistor and capacitor are connected in parallel on the first input end of single-chip microcomputer.Single-chip microcomputer samples secondary voltage, while samples vehicle supply voltage, when vehicle power supply sampled voltage is less than system worked well voltage minimum, keeps original secondary voltage sampled value in a register.The mechanical movement of knob in air conditioning for automobiles can be converted into the electric signal that single-chip microcomputer can be read in by the present invention, and primary current is convenient to be adjusted, the problem of overcoming temperature drift and unstable vehicle supply voltage, and system is more stable.

Description

Automotive air-conditioning system optocoupler coding circuit
Technical field:
The present invention relates to the controller of electricity field, more particularly to automotive air-conditioning system, particularly a kind of air conditioning for automobiles system System optocoupler coding circuit.
Background technology:
In the prior art, optocoupler coding circuit is used in the control head of automotive air-conditioning system more and more, machinery is transported Employ electric signal and be depicted, realize machine performance input and the isolation of electric signal output, for example, the mechanical movement of knob is turned Change the electric signal that single-chip microprocessor MCU can be read in into.Because the primary current of photoelectric coupled circuit is in different temperature and different automobiles electricity Pressure(Generally between 9v ~ 16v)Under need stable performance, meanwhile, the collection of output of the single-chip microprocessor MCU to optical coupling secondary edges needs The unusual conditions such as unexpected power down are considered, therefore photoelectric coupled circuit uses following several ways at present:
1, the electric current of optocoupler primary side is controlled by vehicle power supply.This circuit design cost is relatively low, but vehicle complete vehicle is electric The fluctuation in source can directly influence to the current strap of optocoupler primary side, and so as to influence the output of secondary, this design is very unstable It is fixed.
2, the electric current of optocoupler primary side is directly controlled by power supply chip.This circuit design is fairly simple, while primary side Electric current is not by temperature, the influence of the change of voltage.Yet with optocoupler running current in 15mA or so, so add The burden of power supply chip, it is unfavorable for its radiating.
3, the constant-current circuit being made up of two triodes, the be knots of one of triode are used as current detection circuit.Light The electric current of coupling primary side is determined by the ratio of be and current-limiting resistance.The preferably treatment of battery voltage pulsation of this circuit energy is brought Problem, but when the temperature varies, the voltage of the be knots of triode can change with temperature, so as to cause this circuit compared with The temperature characterisitic of difference, when temperature changes, primary current changes greatly, the output of secondary distinguish at different temperature also compared with Greatly.
In foregoing circuit, the output voltage of secondary is gathered using single-chip microprocessor MCU, it is direct by the change of output voltage The position of mechanical part is judged, so as to perform corresponding operating.
The content of the invention:
It is an object of the invention to provide a kind of automotive air-conditioning system optocoupler coding circuit, described this air conditioning for automobiles system System optocoupler coding circuit will solve to be used for primary current in the optocoupler coding circuit of automotive air-conditioning system control head in the prior art Fluctuate, bad, power supply short time power down of radiating causes the technical problem of erroneous judgement.
This automotive air-conditioning system optocoupler coding circuit of the present invention, including a single-chip microcomputer and a photoelectrical coupler, Include primary and secondary side in described photoelectrical coupler, a light emitting diode, described pair are included in described primary side Include a secondary triode in side, wherein, the positive pole of described light emitting diode is connected with a vehicle positive source and connected End is connect, first diode and one are in series between the positive pole of light emitting diode and described vehicle positive source connection end First resistor device, the negative pole of light emitting diode are connected with the colelctor electrode of first triode, the hair of described secondary triode Emitter-base bandgap grading is connected with a first input end of described single-chip microcomputer, the positive pole of the colelctor electrode of secondary triode and a power supply chip Output end is connected, and one the is connected in series between the colelctor electrode of secondary triode and the cathode output end of described power supply chip Two resistors, the cathode output end ground connection of power supply chip, the emitter stage of the first triode are connected with a 3rd resistor device and are followed by Ground, the base stage of the first triode and the cathode output end of power supply chip connect, and are connected in parallel on the first input end of single-chip microcomputer One the 4th resistor and first capacitor, the 4th described resistor and the first described capacitor are each grounded.
Further, the voltage of secondary is sampled using described single-chip microcomputer, while to the voltage sample of vehicle power supply, whole When the first time sampled voltage of car power supply is less than the minimum value of system worked well voltage, keep former in the register of single-chip microcomputer Some secondary voltage sampled values, single-chip microcomputer enter line delay, and it is normal to be less than system always for vehicle supply voltage value in delay time During the minimum value of operating voltage, single-chip microcomputer triggering under-voltage protection pattern, sampling of the vehicle supply voltage in number more than twice When always above system worked well voltage minimum value when, single-chip microcomputer is according to the sampled value configuration processor of secondary voltage.
Further, change in sampling process of the vehicle supply voltage in number more than twice and vehicle power supply When sampled voltage is less than the minimum value of system worked well voltage, single-chip microcomputer enters line delay and wait, in the register of single-chip microcomputer Keep original secondary voltage sampled value.
Further, the minimum value of system worked well voltage is 9V.
The present invention operation principle be:Power supply chip exports constant pressure, and in normal operation, the positive pole of power supply chip is defeated Go out to open the first triode so that the primary side conducting of photoelectrical coupler, the size of current of primary side by power supply chip positive pole, the The BE pressure differences and 3rd resistor device of one triode are determined, but the electric current of primary side is provided by vehicle positive source connection end.Therefore It can ensure that photoelectrical coupler will not increase added burden to power supply chip in normal operation.
When vehicle mains fluctuations(Fluctuation range is between 9v-16v)When, because power supply chip exports constant pressure, so The electric current for flowing through photoelectrical coupler primary side is constant, and the fluctuation of vehicle supply voltage falls colelctor electrode and hair in the first triode Between emitter-base bandgap grading.So the fluctuation of vehicle supply voltage caused by photoelectrical coupler primary current on influenceing to be eliminated.
When unexpected tens milliseconds of power down of vehicle supply voltage, the voltage of vehicle positive source connection end is in the power down phase Between become 0V.At this moment, the electric current of photoelectrical coupler primary side becomes 0A, and the triode of photoelectrical coupler secondary is in cut-off state, The voltage that secondary is input to single-chip microcomputer is 0V.The voltage of photoelectrical coupler secondary is become before and after vehicle supply voltage power down Change.In automotive air-conditioning system, power supply chip, still can be in vehicle due to the electric discharge of the electrochemical capacitor of the Large Copacity on power line Continuous and effective during supply voltage power down, single-chip microcomputer still can normal works during vehicle power supply power-fail.But optocoupler After this change of output end is directly read in by single-chip microcomputer, single-chip microcomputer will be considered that reading task is changed, to single-chip microcomputer Judgement brings misleading.Therefore, processing routine is preset in single-chip microcomputer, in the voltage of each single-chip microcomputer collection photoelectrical coupler secondary When, while the voltage of vehicle power supply is sampled, if sampling vehicle supply voltage is less than system worked well voltage most for the first time During small value, it is believed that the magnitude of voltage of photoelectrical coupler secondary is invalid, and the register of single-chip microcomputer keeps original reading value, while monolithic Machine delay a period of time.If in this section of delay time, supply voltage value is less than the minimum of system worked well voltage always Value, then system will enter under-voltage protection pattern.
If vehicle supply voltage in multiple repairing weld always above the minimum value of system worked well voltage when, single-chip microcomputer The magnitude of voltage for collecting photoelectrical coupler secondary is effective.Single-chip microcomputer can perform corresponding task according to sampled value.
If the value of vehicle supply voltage is changed during the multiple repairing weld of single-chip microcomputer, as long as single-chip microcomputer samples It is less than the minimum value of system worked well voltage to supply voltage, system will be delayed and wait, while single-chip microcomputer register is kept The input value of original photoelectrical coupler secondary is until supply voltage is more than the minimum value of system worked well voltage, in single-chip microcomputer In the time of wait, otherwise system into under-voltage protection pattern, or single-chip microcomputer according to the content of register come the phase that performs Pass task.
The present invention compares with prior art, and its effect is positive and obvious.The present invention can be by automotive air-conditioning system The mechanical movement of middle knob is converted into the electric signal that single-chip microcomputer can be read in, and simply and easily realizes that electromechanical integration operates;Photoelectricity The electric current of coupler primary is convenient to be adjusted, temperature drift and vehicle supply voltage can be overcome unstable caused by the problem of;Together The design of Shi Youhua system power supply circuits;Can mask influences caused by the unexpected short time power down of vehicle power supply, makes system It is more stable;The optical coupling isolation circuit of multichannel secondary output can be extended to.
Brief description of the drawings:
Fig. 1 is the principle schematic of the automotive air-conditioning system optocoupler coding circuit of the present invention.
Fig. 2 is the voltage sample of the single-chip microcomputer in one embodiment of the automotive air-conditioning system optocoupler coding circuit of the present invention Process chart.
Embodiment:
Embodiment 1:
As depicted in figs. 1 and 2, automotive air-conditioning system optocoupler coding circuit of the invention, including a single-chip microprocessor MCU and one Include primary and secondary side in individual photoelectrical coupler IC1, photoelectrical coupler IC1, a light emitting diode is included in primary side, it is secondary Include a secondary triode in side, wherein, the positive pole of light emitting diode is connected with a vehicle positive source connection end DC1, one first diode D1 and one is in series between the positive pole and vehicle positive source connection end DC1 of light emitting diode One resistor R1, the negative pole of light emitting diode are connected with first triode Q1 colelctor electrode, the emitter stage of secondary triode It is connected with a first input end of single-chip microprocessor MCU, the colelctor electrode of secondary triode and a power supply chip DC2 positive pole export End connection, is connected in series with a second resistance between the colelctor electrode of secondary triode and power supply chip DC2 cathode output end Device R2, power supply chip DC2 cathode output end ground connection, after the first triode Q1 emitter stage is connected with a 3rd resistor device R3 Ground connection, the first triode Q1 base stage is connected with power supply chip DC2 cathode output end, on the first input end of single-chip microprocessor MCU A the 4th resistor R4 and a first capacitor C1 are connected in parallel to, the 4th resistor R4 and the first capacitor C1 each connect Ground.
Further, the voltage of secondary is sampled using single-chip microprocessor MCU, while to the voltage sample of vehicle power supply, in vehicle When the first time sampled voltage of power supply is less than the minimum value of system worked well voltage, kept in the register of single-chip microprocessor MCU Original secondary voltage sampled value, single-chip microprocessor MCU enter line delay, and vehicle supply voltage value is less than system always in delay time During the minimum value of normal working voltage, single-chip microprocessor MCU triggering under-voltage protection pattern, vehicle supply voltage is in number more than twice Sampling when always above system worked well voltage minimum value when, single-chip microprocessor MCU according to the sampled value of secondary voltage perform Program.
Further, change in sampling process of the vehicle supply voltage in number more than twice and vehicle power supply When sampled voltage is less than the minimum value of system worked well voltage, single-chip microprocessor MCU enters line delay and wait, and single-chip microprocessor MCU is posted Original secondary voltage sampled value is kept in storage.
Further, the minimum value of system worked well voltage is 9V.
The operation principle of the present embodiment is:Power supply chip DC2 exports constant pressure, in normal operation, power supply chip DC2 Positive pole output open the first triode Q1 so that photoelectrical coupler IC1 primary side conducting, the size of current of primary side is by power supply Chip DC2 positive pole, the first triode Q1 BE pressure differences and 3rd resistor device R3 are determined, but the electric current of primary side is by vehicle electricity Source anode connection terminal DC1 is provided.Therefore it can ensure that photoelectrical coupler IC1 will not be to power supply chip in normal operation DC2 increases added burden.
When vehicle mains fluctuations(Fluctuation range is between 9v-16v)When, because power supply chip DC2 exports constant pressure, institute It is constant to flow through the electric current of photoelectrical coupler IC1 primary sides, the fluctuation of vehicle supply voltage falls the collection in the first triode Q1 Between electrode and emitter stage.So the fluctuation of vehicle supply voltage caused by photoelectrical coupler IC1 primary currents on influenceing quilt Eliminate.
When unexpected tens milliseconds of power down of vehicle supply voltage, vehicle positive source connection end DC1 voltage is in power down Period becomes 0V.At this moment, the electric current of photoelectrical coupler IC1 primary sides becomes 0A, and the triode of photoelectrical coupler IC1 secondary, which is in, to be cut Only state, the voltage that secondary is input to single-chip microprocessor MCU are 0V.The voltage of photoelectrical coupler IC1 secondary falls in vehicle supply voltage Changed before and after electricity.In automotive air-conditioning system, power supply chip DC2 is due to the electrochemical capacitor of the Large Copacity on power line Electric discharge, still can during vehicle supply voltage power down continuous and effective, single-chip microprocessor MCU during vehicle power supply power-fail still Can normal work.But after this change of optocoupler output is directly read in by single-chip microprocessor MCU, single-chip microprocessor MCU will be considered that reading Task is changed, and the judgement to single-chip microprocessor MCU brings misleading.Therefore, processing routine is preset in single-chip microprocessor MCU, every During the voltage of secondary single-chip microprocessor MCU collection photoelectrical coupler IC1 secondary, while the voltage of vehicle power supply is sampled, if adopted for the first time Sample vehicle supply voltage be less than system worked well voltage minimum value when, it is believed that the magnitude of voltage of photoelectrical coupler IC1 secondary without Effect, the register of single-chip microprocessor MCU are kept for original reading value, while single-chip microprocessor MCU delay a period of time.If it is delayed in this section In time, supply voltage value is less than the minimum value of system worked well voltage always, then system will enter under-voltage protection mould Formula.
If vehicle supply voltage in multiple repairing weld always above the minimum value of system worked well voltage when, single-chip microcomputer The magnitude of voltage that MCU collects photoelectrical coupler IC1 secondary is effective.Single-chip microprocessor MCU can perform corresponding appoint according to sampled value Business.
If the value of vehicle supply voltage is changed during the multiple repairing weld of single-chip microprocessor MCU, as long as single-chip microcomputer MCU samples the minimum value that supply voltage is less than system worked well voltage, and system will be delayed and wait, while single-chip microprocessor MCU Register keeps the input value of original photoelectrical coupler IC1 secondary until supply voltage is more than system worked well voltage most Small value, single-chip microprocessor MCU wait time in, or system into under-voltage protection pattern, or single-chip microprocessor MCU is according to deposit The content of device is come the inter-related task that performs.

Claims (4)

1. a kind of automotive air-conditioning system optocoupler coding circuit, including a single-chip microcomputer and a photoelectrical coupler, described photoelectricity Include primary and secondary side in coupler, a light emitting diode is included in described primary side, is included in described secondary One secondary triode, it is characterised in that:The positive pole of described light emitting diode is connected with a vehicle positive source connection end, First diode and one first are in series between the positive pole of light emitting diode and described vehicle positive source connection end Resistor, the negative pole of light emitting diode are connected with the colelctor electrode of first triode, the emitter stage of described secondary triode It is connected with a first input end of described single-chip microcomputer, the positive pole of the colelctor electrode of secondary triode and a power supply chip exports End connection, one second electricity is connected in series between the colelctor electrode of secondary triode and the cathode output end of described power supply chip Device, the cathode output end ground connection of power supply chip are hindered, the emitter stage of the first triode is grounded after being connected with a 3rd resistor device, the The cathode output end of the base stage of one triode and power supply chip is connected, and one the is connected in parallel on the first input end of single-chip microcomputer Four resistors and first capacitor, the 4th described resistor and the first described capacitor are each grounded.
2. automotive air-conditioning system optocoupler coding circuit as claimed in claim 1, it is characterised in that:Adopted using described single-chip microcomputer The voltage of sample secondary, while to the voltage sample of vehicle power supply, it is normal to be less than system in the first time sampled voltage of vehicle power supply During the minimum value of operating voltage, original secondary voltage sampled value is kept in the register of single-chip microcomputer, single-chip microcomputer enters line delay, When vehicle supply voltage value is less than the minimum value of system worked well voltage always in delay time, single-chip microcomputer triggering low-voltage Protected mode, vehicle supply voltage is in the sampling of number more than twice always above the minimum value of system worked well voltage When, single-chip microcomputer is according to the sampled value configuration processor of secondary voltage.
3. automotive air-conditioning system optocoupler coding circuit as claimed in claim 2, it is characterised in that:In vehicle supply voltage two Changed in the sampling process of secondary above number and the sampled voltage of vehicle power supply be less than system worked well voltage minimum During value, single-chip microcomputer enters line delay and wait, and original secondary voltage sampled value is kept in the register of single-chip microcomputer.
4. automotive air-conditioning system optocoupler coding circuit as claimed in claim 1, it is characterised in that:System worked well voltage Minimum value is 9V.
CN201310680469.XA 2013-12-12 2013-12-12 Automotive air-conditioning system optocoupler coding circuit Active CN103744321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310680469.XA CN103744321B (en) 2013-12-12 2013-12-12 Automotive air-conditioning system optocoupler coding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310680469.XA CN103744321B (en) 2013-12-12 2013-12-12 Automotive air-conditioning system optocoupler coding circuit

Publications (2)

Publication Number Publication Date
CN103744321A CN103744321A (en) 2014-04-23
CN103744321B true CN103744321B (en) 2018-03-30

Family

ID=50501350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310680469.XA Active CN103744321B (en) 2013-12-12 2013-12-12 Automotive air-conditioning system optocoupler coding circuit

Country Status (1)

Country Link
CN (1) CN103744321B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674381A (en) * 2005-03-10 2005-09-28 上海交通大学 Under-voltage isolating monitoring circuit
CN201369603Y (en) * 2009-02-17 2009-12-23 泉州纪超电子有限公司 Intelligent type dual-power switching circuit
CN201466672U (en) * 2009-04-09 2010-05-12 海马(郑州)汽车有限公司 Power-fail protection circuit and system of entire automobile controller of electric automobile
CN102664621A (en) * 2012-05-25 2012-09-12 长园深瑞继保自动化有限公司 Isolation method and circuit for signal acquisition of electronic mutual inductor
DE102011122629A1 (en) * 2011-12-22 2013-06-27 Phoenix Contact Gmbh & Co. Kg unlocking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674381A (en) * 2005-03-10 2005-09-28 上海交通大学 Under-voltage isolating monitoring circuit
CN201369603Y (en) * 2009-02-17 2009-12-23 泉州纪超电子有限公司 Intelligent type dual-power switching circuit
CN201466672U (en) * 2009-04-09 2010-05-12 海马(郑州)汽车有限公司 Power-fail protection circuit and system of entire automobile controller of electric automobile
DE102011122629A1 (en) * 2011-12-22 2013-06-27 Phoenix Contact Gmbh & Co. Kg unlocking
CN102664621A (en) * 2012-05-25 2012-09-12 长园深瑞继保自动化有限公司 Isolation method and circuit for signal acquisition of electronic mutual inductor

Also Published As

Publication number Publication date
CN103744321A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN203101494U (en) AC (alternating current) electric supply power failure detection circuit, equipment and system
CN104302053A (en) LED constant current source output detection control circuit and control method thereof
CN106104994B (en) A kind of DC-DC power source and its low pressure switch off control circuit
CN204086510U (en) Demagnetization detection control module and demagnetization detection system
CN206524614U (en) A kind of current-limiting protection controls circuit
CN106209050A (en) A kind of electronic switching circuit of low cost low-power consumption
CN205643661U (en) Undervoltage power detection device and have its air conditioner
CN103744321B (en) Automotive air-conditioning system optocoupler coding circuit
CN210123455U (en) Battery voltage sampling circuit and battery management system
CN103612039B (en) Inverter welder output current detecting circuit based on AC signal and detecting method
CN203658444U (en) Voltage detection circuit and Bluetooth device
CN204679099U (en) A kind of vehicle oil controlling/monitoring device
CN104698361B (en) Testing device of intelligent power module
CN104569547A (en) Low-voltage monitoring circuit for battery voltage of automotive system
CN103616548B (en) A kind of output current of inverting welding machine testing circuit based on direct current signal and detection method
CN205945681U (en) Electronic switching circuit of low -cost low -power consumption
CN203566108U (en) Output current detection circuit of inverter welder based on alternating current signal
CN208188220U (en) A kind of novel load detection circuit
CN209486164U (en) Microcontroller power supply low-voltage detection circuit without A D interface and internal reference voltage
CN209471217U (en) A kind of intelligent door lock energy-saving voltage detection circuit
CN207752370U (en) Reset circuit and measuring instrument including the reset circuit
CN202889723U (en) LED primary constant current power supply output current adjusting control circuit
CN207968448U (en) A kind of switch and reset circuit of power supply
CN206878507U (en) A kind of measuring instrument radio communication device power control system
CN204290278U (en) A kind of direct current machine field loss protection relay

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant