1 Introduction

In these days, a high-frequency (HF) electronic ballast is preferred due to high luminous efficacy, no flicker, no humming noise, less size and weight, long life, over the electromagnetic ballast to drive the fluorescent lamps, since it cannot be ignited directly from the ac mains. The fluorescent lamp consists of a gas tube which is completely filled with argon gas and mercury vapors along with two filament electrodes at each end. The inner part of the tube is coated with phosphors material and filament electrodes are coated with such materials which can assist in the emission of more electrons. With a proper ignition voltage, an electric discharge is produced between both the electrodes. This discharge generates the invisible ultraviolet radiations and phosphor absorbs these ultraviolet radiations to produce visible light [13].

All discharge lamps inherently have negative dynamic impedance characteristics in their normal operating region. Thus, electronic ballast plays an important role to serve two purposes, one is to provide a sufficient ignition voltage normally of the order of 500–1,000 V for necessary discharge required inside the lamp and the other is to limit and stabilize the lamp current after the ignition process, otherwise the lamp electrodes may be damaged.

Power factor correction (PFC) can be achieved using passive and active PFC techniques. Active PFC technique is better than passive PFC technique, but it is costly, since active PFC converter design and its proper control are complicated as compared to the passive PFC [4]. Power quality improvement at the input ac mains can be achieved using improved power quality converters and it has been discussed in detail by Singh et al. [5]. But the existing HF electronic ballast has power quality problems like poor power factor (PF), high crest factor (CF) and high total harmonic distortion (THD\(_\mathrm{i})\) of ac mains current which is not as per the compliance of IEC 61000-3-2 standard for class C equipments [6]. In power factor-corrected electronic ballast, the input power factor can be improved nearly up to unity.

In this paper, PFC is performed using a buck–boost converter operating in discontinuous conduction mode (DCM), where the input ac mains current inherently follows sinusoidal ac mains voltage waveform using the voltage follower scheme. In the present work, two power conversion stages are used, one is a high power factor regulator (PFR) stage, which converts the ac mains voltage to a regulated dc voltage and second stage converts this regulated dc voltage to a high frequency ac voltage, which is essential to drive the fluorescent lamp.

This method provides nearly unity power factor with low CF and low THD of ac mains current for varying ac mains voltage in between 170–270 V, which is as per IEC-61000-3-2 class C requirements. Section 2 deals with the description of proposed electronic ballast. The design and analysis of the proposed circuit are presented in Sect. 3. Section 4 deals with the voltage follower control strategy used for achieving PFC and Sect. 5 covers the different operating modes of the proposed ballast. A MATLAB model of the proposed ballast is developed in discrete time frame using Simulink and Sim Power System (SPS) toolboxes in Sect. 6. Section 7 deals with the results and discussion. The concluding remarks are given in Sect.  8.

2 Proposed PFC electronic ballast

The proposed electronic ballast is shown in Fig. 1, which consists of a PFC buck–boost converter and a high-frequency series resonant inverter (SRI). Since PFC buck–boost converter operates in DCM, it inherently modulates the ac mains current to follow the line voltage and achieves nearly unity power factor for a widely varying input ac mains voltage. Simultaneously the resonant inverter provides sufficient ignition voltage and supplies constant lamp current at high frequency.

Fig. 1
figure 1

Schemetic of proposed electronic ballast

In proposed electronic ballast, the input ac mains voltage is rectified and filtered to provide dc output voltage. Then a constant dc link voltage of 400 V is achieved for wide varying input ac mains voltage (i.e., 170–270 V) using a PFC buck–boost converter [2]. This dc link voltage is converted into a high- frequency ac waveform by alternately turned on and off power MOSFETs \(\mathrm{M}_1\) and \(\mathrm{M}_2\) at operating switching frequency of 60 kHz. The dc blocking capacitor blocks the dc components present in this high- frequency voltage waveform. The high-frequency ac voltage causes the resonance through the LC network to create high ignition voltage across the electrodes to develop arc inside the fluorescent lamp. The switching frequency of the SRI is kept more than the resonance frequency of LC network to ensure zero voltage switching (ZVS) operation of both power switches, which reduces switching losses at high operating frequency. This improves the efficiency of the electronic ballast.

3 Design and analysis of PFC buck–boost converter-based electronic ballast

