Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
voltage = 0
for i = 1 to 3
voltage = voltage + adcin 1
next i
whole = voltage / 100
decimal = voltage - (voltage / 100) * 100
For that purpose you need to apply 220v ac to circuit.But I don't know how to convert adc value to get actual AC voltage. I used this formula (volt per count = 220/adc count at 220v) to get volt per count value. I keep that value in EEPROM and multiply adc input by that volt per count value to get actual AC voltage. But I got some error of reading