I've setup a voltage divider to provide low voltage warnings on a 12V battery powering my project. Can you see any improvements to my method of monitoring a (solar charged) battery? Power usage is more of a concern than accuracy so would higher value resistors be preferable?
I setup two resistors (10K & 4.7K), tested the voltage and recorded the corresponding analogRead(A0) number
analogRead = 858 | multimeter = 12.44v for the battery (4.0v at A0)
I then divide the analogRead value by 68.9 (1 volt with the above resistors)
Serial.println(sensorValue/68.9); //Gives 12.48