<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">EPE</journal-id><journal-title-group><journal-title>Energy and Power Engineering</journal-title></journal-title-group><issn pub-type="epub">1949-243X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/epe.2022.149024</article-id><article-id pub-id-type="publisher-id">EPE-120083</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Microcontroller Control of Reactive Power Compensation for Growing Industrial Loads
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Edwin</surname><given-names>N. Mbinkar</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Derek</surname><given-names>Ajesam Asoh</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Sulayman</surname><given-names>Kujabi</given-names></name><xref ref-type="aff" rid="aff3"><sup>3</sup></xref></contrib></contrib-group><aff id="aff3"><addr-line>Gambian Technical Training Institute, Banjul, The Gambia</addr-line></aff><aff id="aff1"><addr-line>Laboratoire de Génie Electrique, Mécatronique et Traitement du Signal, ENSPY, Université de Yaoundé I, Yaounde, Cameroun</addr-line></aff><aff id="aff2"><addr-line>Department of Electrical and Electronic Engineering, National Higher Polytechnic Institute (NAHPI), University of Bamenda, Bamenda, Cameroon</addr-line></aff><pub-date pub-type="epub"><day>02</day><month>09</month><year>2022</year></pub-date><volume>14</volume><issue>09</issue><fpage>460</fpage><lpage>476</lpage><history><date date-type="received"><day>19,</day>	<month>July</month>	<year>2022</year></date><date date-type="rev-recd"><day>24,</day>	<month>September</month>	<year>2022</year>	</date><date date-type="accepted"><day>27,</day>	<month>September</month>	<year>2022</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Many industrial installations in developing countries start-up as small factories, without regard for the need of compensation of reactive power, leading to significant financial losses in the long term. By improving the power factor, the customer can reduce its power demand and potentially increase efficiency of their equipment. A PIC microcontroller is used to switch capacitor banks to compensate for the reactive power. In order to determine the size of the capacitor bank needed, the microcontroller calculates the phase difference between the voltage and the current. The results obtained based on the lagging power factor for three test loads show an improvement in the power factor from 0.52 to 0.96 under different test load conditions.
 