The design procedure of the components of PFC buck–boost converter [4, 7] and the resonant inverter of electronic ballast are given as follows.

3.1 Design of buck–boost converter

For a buck–boost converter operating in DCM, the selection of dc link voltage should be done properly and it is defined as,

$$\begin{aligned} V_\mathrm{dc} \ge \frac{D}{1-D} V_{\mathrm{in} ( \mathrm{peak})} \end{aligned}$$
(1)

For operating the PFC buck–boost converter in DCM, the value of inductance should be less than the critical inductance value. The critical value of buck–boost inductance \(L_\mathrm{bb}\) is determined as,

$$\begin{aligned} L_\mathrm{bb (crit)} =\frac{(1-D) V_\mathrm{dc} }{2f_\mathrm{s} I_\mathrm{o} } \end{aligned}$$
(2)

The output capacitor (\(C_\mathrm{o})\) must have enough capacitance to maintain constant dc link voltage and should provide continuous load current. It is calculated as,

$$\begin{aligned} C_\mathrm{o} \ge \frac{I_ \mathrm{o} }{2\omega \Delta V_\mathrm{co} } \end{aligned}$$
(3)

where, D is duty cycle, \(V_\mathrm{o}\) is dc link voltage, \(V_\mathrm{in(peak) }\) is peak value of the input voltage, \(I_\mathrm{o}\) is output rated current, \(f_\mathrm{s}\) is switching frequency, \(V_\mathrm{co}\) is the ripple voltage of the output capacitor.

For \(f_\mathrm{s}\) = 60 kHz, \(I_\mathrm{o}= 0.1636\,\mathrm{A}\), after solving Eqs. (13) for a wide varying ac mains voltage (i.e., 170–270 V), the value of minimum and maximum duty ratio is 0.59 and 0.7. At the input ac mains voltage of 270 V rms, the calculated value of dc link voltage is 395 V (hence it is selected as 400 V). From Eq. (2), the critical value of buck–boost inductance is 6.11 mH (selected as 4 mH, to ensure the DCM operation). The calculated value of bulk capacitor (\(C_\mathrm{o})\) is \(16.28\,\mu \mathrm{F}\) for voltage ripple of 4 % (it is selected as \(18\,\mu \mathrm{F}).\)

3.2 Design of resonant circuit parameters

Under the steady-state condition, the equivalent circuit of the SRI with load as fluorescent lamp is shown in Fig. 2.

Fig. 2
figure 2

Series resonant inverter (SRI)

In this equivalent circuit, \(L_\mathrm{r}, C_\mathrm{b}\) and \(C_\mathrm{p}\) are the resonant circuit parameters and \(R_\mathrm{lamp }\) is the steady-state resistance of the fluorescent lamp. The purpose of blocking capacitor \(C_\mathrm{b}\) is to block the dc component present in the square wave output of the inverter and to allow only the ac components to reach the lamp. The parallel capacitor \(C_\mathrm{p }\) is used to provide high ignition voltage after the pre-heating interval and as soon as ignition occurs inside the lamp, the steady state current starts flowing through the lamp.

At the time of starting, the resonant circuit is formed by \(L_\mathrm{r}, C_\mathrm{b}\) and C\(_\mathrm{p }\) thus the starting resonance frequency is defined as,

$$\begin{aligned} \omega _\mathrm{starting} =\frac{1}{\sqrt{L_\mathrm{r} \cdot C_\mathrm{eq} }} \end{aligned}$$
(4)

Under steady-state condition, the resonant circuit is formed by \(L_\mathrm{r}\) and \(C_\mathrm{b}\) hence the resonance frequency is given as,

$$\begin{aligned} \omega _\mathrm{running} =\frac{1}{\sqrt{L_\mathrm{r} \cdot C_\mathrm{b} }} \end{aligned}$$
(5)

By applying the voltage division rule (Fig. 2), the ratio of rated lamp voltage \((V_\mathrm{lamp})\) and fundamental component of input square voltage \((V_\mathrm{ab})\) is given as,

$$\begin{aligned} \left| {\frac{V_\mathrm{lamp} (\text{ j}\omega )}{V_\mathrm{ab} (\text{ j}\omega )}} \right|=\left| {\frac{Z_\mathrm{p} (\text{ j}\omega )}{Z_\mathrm{s} (\text{ j}\omega ) + Z_\mathrm{p} (\text{ j}\omega )}} \right| \end{aligned}$$

