- This topic has 3 replies, 3 voices, and was last updated 8 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › main supply voltage display using atmega
HI
In my project i have to display how much voltage is comming from main supply (i.e., 230v r 220) whatever it may be…can you please suggest me how can i read main supply.please give me some idea??
thanks in advance
One method is to step down and rectify the ac mains to around 5V dc and read it using the adc of the microcontroller.
use voltage divider resistor network. use resistors with 2W ratings.
calculate resistance values as to get the range of 0 – 230 into 0-5 V.
sense the voltage using internal or external ADC. multiply it with reverse of voltage divider ratio and thats it
A.M Bhatt’s reply sounds good and easy to make, but I would suggest not to try it that way because of the huge amount of safety risks involved!!