Hey!
I want to make a automatic battery charger.
I have 2 12v battery's in series, so 24v.
What does it need to do:
It needs to read the voltage of the battery's, and if its under for example 23.5v. it turns the charger on. (With a relay.)
The problem I have is that I can't connect the 24v to a analog pin on a arduino because that's to much for it to handel right?
I'm new to this stuff, if anyone has any tips, please leave them below.
Thanks!
You need to look up Voltage Divider circuits.
However, I have to say, this does not need a microcontroller to turn the relay on and off. You can do that by feeding the output of an appropriately scaled voltage divider to the base of a transistor, which would in turn close the relay contacts when the battery voltage is too low.
Good luck.
Mark
The problem I have is that I can't connect the 24v to a analog pin on a arduino because that's to much for it to handel right?
Sounds like you need a voltage divider consisting of 2 resistors across the battery with the junction between the resistors connected to an analogue pin and the negative terminal of the battery connected to the Arduino GND.
You need to choose the ratio of the values of the resistors so that when the battery is at its maximum voltage the voltage at the junction of the 2 resistors is 5V.