It is simplified as,

$$\begin{aligned}&{\frac{V_\mathrm{lamp} (\text{ j}\omega )}{V_\mathrm{ab} (\text{ j}\omega )}}\nonumber \\&\quad =\frac{1}{[ {1+( {{C_\mathrm{P} }/{C_\mathrm{b} }} )-\omega ^\mathrm{2} L_\mathrm{r} C_\mathrm{p} +\text{ j}( {{\omega L_\mathrm{r} }/\text{ R}} )-( {\text{ j}/\omega \text{ CR}} )} ]}\nonumber \\ \end{aligned}$$
(6)

Now substituting the quality factor, \(Q_\mathrm{s} ={\omega _ \mathrm{s} L_\mathrm{r} }/{R_\mathrm{lamp} },\) the frequency ratio \(x =( {{\omega _\mathrm{r} }/{\omega _\mathrm{s}}})\) and resonance frequency after ignition \(f_\mathrm{r} =( {1/{2\pi \sqrt{L_\mathrm{r} C_\mathrm{b}}}})\) in Eq. (6), then it results in,

$$\begin{aligned} \left| {\frac{V_\mathrm{lamp} }{V_\mathrm{ab} }} \right|=\frac{1}{\sqrt{\left[ {1+( {{C_\mathrm{P} }/{C_\mathrm{b} }}) (1-x^{2})^2+Q_\mathrm{s} \left( {x-\frac{1}{x}} \right)^2} \right]}} \end{aligned}$$
(7)

Under steady state condition, the resistance of fluorescent lamp is given as,

$$\begin{aligned} R_\mathrm{lamp} ={V_\mathrm{lamp}^{2} }/{P_\mathrm{lamp} } \end{aligned}$$
(8)

The parallel resonant capacitor is given as,

$$\begin{aligned} C_\mathrm{p} =\frac{C_\mathrm{b} }{( {1/x})^{2}- 1} \end{aligned}$$
(9)

The series resonant inductor is given as,

$$\begin{aligned} L_\mathrm{r} =\frac{1}{C_\mathrm{eq} \omega _\mathrm{s}^{2} } \end{aligned}$$
(10)

where, \(C_\mathrm{eq} =\left( {\frac{C_\mathrm{b} C_\mathrm{p} }{C_\mathrm{b} + C_\mathrm{p} }} \right),\) \(V_\mathrm{lamp}\) is the rated lamp voltage, \(V_\mathrm{ab}\) is the fundamental component of square voltage, \(R_\mathrm{lamp}\) is the lamp resistance under steady state condition, \(\omega _\mathrm{s}\) is the angular switching frequency, \(C_\mathrm{b}\) is blocking capacitor, \(C_\mathrm{p}\) is parallel resonant capacitor and \(L_\mathrm{r}\) is the series resonant inductor as shown in Figs. 1, 2.

At the time of starting, for sufficient ignition voltage, a quality factor \(Q_\mathrm{s}\) is selected as 1.7. For ensuring the ZVS operation of both power switches of resonant inverter, frequency ratio is selected as 0.25. By solving Eqs. (710), the calculated values of lamp resistance and different components of resonant inverter are \(R_\mathrm{lamp}= 672\,\Omega \) (with 110 V as steady state lamp voltage), \(L_\mathrm{r}= 3.03\,\mathrm{mH}\) (selected as 3 mH), \(C_\mathrm{b}= 37.56 \,\mathrm{nF}\) (selected as 45 nF), \(C_\mathrm{p}= 3\,\mathrm{nF}.\)

4 Control strategy

Figure 3 shows the schematic of the control strategy of PFC converter. In this voltage follower control strategy, ac mains current inherently follows the shape of ac mains voltage to achieve high power factor using a PFC buck–boost converter. This control scheme consists of a PI (proportional integral) voltage controller and PWM generation, which provide switching pulses to the solid-state power switch (\(S_\mathrm{bb})\).

Fig. 3
figure 3

Control strategy of PFC converter in discrete time frame

A PI voltage controller is selected for the voltage loop for the regulation of the output dc voltage. The DC voltage, \(V_\mathrm{dc}\) is sensed and then compared with set reference voltage \(V^{*}_\mathrm{dc}\). The resulting voltage error \(V_\mathrm{e}(n)\) at nth sampling instant is given as,

