Professional Documents
Culture Documents
ISSN No:-2456-2165
Abstract:- Over the years, renewable energy has gained II. LITERATURE REVIEW
a lot of popularity in Nigeria, and Africa as a whole.
Power electronics and converter systems play an The adoption of solar-inverter systems among
important role in the renewable energy sources analysis Nigerians has likely increased over time, making it one of
and modeling. This work provides a discrete modeling the country's most prevalent sources of alternative energy at
and design method for digitally controlled inverters the moment. Also produced locally are inverters by
using software based generation of sinusoidal pulse businesses and individuals. [3].
width modulation. We introduce the background and
foundations of power inverter digital control. For digital There are three major inverter waveform types, Square
pulse-width modulations (PWMs) with delay effects, wave, Modified Sine (MS) wave, and PureSine (PS) wave.
small-signal models are developed. The controllers can Of these, only the last two are commonly seen, as the square
be designed using a variety of models in accordance with wave is considered obsolete. Modified Sine (MS) wave and
the block diagrams based on the models. The Pure Sine (PS) wave generators are the two main power
experimental setting and simulation software for the inverter types available on the Nigerian market today. The
digitally controlled inverters are then described. outputs of these inverters vary, offering various degrees of
efficiency and distortion that might have diverse effects on
Keywords:- Inverter, Pure Sine (PS) wave, Nigeria, electrical equipment. A MS wave is similar to a square wave
Uninterruptible Power Suppliers, Proteus, c++ program, but instead has a “stepping” look to it that relates more in
Arduino. shape to a sine wave [4]. An approximation of a sine wave
may be created by outputting one or more stepped square
I. INTRODUCTION wave with the amplitudes chosen to approximate the sine
[5]. This can be seen in Fig. 1, which displays how a MS
Direct current (DC) and alternating current (AC) are wave tries to emulate the sine wave itself. Notice that as
the two basic types of electrical power. Direct current has time progresses from left to right, the two different
the advantage of being able to be stored in batteries, but waveforms rise at different rates. The MS waveform is
alternating current can have its voltage level changed by simple to create because it only requires switching between
using transformers. three values at predetermined frequencies, omitting the more
intricate circuitry required for a PS wave. The MS wave
In developing countries, shortage of power is a inverter offers a simple and affordable method for powering
problem commercially and domestically [1]. Existing AC-required devices.
electricity production sources are under a heavy pressure
from newly constructed offices. The situation, particularly in
some urban areas, worsens when the quickly rising private
and domestic demand is added. Simply put, we are
becoming more able to consume energy than we are to
produce it. Under these circumstances, failure will happen
suddenly and without notice as a result of strains on the
insufficient power sources. The necessity for an alternate
energy source that can bridge the gap and cover power
supply gaps results from this. Overcoming this obstacle led
to the application of DC/AC power inverters. Short term
solution of power disruption could be addressed through the
use of these inverters and a source of DC power.
Minimal Risk to Devices If there are two voltage levels produced on the switch
The smooth wave form produced by a pure sine wave voltage Vin, i.e., Vdc and −Vdc, the H bridge is bipolar
inverter also protects your high-end electronics from damage switched. In order to provide the model for a single-update-
during power outages. Using modified sine wave inverters mode bipolar switched H bridge, we assume that the duty-
with AC-powered devices such as microwaves and ratio is updated at each sampling instant. Therefore, the
refrigerators can generate excessive waste heat, putting your Digital Signal Processor (DSP) delay is one sampling cycle.
devices at risk. Pure sine wave inverters, on the other hand, When the sampling frequency is equal to the switching
pose no threat to any of your devices. frequency, the key waveforms of bipolar switched H-bridge
are shown in figure 4.
𝐺∗ 𝑇𝑠 −𝑠
(3−𝐷)𝑇𝑠
−𝑠
(3+𝐷)𝑇𝑠 (3.2)
𝑝𝑤𝑚(𝑠)= (𝑒 2 +𝑒 2 )
2
Fig. 9: The simulation environment in Proteus software Fig. 11: Arduino IDE
#include <TimerOne.h> }
#define potinput A0 else {
#define feedbackinput A1 A = A - 1;
#define outA 9 potinputval = analogRead(potinput);
#define outB 10 feedbackinputval = analogRead(feedbackinput);
}
int f_pwm =20000;//max 20000 }
int f_sine =50; }
float sinus[200];
float phi=3.14; void generate_sinus(){
generate();
int flag = 0; }
int sample=0,samples=0;
int potinputval; void generate(){
int feedbackinputval;
int A; if(sample>=total_sample && flag==1 ){
int max_power=800;//max 1023 flag=0;
float invert=0.0; sample=1;
int total_sample; //TCCR1A=0b10100000;
int phase =0,x=0;
}
void setup() {
total_sample if(sample>=total_sample && flag==0){
=round((((1000000./f_sine)/(1000000./f_pwm))/2.)); flag=1;
for (int sudut=0;sudut<total_sample;sudut++) sample=1;
{ //TCCR1A=0b10100000;;
float rad= sudut*(180./total_sample)*phi/180; }
sinus[sudut]=sin(rad); sample++;
} if(flag==0){
Timer1.pwm(outA,(sinus[sample]* A));
float t_pwm=(1000000./f_pwm); //PORTB=(0<<PORTB3);
delay(1000); Timer1.pwm(outB,0);
pinMode(potinput, INPUT); }
pinMode(feedbackinput, INPUT); if(flag==1){
pinMode(LED_BUILTIN,OUTPUT); Timer1.pwm(outA,0);
}
}
REFERENCES