I'm trying to build a device where I can measure how much voltage level of a batter (like a car battery). I'd like to be able to run power and ground from the battery to the board (to an input pin?) and get measure the voltage.
Any advice? Are there any readily available IC's built for this purpose?
No.
That is a current measuring board.
It measures the current a load draws.
You asked for measuring voltage.
Voltage can be measured directly with an analogue pin of the Arduino.
But since you want to measure more than 5volts, you need a voltage divider.
Two resistors with a ratio of ~1:2
So you reduce the ~12volt of the car battery to 1/3 of that, ~4volt.
Leo..
Voltage can be measured directly with an analogue pin of the Arduino.
But since you want to measure more than 5volts, you need a voltage divider.
Two resistors with a ratio of ~1:2
So you reduce the ~12volt of the car battery to 1/3 of that, ~4volt.
Leo..
If you are measuring an automobile battery while in a vehicle and the engine is running and charging the battery, you may get voltages above 15 volts at times.
The link in post#1 uses a 1Megohm/100k resistor divider.
I doubt if anything can go wrong there.
You have to put 1000volt on that resistor for 1mA protection diode current.
But indeed, if you use low value resistors, a zener might be needed.
Leo..