$$\begin{aligned} V_\mathrm{e} (n)=V_{\mathrm{dc}}^{*} (n)-V_\mathrm{dc} (n) \end{aligned}$$
(11)

and the output of PI voltage controller at nth sampling instant can be given as,

$$\begin{aligned} V_\mathrm{c} (n) \!=\! V_\mathrm{c} (n-1) \!+\! K_\mathrm{p}\left\{ V_\mathrm{e} (n) \!-\! V_\mathrm{e} (n-1)\right\} \!+\! K_\mathrm{i} V_\mathrm{e} (n)\quad \end{aligned}$$
(12)

where, \(K_\mathrm{p}\) and \(K_\mathrm{i}\) are the proportional and integral gains.

To achieve unity power factor and to reduce current harmonics, the input ac mains current naturally follows the ac mains voltage waveshape. The output of PI voltage controller is compared with fixed frequency carrier wave to generate PWM gating signals for power MOSFET of the PFC buck–boost converter.

If

$$\begin{aligned} V_\mathrm{c} (n)>\text{ carrier} \text{ signal} \text{ then} \text{ S}_\mathrm{bb} =1 \;\text{ else} \;S_\mathrm{bb} =0. \end{aligned}$$
(13)

This gating signal \((S_\mathrm{bb})\) is given to gate of the MOSFET of buck–boost converter.

5 Operating modes of proposed electronic ballast

Different operating modes of proposed electronic ballast and its corresponding waveforms are shown in Figs. 4, 5, 6, 7 and 8. The sinusoidal input voltage is considered as constant in each switching cycle, since the switching frequency is much higher than the line frequency. The operating modes are divided into Mode-A to Mode-D and each one is explained in brief.

Fig. 4
figure 4

(Mode-A)

Fig. 5
figure 5

(Mode-B)

Fig. 6
figure 6

(Mode-C)

Fig. 7
figure 7

(Mode-D)

Fig. 8
figure 8

Theoretical waveforms of resonant inverter stage of proposed electronic ballast

Mode-A (\(t_0 \le t \le t_1 )\)

At time \(t_\mathrm{o},\) intrinsic diode \(D_\mathrm{2}\) is conducting and it allows the dc link capacitor to be charged and during this interval, the gate pulse \((S_\mathrm{2})\) is also applied to active switch \(M_2.\) The path of current is given in Fig. 4.

$$\begin{aligned} \mathbf{C}_\mathbf{o} \mathbf ({-}) \varvec{\rightarrow } \mathbf{D}_\mathbf{2} \varvec{\rightarrow } \mathbf{L}_\mathbf{r} \varvec{\rightarrow }\mathbf{C}_\mathbf{b} \varvec{\rightarrow } \left( {\mathbf{R}_\mathbf{lamp} {\parallel } \mathbf{C}_\mathbf{P} } \right)\varvec{\rightarrow } \mathbf{C}_\mathbf{o} \mathbf (+) \end{aligned}$$

Mode-B (\(t_1 \le t\le t_2 )\)

At time \(t_\mathrm{1},\) the MOSFET \(M_\mathrm{2}\) is turned on at ZVS (zero voltage switching) and dc link capacitor is allowed to discharge. The direction of resonant inductor current changes and increases upto time \(t_\mathrm{2}\). At time \(t_\mathrm{2},\) this mode completes and the flow of current is shown in Fig. 5.

$$\begin{aligned} \mathbf{C}_\mathbf{o}\mathbf (+) \varvec{\rightarrow } \left( {\mathbf{R}_{\mathbf{lamp}} {\parallel } \mathbf{C}_\mathbf{P} } \right)\varvec{\rightarrow } \mathbf{C}_\mathbf{b} \varvec{\rightarrow } \mathbf{L}_\mathbf{r} \varvec{\rightarrow }\mathbf{M}_\mathbf{2} \varvec{\rightarrow }\mathbf{C}_\mathbf{o}({-}) \end{aligned}$$

Mode-C \((t_2 \le t \le t_3 )\)

MOSFET \(M_2\) is tuned off at time \(t_2\) and intrinsic diode \(D_1\) starts conducting, this allows resonant current to flow in the same direction due to resonating nature of the circuit. During this interval, the gate pulse (\(S_1)\) is also applied to active switch \(M_1\). The path of the current is shown in Fig.  6.

