This is a simple inverter to convert 12V DC to 220V ACwithLCD Display to show the battery voltage.
It has low battery cut off voltage at 10.5V to protect the battery from over discharge.
The output is square waveform and the maximum output power depends on the power of your transformer and also the MOSFETs and heatsink's size.
Parts list:
Arduino (UNO or MEGA)
IC 7805
LCD Display 16x2 with I2C
Transformer center taped 9V-0-9V / 220V
MOSFET IRFZ44n (2pcs)
Optocoupler PC817 (2pcs)
Resistor 91K
Resistor 10K (3pcs)
Resistor 300 ohm (2pcs)
Resistor 1K (3pcs)
Capacitor 1000uF 16v (2pcs)
Capacitor 100nF (2pcs)
Heatsink for MOSFETs (2pcs)
12V Battery
Battery connecting cable
Circuit:
If you want to use Arduino UNO instead of Arduino MEGA, you have to connect the pin A4 of the Arduino UNO to SDA of the LCD and pin A5 of the Arduino UNO to SCL of the LCD, Rest of the wiring and even the code remains the same!
Watch this Video for more Details:
Code:
#include<Wire.h>
#include<LiquidCrystal_I2C.h>
#include<avr/io.h>
#include<avr/interrupt.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // Try 0x3F if 0x27 doesn’t work