Summary of the invention
In order to make car owner can have well-to-do charging occasion, solve the problem that time availability is the highest, the invention provides
A kind of Portable charger for electric automobile and method for designing thereof.This charger is light small and exquisite, can onboard.By the family of standard
Front yard power interface, can make car owner easily to pure electric automobile or plug-in hybrid vehicle charging under any occasion.This
Outward, it is provided that strict safety protection function, the safety problems such as stream, electric leakage, short circuit can effectively be processed.
To achieve these goals, the technical solution adopted in the present invention is as follows.
A kind of Portable charger for electric automobile, it includes that intelligent control unit, power end plug, cable, automobile end fill
Plug;Described intelligent control unit is connected associated peripheral circuits by central control module (CCU), mainly completes peripheral circuit
Simulation and digital signal high-speed sampling, algorithm, the realization of recharge logic and error protection;Described central control module, is used for
Sending of the realization of control pilot circuit, the management of peripheral circuit, the monitoring of each unit status and control instruction;Described periphery
Circuit includes: current rectifying and wave filtering circuit, for providing the power supply being suitable for for whole intelligent control unit;Relay drive circuit is logical
Cross control relay adhesive and realize whether being connected to by power end plug automobile end charging plug;Relay adhesive detection electricity
Road, is used for detecting relay whether adhesive, testing result is passed to central control module;Output of pulse signal circuit, is used for
The transformed signal being output as being connected to electric automobile CP terminal of square-wave signal that central control module is sent.
In said apparatus, described peripheral circuit farther includes: leakage protection circuit, be used for detecting electrical enclosure whether and
It is poor that live wire is caused producing certain potentials between ground by unexpected directly connection;Current detection circuit, when being used for judging charging whether
Cross stream, and determine whether charging completes.
In described output of pulse signal circuit, by single-chip microcomputer in described central control module or an I/O port of chip
It is connected to the base stage of the first audion of this circuit;By be connected between this circuit fuse and Transient Suppression Diode described in
The CP lead-out terminal of centre control module.This circuit is by a series of diodes, audion, electric capacity and resistance, fuse and wink
State suppression diode is formed by connecting in order.
In described relay drive circuit, in the three-phase alternating current (such as 220V or 110V) that power end plug side is inputted
Live wire and zero line one fuse of each series connection respectively, then between an electric capacity of voltage regulation in parallel again, be connected to two of relay
Normally-closed contact, this live wire is also connected to the pin of one pull-in winding of relay in addition, another of described pulling relay coil
Individual pin is connected to the first anode of bidirectional triode thyristor, and the second plate of described bidirectional triode thyristor is connected with described zero line,
It controls pole and is connected to the outfan of photoelectrical coupler;The light emitting diode one of described photoelectrical coupler terminates 5V level, another
End is connected with the I/0 port of single-chip microcomputer in central control module or chip.So can control relay by the signal of described I/0
Device adhesive.
In described relay adhesive testing circuit, two normally opened contacts of relay are connected to exchange the 2 of photoelectrical coupler
Individual input;The outfan of described exchange photoelectrical coupler is connected to single-chip microcomputer or an outside of chip in central control module
Interrupt.When relay adhesive, with (220V or 110V) alternating voltage between two normally opened contacts, described photoelectrical coupler can produce
By described single-chip microcomputer or chip, the pulse signal of raw certain frequency (such as 100Hz), will detect whether that this pulse judges to continue
In electrical equipment whether adhesive.
In described current rectifying and wave filtering circuit, live wire and the zero line of fuse of having connected in described relay drive circuit connect respectively
Receiving the primary side of transformator, the secondary side of described transformator is connected to bridge rectifier.Bridge rectifier is good by rectification
Be signally attached in analogue filter circuit, be+12V and-12V by two manostat by the voltage stabilization of output the most again,
Outfan at+12V connects the 3rd manostat, by stable for the output of its voltage at+5V.
In described central control module, the connection of described automobile end charging plug confirms that CC end is connected to by electric resistance partial pressure
The ADC analog sampling port of single-chip microcomputer or chip;Wherein four I/O ports of single-chip microcomputer or chip are connected to four different colours
Light emitting diode, in order to various situations and the display of fault type;Single-chip microcomputer or chip are by described relay adhesive detection
Circuit, leakage protection circuit, the signal of current detection circuit gather with certain sample frequency (such as 10KHz);Do logical process
Export to relay drive circuit, output of pulse signal circuit after judgement, in order to realize corresponding function.
In described leakage protection circuit, the live wire in described relay drive circuit and zero line are passed zero-sequence current jointly
The annular core of transformer;The secondary side outfan of described zero sequence current mutual inductor connects an operational amplifier;By output
Magnitude of voltage is amplified to the applicable size that in central control module, single-chip microcomputer or chip can read;The outfan of described operational amplifier
It is connected to the ADC sampling end of described single-chip microcomputer or chip.When charger normally works, learn respectively Kirchhoff's current law (KCL)
Phase current vector is zero, so time secondary side no-voltage.When there is leak current fault, each phase current vector is not zero.Institute
The annular core of the zero sequence current mutual inductor stated produces magnetic flux, just creates induced voltage at secondary side.
In described current detection circuit, by the live wire in described relay drive circuit through current transformer;This mutual inductance
The secondary side of device connects an operational amplifier;The magnitude of voltage of output is amplified to single-chip microcomputer or chip energy in central control module
The applicable size read;The outfan of described operational amplifier is connected to the ADC sampling end of described single-chip microcomputer or chip.
After described intelligent control unit powers on, the workflow of central control module is as follows:
1) central control module reads the AD value of current detection circuit, it may be judged whether cross stream, if being then set to fault 1,
If otherwise continuing next step;
2) central control module reads the AD value of leakage protection circuit, it may be judged whether have leakage current, if being then set to event
Barrier 2, if otherwise continuing next step;
3) central control module read relay adhesive testing circuit value and judge be given instruct the most consistent, if not
Then it is set to fault 3, if then continuing next step;
4) according to the value read in current detection circuit, central control module judges whether this charger is in charging
Duty;If being not at charged state, then read the CC line magnitude of voltage of vehicle charging end, it is judged that whether plug connects, if
Without connecting, then return to the 1st) step;If there being connection, then send certain frequency (such as 1kHz, dutycycle to output of pulse signal circuit
20%) pulse;Several seconds of time delay, buzzer rings several sound, sends signal to relay drive circuit and makes relay close, starts to fill
Electricity, returns to the 1st) step;If this charger is in charged state, then continue next step;
5) the CC line magnitude of voltage of vehicle charging end is read, it is judged that whether plug connects, if without connecting, being then set to fault 4,
If there being connection, continue next step;
6) the whether charging complete of this charger is judged according to the value that reads in current detection circuit, if charging is the completeest
Become, be then returned directly to the 1st) step;If charging complete, then continue next step;
7) display lamp signal hint terminates, and sends signal to relay drive circuit and makes relay disconnect, stops to pulse
Signal output apparatus sends pulse, several seconds of time delay, returns to the 1st) step;
8) the various faults of above-mentioned middle appearance, according to the type of fault, make corresponding trouble light bright, and the short ring of buzzer represents
Faulty;Stop sending pulse to output of pulse signal circuit;
9) according to the value read in current detection circuit, find voltage over zero, send to relay drive circuit
Signal makes relay disconnect;
10) judge whether it is over current fault;
11) the most then time delay waits, is then return to the 1st) step.
A kind of method for designing of Portable charger for electric automobile, arrange intelligent control unit, power end plug, cable,
Automobile end charging plug;Described intelligent control unit arranges central control module and connects associated peripheral circuits;The control of described central authorities
Molding block sending out for the realization of control pilot circuit, the management of peripheral circuit, the monitoring of each unit status and control instruction
Go out;Described peripheral circuit is provided that current rectifying and wave filtering circuit, for providing the power supply being suitable for for whole intelligent control unit;Continue
Electrical apparatus driving circuit, realizes whether being connected to by power end plug automobile end charging plug by controlling relay adhesive;Continue
Electrical equipment adhesive testing circuit, is used for detecting relay whether adhesive, testing result is passed to central control module;Pulse signal
Output circuit, for the transformed signal being output as being connected to automobile CP terminal of square-wave signal sent by central control module.
In said method, described peripheral circuit is provided that leakage protection circuit further, is used for detecting electrical enclosure and is
It is poor that no and live wire is caused producing certain potentials between ground by unexpected directly connection;Current detection circuit, when being used for judging charging
Whether cross stream, and determine whether charging completes.
In said method, after intelligent control unit powers on, the work of described central control module is carried out as follows:
1) central control module reads the AD value of current detection circuit, it may be judged whether cross stream, if being then set to fault 1,
If otherwise continuing next step;
2) central control module reads the AD value of leakage protection circuit, it may be judged whether have leakage current, if being then set to event
Barrier 2, if otherwise continuing next step;
3) central control module read relay adhesive testing circuit value and judge be given instruct the most consistent, if not
Then it is set to fault 3, if then continuing next step;
4) according to the value read in current detection circuit, central control module judges whether this charger is in charging
Duty;If being not at charged state, then read the CC line magnitude of voltage of vehicle charging end, it is judged that whether plug connects, if
Without connecting, then return to the 1st) step;If there being connection, then send the pulse of certain frequency to output of pulse signal circuit;Several seconds of time delay,
Buzzer rings several sound, sends signal to relay drive circuit and makes relay close, starts to charge up, return to the 1st) step;If this fills
Electrical equipment is in charged state, then continue next step;
5) the CC line magnitude of voltage of vehicle charging end is read, it is judged that whether plug connects, if without connecting, being then set to fault 4,
If there being connection, continue next step;
6) the whether charging complete of this charger is judged according to the value that reads in current detection circuit, if charging is the completeest
Become, be then returned directly to the 1st) step;If charging complete, then continue next step;
7) display lamp signal hint terminates, and sends signal to relay drive circuit and makes relay disconnect, stops to pulse
Signal output apparatus sends pulse, several seconds of time delay, returns to the 1st) step;
8) in the various faults of above-mentioned middle appearance, according to the type of fault, make corresponding trouble light bright, buzzer short ring table
It is shown with fault;Stop sending pulse to output of pulse signal circuit;
9) according to the value read in current detection circuit, find voltage over zero, send to relay drive circuit
Signal makes relay disconnect;
10) judge whether it is over current fault;
11) the most then time delay waits, is then return to the 1st) step.
In said method, described step 4) central control module judges according to the value read in current detection circuit should
Whether charger is in the duty of charging;If being not at charged state, then read the CC line magnitude of voltage of vehicle charging end, sentence
Whether disconnected plug connects, if without connecting, then returning to the 1st) step;If there being connection, then send 1kHz to output of pulse signal circuit, account for
Empty ratio 20% pulse;The time delay 2-5 second, buzzer rings 1-5 sound, sends signal to relay drive circuit and makes relay close, starts
Charging, returns to the 1st) step;If this charger is in charged state, then continue next step.
In said method, described step 7) display lamp signal hint terminates, and sends signal to relay drive circuit and makes to continue
Electrical equipment disconnects, and stops sending pulse to output of pulse signal circuit, the time delay 2-8 second, returns to the 1st) step.
Portable charger for electric automobile of the present invention and method for designing thereof provide the benefit that: this charger is light small and exquisite,
Can onboard;As long as there being standard three phase mains interface such as 220V or 110V of domestic, the most chargeable;The most not by time and position
The restriction put, can conveniently charge.Safety protection function is complete, can effectively locate short circuit, stream, electric leakage excessively that the various accident of reason causes
Etc. fault, and relay can be disconnected when voltage over zero when fault, prevent the disconnection of big electric current from causing electric shock arcing;Thus
Charging process is safe and reliable, and charging complete automatically powers off.Method for designing conformance with standard, it is contemplated that the protective measure of various situations,
And fault recovery function etc..
Detailed description of the invention
It is embodiment with standard-family power interface 220V below in conjunction with the accompanying drawings, the present invention is described in further detail.
As it is shown in figure 1, the portable charger of the present invention, by power end plug 1, intelligent control unit, cable, automobile end
Charging plug 9 forms.Wherein power end plug 1 is that movable cable and standard-family's power interface of charger extraction are connected
The parts come, plug rated current 16A, single-phase three-wire access way.Cable is for connecting power end plug and charger intelligence
Can control unit, and the parts of intelligent control unit and automobile end charging plug.Automobile end charging plug 9 is that charger is drawn
The parts that the movable cable gone out and charging electric vehicle socket couple together.Intelligent control unit include relay drive circuit 2,
Current rectifying and wave filtering circuit 3, current detection circuit 4, leakage protection circuit 5, central control module 6, relay adhesive testing circuit 7,
Output of pulse signal circuit 8.
Fire in relay drive circuit as shown in Figure 2, power end plug side in the 220V three-phase alternating current inputted
Line and zero line each series connection one fuse FU1, FU2, three-phase direct each varistor R25, a R26 in parallel respectively.Then fire
An electric capacity of voltage regulation C26 in parallel again between line and zero line, is connected to two normally-closed contacts of relay 10, and this live wire also connects in addition
Receiving the pin of 10 1 pull-in windings of relay, another pin of relay 10 pull-in winding is connected to bidirectional triode thyristor T3
The first anode, the second plate of bidirectional triode thyristor T3 is connected with zero line, and this zero line is connected to after connecting with fixed carbon resister R20
The pin 16 of photoelectrical coupler 11.Bidirectional triode thyristor T3 controls to be connected to photoelectrical coupler 11 after connecting with fixed carbon resister R27 in pole
Outfan.The light emitting diode one of photoelectrical coupler 11 terminates the single-chip microcomputer of 5V level, the other end and central control module 6
I/0 end connect.So can be by the signal control relay adhesive of single-chip microcomputer I/0.
As it is shown on figure 3, current rectifying and wave filtering circuit for providing the power supply being suitable for for whole intelligent control unit.Relay is driven
220V-L-T and 220V-N-T in galvanic electricity road 2, is connected to the primary side of transformator 12.It is connected to by the secondary side of transformator 12
Bridge rectifier 13, rectified after be connected to analogue filter circuit 14.It is connected to 7812 manostat 15 after filtering, exports through this
The voltage of ± 12 volts, then its+12V voltage is connected to 7805 manostat 16, export+5 volt voltages through this.
As shown in Figure 4, in current detection circuit, the live wire in relay drive circuit 2 is passed current transformer S1;Should
The secondary side of transformer connects an operational amplifier U2;The magnitude of voltage of output is amplified to monolithic function in central control module
The applicable size read;The outfan of operational amplifier U2 is connected to the ADC sampling end of described single-chip microcomputer.
As it is shown in figure 5, in leakage protection circuit, the live wire in relay drive circuit 2 and zero line are passed zero sequence jointly
The annular core T1 of current transformer;The secondary side outfan of zero sequence current mutual inductor connects an operational amplifier U3;By defeated
The magnitude of voltage gone out is amplified to the applicable size that in central control module, monolithic function reads;The outfan of operational amplifier U3 connects
ADC sampling end to described single-chip microcomputer.
As shown in Figure 6, in central control module, serial port RxD and TxD of single-chip microcomputer U4 respectively with program debugging interface J1
RxD with TxD be connected, for program is entered single-chip microcomputer from PC programming.The external interrupt of single-chip microcomputer U4With continue
The outfan RelayChk exchanging photoelectrical coupler U11 in electrical equipment adhesive testing circuit is connected, and is used for whether judging relay
Adhesive.The P3.3 mouth of single-chip microcomputer U4 is used as outfan, is connected to 12 pins of U7 in relay drive circuit, is used for controlling relay
Device adhesive.P3.4 and the P3.5 mouth of single-chip microcomputer U4 connects with one end of shift knob S2, S3 respectively, and shift knob S2, S3's is another
One end is connected with+5V by pull-up resistor R28, R29.In the P1.7 mouth of single-chip microcomputer U4 and output of pulse signal circuit
PulseCtrl end is connected, for output pulse signal.P1.6, P1.5 mouth of single-chip microcomputer U4 is respectively connecting to dual-colored LED lamp
Two negative electrodes of D13, are used for showing fault message.P1.4, P1.3 mouth of single-chip microcomputer U4 is respectively connecting to LED D12, D11
Two negative electrodes, wherein D12 is used for showing relay adhesive information, and D11 is for display automobile charging end plug and electric automobile
Link information.PP terminal in P1.2 with J2 in single-chip microcomputer is connected, and by electric resistance partial pressure, is used for judging vehicle charging end plug
The most it is connected with electric automobile.The LK-Protect end that the P1.1 of single-chip microcomputer U4 is connected in leakage protection circuit, is used for
Detect whether leakage current.The P1.0 end of single-chip microcomputer U4 is connected to the OC-Protect end of current detection circuit, is used for reading this
Circuit gathered to ADC sampled value.P3.7 is connected to the base stage of audion Q8, and its colelctor electrode is connected to 1 end of buzzer U9,
Thus control the warning of buzzer.
As it is shown in fig. 7, in relay adhesive testing circuit, 2 normally opened contacts of relay are connected to exchange photoelectric coupling
Two inputs of device U11;The outfan of exchange photoelectrical coupler U11 is connected to outside one of single-chip microcomputer in central control module
Portion interrupts.When relay adhesive, with the alternating voltage of 220V between two normally opened contacts, photoelectrical coupler can produce 100Hz
Pulse signal, will have been detected whether that this pulse is to judge in relay whether adhesive by described single-chip microcomputer.
As shown in Figure 8, in output of pulse signal circuit, the single-chip microcomputer of the base stage of audion Q1 and central control module 6
P1.7 connects, and colelctor electrode one end and resistance R12 are connected to+12V, and the other end is connected with the anode of diode D5.This two pole
The negative electrode of pipe is connected with the emitter stage of audion Q4.After the other end of this emitter stage is connected with resistance R30 and Q4 base stage in the lump
Ground connection.The colelctor electrode of audion Q4 is connected with the colelctor electrode of audion Q5, and the emitter stage of audion Q5 is connected to-12V, this three pole
Base stage one end of pipe is connected with the emitter stage of audion Q7, and the other end is connected to-12V after connecting with resistance R33.Audion Q7's
Base stage one end is connected to-12V with resistance R32 after connecting, the other end is connected with the emitter stage of audion Q6.This audion Q6's
Base stage is connected to-12V after connecting with resistance R31.Colelctor electrode one end of audion Q6 is connected with the anode of diode D7, the other end
It is connected to+12V after connecting with resistance R22.The negative electrode of diode D7 is connected with the colelctor electrode of audion Q7.In addition this audion
The colelctor electrode of Q7 also negative electrode with diode D9 is connected.The anode of diode D9 is connected to audion after connecting with resistance R24
The emitter stage of Q3.Base stage one end of audion Q3 is connected with the colelctor electrode of audion Q6, and the other end is connected after connecting with resistance R22
To+12V.Colelctor electrode one end of audion Q3 is connected with+12V, and the other end is connected with the negative electrode of diode D6.Diode D6
Anode and the negative electrode of diode D8, the negative electrode of diode D10, one end of fuse FU3 be connected to a common node.Its
The anode of middle diode D8 is connected with the negative electrode of diode D7.The anode of diode D10 is connected with-12V.Fuse FU3
The other end and Transient Suppression Diode TV3 between PulseOut end be connected to the CP end of automobile end charging plug 9.Described arteries and veins
Rush signal output apparatus and the pin P1.7 control signal of single-chip microcomputer U4 can be converted into controller of vehicle in electric automobile inside
The pwm signal read.
As it is shown in figure 9, when described portable charger attaching plug end 1 is connected with household socket, i.e. give this intelligence
Control unit powers on, and central control module 6 reads the AD value in current detection circuit 4, it may be judged whether cross stream, if being then set to
Fault 1;If otherwise reading the AD value of leakage protection circuit 5, it may be judged whether have leakage current, if being then set to fault 2;If otherwise
Read relay adhesive testing circuit 7 value and judge be given instruct the most consistent, if being otherwise provided as fault 3;If then
Judge whether this charger is in the duty of charging according to the value read in current detection circuit 4;If being not at filling
Electricity condition, then read the CC line magnitude of voltage of vehicle charging end 9, it is judged that whether plug connects, if without connecting, then after returning to power on
The first step, if there being connection, then sends 1kHz, dutycycle 20% pulse, time delay 3 seconds to output of pulse signal circuit 8, and buzzer rings
Three sound, send signal to relay drive circuit 2 and make relay close, start to charge up, the first step after returning to power on.If this charging
Device is in charged state, then read the CC line magnitude of voltage of vehicle charging end 9, it is judged that whether plug connects, if without connecting, then arranging
In charging process, charger and electric automobile disconnecting is caused because of unexpected) for fault 4(;If there being connection, according at electric current
The value read in testing circuit 4 judges the whether charging complete of this charger, if charging complete, it indicates that modulating signal signal knot
Bundle, sends signal to relay drive circuit 2 and makes relay disconnect, and stops sending pulse, time delay to output of pulse signal circuit 8
5 seconds, the first step after returning to power on;If charging is not fully complete, then the first step after being returned directly to power on.Various events in above-mentioned middle appearance
Barrier, according to the type of fault, makes corresponding trouble light bright, and the short ring of buzzer represents fault;Stop to output of pulse signal circuit 8
Send pulse, further according to the value read in current detection circuit 4, find voltage over zero, to relay drive circuit 2
The number of delivering letters makes relay disconnect, and judges whether it is over current fault (can recover fault), the most then time delay returned to after 10 minutes
The first step after electricity.
These are only a specific embodiment of the present invention, according to method for designing of the present invention, practice also can produce similar
The product of technology, belongs to scope.