Currently with hardware control stages, progressive charging from a double-rectified sinusoid signal is done by a linear pulse-width modulation (PWM) duty cycle increase. However, a drawback with this method is that the linear increase of PWM does not provide a “uniform” voltage increase and high current peaks are present that cause a large amount of electromagnetic interference (EMI) and can reduce the life of the involved electrical components.
In light of the foregoing, there is a need for an optimized software-driven soft start-algorithm in which progressive charging of capacitors is performed in order to reduce, if not eliminate, respective current peaks due to capacitor voltage changes.
The present invention includes a soft-start charging method for at least one capacitor, the method including: obtaining a zero-crossing time, which is a time when a zero-crossing of a source voltage will occur; obtaining an advance time, which is an amount of time; and calculating a trigger time based on the advance time and the zero-crossing time. The method also includes triggering a switch to close at the calculated trigger time; charging the at least one capacitor with the source voltage with the closing of the switch for a charging time period; and opening the switch at the end of the charging time period. The steps of obtaining the zero-crossing time, the obtaining the advance time, the calculating, the triggering, the charging, and the opening are repeated until the at least one capacitor is fully charged.
The present invention also includes a non-transitory computer-readable storage medium storing instructions which when executed by a processor cause a soft-start charging method to be performed, the method including: obtaining a zero-crossing time, which is a time when a zero-crossing of a source voltage will occur; obtaining an advance time, which is an amount of time; and calculating a trigger time based on the advance time and the zero-crossing time. The method also includes triggering a switch to close at the calculated trigger time; charging the at least one capacitor with the source voltage with the closing of the switch for a charging time period; and opening the switch at the end of the charging time period. The steps of obtaining the zero-crossing time, the obtaining the advance time, the calculating, the triggering, the charging, and the opening are repeated until the at least one capacitor is fully charged.
In addition, the present invention includes soft-start charging apparatus for charging at least one capacitor, the apparatus including a switch, a zero-crossing unit configured to obtain a zero-crossing time, which is a time when a zero-crossing of a source voltage will occur, and an advance time unit configured to obtain an advance time, which is an amount of time. The apparatus also includes a trigger time calculation unit configured to calculate a trigger time based on the advance time and the zero-crossing time, a triggering unit configured to trigger the switch to close at the calculated trigger time, and a charging unit configured to charge the at least one capacitor with the source voltage with the closing of the switch for a charging time period. The switch is opened at the end of the charging time period. The processes of obtaining the zero-crossing time, obtaining the advance time, calculating of the trigger time, triggering the switch to close, charging the capacitor, and opening the switch are repeated until the at least one capacitor is fully charged.
A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:
Referring now to the drawings, wherein like reference numerals designate identical or corresponding parts throughout the several views.
An embodiment of the present invention uses a memory encoded with a PWM algorithm for performing progressive charging of one or more capacitors. The progressive charging of the capacitors allows for duty cycle increases which can minimize the energy in current peaks. By ensuring reduced-energy current peaks in the power capacitor during soft-start charging, electromagnetic interference (EMI) is minimized. An embodiment of the present invention also applies an exponential or sinusoidal growth rate to a PWM-duty-cycle increase to ensure a linear increase of the capacitors current charging energy. Ideally, a linear voltage increase in the capacitors would result in a constant charge current. The charging method and/or apparatus of the present invention can be used for the charging of automobiles, electric vehicles, or electric power management for AC/DC, DC/DC, DC/AC and provides a capacitive stage at the DC bus big enough for stabilization purposes while allowing careful pre-charging when the system is connected.
Turning now to
The present invention is directed to the charging of a capacitor or capacitors C with a train of pulses from the mains supply v(t) (for example a sinusoidal source), in an effort to limit the charging current i(t) peak energy. The mains supply v(t) could be another type of time-varying voltage source other than a sinusoidal source. Charging the capacitor or capacitors C with a train of pulses reduces the electromagnetic compatibility (EMC), and stress on the capacitor or capacitors C.
An embodiment of the present invention utilizes a microcontroller 9 including a computer-readable storage medium 35 programmed with software to vary the width of pulses as a further improvement towards current peaks energy averaging. The computer-readable storage medium 35 could be, for example, a RAM, ROM, SRAM, EPROM, EEPROM, or a Flash. Also, it is envisioned that the software of the present invention could be stored on a hard disk drive, compact disk, digital video disc, blu-ray disc, mini-disc, or any other type of computer disc.
Next, with reference to
In
The solution is:
K1 and K2 set for the initial conditions at t=t0.
In
Thus, depending on the initial status of the capacitor C (its voltage and its current, for example from previous pulses), we may find K1 and K2. However, K1 and K2 are to comply with the continuity of voltage signals.
Turning again to
The solution is:
K3 and K4 are set for the initial conditions at t=t0.
Thus, in summary:
If we consider now a series of a number of pulses, we have the closure of the switch at different t0, t1 . . . tn times. For each variable, at each ti we have the combination of a sinusoidal and exponential factors.
In an embodiment of the present invention shown in the circuit diagram of
Thus, we have the following formulas:
A current peak in the circuit of
Thus, in an embodiment of the present invention, the charging circuit is controlled in order to provide a low voltage difference between the input voltage v(t) and the capacitor voltage Vc(t), to reduce the exponential effect. Also, the switch device shown in
As the initial capacitor voltage Vc(t) is zero, the present invention uses the zero crossing of the input voltage v(t) (i.e. when the time varying voltage is zero) for synchronization, and the microcontroller switches ON the thyristor at a short time before the zero crossing of the input voltage, thus providing a small voltage difference between the capacitor voltage Vc(t) and the input voltage v(t). This synchronization method reduces high peaks of current to the capacitor C.
By controlling the opening of the thyristor in advance of the zero crossing at progressively earlier times, a progressive charge of the capacitor C is obtained while the voltage difference (v(t)−Vc(t)) is kept low, thus minimizing the exponential effect. However, if the switch (e.g. thryistor) is only turned ON once per cycle, or twice if rectified, keeping the voltage difference between the input voltage v(t) and the capacitor voltage Vc(t), low reduces the time of the charging period, and therefore lengthens the total amount of time to reach a full-charge of the capacitor C or capacitors.
Now we consider the current peak due to the other factor in formulas (1) and (2) above: the sinusoidal factor. The peak energy is directly related with the pulse height by pulse width of the current.
In the embodiment of
In
The present invention uses software to control the synchronization on zero crossings and control the progressive triggering of the thyristor. The thyristor is controlled so that the energy at each current peak is equal to the energy of each other current peak, so that no peaks exist that are too high, while keeping the expected charging rate.
In the circuit of
In order to keep the energy constant for all peaks the thyristor triggering times are controlled so that the widths of the pulses increase progressively. Moreover, the rate of increasing will be sinusoidal following the phase of the voltage, as being opposed to the current. For example, if the voltage is a cosine this rate will be as a cosine, while the current will be a sine. The thyristor triggering times can be controlled, for example, by an internal table stored in memory, with the table data being obtained from previously measured data, to get the rate to apply at any time.
Turning now to
Thus, in order to minimize current peaks (and thus EMC and ageing of the capacitor) it is optimal to control charging so that there is constant current charging, which means a linear increase in voltage. Also, it is advantageous to have a smooth output and a mechanism for switching off the system (e.g. full AC/DC converter).
In the circuit of
In the stable mode, Vc is kept charged with the supply from Vi(t), and both Tr1 and Tr2 with PFC 3 provide the proper signal conditioning to convert a.c. to d.c. Thyristors Tr1 and Tr2 are kept closed (ON) during respective driving cycles by the triggering voltage VTr1 & VTr2. To ensure both thyristors Tr1 and Tr2 are ON, (to eliminate unexpected closures due to noise . . . ) the triggering voltage is a trend of pulses (e.g. duty of 50%, frequency of 100 kHz) during all half-period of the input signal.
In the pre-charge mode, Vc starts at zero volts (or a low voltage). If Vi(t) is connected directly, like in the stable-mode, the capacitor C or capacitors would generate a peak of current. This is bad for EMC requirements and also for the capacitor life and reliability of the other components. Then, to achieve a linear rate of increase for the capacitor voltage, one method is to close thyristors Tr1 and Tr2 at small, regular periods, to enable charging of C in steps or increments.
When either of the thyristors Tr1 or Tr2 are ON, the current value will be a function of the voltage V1(t). In this case the charging current will flow through D3, as PFC 3, which is mainly inductive, will block any spurious current flow. On the other hand, to have a thyristor Tr1 or Tr2 ON, it is necessary to have a pulse in the respective thyristor gate input VTR1 or VTR2, together with a positive voltage between the anode, Vi(t), and the cathode, Vc(t), that is (Vi(t)>Vc(t)). This means that it is only necessary to trigger the thyristors Tr1 and Tr2 ON and the thyristors Tr1 and Tr2 will go OFF (open) whenever the Vc(t) voltage is higher than the Vi(t) voltage.
Thus, the thyristors will switch to OFF at any zero crossing of Vi(t) (minimum Vc(t) is zero). Then, in order to have Tr1 and Tr2 closed at small, regular periods, and considering these will end at zero-crossing of Vi(t), the thyristors are controlled to close a short time in advance of the zero-crossing of Vi(t).
The charging procedure of the present invention will start closing the thryistors near to a voltage zero-crossing to have a low voltage difference between Vi(t) and Vc(t). There will be progressively longer charging periods while the capacitor gets charged. In fact, the respective thyristor (Tr1 or Tr2) will turn OFF (Vi−Vc=0) sooner each time, as at each period Vc will start charging at the last voltage of the previous period.
Turning now to
The thyristor trigger time calculation unit 29 receives an input tn from the timing advancement table 21 and a timing input tz from the next zero-crossing forecast determination unit 27. The thyristor trigger time calculation unit 29 calculates a thyristor trigger time ttr, by subtracting tn from tz, (i.e. ttr=tz−tn). The thyristor triggering stage 17 receives the calculated thyristor trigger time ttr from the thyristor trigger time calculation unit 29, and generates thyristor gate inputs VTr1 and VTr2 which are used to control whether thyristors Tr1 and Tr2 are turned on, respectively. It is possible that the thyristor trigger time calculation unit 29 calculates the thyristor trigger time ttr, based on an advance time tn and a zero-crossing tz using a formula.
A high voltage (HV) battery and/or vehicle loads 33 can be connected to the output of the charger power stage 5. Similarly,
As synchronization is controlled by the microcontroller 9 to be at or slightly before the zero-crossing, if Vi(t)=V sin(ωt), then the current through the capacitor C will be proportional to cos(ωt), that is, greater when the voltage change rate is greater, at zero-crossings. By controlling the start of charging to be near to the voltage zero-crossing, the initial current peak during charging will be higher than at the end of charging, when Vc(t) will be nearly equal to Vi(t) peak, and the respective thyristor will close nearly at Vi(t) peak, when there is the minimum voltage change rate. As every current peak will generate EMC, it is advantageous to have even-EMC-emitting current peaks during the charging process. Thus, in an embodiment of the present invention, charging is controlled by the microcontroller 9 so that there are narrower (i.e. shorter) closings of the thyristors at the beginning of charging and wider (i.e. longer) closings at the end of charging. If Vi(t) evolves like a sin(ωt), closing periods may progress like sines, that is, with a minimum value near Vi(t) zero-crossing and a maximum at Vi(t) maximum and with a sinusoidal progression.
Turning now to
As each zero-crossing is detected by the battery charger 9, it is forecasted when the time of the next zero-crossing of Vi(t) will happen by the next zero-crossing forecast determination unit 27, and trigger each thyristor Tr1 and Tr2 in advance of the next zero-crossing. The moment the battery charger 7 is connected to the Vm(t) in the home mains 31, the voltage regulators stabilize supply voltages, the microcontroller 9 initializes and the main capacitor block will get charged. As this charging of the capacitor has to be done before any operation of the battery charger 7, this process is called pre-charging of the capacitor C. The pre-charging will not be done once the battery charger 7 is working, but the capacitor block will get charged and discharged following the requirements of the HV battery and other vehicle loads 33, and according to the battery charger 7 working algorithms.
In step S101, the n value is used as a counter with n initialized to 1 at the beginning of the process, i.e. n=1. In the example in
In step S103, an advance time tn is obtained from a table in a memory. The advance time tn could be obtained from the timing advance table 21 stored in the memory 35 in the microcontroller 9. It is possible that tn could be stored in a format other than a table. The microcontroller 9 searches the table in the memory 35 and obtains the “advance time” related with the respective “count” (t1, t2, t3, . . . tn . . . , t100).
In step S105, based on the zero-crossing detector 13 in the microcontroller 9, the time at which the next zero-crossing tz will happen can be estimated.
In step S107, the trigger time ttr is calculated by ttr=tz−tn. By subtracting the just read tn from the forecasted tz we will have the moment we need to close the respective thyristor to start the respective charging step. The calculation of ttr is performed by the microcontroller 9.
In step S109, Tr1 or Tr2 is triggered at a corresponding trigger time ttr. When triggering the thyristors, the microcontroller 9 sends the trigger time ttr to the thyristor triggering stage 17 circuit that is in charge of converting the microcontroller 9 output to a signal capable to triggering the respective thyristor (Tr1 or Tr2, according to thyristor laws).
Next, in step S111, the capacitor C is charged until Vi(t)=Vc(t) and Tr goes OFF (or when Vi(t)=0).
In step S113, it is checked whether n is equal to 100, in other words it is determined if one second has elapsed yet. Thus, in this step it is checked how many times we have stepped the charge into the capacitor. As we described above, there has to be 100 steps (in the example of 1 s and 50 kHz). If it is determined that n=100, that is, we have already done 100 steps and 1 s has passed, the charge should be finished and the loop exits and proceeds to step S119. Otherwise, the counter is incremented in step S115 to n=n+1, and the process is started again. All the functions in step S113 are performed by the microcontroller 9. However, it is possible that any functions performed by the microcontroller 9 could be performed by two or more microcontrollers.
In step S117, it is determined whether Vc>Vn−Vt. In this step it is verified whether the pre-charge is successfully completed. That is, whether the capacitor voltage is higher than a “nominal” voltage Vn (normally near to the Vi peak) minus a threshold voltage Vt to cope with tolerances. This comparison is done by the microcontroller 9 from data received from the measuring circuits in the battery charger 7. If the pre-charge is completed correctly in step S119, the microcontroller 9 ends the pre-charge in step S121 and continues with other tasks. If, on the contrary, the capacitor charge is lower than it should be, the microcontroller 9 signals a “Pre-Charge Error” status in step S123 prior to ending the process in step S125. It is possible that the microcontroller 9 will handle this error flag from step S123 and will execute a respective error-solving procedure. For example, the microcontroller 9 may chose to start another charging process, or to send a “fault” message to a vehicle system. During the charging process (which occurs after the pre-charging process), the HV battery is charged from the AC input.
Turning now to
In
The above described charging methods and circuits could be applied to automobiles, boats, and other vehicles utilizing electrical energy.
Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein.