Afuevu
DIIDevHeads IoT Integration Server
•Created by aymen ammari on 12/10/2024 in #🟩-pcb-and-analog
How can I correctly measure battery voltage using the A0 pin on Arduino?
A voltage divider can work well, send the total voltage through a voltage divider, use R1 = 5.1k and R2 = 1k. If current consumption is a concern, you can use 51k and 10k. Then you can read the entire voltage of the battery. Then for the readings you are getting, is the distance between the battery and the A0 pin much? long distance affects readings. Also try and put a 100nf capacitor on the A0 pin to ground.
7 replies