0
\$\begingroup\$

I am a beginner in EE and I am just studying circuits at the moment, and I have this question about designing an AC Mains Voltage indicator that indicates the voltage level of AC mains by three different LEDs. It takes input from a stepped down transformer and through a circuit that has three led indicators, Red which is on when the input voltage is above (240+5%)V (rms) (+5%), Green when input voltage is in 5% range below or above 240V (rms) and Yellow if input voltage is less than (240-5%)V (rms)

The problem is, I have just started sinusoidal state analysis and I don't have any idea how such a thing is implemented. Can you give me some leads that would help me design this circuit? It is from a design assignment.

\$\endgroup\$
8
  • 1
    \$\begingroup\$ What parts you can use in design? Can you use comparators? \$\endgroup\$
    – Kamil
    Commented Apr 17, 2014 at 11:30
  • \$\begingroup\$ A decent approach would be to rectify and smooth the output from the transformer (see google for simple "linear" power supply designs), and then as Kamil says, use two or three op amps (you can get 4 per package) in the configuration of comparators. No special "sinusoidal state analysis" needed, since you convert the AC to DC. \$\endgroup\$
    – gwideman
    Commented Apr 17, 2014 at 11:37
  • \$\begingroup\$ @Kamil thank you for your reply, but what's a comparator? \$\endgroup\$
    – Theo
    Commented Apr 17, 2014 at 11:53
  • \$\begingroup\$ @gwideman so we convert AC to DC and then have the diodes on or off according to the expected rectified voltage? I am sorry but I absolutely know nothing about amplifiers, only a slight idea. Our syllabus is a bit poor here. ^^ \$\endgroup\$
    – Theo
    Commented Apr 17, 2014 at 11:53
  • \$\begingroup\$ This forum is not a place where we can design your project from top to bottom for you. As I (and now Spehro) have said, you're going to need to convert the AC transformer output to DC, and smooth it. To learn about that, look for tutorials on "Unregulated linear power supply", like here: sparkfun.com/tutorials/103. Next, you're going to need a circuit which examines that smooth DC voltage, and decides if it's above a threshold, and if so lights the LEDs. So look for tutorials on comparators, like: allaboutcircuits.com/vol_3/chpt_8/3.html "bargraph display". \$\endgroup\$
    – gwideman
    Commented Apr 17, 2014 at 12:01

1 Answer 1

3
\$\begingroup\$

This kind of design assignment should not be too difficult to break down into constituent parts, so you can replace one big problem with a bunch of smaller problems. Hopefully you already know how to solve some, or all, of the smaller problems.

If you start at the output and work backwards- you want 3 LEDs driven by some kind of circuit that controls their illumination. Let's say you have a "DC" voltage that represents the RMS AC input voltage that you've been asked to measure. By "DC" I mean rectified and low-pass filtered so that it has little ripple. Say the voltage is 10V for 240V RMS, 9.5V for 5% low, and 10.5V for 5% high. So you need to design a circuit that will illuminate the Red, Green or Yellow LED based on that voltage (3 states, so it can be defined with two comparison bits). That's one smaller problem.

A second problem is how to power the circuit. You know you have a step-down transformer, so you should be able to design a power supply. But wait- there's an issue here with the specifications. You're told to illuminate a yellow LED if the voltage is 5% or more below nominal, but it's going to be hard to do that at 0V. You may have to make a reasonable assumption here- say it will work down to 30% under nominal. So your power supply has to work with as low as 160V in, and still provide (say) 15V regulated for the circuit to work. That's smaller problem number two.

The third problem is how to get a voltage representing the RMS voltage into a DC voltage. One approach is to use a rectifier or precision rectifier circuit and rectify and filter the output voltage of the transformer. It's easier to measure the average value of the rectified voltage than the RMS value and assume it's a sine wave (this is where your AC analysis might come in, there is a constant factor between the two for a sine wave). This is really three even smaller problems- rectify the voltage, filter the voltage and (perhaps) scale the voltage so that it meets our requirements in the first problem of 230VAC->10.0V output.

So, a total of five smaller design problems, and we've detected a deficiency in the specifications. This is a fairly representative assignment in terms of what you'll run into, in miniature, but all the elements are there.

One little enhancement I'll recommend- keep the current draw (especially of the LED circuit since it will draw the most) constant regardless of which LEDs are illuminated. If you can describe why that's a good thing, you may get bonus marks.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you very much, really detailed answer. I appreciate it. \$\endgroup\$
    – Theo
    Commented Apr 17, 2014 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.