I use this method from the ATmega328p application notes to make Zero Crossing Detector. Please check the following link for more details: https://www.microchip.com/en-us/application-notes/an2508 Simplest Zero Crossing DetectorCircuit The circuit uses two 1Mohm resistors to limit the current to less than 1mA at the microcontroller input port. Then connect directly to […]

This post is about designing a battery charger using Arduino Uno as a continuation of the DC boost converter project. I made some small additions to hardware and software which I will discuss here. I have a 12V/7.2AH VRLA battery so my project aims to make a charger for it. […]

My post this time is about the DC-DC boost converter, which is a converter from 7V to 12V using Arduino. Here I try to design from start to finish. The first step for this design was determining the proper specifications for my purposes. What I need is the following: Vin […]

This post is about an Arduino nano SPWM generator with added automatic transfer switch function. Used to switch the operation of the Inverter to the Grid when the battery voltage drops to a certain level. And it is done synchronously, i.e. the transfer is done when the grid and inverter […]

This post is still continuing my project in Arduino Nano SPWM generator. I add some code and also Zero Crossing Detector circuitry for Grid Synchronization. The circuit is to detect the grid phase and the code is doing a task as Software Phase Loop Lock. Using Software Phase Locked Loop […]

My Arduino Nano SPWM working voltage is 12V, we need to change the voltage divider network if we want to work with other voltages such as at 24V/48V. Voltage Divider Modification to 24V 48V My Arduino Nano SPWM Generator module detects 12V input from unregulated 12V coming from Battery, then […]