Microcontroller › AVR › main supply voltage display using atmega › use voltage divider resistor
September 16, 2014 at 5:57 pm
#12197
Ashutosh Bhatt
Participant
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