I have and ESC with brushless motor connected to Arduino. It uses separate 12V battery as a power source, while Arduino uses USB from my PC for now. I want to measure voltage of battery in order to check its battery level. For this, I have one wire connected to + and - battery's wires through resistors, and to analog pin on arduino (I want to read voltage from this pin). My question is - what kind of resistors do I need in order to prevent Arduino from frying?
Schematic attached.
Thanks in advance.