Hello,
I am asking for a hint regarding the voltage divider.
I want to measure the voltage of a 12V car battery with the help of Arduino.
I will use the analog arduino pin and voltage divider as in the diagram.
When calculating the R1 and R2 resistor, I assumed that the maximum Uwe is 15V, and Uwy is to be 5V.
Thanks to the program "Electronics assistant 2.2.5" I calculated that if R1 = 2 then R2 = 1 but they are not the resistor values but the ratio R1 to R2.
Question:
What should be the resistors R1 and R2? What order of magnitude Ohm, kOhm, MOhm?
For the tests I took R1 = 20kOhm and R2 = 10kOhm and it works, but what should be the most optimal sizes of R1 and R2 resistors.
Thanks in advance.
I am asking for a hint regarding the voltage divider.
I want to measure the voltage of a 12V car battery with the help of Arduino.
I will use the analog arduino pin and voltage divider as in the diagram.

When calculating the R1 and R2 resistor, I assumed that the maximum Uwe is 15V, and Uwy is to be 5V.
Thanks to the program "Electronics assistant 2.2.5" I calculated that if R1 = 2 then R2 = 1 but they are not the resistor values but the ratio R1 to R2.
Question:
What should be the resistors R1 and R2? What order of magnitude Ohm, kOhm, MOhm?
For the tests I took R1 = 20kOhm and R2 = 10kOhm and it works, but what should be the most optimal sizes of R1 and R2 resistors.
Thanks in advance.