i want the efficient way to measure the ac line voltage of the amplitude 250Vrms,
tried several methods,
1. line coltage --> full wave bridge rectifire --> filter caps --> resistor divider network...
almost all worked up to the measurements of amplitude. problem is that my project is having keys for overvoltage and undervoltage settings, so there should not be the risk of electric shock.
2. ac voltage after stepdown transformer --> rectifier--> filter caps -- > resistor divider network.
i am using relay to switch another circuit on and off, this relay is driven by the same supply which is powering the uC, so when line voltage is out of the range relay is energised which sinks more current from regulator ic(this changes the adc voltage and ultimately the line voltage reading)
any help would b greatly appreciated as i am working on these issues from 3 days.


Prashant