$$\begin{aligned} \mathbf{D}_\mathbf{1} \varvec{\rightarrow } \left( {\mathbf{R}_{\mathbf{lamp}} {\parallel } \mathbf{C}_\mathbf{P} } \right)\varvec{\rightarrow } \mathbf{C}_\mathbf{b} \varvec{\rightarrow } \mathbf{L}_\mathbf{r} \varvec{\rightarrow } \mathbf{D}_\mathbf{1} \end{aligned}$$

Mode-D \((t_3 \le t \le t_4 )\)

At time \(t_3,\) the MOSFET \(M_1\) starts conducting and it is confirmed that it is turned on at ZVS. This ensures the change in the direction of resonant current. The path of current is shown in Fig. 8. This mode ends up at time \(t_4\) and then Mode-A to Mode-D repeat for the next switching cycle.

$$\begin{aligned} \mathbf{M}_\mathbf{1} \varvec{\rightarrow } \mathbf{L}_\mathbf{r} \varvec{\rightarrow } \mathbf{C}_\mathbf{b} \varvec{\rightarrow } \left( {\mathbf{R}_{\mathbf{lamp}} {\parallel } \mathbf{C}_\mathbf{P} } \right)\varvec{\rightarrow } \mathbf{M}_\mathbf{1} \end{aligned}$$

It is shown from the different operating modes over a switching cycle of the above circuit that both MOSFETs \((M_1\) and \(M_2)\) are operating at ZVS. Moreover, to ensure the ZVS of both power MOSFETs \(M_1\) and \(M_2,\) the resonant current should lag behind the fundamental component of inverter input voltage \((V_\mathrm{ab}).\) Hence, switching frequency must be greater than the resonant frequency of the inverter (i.e., \(f_\mathrm{s}> f_\mathrm{r}),\) such that nature of resonant circuit as inductive. The theoretical waveform of resonant inverter stage is shown in Fig. 8.

6 MATLAB model of proposed PFC buck–boost converter-based electronic ballast

As shown in Fig. 9, the proposed PFC buck–boost converter- based electronic ballast is modeled in MATLAB/SIMULINK environment, in which compact fluorescent lamp is considered as a resistor at high frequency (60 kHz). In proposed PFC buck-boost converter-based topology, a voltage follower control scheme is applied using a PI voltage controller for operating the buck–boost converter in DCM. The designed values of the PFC converter components and resonant inverter components have been selected properly to get improved power quality at input ac mains. These component values are given in Appendix along with the PI voltage controller parameters. Figure 10 shows the developed model of voltage follower control scheme for achieving PFC with buck–boost converter and Fig.  11 shows the developed model for the generation of switching pattern for active switches of SRI.

Fig. 9
figure 9

MATLAB model of proposed electronic ballast

Fig. 10
figure 10

Voltage follower control scheme for PFC

Fig. 11
figure 11

Switching pattern of SRI MOSFETS

7 Results and discussion

The analysis, modeling and simulation of the proposed electronic ballast are performed to validate the design of the circuit, which has low crest factor, high power factor and low THD of ac mains current. With the proper design of a buck–boost converter and a resonant inverter, the dc link voltage is maintained almost constant at 400 V, thus the lamp current remains nearly constant for a wide variation in input ac mains voltage in between 170–270 V. This in confirmed by observing the waveforms shown in Figs. 12, 13 and 14 of the input ac mains voltage \((V_\mathrm{s}),\) input ac mains current \((I_\mathrm{s}),\) dc current \((I_\mathrm{dc}),\) dc link voltage \((V_\mathrm{dc}),\) inductor current \((I_\mathrm{Lbb}),\) lamp voltage \((V_\mathrm{lamp}),\) lamp current \((I_\mathrm{lamp}),\) switches voltages \((V_\mathrm{M1}, V_\mathrm{M2})\) and switches currents \((I_\mathrm{M1}, I_\mathrm{M2})\) at ac mains voltage of 170, 220 and 270 V. For ensuring the DCM operation of the PFC buck–boost converter, the inductor current \((I_\mathrm{Lbb})\) has also shown for 170, 220 and 270 V in Figs. 12, 13, 14. Under steady state operation, the lamp voltage \((V_\mathrm{lamp})\) and lamp current \((I_\mathrm{lamp})\) at ac mains voltage of 170, 220 and 270 V remain same as shown in Figs. 12, 13, 14. Both switches voltages \((V_\mathrm{M1}\) and \(V_\mathrm{M2})\) and both switches currents \((I_\mathrm{M1 }\) and \(I_\mathrm{M2})\) are shown in Figs.  12, 13, 14, which confirm the ZVS operation of both solid-state power switches.

