Arduino Inverter Circuit

Inverter circuits are very helpful to produce AC supply when we need and it uses minimum level of DC bias from battery source.

Here the simple and reliable inverter circuit designed with Arduino board, and we can program Arduino to obtain stepped AC output, modified sinewave AC output or Pure sinewave output, and also we can program Arduino board to bring different range of frequency output.

Circuit Diagram

Construction & Working

This inverter circuit have three stages and a 12V 5.0Ah SLA battery as a DC bias, to show this circuit simple and neat I have removed battery charger circuit.

The first stage of this circuit is Arduino Micro controller board and it is programmed to give SPWM (Sinusoidal Pulse Width Modulation) or you can modify the code to produce different output from Arduino pins.

Second stage is switching and driver stage, output pulse from the Arduinio digital pins are fed into switching transistor SL100 npn and then power mosfet IRF540.

Third stage is a output stage which is constructed by using center tapped transformer (230 VAC primary / 12-0-12 VAC secondary) and it is connected reversely with  driver circuit that is secondary stage (12-0-12 VAC) is connected to the power mosfet and primary side of transformer let to give output supply.

When the battery connected with this circuit voltage regulator 7812 powers up the Arduino board and it starts producing output pulses depends on sketch, the pulses are drives the transistor SL100 and power mosfet IRF540 and transformer secondary winding connected with the mosfet get discrete energy and mutually induce the large number of primary winding, as we know due to large numbers of winding and changing magnetic field, it produce high voltage AC output.

Arduino Inverter Code

This code to produce SPWM at pin D9 and D10 of arduino uno board, you can modify and comment your better arduino code.

 

const int SpwmArry[] = {500,500,750,500,1250,500,2000,500,1250,500,750,500,500}; // Array of SPWM values.
const int SpwmArryValues = 13; //Put length of an Array depends on SpwmArray numbers. 
// Declare the output pins and choose PWM pins only
const int sPWMpin1 = 10;
const int sPWMpin2 = 9;
// enabling bool status of Spwm pins
bool sPWMpin1Status = true;
bool sPWMpin2Status = true;

void setup()
{
 pinMode(sPWMpin1, OUTPUT);
 pinMode(sPWMpin2, OUTPUT);
}

void loop()
{
 // Loop for Spwm pin 1
 for(int i(0); i != SpwmArryValues; i++)
 {
  if(sPWMpin1Status)
  {
   digitalWrite(sPWMpin1, HIGH);
   delayMicroseconds(SpwmArry[i]);
   sPWMpin1Status = false;
  }
  else
  {
   digitalWrite(sPWMpin1, LOW);
   delayMicroseconds(SpwmArry[i]);
   sPWMpin1Status = true;
  }
 }
 
 // Loop for Spwm pin 2 
 for(int i(0); i != SpwmArryValues; i++)
 {
  if(sPWMpin2Status)
  {
   digitalWrite(sPWMpin2, HIGH);
   delayMicroseconds(SpwmArry[i]);
   sPWMpin2Status = false;
  }
  else
  {
   digitalWrite(sPWMpin2, LOW);
   delayMicroseconds(SpwmArry[i]);
   sPWMpin2Status = true;
  }
 }
}

Reference

 

NOTE:-

High Voltage and Current output Circuit. Handle with Care and Safety measures

Add a Comment

Your email address will not be published. Required fields are marked *