derser
Member level 1
- Joined
- Sep 24, 2008
- Messages
- 33
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Activity points
- 1,502
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