Fig. 12
figure 12

Performance of proposed electronic ballast in terms of ac mains voltage \((V_\mathrm{s}),\) ac mains current \((I_\mathrm{s}),\) dc current \((I_\mathrm{dc}),\) dc link voltage \((V_\mathrm{dc}),\) buck–boost inductor current \((I_\mathrm{Lbb}),\) lamp voltage \((V_\mathrm{lamp}),\) lamp current \((I_\mathrm{lamp}),\) switch voltage \((V_{M1}),\) switch current \((I_\mathrm{M1}),\) switch voltage \((V_\mathrm{M2})\) and switch current \((I_\mathrm{M2})\) at 170 V

Fig. 13
figure 13

Performance of proposed electronic ballast in terms of ac mains voltage \((V_\mathrm{s}),\) ac mains current \((I_\mathrm{s}),\) dc current \((I_\mathrm{dc}),\) dc link voltage \((V_\mathrm{dc}),\) buck–boost inductor current \((I_\mathrm{Lbb}),\) lamp voltage \((V_\mathrm{lamp}),\) lamp current \((I_\mathrm{lamp}),\) switch voltage \((V_\mathrm{M1}),\) switch current \((I_\mathrm{M1}),\) switch voltage \((V_\mathrm{M2})\) and switch current \((I_\mathrm{M2})\) at 220 V

Fig. 14
figure 14

Performance of proposed electronic ballast in terms of ac mains voltage \((V_\mathrm{s}),\) ac mains current \((I_\mathrm{s}),\) dc current \((I_\mathrm{dc}),\) dc link voltage \((V_\mathrm{dc}),\) buck–boost inductor current \((I_\mathrm{Lbb}),\) lamp voltage \((V_\mathrm{lamp}),\) lamp current \((I_\mathrm{lamp}),\) switch voltage \((V_\mathrm{M1}),\) switch current (\(I_\mathrm{M1}),\) switch voltage ( \(V_{M2})\) and switch current \((I_\mathrm{M2})\) at 270 V

The input ac mains current waveforms along with their harmonic spectra and THD are shown in Fig. 15 at ac mains voltages of 170, 220 and 270 V, which ensures the low THD of ac mains current of proposed ballast for a wide variation in input ac mains voltages.

Fig. 15
figure 15

Input ac mains current waveform and its harmonic spectra at ac mains voltages of a 170 V, b 220 V and c 270 V

Table 1 shows the variations of power factor, displacement power factor (DPF), % THD of ac mains current and crest factor (CF) of PFC buck–boost converter-based electronic ballast with a large variation in ac mains voltage demonstrating the improved power quality at ac mains.

Table 1 Performance parameters of proposed electronic ballast

8 Conclusion

A buck–boost converter operating in DCM with low crest factor and high power factor has been proposed for an 18 W compact fluorescent lamp. The proposed electronic ballast with PFC buck–boost converter has shown improved power quality such as almost unity power factor and a crest factor of nearly 1.41 for the wide range of ac mains voltage. The current harmonics of the proposed electronic ballast have been compared with the current harmonic limits of IEC 61000-3-2 Class-C equipments and which are within the norms and also crest factor is well below the limit of 1.7 [6]. Moreover, DCM has an advantage that it utilizes only voltage control loop as compared to multiple control loops used in CCM. With an optimum design of PFC buck–boost converter and a resonant converter, the lamp current has been maintained close to the rated value. The proposed ballast has ac mains current THD between 6.59 and 10.29 % for voltage range of 170–270 V. The ZVS of solid-state switches has been confirmed, since the series resonant inverter current lags behind the applied square voltage to the inverter. This has been achieved by keeping the switching frequency more than the resonance frequency of the half bridge inverter, which reduces the switching losses and improves the overall efficiency of the electronic ballast.