Professional Documents
Culture Documents
MOTIVATION
My dad knows a man named Kamruzzaman who worked under
my dad (in electronics) for a very shortamount of time, doing
stuff like soldering boards, etc. A few days after I went back to
Dhaka, Kamruzzaman called my dad and mentioned that he
wanted to talk to my dad about something. We invited him
home, where he showed us a nice Chinese-made automatic
voltage stabilizer circuit he was trying to replicate albeit
unsuccessfully. At the same time, he mentioned about his
financial hardship and asked for our help with designing the
automatic voltage stabilizer so that he could have some good
financial support from this product. In Bangladesh, the
automatic voltage stabilizer (AC-AC) is a ubiquitous little piece
of hardware that is used to somewhat compensate for the
varying line voltages (which while being advertised as 220V,
can
3
on a given day vary between 170V and 240V in Dhaka and can
vary over a larger range in other parts of
the country, due to the unreliable electrical grid).
This was a good learning opportunity, a great opportunity to
gain some experience and most
importantly, a great way to help someone in need through doing
something I truly love.
3
And I got to it. I spent about somewhere between a day and a
half, and two days thinking about how
best to go about designing this voltage stabilizer circuit, while
maximizing performance and minimizing
build hassle. Then I built the test prototype on verroboard and
tested it out. Kamruzzaman and I tested
the entire product through a long eight-hour testing process
where I kept on refining and improving the
4
SPECIFICATIONS
10
11
12
14
diode would become forward biased and thus clamp the voltage
to VSS one diode forward drop. This
would be about -0.7V for our circuit. While +5.7V and -0.7V
inputs to the ADC are not ideal, these are
definitely better than the presence of high positive or negative
voltages at the ADC input (which would
immediately destroy that portion of the microcontroller).
Regular rectifier diodes were used in the
circuit, which is why I assumed the forward voltage drop to be
+0.7V. To improve the clamping, schottky
diodes could be used instead of regular rectifier diodes. At the
very small current level present, it is
reasonable to expect a diode forward voltage of +0.3V or
perhaps even lower, depending on the diodes
being used.
15
While this is all good and well, there are two things here that
could potentially disrupt proper operation
of the circuit: the input filter capacitance and the input
impedance for the PIC ADC (the voltage divider
circuit).
If too large an input filter capacitance is selected, it will
discharge slower and give poorer response to
quick voltage drops. Thus, a value of the capacitance should be
used such that the voltage ripple is low
but the response to quick voltage drops does not suffer too
much. Capacitances of 10F, 22F and 33F
were tested and all gave good results. 22F seems to be the
match here providing a good compromise
between response to quick input voltage drops and DC voltage
ripple.
16
17
CALIBRATION
needed in the first place, is that the output of the voltage divider
will not always be the same ie, from circuit to circuit, due to
variations in component values and parameters, the output
voltage will be the same. The main reasons for this are the
tolerances in the resistances, the inconsistencies in diode
forward drop voltages and the discrepancies from part to part. To
compensate for this, traditionally, a variable resistor is used as
part of the voltage divider. The resistance is altered to
compensate for the different errors and discrepancies and thus
provide the expected output. Now, sometimes, the value of the
variable resistance may not remain constant even when the
wiper position is unchanged. Thus, in this circuit, where
reliable and consistent output over long periods of
time is a necessity, it was decided that a variable resistance will
not be used in the final product at
least not one on which the circuit depends while running.
19
removed from the circuit, if desired. This will not affect the
performance of the circuit, unless of course
.
the user wants to recalibrate at any time. This is what I initially
meant when I mentioned that the final
product has no variable resistor in it.
23
CIRCUIT
DIAGRAM
OF
AUTOMATIC
VOLTAGE STABLIZER
24
RELAY
AND
TRANSFORMER
25
REST OF CIRCUIT
input voltage variation due to the switching of the relays and the
output voltage regulation which acts to
regulate the voltage across this winding too. This low voltage
AC is rectified to DC using a bridge rectifier
and then filtered with a bulk capacitance. You will also find that
decoupling/bypass capacitors have also
been used. This filtered DC is fed to the input of a 7805 linear
voltage regulator. Since the current draw
is not too high, a linear regulator such as the dirt-cheap
ubiquitous 7805 is sufficient and no fancy
switching regulator is required (I still do recommend switching
regulators, cost permitting, especially
with large current outputs and/or large input-output voltage
differences). It is critical to use at least one
decoupling capacitor (which should be placed as close to the
microcontroller as possible) and you can
27
29
31
WEBSITES
1. www.google.com
2.www.programmer2programmer.net
3.
www.google.com
4.
www.tgmc.com
5.
www.wikipedia.com
6.
w3school
32