Top goal: keep ac source at 220 volt all the time.
The "pseudo code"!!! goes like this:
Part A (The monitoring )
sample input ac voltage, reducing it to safe level (arduino level)
rectified dc fed to A0
using arduino to detect UP or DOWN from a value that represents 220V
Part B ( The feedback )
Activate dc motor RIGHT or LEFT to control the arm of a Variac.
In this early stage I wand to get green light on the concept and really do Part A. I want to build part A and see if the motor does it's thing while I vary the source around the 220 V. As a matter of fact I may develop it further to provide me with ANY ac value I feed to it.
I am ready now for the firing squad.....
By that I mean there may be an electronic solution to it . and save my self the agony of a mechanical one.
Hi,
Yes it is possible.
I have had a few through the workshop, they are not super fast to adjust output, but they do work well if the hysteresis is set up correctly.
They make motorized Variacs but they are expensive and I assume they have AC motors (probably controlled by a relay).
sample input ac voltage, reducing it to safe level (arduino level)
rectified dc fed to A0
And, transformer isolated and filtered, of course.
By that I mean there may be an electronic solution to it . and save my self the agony of a mechanical one.
That depends... It's not easy to adjust "clean AC" electronically and it's even trickier if you need to boost the voltage. A "chopped AC" [u]phase-controlled dimmer/motor controller[/u] is cheaper & more compact than a Variac. You just have to make sure that the phase detection and TRIAC control are electrically isolated from the line voltage.
And you are absolutely right about the Variac hysteresis A serious obstacle
It's not that "serious". Just add some hysteresis to your code... If you're going-up and shooting for 220V, keep going 'till you hit 221V (or whatever) and when you're going down, keep going down 'till you hit 219V (or whatever). Give yourself a range/zone (or "window") where nothing happens so the thing doesn't constantly "hunt".
...You could also add some delay or averaging/smoothing so it doesn't react to every little glitch in the power.
Mains voltage stabilizers are used in third-world countries, where power is flaky.
Google "mains voltage stabilizer", and go to images for factory units and diagrams.
Most of them are made with a small transformer with many taps, that add or subtracts a small voltage from the mains voltage. Taps are selected with relays.
Leo..
Thanks for your comments and here is my conclusions( based partially on your posts ):
This is an "old fashioned way" to get stabilized ac source.
There are many ways to achieve it with present day technology.
I better steer away from circuits that deal with more that 50 v
I have variable dc bench power supply in my small lab, and I wanted a similar ac one. Why you may ask.
Just for experimental reasons and NOT FOR NORMAL USE
The key here, is programmable ac power supply.( Variac is viable solution but not programmable)