</p></abstract><kwd-group><kwd>Power Factor Compensation</kwd><kwd> Capacitor Bank</kwd><kwd> PIC Microcontroller</kwd><kwd> Reactive Power</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The conventional methods used to switch-in capacitors to compensate for reactive power can generate large transients that are detrimental to other sensitive electrical loads in the network. Coupled with the inability of these conventional systems to accurately determine and respond to load changes, make the conventional approaches inadequate for applications involving reactive power fluctuations. As small industries continue to increase on their number of inductive motor drives in their quest to increase productivity, reactive power management becomes increasingly more important, due to economic concerns. Electricity utility companies are increasingly establishing pricing policies such that customers with poor power factors will have to pay for their reactive power as well as their active power consumption. The price of electricity relating to transmission charges has to cover apparent power (in kVA) as well as transmission losses and not just kW. The disadvantages of operating the factory at lagging power factors are readily apparent. These include penalties paid to the electricity supplier, increase in the power that must be supplied by the generators, heat losses in the conductor leading to voltage drops oversizing of conductors and cables, and the tripping of circuit breakers.</p><p>The transportation of reactive power through power lines causes significant losses, decrease in the stability of the network and voltage drops at the consumption points. In order to avoid this, reactive power compensation, reactive power compensation devices can be installed closer to the loads. A previous study [<xref ref-type="bibr" rid="scirp.120083-ref1">1</xref>] presented an implementation of a solution for power factor correction in the distribution networks of consumers using modern technology based on real time data acquisition, signal processing and numerical controls using high-level languages and microcontrollers. This, and other studies fail to clarify how the required capacitor banks used in the compensation are determined and switched accordingly.</p><p>In this paper, a microcontroller based controller continuously takes measurements of the phase voltages and line or load currents, and updates a capacitor switching sequence at each period of the waveform as required [<xref ref-type="bibr" rid="scirp.120083-ref2">2</xref>]. By measuring the peak amplitude of the inductive component of the current, the controller determines the capacitive compensation that must be connected to each phase in order to maintain the desired power factor. The controller filters out any harmonics present in the voltage or current reference waveforms so that the compensation is set to only the fundamental or 50 Hz components. An adequate level of reactive power is then supplied to the system during the next period, resulting in a maximum response time of one period for a 50 Hz system. Reactive power compensation is performed on the basis of phase-to-neutral values, making control and operation independent of angular offset and ideally suited to meet the dynamic requirements of unbalanced systems. Furthermore, the load currents flow at the compensator node only when load currents are detected. In this way, overvoltage or self-excitation is avoided [<xref ref-type="bibr" rid="scirp.120083-ref3">3</xref>].</p></sec><sec id="s2"><title>2. AC Power Flow</title><p>The frequency of the alternations between a positive maximum value V<sub>M</sub> and a negative minimum value –V<sub>M</sub> of AC signal is denoted f. The amplitude (maximum or peak value) of the voltage is denoted V<sub>M</sub> (in volts), but the quantity generally specified is the effective value denoted simply by V (or V<sub>eff</sub> or V<sub>rms</sub>). For a sinusoidal waveform, the relationship between the amplitude (maximum value) V<sub>M</sub> and the rms value V is: V M = 2 ∗ V , which means that the amplitude of the voltage corresponding to 230 V is 325 V. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows the waveform of a nominal 230 V, 50 Hz domestic network voltage. The period T = 20 ms.</p><p>A very important notion in AC power flow is the phase shift, ϕ between the voltage and the current waveforms, called the power factor. Depending on the type of electrical device (resistive, inductive, capacitive), the phase shifts are different. For a purely resistive AC. circuit, the average power dissipated, P, is given by:</p><p>P = I V = I 2 R   watts (1)</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> shows the voltage (v), current (i) and power (p) waveforms for a purely resistive load. The current sinusoid is in phase with that of voltage; while <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the inductive or capacitive loads, the current sinusoid is out of phase (with a phase shift angle) behind or ahead of the voltage.</p><sec id="s2_1"><title>2.1. Apparent Power</title><p>Apparent power, S, is an important quantity since AC systems, such as generators, motors, transformers and cables. The allowable output of such systems is usually limited not by mechanical stress but by temperature rise, and hence by the power losses. The losses are determined by the voltage and current and are</p><p>very closely associated with the power factor. Thus, the amount of electrical power required to supply a certain load on an industrial site is essentially determined by the volt-ampere ratings of the load rather than by the power (in watts) alone. The rating of a machine is defined as the maximum apparent power that it is designed to carry continuously without overheating.</p><p>S = P &#177; j Q (2)</p><p>where, P is the true power in watts and Q is the reactive power in volt-ampere-reactive (VAR). The absolute value of S can be determined by:</p><p>S = P 2 + Q 2 (3)</p></sec><sec id="s2_2"><title>2.2. Reactive Power</title><p>The reactive power, Q contributes nothing to the net energy transfer and yet it causes just as much loading of the equipment as if it did so. Reactive power is a term much used in power generation, distribution and utilization of electrical energy. Inductive reactive power, by convention, is defined as positive reactive power; capacitive reactive power, by convention, is defined as negative reactive power. <xref ref-type="fig" rid="fig4">Figure 4</xref> shows the power vector diagram, defining the angle ϕ, the real power(P) and the reactive power(Q).</p><p>Q = V I sin ϕ (4)</p><p>And,</p><p>P = V I cos ϕ (5)</p></sec><sec id="s2_3"><title>2.3. Power Factor</title><p>The power factor (PF) is defined as the ratio of the real power flowing to the load, to the apparent power. Real power is the capacity to do work in a particular time. Apparent power is the product of the current and voltage of the circuit. Due to energy stored in the load and returned to the source, or due to a non-linear load that distorts the wave shape of the current drawn from the source, the apparent power will be greater than the real power [<xref ref-type="bibr" rid="scirp.120083-ref4">4</xref>]. From the power vector diagram shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>, the power factor can be defined as:</p><p>PF = realpower ( P ) reactivepower ( S ) (6)</p><p>Equation (6) takes the form of Equation (7) [<xref ref-type="bibr" rid="scirp.120083-ref4">4</xref>].</p><p>PF = cos ϕ (7)</p></sec></sec><sec id="s3"><title>3. Power Factor Correction</title><p>Power factor correction (PFC) is a technique of counteracting the undesirable effects of electric loads that create a power factor (PF) that is less than 1. Power factor correction may be applied either by an electrical power transmission utility to improve the stability and efficiency of the transmission network or, correction may be installed by individual electrical customers to reduce the costs charged to them by their electricity supplier. In either case, capacitive Power Factor correction is applied to circuits which include induction motors as a source of reactive power, thereby reducing the inductive component of the current and consequently reducing the losses in the supply. When capacitors are connected at each starter and controlled by that starter, the configuration is known as Static Power Factor Correction.</p><p>In distribution systems, the voltage is normally controlled only at the entry point (substation), and then it sags down the distribution lines, mainly because of consumption of reactive power by consumers and the impedance of the distribution lines. A number of technologies are employed in the modern power systems to compensate for the flux of reactive power and thus to improve the power factor. These technologies compensate for the drop of voltage using controlled injections of reactive power at a few locations. Some of these existing technologies are briefly described below.</p><sec id="s3_1"><title>3.1. Synchronous Generators</title><p>Large synchronous generators typically control their output voltage within the prescribed bounds by manipulating (usually injecting) reactive power. Control is realized via an excitation system that consists of exciter, controller and voltage measurement components [<xref ref-type="bibr" rid="scirp.120083-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.120083-ref6">6</xref>], and this system provides an efficient means to stabilize the high-voltage part of the power grid. However, the application of this system is limited geographically to the entry point to the power distribution system. Reactive power supplied by these generators has thus limited effect on the voltage and reactive power control in the distribution system. For these reasons additional compensating technologies are required to ensure the power quality in the remote parts of the distribution networks.</p></sec><sec id="s3_2"><title>3.2. Synchronous Condensers</title><p>When a synchronous motor operates at under excited and at over excited conditions, it is called a synchronous condenser. It can generate and absorb reactive power. When synchronous motor is over excited it draws leading current and works like a capacitor. When synchronous condenser provides leading current, it eliminates reactive component of power and improves power factor [<xref ref-type="bibr" rid="scirp.120083-ref7">7</xref>]. In this case the 3 phase load is connected through the line and synchronous motor is connected in parallel with line which acts as compensator in overloading and under loading condition [<xref ref-type="bibr" rid="scirp.120083-ref8">8</xref>] as shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>. However, there are considerable losses in the motor, maintenance cost is high and it produces noise.</p></sec><sec id="s3_3"><title>3.3. Static Compensation</title><p>When the power factor is low due to inductive lagging current, static capacitors are connected in parallel with the devices, such capacitors provide leading current which neutralizes lagging currents and improves power factor. For three phase loads, capacitors are connected in star or delta. Static capacitor is invariably used in power factor improvement in industries [<xref ref-type="bibr" rid="scirp.120083-ref8">8</xref>]. <xref ref-type="fig" rid="fig6">Figure 6</xref>: shows the</p><p>static compensation technique in which a 3 phase load is connected with a 3 phase line. Static capacitors are connected in parallel to provide leading currents which neutralizes lagging currents and improves power factor.</p><p>The limitation in this case is that they have short service life ranging from 8 to 10 years, they are easily damaged if the voltages exceed the rated value, and once the capacitor is damaged, the repair is uneconomical [<xref ref-type="bibr" rid="scirp.120083-ref8">8</xref>].</p><p>There are no general rules applicable to every type of installation and, in theory, capacitors can be installed at any point, but it is necessary to evaluate the relevant practical and economic feasibility. Distributed power factor compensation is achieved by connecting a properly sized capacitor bank directly to the terminals of the load which requires reactive power. The installation is simple and inexpensive; capacitor and load can use the same protective devices against overcurrent and are connected and disconnected simultaneously [<xref ref-type="bibr" rid="scirp.120083-ref8">8</xref>]. <xref ref-type="fig" rid="fig7">Figure 7</xref> shows the type of power factor compensation that is advisable in the case of large electrical equipment with constant load and long connection times and it is generally used for motors and fluorescent lamps.</p><p>Group power factor compensation is used locally in improving the power factor of groups of loads having similar functioning characteristics, as in <xref ref-type="fig" rid="fig7">Figure 7</xref>. This is done by installing a dedicated capacitor bank. This method offers a compromise between the inexpensive solution and the proper management of the installation since the benefits derived from reactive power compensation are felt only by the line upstream the point where the capacitor bank is located.</p></sec></sec><sec id="s4"><title>4. Design of Microcontroller System for Reactive Power Compensation</title><p>The system shown in <xref ref-type="fig" rid="fig8">Figure 8</xref> was designed to control the reactive power supply to the electrical power system by automatically connecting a capacitor bank to improve the power factor of the system. The principal element in the circuit is PIC Microcontroller (16F877A) that operates with 20 MHz crystal in this scheme. The signals of voltage and current are input from the main AC line using voltage and current transformers. These signals are then passed to the zero</p><p>crossing detectors which converts it to a square wave signal. These pulses are fed to the two interrupt pins (RB0 and RB4) of the microcontroller. The microcontroller has an internal timer which calculates the time difference and converts it into phase angle and then using the cosine of the angle to obtain the power factor which is displayed on the LCD. If the power factor is low, the microcontroller activates a relay using its relay drivers by connecting the capacitor bank to the circuit which improves the power factor.</p><p>The block diagram of <xref ref-type="fig" rid="fig8">Figure 8</xref> consists of DC power supply unit, zero crossing detector for current and voltage (PT &amp; CT), microcontroller unit (PIC16F877A), LCD display, relays, capacitors and load circuits. The required DC power supply for the microcontroller and other peripherals is supplied by the DC power supply.</p><sec id="s4_1"><title>4.1. Zero Crossing Detector</title><p>In <xref ref-type="fig" rid="fig8">Figure 8</xref>, two LM358 Op-Amp are used as zero crossing detectors. One is used as zero crossing detector for current (CT) and the other for zero crossing detector for voltage (PT). When an AC signal is applied to LM358, its output is high, that is “1”, when the sinusoid signal is positive and in case of negative value of sinusoid waveform the output is low, that is “0”. Finally, the zero crossing detector circuits shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>, convert both the voltage and current sinusoid waveforms into square signal or pulse width modulation (PWM).</p></sec><sec id="s4_2"><title>4.2. Controller</title><p>The output from the zero crossing detectors is fed to the pins of PIC of microcontroller separately. The PIC uses its internal timers to measure the time duration</p><p>of signals in which their value is high or “1”. The timer is a register which counts from 0 to 255 and then start from 0 again. Timers are available in all PIC microcontrollers and when the timer overflows it generates interrupt. The timer can use internal clock or external clock to calculate the time, but this depends upon programmer.</p><p>The time difference between two waves can be easily measured using external interrupts. Whenever an interrupt signal is received on an input pin of the microcontroller, the timer starts counting and as soon as another external interrupt is received, the timer stops counting. One interrupt is generated with the help of the current signal and other interrupt with the help of the voltage signal. The timer value is stored for further use. This variable value is basically a time difference between two waves. For good results 20 to 30 values are used and their average is calculated [<xref ref-type="bibr" rid="scirp.120083-ref9">9</xref>].</p><sec id="s4_2_1"><title>4.2.1. Calculation of Power Factor</title><p>Microcontroller then uses its abilities and program to calculate the phase angle and phase difference between two waveforms. When voltage crosses the zero we start the timer and stop the timer when current crosses the zero. In between both zero crossing we find out the value of count. This count gives the time gap. <xref ref-type="fig" rid="fig1">Figure 1</xref>0 shows the time gap between current and voltage waveform. ΔT can be calculated with the help of count 1 (here count is chosen as 1 for the time gap) and count for 1 second as:</p><p>Δ T = count1 countfor1   s (8)</p><p>For example, using <xref ref-type="table" rid="table1">Table 1</xref> at a pre-scale of 1:16 count 1 is 2 and count for 1 second is 800 so the time gap will be ΔT = 2/800 which is 2.5 ms.</p><p>In <xref ref-type="table" rid="table1">Table 1</xref>, the value of count and the value of count 1 then take the ratio of count 1 to count. This gives the ratio between the time gap and the period. The</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Comparing count with pre-scale [<xref ref-type="bibr" rid="scirp.120083-ref9">9</xref>]</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Pre-scale Value</th><th align="center" valign="middle" >Count</th><th align="center" valign="middle" >Count for 1 second</th><th align="center" valign="middle" >Frequency</th></tr></thead><tr><td align="center" valign="middle" >1:2</td><td align="center" valign="middle" >128</td><td align="center" valign="middle" >6400</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:4</td><td align="center" valign="middle" >64</td><td align="center" valign="middle" >3200</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:8</td><td align="center" valign="middle" >32</td><td align="center" valign="middle" >1600</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:16</td><td align="center" valign="middle" >16</td><td align="center" valign="middle" >800</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:32</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >400</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:64</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:128</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >50 Hz</td></tr><tr><td align="center" valign="middle" >1:256</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >50</td><td align="center" valign="middle" >50 Hz</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Power factor of the circuit at different pre-scale values [<xref ref-type="bibr" rid="scirp.120083-ref10">10</xref>]</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Sr. no</th><th align="center" valign="middle" >Pre-scale Value</th><th align="center" valign="middle" >Count 1</th><th align="center" valign="middle" >Count</th><th align="center" valign="middle" >Power factor</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1:2</td><td align="center" valign="middle" >24</td><td align="center" valign="middle" >128</td><td align="center" valign="middle" >0.382</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >1:4</td><td align="center" valign="middle" >12</td><td align="center" valign="middle" >64</td><td align="center" valign="middle" >0.382</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >1:8</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >32</td><td align="center" valign="middle" >0.382</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >1:16</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >16</td><td align="center" valign="middle" >0.382</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >1:32</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >1:64</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >1:128</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >-1</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >1:256</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td></tr></tbody></table></table-wrap><p>power factor of the tested circuit at different pre-scale values is shown in <xref ref-type="table" rid="table2">Table 2</xref>. Now the angle is calculated as in the Equation (9).</p><p>Angle = count1 count &#215; 360 (9)</p><p>And then, the power factor is given by the cosine of the angle obtained from Equation (9).</p><p>Ease of</p><p>It can be seen from <xref ref-type="table" rid="table2">Table 2</xref> that at lower pre-scale values, the value of count 1 is not correct. This is due to the very low count. This problem is solved by taking the count 1 value at higher pre-scale so that a higher degree of precision can be obtained.</p></sec><sec id="s4_2_2"><title>4.2.2. Flow Chart of the Control System</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1 shows the algorithm of how the system functions. In this study the chosen reference power factor is 0.95. If the power factor calculated is greater than or equal to the reference value i.e. 0.95, then the system does not require any compensation and hence the microcontroller does not switch on the relays. When the power factor is less than the reference value, the microcontroller switches on the first relay to connect the minimum available capacitors. If the power factor is still less than the reference value, the microcontroller will send a command signal to the second relay and hence more capacitance is introduced in the circuit and so on until the desired power factor is displayed.</p></sec></sec><sec id="s4_3"><title>4.3. Capacitor Bank and Load</title><p>The capacitor banks are automatically connected to or disconnected from the circuit using respective relays. Two capacitor banks were used in this case, each</p><p>of rating C/2 implying that they are connected in parallel. This is simply because the size of the capacitor bank has to be finite and the cost of design consideration. The relays with the best combination of capacitors provide an improved power factor. The loads used in this experiment were incandescent lamps (for resistive load), and fluorescent tubes with chokes (for inductive load).</p></sec></sec><sec id="s5"><title>5. Results and Discussion</title><p>The automatic control system for power factor improvement was first tested on Proteus software. The Proteus software is a proprietary software used mainly for electronic design testing. It is used to create schematics and electronic prints for manufacturing printed circuit boards. In this work, the simulation result is based on lagging power factor of the load. These results are for the three design loads (Pure R, Series R-L and Parallel R-L).</p><sec id="s5_1"><title>5.1. Simulation Results</title><p>The simulation results are based design loads mentioned earlier. These can be extended to other load configurations.</p><p>1) Case 1:When resistive a load of 60watts is connected.</p><p>When a resistive load of 60 watts is connected, it is observed that both the current and voltage are in phase as shown <xref ref-type="fig" rid="fig1">Figure 1</xref>2. In this case the power factor displayed on the LCD is 0.99 greater than the reference power factor of 0.95, so there is no insertion of capacitors.</p><p>2) Case 2:When a series R-L load is connected.</p><p>When the series R-L load is connected, there is a phase difference between the voltage and current signals as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>3. The microcontroller detects the phase difference produced by the load and triggers the relay to switch on the required capacitor bank to improve the power factor to the desired value. When the desired value of the capacitors connected, the required reactive power is</p><p>supplied to the system, and the current and voltage waveforms are in phase. After the connection of the required value of capacitor, the V and I zero crossing detector signals are also in phase in accordance with the set reference value of the power factor (0.95).</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>4 shows the power factor improvement for the series R-L load after the connection of the capacitor bank. The current and voltage are now in phase due to the improvement of the power factor from 0.52 to 0.99 almost to unity power factor.</p><p>3) Case 3:When a parallel R-L load is connected.</p><p>When the parallel R-L load is connected, there is a phase difference between the voltage and current signals as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>5. The microcontroller detects the phase difference produced by the load, and triggers the relay to switch in the required capacitor bank to improve the power factor to the desired value.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>6 shows the power factor improvement of the parallel R-L load after the connection of the capacitor bank. The current and voltage are in phase due to the improvement in the power factor from 0.78 to 0.96 so that the desired power factor is achieved.</p></sec><sec id="s5_2"><title>5.2. Power Loss Reduction</title><p><xref ref-type="table" rid="table3">Table 3</xref> shows the hourly reduction of power losses with the application of power factor correction. <xref ref-type="fig" rid="fig1">Figure 1</xref>7 shows the hourly power loss reduction when the power factor compensation is used.</p></sec><sec id="s5_3"><title>5.3. Discussion</title><p>The power factor is a measure of the efficiency of an electrical device to consume</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Hourly power loss reduction</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Time</th><th align="center" valign="middle" >P (W) @ 230v P = V I cos ϕ</th><th align="center" valign="middle" >Pf before correction</th><th align="center" valign="middle" >Q (Var) Q = S 2 − P 2</th><th align="center" valign="middle" >S (VA) S = P PF</th><th align="center" valign="middle" >I (A)</th></tr></thead><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >84.7</td><td align="center" valign="middle" >0.79</td><td align="center" valign="middle" >65.7</td><td align="center" valign="middle" >107.2</td><td align="center" valign="middle" >0.466</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >85.40</td><td align="center" valign="middle" >0.80</td><td align="center" valign="middle" >64.1</td><td align="center" valign="middle" >106.8</td><td align="center" valign="middle" >0.464</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >78.66</td><td align="center" valign="middle" >0.76</td><td align="center" valign="middle" >67.3</td><td align="center" valign="middle" >103.5</td><td align="center" valign="middle" >0.450</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >77.5</td><td align="center" valign="middle" >0.72</td><td align="center" valign="middle" >74.6</td><td align="center" valign="middle" >107.6</td><td align="center" valign="middle" >0.468</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >67.4</td><td align="center" valign="middle" >0.62</td><td align="center" valign="middle" >85.3</td><td align="center" valign="middle" >108.7</td><td align="center" valign="middle" >0.473</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >65.96</td><td align="center" valign="middle" >0.60</td><td align="center" valign="middle" >87.9</td><td align="center" valign="middle" >109.9</td><td align="center" valign="middle" >0.478</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >77.61</td><td align="center" valign="middle" >0.74</td><td align="center" valign="middle" >70.6</td><td align="center" valign="middle" >104.9</td><td align="center" valign="middle" >0.456</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >73.73</td><td align="center" valign="middle" >0.70</td><td align="center" valign="middle" >75.2</td><td align="center" valign="middle" >105.3</td><td align="center" valign="middle" >0.458</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >77.33</td><td align="center" valign="middle" >0.72</td><td align="center" valign="middle" >74.6</td><td align="center" valign="middle" >107.4</td><td align="center" valign="middle" >0.467</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >83.60</td><td align="center" valign="middle" >0.78</td><td align="center" valign="middle" >67.1</td><td align="center" valign="middle" >107.2</td><td align="center" valign="middle" >0.466</td></tr></tbody></table></table-wrap><p>power correctly when current flows through it. Electricity distribution companies usually charge for the apparent power (in kVA) consumed based on the measurement made with the energy meter. If the power factor of an installation is low, the current consumed will be high, resulting in a higher electricity bill [<xref ref-type="bibr" rid="scirp.120083-ref11">11</xref>]. For this reason, electricity distribution companies charge for reactive power for large consumers, the billing takes into account all the powers: active, reactive and apparent consumed [<xref ref-type="bibr" rid="scirp.120083-ref12">12</xref>]. Improving the power factor therefore makes it possible to reduce the total absorbed current and thus reduce the apparent subscribed power (kVA).</p><p>The installation of capacitor banks minimises the penalties from the electricity distribution company and also reduces the apparent power (VA) consumption. There are different types of power factor compensation capacitor banks – the fixed compensation, where the whole battery is switched (On/Off), and the automatic compensation, also known as stepped compensation, where the capacitor bank is divided into several steps that are automatically switched on according to the reactive power to be compensated [<xref ref-type="bibr" rid="scirp.120083-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.120083-ref14">14</xref>]. This is the method used in the paper.</p></sec></sec><sec id="s6"><title>6. Conclusions</title><p>A reactive power compensation system has been designed. In the designed system, compensation is performed by monitoring continuously the lagging power factor due to the load and triggering the control action through a proper algorithm by switching in capacitor banks through different relays thereby improving the power factor of the load. The simulation results based on the lagging power factor for three test loads showed an improvement in the power factor from 0.52 to 0.96 under the test load conditions. The reduction in current drawn relives the system and allows more loads to be connected without overloading the system. When the reactive power compensation device is used, the total apparent power demand is reduced due to improved power factor. The use of the PIC microcontroller is to reduce the cost and increase accuracy.</p><p>In the perspectives, it will be possible to look at the elimination of harmonics from the distribution networks. The modernisation of industrial processes and the sophistication of electrical machines and equipment have led to significant development of power electronics in recent years. For electrical networks, these systems represent so-called “non-linear” loads. These non-linear loads inject non-sinusoidal currents into the network. These currents are formed by a fundamental frequency component of the network, plus a series of superimposed currents, with frequencies that are multiples of the fundamental, called harmonics. The immediate effects of these harmonics include degradation of the power factor, reduction in motor power, and overloading of cables, transformers and motors; leading to reduction in the life span of motors and transformers, and the deterioration of capacitor banks.</p></sec><sec id="s7"><title>Acknowledgements</title><p>The authors thank the authorities of the University of Bamenda, ENSPY, University of Yaound&#233; I, Cameroon, and GTTI, The Gambia, for their institutional support.</p></sec><sec id="s8"><title>Funding Statement</title><p>The authors received no specific funding for this study.</p></sec><sec id="s9"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s10"><title>Cite this paper</title><p>Mbinkar, E.N., Asoh, D.A. and Kujabi, S. (2022) Microcontroller Control of Reactive Power Compensation for Growing Industrial Loads. Energy and Power Engineering, 14, 460-476. https://doi.org/10.4236/epe.2022.149024</p></sec></body><back><ref-list><title>References</title><ref id="scirp.120083-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Gligor, A., Dumitru, C.-D., Ronay, K. and Muntean, R. (2017) Microcontroller Based Prototype for Reactive Power Compensation in Local Distribution Networks. Procedia Engineering, 181, 746-753. https://doi.org/10.1016/j.proeng.2017.02.461</mixed-citation></ref><ref id="scirp.120083-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Muhammad, F. (2018) Reactive Power Compensation by Power Capacitor Method. Engineering Technology Open Access Journal, 1, Article ID: 555565. https://doi.org/10.19080/ETOAJ.2018.01.555565</mixed-citation></ref><ref id="scirp.120083-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Jefferson, A. and Ltee, T. (1999) La compensation active de puissance réactive—Une solution efficace aux problèmes associés à la puissance réactive. IEEE Canadian Review, Summer/été 1999. https://canrev.ieee.ca/en/cr33/jefferson_fr.pdf</mixed-citation></ref><ref id="scirp.120083-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Roos, F. and Bansal, R. (2019) Reactive Power and Harmonic Compensation: A Case Study for the Coal-Mining Industry. Journal of Energy in Southern Africa, 30, 34-48. https://doi.org/10.17159/2413-3051/2019/v30i1a2473</mixed-citation></ref><ref id="scirp.120083-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Kundur, P. (1994) Power System Stability and Control. McGraw-Hill, New York.</mixed-citation></ref><ref id="scirp.120083-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Exposito, A., Conejo, A. and Canizares, C. (2008) Electric Energy Systems: Analysis and Operation. CRC Press, Boca Raton, FL.</mixed-citation></ref><ref id="scirp.120083-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Larsson, M. (2000) Coordinated Voltage Control in Electric Power Systems. Doctoral Dissertation, Lund University, Lund.</mixed-citation></ref><ref id="scirp.120083-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">ABB (2010) Power Factor Correction and Harmonic Filtering in Electrical Plants. Technical Application Papers (Vol. 8), Bergamo.</mixed-citation></ref><ref id="scirp.120083-ref9"><label>9</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Manali A.H.</surname><given-names> Mali A.S. and Salokhe B.T. </given-names></name>,<etal>et al</etal>. (<year>2017</year>)<article-title>Automatic Power Factor Correction And Monitoring By Using PIC Microcontroller</article-title><source> International Journal of Advanced Research</source><volume> 5</volume>,<fpage> 290</fpage>-<lpage>296</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.120083-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Nagarajan, M. and Kandasamy, K.V. (2012) Optimal Power Factor Correction for Inductive Load Using PIC. Procedia Engineering, 38, 737-744. https://doi.org/10.1016/j.proeng.2012.06.093</mixed-citation></ref><ref id="scirp.120083-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Antunes, C.H., Pires, D.F., Barrico, C., Gomes, A. and Martins, A. (2008) A Multi-Objective Evolutionary Algorithm for Reactive Power Compensation in Distribution Networks. Applied Energy, 86, 977-984. https://doi.org/10.1016/j.apenergy.2008.09.008</mixed-citation></ref><ref id="scirp.120083-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Gil, J.B., San Roman, T.G., Rios, J.J. and Martin, P.S. (2000) Reactive Power Pricing: a Conceptual Framework for Remuneration and Charging Procedures. IEEE Transactions on Power Systems, 15, 483-389. https://doi.org/10.1109/59.867129</mixed-citation></ref><ref id="scirp.120083-ref13"><label>13</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Al-Naseem O.A. and Adi</surname><given-names> A.K. </given-names></name>,<etal>et al</etal>. (<year>2010</year>)<article-title>Impact of Power Factor Correction on the Electrical Distribution Network of Kuwait—A Case Study</article-title><source> Power and Energy Engineering</source><volume> 2</volume>,<fpage> 173</fpage>-<lpage>176</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.120083-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Gupta, N., Singh, S.P. and Bansal, R.C. (2012) A Digital Signal Processor-Based Performance Evaluation of Three-Phase Four-Wire Shunt Active Filter for Harmonic Elimination, Reactive Power Compensation, and Balancing of Non-Linear Loads under Non-Ideal Mains Voltages. Electric Power Components and Systems, 40, 1119-1148. https://doi.org/10.1080/15325008.2012.682248</mixed-citation></ref></ref-list></back></article>