New answers tagged voltage-level
1
Everything was correct and my circuit is also good. The only difference i found is to this below line:
temp = (analogvalue * 3.3) / 1024.0;
Which should be
temp = (analogvalue * 1.0) / 1024.0;
We are multiplying because we are referencing the voltage from voltage divider circuit as 1 volt.
After doing this, i am getting the exact values battery voltage ...
Top 50 recent answers are included
Related Tags
voltage-level × 268arduino-uno × 83
power × 48
current × 26
esp8266 × 23
analogread × 21
battery × 21
arduino-nano × 17
arduino-mega × 15
voltage-protection × 15
electronics × 14
sensors × 12
voltage × 12
led × 10
pins × 10
arduino-pro-mini × 10
motor × 9
nodemcu × 9
serial × 8
pwm × 8
electricity × 8
usb × 7
atmega328 × 7
attiny × 7
arduino-due × 6