Parametric PSpice Circuit of Energy Saving Lamp Emulating Current Waveform
Parametric PSpice Circuit of Energy Saving Lamp Emulating Current Waveform
Raciti, Angelo;Rizzo, Santi Agatino;Susinni, Giovanni
2019-01-03 00:00:00
applied sciences Article Parametric PSpice Circuit of Energy Saving Lamp Emulating Current Waveform Angelo Raciti, Santi Agatino Rizzo * and Giovanni Susinni Department of Electrical Electronic and Computer Engineering (DIEEI), University of Catania, Viale Andrea Doria, 6, 95125 Catania, Italy; angelo.raciti@dieei.unict.it (A.R.); giovanni.susinni@unict.it (G.S.) * Correspondence: santi.rizzo@dieei.unict.it; Tel.: +39-095-738-2308 Received: 7 December 2018; Accepted: 21 December 2018; Published: 3 January 2019 Featured Application: The proposed circuit model is able to foresee the overall current distortion of different lamp configurations. This feature is very useful in the optimal design of lighting systems when a key target is the mitigation of the current distortion due to the power converter inside the energy-saving lamps. Abstract: Energy-saving lamps are equipped with converters enabling high energy efficiency at the cost of injecting very distorted currents on the mains. The problem is more complex in the emerging smart-lighting scenario where these lamps are also used to perform additional tasks. Harmonics mitigation at the lamp level is expensive; consequently, an optimal lighting system design aiming at reducing both costs and current distortion of the whole lighting system is necessary. A tool able to emulate the current drawn from the lamps is necessary for optimal design. Such a tool has also to consider the fluctuations of the voltage on the mains that usually occur throughout the day. In this perspective, a parametric PSpice circuit is proposed and the netlist is reported in this work. Moreover, the simple procedure to be adopted for computing the parameters is also described. The validation has confirmed the ability of the proposed circuit in emulating the current drawn from various CFLs and LED lamps under different supplying voltage. Keywords: CFL; current harmonics; LED lamp; nonlinear load modeling; optimal design; power converter; power factor correction; power quality; smart lighting; Spice 1. Introduction Energy efficiency is a crucial target in view of a sustainable energy future [1], thus, different policies to improve energy efficiency have been internationally introduced [2–6]. European Council has initially set the target of 27% (that should become 30%) energy savings by 2030. Moreover, the European Union is pushing towards “nearly zero-energy buildings” by introducing legal requirement in the construction of new buildings [7]. In this perspective, the European Union has also decided to phase out inefficient light bulbs and, similarly, in the U.S.A., the manufacture of light bulbs that do not meet federal energy-efficiency standards is prohibited according to the Energy Independence and Security Act [8,9]. Energy-saving lamps (ESLs) are consequently the natural choice for lighting system retrofitting as well as for designing future lighting systems. An ESL is a non-linear load due to the converters adopted in the lamp that draws a very distorted current from the mains. In the Smart Lighting scenario, intelligent lamps present new capabilities and functionality (e.g., continuously flashing to signal an intrusion, use sensors for automatic dimming, and so on) making them more than simple illumination systems [10]. Such additional tasks involve driving algorithms for the converters that may intensify the harmonic distortion. Obviously, the effect of the current drawn from a single lamp is negligible. Appl. Sci. 2019, 9, 152; doi:10.3390/app9010152 www.mdpi.com/journal/applsci Appl. Sci. 2019, 9, 152 2 of 31 On the other hand, the effect of the total current harmonics injected on the mains cannot be neglected in large lighting systems in view of the widespread use of ESLs in building and streets. The harmonics negatively affect the power network: reduction of the cable ampacity and life, while the losses and EMI issues increase [11]; premature aging and failures of capacitor banks used for power factor correction and ancillary services [12–15]; undesired losses in motors and transformers windings with related life expectancy reduction [16,17]. The large use of ESLs will involve additional issues on future smart grids that use network control and management techniques based on measurements that may be affected by the harmonics [18]. The problem is exacerbated by the ESLs since dealing with the large distorted current due to a very great number of dispersed ESLs is more complex than in case of a single large harmonics source [19]. Therefore, there is a noteworthy need for mitigation of the harmonics due to ESL based lighting systems. The addition of filters, power factor corrector circuits, and other devices in the ESL increase the lamp cost and consequently the economic investment for both retrofitting and new lighting systems [20–24]. On the other hand, although a single compensation circuit for the whole lighting system may be less expensive [25], it has to be revised each time a new lighting system retrofit is performed. The best choice from cost and flexibility point of view is the harmonic mitigation at lighting system design stage. The optimal lighting system design aiming at mitigation of the distorted current drawn from the whole lighting system requires a tool for estimating such a current when different lamps configurations are adopted (number, type, nominal parameter, and so on). In such a case the best configuration is the one with the greatest harmonic cancellation and lowest THD [25–29]. The proposed parametric PSpice circuit is suitable to perform this task. More specifically, the current drawn from a given ESL under a variable voltage on the main is emulated by means of a generalized PSpice netlist with parametric components. The parameters of an ESL can be obtained by few simple current measurements to be performed at the lamp terminals. These parameters are the coefficients of the functions obtained by linear interpolation of the rms of the current harmonics. In view of the increasing attention in the reduction of harmonic injection, the coefficient of these polynomial functions should be provided by manufactures in the ESL datasheet in the future, regardless the specific use of that information in this paper. The PSpice circuit validation has been performed comparing the measured and simulated currents: the results have confirmed the suitability of the model. The circuit can be used to predict the current waveform of each lamp and, consequently, the overall current drawn from the lighting system for different configurations can be foresee. Therefore, it is a useful tool for the optimal design of a new lighting system or its subsequent optimal retrofit. 2. Related Works The design of the lighting system plays a fundamental role because it is a prime component to help to living and feeling better in the private houses, in the offices and industrial locations. In these terms, the design should take into account the light level and the uniformity of the light pattern, the aesthetic appearance, the economic benefit, the safety and appropriate equipment [30]. Safety issues should be more cared in some industrial applications and in street lighting. Only ESLs will be used in future smart lighting systems, then there is an increasing interest in studying the new devices in their large applications. The optimal lighting system design in different indoor applications of ESLs have been investigated by considering several constraints and objectives: cost saving, energy efficiency and management, functional suitability, system integration, people satisfaction, and quality of lighting [31–38]. Moreover, it is important to point out the different innovative solutions in the modern agriculture consist on the development of facilities LED lighting technology. Among the different advantages, it can be realized a continuous production of crops and, consequently, the growth factors (temperature, light, etc.) can be controlled during the whole process while it is also reduced the use of pesticide [39–42]. It is evident that the use of parallel optimization algorithms [43] plays a key role in the optimal design Appl. Sci. 2019, 9, 152 3 of 31 of the lighting system that requires investment and operating costs minimization, as well as uniform light distribution over the plant growing area, accounting for light intensity capability and shading effects [44,45]. In outdoor applications, accurate methods have been developed to test the road lighting effects to ensure a good visibility in the street [46–50]. Although several key aspects of the optimal lighting system design have been considered until now, the power quality degradation due to the employment of the ESLs has been neglected in both indoor and outdoor lighting design. In the perspective of an optimal and efficient design, the distorted current drawn by a large number of lamps have to be considered. The parametric PSpice circuit proposed in this paper enables to consider power quality degradation at the planning stage of the lighting system and, consequently, overcome the aforesaid limitation of previous works on the optimal lighting design. The impact on the grid of the current harmonics produced by the CFLs and LED lamps has been analysed in depth so far [51–58]. In [51] the results of the experimental evaluation of electrical characteristics of several LED lamps from different manufacturers have been reported. The behaviour of each lamp using different supply voltage has been considered and the amount of current harmonic injected into the grid has been measured. The main goal of [52] has been the comparison of different house hold illumination appliances and the monitoring of the power quality degradation. In [53] the current harmonics that are injected into the utility-grid by the different types of LED lamps that are available in the Indian market have been considered and the results have been compared with the IEC 61000-3-2 guidelines. In [54] a comparison between the use of incandescent lamps and ESLs has been carried out for a large building. In [55] the measurements in two private houses and on low voltage side of the distribution transformer supplying these houses have been performed. Additionally, in this case the incandescent lamps have been replaced with the energy saving ones. It is worth highlighting that in [56] the impact of the current harmonic due to by several domestic appliances, together with many LED lamps has been analysed. It is also interesting to note how the power quality issues in term of harmonics generated by lighting system when both CFLs and LED lamps are employed have been studied [57]. In such a work the design of a filter circuit for harmonic reduction in lighting system applications has been considered. Different LED light bulbs have been compared in [58], focusing on the current harmonic emission and, consequently, on the negative impact on the distribution grid. In [59], a method to examine the effect on harmonic distortion levels in the distribution network through a custom software has been proposed. Although the current distortion has been investigated in these works, there were not developed any model able in predicting the distorted current. Although the harmonics due to the ESLs have been studied in these works, they do not provide any method to esteem the harmonic distortion due to them. Several works have treated the prediction of the amount of current harmonic that the ESLs inject into the power grid [60–72]. In [60] has been investigated the effect of the employing of many energy-saving lamps on the power grid in New Zeeland. A Norton equivalent has been used to emulate a large number of houses assumed as series of distributed loads. The main objective of [61] has been the prediction of the maximum number of CFLs that can be used without overcome a threshold value of THD imposed by the users. In [62] the results of a research performed on energy-efficient electronic ballasts for T8 fluorescent lamps have been presented. Unlike the previous cases, the CFL behaviour in a distribution system a fixed harmonic injection method has been adopted, where the single CFL has been modelled by means of an ideal current source. In this way, a possible solution developed in the PSCAD/EMTDC environment to model the CFL ballast circuit has been proposed in [63]. The solution analysed the interactions of several CFLs connected to an electrical network at the same time. It has been studied the error between the measured current waveform and the ones obtained through the fixed harmonic current injection. Moreover, the tensor analysis with phase dependency is used with the aims to take into account the harmonic interaction of the mains voltage in the CFL harmonic currents. The analysis of the power factor and harmonic emission of CFLs have highlighted that the current drawn of the lamps are influenced by the main voltage variation [60–63]. Appl. Sci. 2019, 9, 152 4 of 31 Consequently, when multiple CFLs interact together through the AC system impedance, the harmonic current injection method is not always accurate. In [64], the black box CFL behaviour is obtained analysing the current waveform drawn as a function of the main voltage applied. The current has been modelled by a mathematical function given by the difference between two exponentials. Even if many results have been accurate, some particular CFLs under test have had to use some ad hoc adjustment to fit accurately with the measurements. Appl. Sci. 2019, 9, 152 4 of 32 Some researchers have worked out the behaviour of the CFL using an equivalent electrical been accurate, some particular CFLs under test have had to use some ad hoc adjustment to fit circuit [65–72]. A common and general model is depicted in Figure 1, where the key circuit components accurately with the measurements. are: a diode bridge that rectifies the main voltage, an AC equivalent resistor (Rac) and a DC smoothing Some researchers have worked out the behaviour of the CFL using an equivalent electrical circuit electrolytic capacitor (C) supplying the downstream inverter that, in turn, feeds the fluorescent tube. [65–72]. A common and general model is depicted in Figure 1, where the key circuit components are: Both the inverter and the fluorescent tube can be modelled as a unique equivalent resistance, R , a diode bridge that rectifies the main voltage, an AC equivalent resistor (Rac) and a DC smoothing since they behaviour like to a constant load for the DC busbar. In [65,66] an admittance model that electrolytic capacitor (C) supplying the downstream inverter that, in turn, feeds the fluorescent tube. Both the inverter and the fluorescent tube can be modelled as a unique equivalent resistance, RD, since depends on some internal parameters (firing and extinction angles) that, in turn, depend on the voltage they behaviour like to a constant load for the DC busbar. In [65,66] an admittance model that depends waveform being used instead of the general model. A method based on the measurements to obtain on some internal parameters (firing and extinction angles) that, in turn, depend on the voltage harmonic models of power electronic-based home appliances, among which ESLs, has been presented waveform being used instead of the general model. A method based on the measurements to obtain in [65]. In [66] a model based on harmonically coupled admittance matrix used to study harmonics in harmonic models of power electronic-based home appliances, among which ESLs, has been static converters of ESLs have been proposed. However, admittance model it is valid only in a specific presented in [65]. In [66] a model based on harmonically coupled admittance matrix used to study condition harmo of the nics supply in static voltage. converters Ino[f 67 ES ]Ls a simplified have been pversion roposed. of Ho the wev general er, admitt model ance mo isde adopted l it is valwher id e the only in a specific condition of the supply voltage. In [67] a simplified version of the general model is AC resistor has been neglected since it presents a small resistance. However, this approximation may adopted where the AC resistor has been neglected since it presents a small resistance. However, this lead to non-realizable infinite slopes of the AC current rising edge. approximation may lead to non-realizable infinite slopes of the AC current rising edge. Figure 1. Simple equivalent circuit usually adopted in literature for modelling a CFL [67–72]. Figure 1. Simple equivalent circuit usually adopted in literature for modelling a CFL [67–72]. Similarly, the CFL equivalent circuit considering the AC resistance has been proposed in [68]. Similarly, the CFL equivalent circuit considering the AC resistance has been proposed in [68]. The model considers that the behaviour of the CFL electrical circuit is similar to the one shown in The model considers that the behaviour of the CFL electrical circuit is similar to the one shown in Figure 1. The supply voltage has been modelled with the series of the fundamental and inter- Figure 1. The supply voltage has been modelled with the series of the fundamental and inter-harmonic harmonic voltage generators with their network equivalent impedance. In [69] the CFL parameter estimation has been obtained as a detailed analysis of the electrical model developed in [68], where voltage generators with their network equivalent impedance. In [69] the CFL parameter estimation the former used a non-linear least-square procedures based on actual measurements. The resolution has been obtained as a detailed analysis of the electrical model developed in [68], where the is based on the Newton method calculating the terms of the Jacobian matrix by finite difference former used a non-linear least-square procedures based on actual measurements. The resolution approach. The study of CFL impact and the related model has involved the determination of the CFL is based on the Newton method calculating the terms of the Jacobian matrix by finite difference equivalent circuit parameters Rac, C, and RD described previously. It is worth noting that in literature approach. The study of CFL impact and the related model has involved the determination of the several procedures are developed to determine the parameters from the supply voltage and AC CFL equivalent current mecir asur cuit emeparameters nts [68,69]. Other Racs,tud C,ie and s deal Rwit described h the estimati pr oeviously n of other. non It -is linea worth r loads noting using that in least-square algorithms [70–72]. In [70,71] the parameter estimation of single-phase rectifiers by literature several procedures are developed to determine the parameters from the supply voltage and analysing several non-linear sets of equations has been performed. More specifically, the former has AC current measurements [68,69]. Other studies deal with the estimation of other non-linear loads proposed the two methods to esteem the electrical components in the input rectifier that there are in using least-square algorithms [70–72]. In [70,71] the parameter estimation of single-phase rectifiers many electronic equipment available in the market. The latter has presented an estimation algorithm by analysing several non-linear sets of equations has been performed. More specifically, the former based on a rectifier model and actual measurements. A methodology for the estimation of the main has proposed parametthe ers two relatemethods d to the ha tormon esteem ic due the in electrical dustrial loads components has been in con the sider input ed in rectifier [72] where that there aggregated measurements of the total load has been performed Regarding the LED light bulb, few are in many electronic equipment available in the market. The latter has presented an estimation works investigate the electrical model for the current drawn [73]. algorithm based on a rectifier model and actual measurements. A methodology for the estimation The procedures described before offers several rules that enable to obtain the circuit model of of the main parameters related to the harmonic due industrial loads has been considered in [72] CFLs available on the market, but they require the knowledge of the ballast internal circuit components and not negligible computational resources, which make them unsuitable tool for optimal lighting system design. Moreover, the circuit model includes non-linear components. On the Appl. Sci. 2019, 9, 152 5 of 31 where aggregated measurements of the total load has been performed Regarding the LED light bulb, few works investigate the electrical model for the current drawn [73]. The procedures described before offers several rules that enable to obtain the circuit model of CFLs available on the market, but they require the knowledge of the ballast internal circuit components and not negligible computational resources, which make them unsuitable tool for optimal lighting system design. Moreover, the circuit model includes non-linear components. On the other hand, as said before, although several objective and constraints have been considered so far in the optimal lighting system design, the harmonic mitigation target has been totally neglected. Therefore, a parametric PSpice circuit overcoming these limitations has been proposed in the following. The knowledge of the ballast circuit, driver, package, and so on, is not necessary to obtain the parameters to be used in the proposed PSpice circuit. Indeed, any ESL can be treated as a black box, and the components of the circuit are simply obtained with some electrical measurements, that is, the amplitude and phase shift of the fundamental current and harmonics drawn by the ESL. An additional advantage of the proposed circuit is that it contains only linear components and the circuit simulation is very fast and it requires little computational effort. 3. Materials and Methods The measurements of the current drawn from several ESLs from different manufactures have confirmed the presence of odd harmonics while even harmonics, subharmonics, and inter-harmonics are almost negligible. Moreover, the measurements have also confirmed a low voltage total-harmonic- distortion, which is less than 4%. Therefore, in the following the key equations of non-sinusoidal periodical instantaneous electric quantities in the absence of subharmonics and inter-harmonics are discussed. After that, the test rig and the measurements are presented with the proposed parametric PSpice circuit able in emulating the current drawn by the lamps under variable voltage on the mains. 3.1. Non-Sinusoidal Periodical Electric Quantities Considering a circuit operating at steady-state conditions, the non-sinusoidal periodical instantaneous electric quantities, that is the voltage v(t) and the current i(t), can be represented by means of the Fourier series in the absence of subharmonics and inter-harmonics [74]: v(t) = V + 2 å V sin(hwt + a ) h k k2N (1) i(t) = I + 2 å I sin(hwt + b ) h k k2N Key terms are the power system fundamental frequency of the voltage, v (t), and current, i (t) [74]: 1 1 v (t) = 2V sin(wt + a ) 1 1 1 (2) i (t) = 2 I sin(wt + b ) 1 1 1 Grouping the constant term with the harmonics [74]: v (t) = V + 2 å V sin(kwt + a ) H 0 k k k2N (3) i t = I + 2 I sin kwt + b ( ) å ( ) H 0 k k k2N any non-sinusoidal periodical instantaneous electric quantity can be summarized according the IEEE TM Std-1459 [74]: v(t) = v (t) + v (t) 1 H (4) i(t) = i (t) + i (t) 1 H Without loss of generality, it can be set: Appl. Sci. 2019, 9, 152 6 of 31 a = d + k k (5) b = g + k k and also d = 0. Therefore: v (t) = 2V cos(wt) 1 1 v (t) = 2V cos(kwt + d ) k k k (6) i (t) = 2 I cos(wt + g ) 1 1 1 i (t) = 2 I cos(kwt + g ) k k k The instantaneous power related to the fundamental frequency deriving from these equations is: P (t) = v (t)i (t) = V I cos(g )[1 + cos(2wt)] V I sin(g ) 1 1 1 1 1 1 1 1 1 (7) sin(2wt) = P [1 + cos(2wt)] Q sin(2wt) 1 1 and the fundamental apparent power, S , is then obtained from the fundamental active power, P , and 1 1 the fundamental reactive power, Q , through the following equation [74]: 2 2 2 S = P + Q (8) 1 1 1 that, in turn, is part of the overall apparent power, S, that includes the harmonics contribution (that is the non-fundamental apparent power) [74]: 2 2 2 2 2 S = S + D + D + S (9) 1 I V H where the current distortion power, D , the voltage distortion power, D , and the harmonic apparent I V power, S , are obtained from the evaluation of the rms value of v (t), that is V , and i (t), that is H H H H I [74]: 2 2 2 2 2 2 2 2 2 D = V I D = I V S = V I (10) I 1 H V 1 H H H H The harmonics related to the voltage on the mains are negligible in comparison with the current harmonics, and it is also confirmed by the measurements. Consequently, the term v (t) in Equation (4) can be neglected, and then the apparent power is approximated to: 2 2 2 2 S = P + Q + D (11) 1 1 I Therefore, modelling the current harmonics enables to estimate the non-active powers Q1 and D that involve undesired power losses in the line. It is worth noting that, while the current harmonics pertain to the undesired term D , the fundamental current affect the active power as well as the useless power Q . Therefore, it is useful to consider the fundamental current divided into two components [75,76]: i t = i t + i t ( ) ( ) ( ) 1 P1 Q1 p p i (t) = 2 I cos(wt) = 2 I cos(g ) cos(wt) (12) P1 P1 1 1 p p p p i t = 2 I cos wt + = 2 I sin g cos wt + ( ) ( ) Q1 Q1 1 1 2 2 It is easy to prove that: v t i t = V I cos g 1 + cos 2wt = P 1 + cos 2wt ( ) ( ) ( )[ ( )] [ ( )] 1 P1 1 1 1 1 (13) v (t)i (t) = V I sin(g )[ sin(2wt)] = Q sin(2wt) 1 Q1 1 1 1 1 Therefore, the term i (t) affects only the active power, then in the following it is called “active P1 current”. The term i (t), affects only the reactive power, then in the following it is called “reactive Q1 current”. Finally, as expected, in all performed tests for all the lamps, the phase shift of the fundamental p p frequency current drawn was always: < g < (with respect to the voltage on the mains), 2 2 which implies a positive value of cos(g ) in Equation (12). 1 Appl. Sci. 2019, 9, 152 7 of 31 3.2. Test Rig The measurements of the amplitude and phase shift of the fundamental and harmonic currents have to be performed in order to obtain the components of the proposed PSpice circuit. For a given Appl. Sci. 2019, 9, 152 7 of 32 ESL, these measurements have to be performed by setting five voltage levels at the lamp terminals: 3.2. Test Rig 0.9 V , 0.95 V , V , 1.05 V , and 1.1 V . For each current harmonic, a polynomial function nom nom nom nom nom The measurements of the amplitude and phase shift of the fundamental and harmonic currents has to be obtained by measurements interpolation. Similarly, polynomial functions have to be obtained have to be performed in order to obtain the components of the proposed PSpice circuit. For a given for, respectively, the active and reactive current. The coefficients of these polynomial functions have to ESL, these measurements have to be performed by setting five voltage levels at the lamp terminals: be used to select the components of the PSpice circuit according the rules that are described in the next 0.9 Vnom, 0.95 Vnom, Vnom, 1.05 Vnom, and 1.1 Vnom. For each current harmonic, a polynomial function has section. Moreover, the quantities related to these components are also related to these coefficients as to be obtained by measurements interpolation. Similarly, polynomial functions have to be obtained described in the following. With this in mind, this section describes the test rig used to set the desired for, respectively, the active and reactive current. The coefficients of these polynomial functions have voltage levels across the lamp terminals and to perform the aforesaid measurements. to be used to select the components of the PSpice circuit according the rules that are described in the Figur nextes sec 2 tion and. 3M depict oreover the , the measur quant ements ities rela ofte the d to fundamental these compcurr onenent ts a and re als the o odd related curr to ent thharmonic ese coefficients as described in the following. With this in mind, this section describes the test rig used to amplitudes up to the 13th for both a CFL and a LED light bulb. The measurements highlighted that a set the desired voltage levels across the lamp terminals and to perform the aforesaid measurements. linear interpolation of the current harmonics turns out to be enough accurate: Figures 2 and 3 depict the measurements of the fundamental current and the odd current def harmonic amplitudes up to the 13th for both a CFL and a LED light bulb. The measurements I = I V = a + b V ( ) P1 P1 1 P1 P1 1 highlighted that a linear interpolation of the current harmonics turns out to be enough accurate: def I = I (V ) = a + b V Q1 Q1 1 Q1 Q1 1 (14) ( ) def ≝ = + I = I (V ) = a + b V k k 1 k k 1 ≝ ( ) = + k = 2, 3, . . . K (14) ≝ ( ) = + with K the number of harmonics considered for emulating the waveform of the current drawn from = 2, 3, … the lamp. with K the number of harmonics considered for emulating the waveform of the current drawn from the lamp. Remark 1. I is always positive regardless its trend in Equation (14) because it is obtained by multiplying P1 I with cos(g ), where the former is positive by definition while the latter has been previously proved to be 1 1 Remark 1. is always positive regardless its trend in Equation (14) because it is obtained by multiplying p p positive since < g < . Similar considerations are valid for I as well as for the terms in the related 1 k I1 with ( 2), where the 2former is positive by definition while the latter has been previously proved to be interpolation functions. On the other hand, although I is positive by definition, I may be positive or negative, 1 Q1 positive − < < . Similar considerations are valid for as well as for the terms in the related it depends on g . interpolation functions. On the other hand, although I1 is positive by definition, may be positive or negative, it depends on . Remark 2. Considering the previous remark and that V is positive by definition, at least one between a 1 P1 Remark 2. Considering the previous remark and that V1 is positive by definition, at least one between and and b in the interpolation function have to be positive. Similar considerations are always valid for a and P1 k in the interpolation function have to be positive. Similar considerations are always valid for and , b , while for a and b are valid only when I is positive. On the other hand, when I is negative, a dual Q1 Q1 Q1 Q1 while for and are valid only when is positive. On the other hand, when is negative, a dual behaviour occurs, that is at least one between a and b in the interpolation function have to be negative. Q1 Q1 behaviour occurs, that is at least one between and in the interpolation function have to be negative. Figure 2. Measured amplitude of the fundamental current and greatest harmonics for a CFL. The Figure 2. Measured amplitude of the fundamental current and greatest harmonics for a CFL. The linear linear interpolation functions are reported on the right with the related current symbol. interpolation functions are reported on the right with the related current symbol. Appl. Sci. 2019, 9, 152 8 of 31 Appl. Sci. 2019, 9, 152 8 of 32 Appl. Sci. 2019, 9, 152 8 of 32 Figure 3. Measured amplitude of the fundamental current and greatest harmonics for a LED. The Figure 3. Measured amplitude of the fundamental current and greatest harmonics for a LED. The linear linear interpolation functions are reported on the right with the related current symbol. interpolation functions are reported on the right with the related current symbol. Figure 3. Measured amplitude of the fundamental current and greatest harmonics for a LED. The In the test rig (Figure 4), a transformer with continuous variable transform ratio (variac) is linear interpolation functions are reported on the right with the related current symbol. connected to the mains voltage with the aim of emulating the variable voltage on the mains. In other In the test rig (Figure 4), a transformer with continuous variable transform ratio (variac) is connected words, each time a measurement has to be performed at a given voltage level, the variac is properly In the test rig (Figure 4), a transformer with continuous variable transform ratio (variac) is to the mains voltage with the aim of emulating the variable voltage on the mains. In other words, each time tuned to emulate such a voltage level across the lamp terminals. The variac feeds the ESL through a connected to the mains voltage with the aim of emulating the variable voltage on the mains. In other a measurement has to be performed at a given voltage level, the variac is properly tuned to emulate power analyser used to measure the voltage across the lamp terminals as well as to measure the words, each time a measurement has to be performed at a given voltage level, the variac is properly such a voltage level across the lamp terminals. The variac feeds the ESL through a power analyser fundamental and harmonic currents (in terms of amplitude and phase shift) drawn. Moreover, to tuned to emulate such a voltage level across the lamp terminals. The variac feeds the ESL through a used to measure the voltage across the lamp terminals as well as to measure the fundamental and simultaneously observe the current harmonics amplitude and the waveforms of the voltage and power analyser used to measure the voltage across the lamp terminals as well as to measure the harmonic curre curr nt at ents ESL (in termin terms alsof , an amplitude oscilloscopand e is als phase o useshift) d. More drawn. specifically Moreover , the curre , to simultaneously nt drawn from thobserve e fundamental and harmonic currents (in terms of amplitude and phase shift) drawn. Moreover, to ESL has been displayed through the oscilloscope. The power analyser has a 1 A shunt probe that the current harmonics amplitude and the waveforms of the voltage and current at ESL terminals, simultaneously observe the current harmonics amplitude and the waveforms of the voltage and offers a high resolution and accuracy for testing currents as low as 80 μA. This enables the meter to an oscilloscope is also used. More specifically, the current drawn from the ESL has been displayed current at ESL terminals, an oscilloscope is also used. More specifically, the current drawn from the measure standby power as low as 20 mW at 240 V. The maximum voltage peak can reach 2kV, with through the oscilloscope. The power analyser has a 1 A shunt probe that offers a high resolution and ESL has been displayed through the oscilloscope. The power analyser has a 1 A shunt probe that an accuracy of 20 mV. The power analyser has a bandwidth of 1 MHz. accuracy for testing currents as low as 80 A. This enables the meter to measure standby power as low offers a high resolution and accuracy for testing currents as low as 80 μA. This enables the meter to as 20 mW at 240 V. The maximum voltage peak can reach 2kV, with an accuracy of 20 mV. The power measure standby power as low as 20 mW at 240 V. The maximum voltage peak can reach 2kV, with analyser has a bandwidth of 1 MHz. an accuracy of 20 mV. The power analyser has a bandwidth of 1 MHz. Figure 4. Experimental setup. A variac, connected to the mains, feeds the ESL through a power analyser that acquires the measurements. The oscilloscope displays the waveforms. The measurements have been performed in the range of ±10% of the rated voltage due to the voltage variations that is allowed for the utility [77]. Throughout the day, the rated voltage could Figure 4. Experimental setup. A variac, connected to the mains, feeds the ESL through a power Figure 4. Experimental setup. A variac, connected to the mains, feeds the ESL through a power suffer of some variations due to the distributed renewable generators into the network, the load analyser that acquires the measurements. The oscilloscope displays the waveforms. analyser variations, that the acquir netwo esrthe k co measur nfigurat ements. ions and The so on oscilloscope , without th displays e possibthe ilitywaveforms. for the users to do anything about it [78]. The measurements have been performed in the range of ±10% of the rated voltage due to the The measurements have been performed in the range of 10% of the rated voltage due to the voltage variations that is allowed for the utility [77]. Throughout the day, the rated voltage could voltage variations that is allowed for the utility [77]. Throughout the day, the rated voltage could suffer suffer of some variations due to the distributed renewable generators into the network, the load of some variations due to the distributed renewable generators into the network, the load variations, variations, the network configurations and so on, without the possibility for the users to do anything the network configurations and so on, without the possibility for the users to do anything about it [78]. about it [78]. Appl. Sci. 2019, 9, 152 9 of 31 Figure 5 shows the amplitude of the current harmonics normalized with respect to the fundamental one, in case of a CFL with 212V (rms) at its terminals. The normalized harmonic amplitudes, in blue, are sorted in ascending order and the abscissa reports the related harmonic. The figure also reports, in red, the THD error in percentage when some current harmonics are neglected, assuming as THD reference, THD , the one computed considering the harmonics until the 50th. I,TOT More specifically, for a given harmonic, n, the THD error, Error , is obtained when a set of m I,n harmonics are neglected. Harmonic n and those on its left in the figure belong to this set. The current THD reference is [74]: def å k=2 T H D = (15) I, TOT while the THD referred to a given current harmonic n, THD , is computed subtracting the aforesaid I,n m current harmonic amplitudes: t p=m+1 T H D = (16) I, n with I an array where the amplitudes of the current harmonics have been ascending sorted and p indicates the position in the sequence. Consequentially the percentage error referred to the THD is I,n equal to: T H D T H D I, TOT I, n Error (%) = 100 (17) I,n T H D I, TOT In the THD error diagram, the first red point on the left has been calculated by removing from the total current the harmonic that has the smallest amplitude (that is the 50th), the second point is calculated neglecting the two smallest current amplitude (that is the 50th and 48th) and so on, until it is removed the 3rd current harmonic. As can be seen from the Figure 5, for the CFL under test when the supplying voltage is 212 V, the THD percentage error is less to 1% by removing the smallest m = 38 (that is n = 23) current harmonics amplitudes (that is, considering only the 3rd, 5th, 7th, 9th, 11th, 13th, 15th, 17th, 19th, 21th, and 27th harmonics). On the other hand, by removing m = 46 harmonics, n = 9 (considering only the th 3rd, 5 , and 7th), the percentage error is less than 10%. Figure 6 shows the same quantities when the voltage is 237 V. Appl. Sci. 2019, 9, 152 10 of 32 Figure 5. Normalized current harmonics and THD error, when the CFL is feed with 212 V. Figure 5. Normalized current harmonics and THD error, when the CFL is feed with 212 V. Figure 6. Normalized current harmonics and THD error, when the CFL is feed with 237 V. Appl. Sci. 2019, 9, 152 10 of 32 Appl. Sci. 2019, 9, 152 10 of 31 Figure 5. Normalized current harmonics and THD error, when the CFL is feed with 212 V. Figure 6. Normalized current harmonics and THD error, when the CFL is feed with 237 V. Figure 6. Normalized current harmonics and THD error, when the CFL is feed with 237 V. A similar reasoning is valid for a LED lamp under test. Figure 7 depicts the normalized current harmonics and the THD percentage error. It is less to 1% by removing the smallest m = 41 (that is n = 15) current harmonics (that is, considering only the 3rd, 5th, 7th, 9th, 11th, 13th, 17th, and 19th th harmonics). On the other hand, by removing m = 46 harmonics, n = 9 (considering only the 3rd, 5 , and 7th), the percentage error is less than 10%. Figure 8 reports the quantities for the LED when the voltage is 237 V. Appl. Sci. 2019, 9, 152 11 of 32 Figure 7. Normalized current harmonics and THD error, when the LED light bulb is feed with 212 V. Figure 7. Normalized current harmonics and THD error, when the LED light bulb is feed with 212 V. Figure 8. Normalized current harmonics and THD error, when the LED light bulb is feed with 237 V. 3.3. PSpice Model for Emulating the Current Drawn from an ESL The proposed circuit model accounts for the change of the current drawn from a lamp when the rms voltage, V1, on the mains varies within the range allowed by the regulation (±10% of Vnom). More specifically, the model emulates the variation of the value of the rms, I1, and the change in the phase shift, , of the fundamental frequency current, i1(t). The model also emulates the variation of the rms of any other current harmonic, Ik, while it neglects any variation of the phase offset, (that is the phase offset at nominal voltage is considered). A graphical representation of the proposed circuit that accounts for the previous interpolation functions is reported in Figure 9. Appl. Sci. 2019, 9, 152 11 of 32 Appl. Sci. 2019, 9, 152 11 of 31 Figure 7. Normalized current harmonics and THD error, when the LED light bulb is feed with 212 V. Figure 8. Normalized current harmonics and THD error, when the LED light bulb is feed with 237 V. Figure 8. Normalized current harmonics and THD error, when the LED light bulb is feed with 237 V. 3.3.3. PSpice 3. PSpice Model Mode for l for Emulating Emulating the theCurr Curr ent entDrawn Drawn fr fro om m an an ES ESL L The Th pr e oposed proposed cir circuit cuit model model accounts accounts fo for r th the e ch change ange of of the the curr curr ent ent draw drawn n from fr a om lamp a lamp when th when e rms voltage, V1, on the mains varies within the range allowed by the regulation (±10% of Vnom). More the rms voltage, V , on the mains varies within the range allowed by the regulation (10% of V ). nom specifically, the model emulates the variation of the value of the rms, I1, and the change in the phase More specifically, the model emulates the variation of the value of the rms, I , and the change in the shift, , of the fundamental frequency current, i1(t). The model also emulates the variation of the rms phase shift, g , of the fundamental frequency current, i (t). The model also emulates the variation of 1 1 of any other current harmonic, Ik, while it neglects any variation of the phase offset, (that is the the rms of any other current harmonic, I , while it neglects any variation of the phase offset, g (that is k k phase offset at nominal voltage is considered). A graphical representation of the proposed circuit that the phase offset at nominal voltage is considered). A graphical representation of the proposed circuit accounts for the previous interpolation functions is reported in Figure 9. that accounts for the previous interpolation functions is reported in Figure 9. Appl. Sci. 2019, 9, 152 12 of 32 Figure 9. Proposed linear equivalent circuit of a generic ESL. Figure 9. Proposed linear equivalent circuit of a generic ESL. The components in the subcircuits called “Active”, “Reactive”, and “kth harmonic” emulate the The components in the subcircuits called “Active”, “Reactive”, and “kth harmonic” emulate the behaviour of, respectively, I , I , and I in Equation (14). According the circuit model in the figure behaviour of, respectively,P 1 , Q 1 , and in Equation (14). According the circuit model in the figure and the equations in (14), the following equations are valid: and the equations in (14), the following equations are valid: inter pol ation circuit z }| ( ) { ( ) ( ) ( ) z[ }| {] ( ) + = = √2 cos = √2 + cos p p i (t) + i (t) = i (t) = 2 I cos(wt) = 2[a + b V ] cos(wt) aP1 bP1 P1 P1 P1 P1 1 p p (18) p p ( ) + ( ) = ( ) = 2 cos + = 2 + cos + √ √ i (t) + i (t) = i (t) = 2 I cos wt + = 2 a + b V cos wt + aQ1 bQ1 Q1 Q1 Q1 Q1 1 (18) 2 2 2 2 p p i (t) + i (t) = i (t) = 2I cos(kwt + g ) = 2[a + b V ] cos(kwt + g )k = 2, 3, . . . K ak bk k k k k k 1 k ( ) ( ) ( ) ( ) [ ] ( ) + = = √2 cos + = √2 + cos + = 2, 3, … Then ( ) accounts for the constant term , ( ) accounts for the linear term and so on: ( ) = √2 cos( ) ( ) = √2 cos( ) ( ) = √2 cos + (19) ( ) = √2 cos + ( ) = √2 cos( + ) ( ) = 2 cos( + ) In the previous equations, the currents ( ), ( ) and ( ) are independent from V1 since they arise from the constant terms in (14). Therefore, their waveforms are emulated by means of independent current generators in the equivalent circuit (Figure 9). It is useful to recall that, when a constant term is negative (for example < 0) the related generator ( ( ) in such an example) is in antiphase with the overall current it belongs to ( ( ) in such an example). Consequently, according to Remark 2, the other term ( in such an example) is definitively positive because the related current ( ( ) in such an example) has to be in phase with the overall current. Moreover, the amplitude of the “in-phase” current ( ( )) is greater than the ( ) amplitude of the “antiphase” current ( ) according to Remark 1. The voltage independent generator, vFk, with an element in series are responsible for emulating the current ( ). The voltage independent generator has an angular frequency k times greater than the mains voltage and the same amplitude: ( ) = 2 cos + + ( ) √ (20) where is the phase offset of the kth harmonic current according to Equation (6); d can assume only two values +1 or −1, it depends on the component selected by the switches. Appl. Sci. 2019, 9, 152 12 of 31 Then i t accounts for the constant term a , i t accounts for the linear term b and so on: ( ) ( ) aP1 P1 P1 bP1 i (t) = 2a cos(wt) aP1 P1 i (t) = 2b V cos(wt) bP1 P1 1 i (t) = 2a cos wt + aQ1 Q1 (19) i t = 2b V cos wt + ( ) bQ1 Q1 1 i (t) = 2a cos(kwt + g ) ak k k i t = 2b V cos kwt + g ( ) ( ) bk k k In the previous equations, the currents i t , i t and i t are independent from V since ( ) ( ) ( ) aP1 aQ1 ak 1 they arise from the constant terms in (14). Therefore, their waveforms are emulated by means of independent current generators in the equivalent circuit (Figure 9). It is useful to recall that, when a constant term is negative (for example a < 0) the related generator (i t in such an example) is in antiphase with the overall current it belongs to (i t in ( ) ( ) ak k such an example). Consequently, according to Remark 2, the other term (b in such an example) is definitively positive because the related current (i t in such an example) has to be in phase with the ( ) bk overall current. Moreover, the amplitude of the “in-phase” current (i (t)) is greater than the amplitude bk of the “antiphase” current (i t ) according to Remark 1. ( ) ak The voltage independent generator, v , with an element in series are responsible for emulating Fk the current i (t). The voltage independent generator has an angular frequency k times greater than bk the mains voltage and the same amplitude: v (t) = 2V cos kwt + g + sign(b )d (20) Fk 1 k k where g is the phase offset of the kth harmonic current according to Equation (6); d can assume only two values +1 or 1, it depends on the component selected by the switches. When the circuit component adopted is an inductor then d = 1, otherwise, when it is chosen a capacitor d = 1. It is worth noting that this voltage generator does not emulate the kth voltage harmonic on the mains but it is a fictitious generator belonging to the lamp model. By using superposition theorem, it can be noted that such a fictitious voltage independent generator supplies only the aforesaid component, e.g., the inductor when d = 1 (see Figure 10). Therefore, at steady-state, when an inductor L is adopted the steady-state current trough it due to v is: Fk 2V p p i t = cos kwt + g + sign b (21) ( ) ( ) Lk k k kw L 2 2 When b is positive, the phase of i (t) is kwt + g and the previous equation becomes: k bk k 2V i (t) = cos(kwt + g ) (22) Lk k kw L that is i (t) presents the same phase of i (t). These currents can present also the same amplitude by Lk bk properly choosing L : 1 yields L = ! i (t) = i (t) when b > 0 (23) k Lk bk k kwb When b is negative, the phase of i t is kwt + g p since this current is in antiphase with i t , ( ) ( ) k bk k k moreover Equation (21) becomes: 2V i (t) = cos(kwt + g p) (24) Lk k kw L k Appl. Sci. 2019, 9, 152 13 of 32 When the circuit component adopted is an inductor then d = 1, otherwise, when it is chosen a capacitor d = −1. It is worth noting that this voltage generator does not emulate the kth voltage harmonic on the mains but it is a fictitious generator belonging to the lamp model. By using superposition theorem, it can be noted that such a fictitious voltage independent generator supplies only the aforesaid component, e.g., the inductor when d = 1 (see Figure 10). Therefore, at steady-state, when an inductor Lk is adopted the steady-state current trough it due to vFk is: √2 (21) ( ) = cos + + ( ) − 2 2 ( ) When is positive, the phase of is + and the previous equation becomes: √2 ( ) ( ) (22) = cos + that is ( ) presents the same phase of ( ). These currents can present also the same amplitude by properly choosing Lk: = ⎯⎯