Option #2 is my preference for now.
I prefer it because it allows me to continue monitoring/administering the bms via the android smartphone app
Project would not have be dependant on a specific bms.
I would like this method to work for 12, 24 and 48 volt nominal batteries.
Mine is 24 volts lifepo4.
The topology would be something like this
ac {
mains->iot_relay->|->normally_open->arduino
|->always_on->ac2dc_charger
}
dc {
arduino.vcc<-fuse<-battery.pos
arduino.gnd->battery.neg
arduino.relay.pos->fuse->iot_relay.pos
arduino.relay.neg<-iot_relay.neg
}
Please suggest a voltage divider or similar that is accurate to better than ~10 millivolts and ranges up to 58.4 volts.
Ideally not too expensive and not too hard to implement.
Please also suggest an arduino to use for this my first arudino project.
My eyes and hands are not very good so the less fabrication the better.
Also my coding skills are from the last millenium.
If you have an alternative solution I will be glad to hear it.
You need to do some studying regarding voltage dividers. They are as accurate as the resistors You use. Using trim pots could improve the accuracy but do You have measuring instruments in that class? 58.4 volt with a resolution of 10 mV calls for a 16 bit ADC. For an accuracy of 10 mV You likely need and 18 bit ADC. Working with such precision calls for knowledge.
You cannot charge a lithium battery with that charger - lithium batteries need a specific constant current /voltage charger and cannot be left on float .
For large lithium batteries you also ideally need to balance the cells .
Getting this wrong can be very dangerous
That device is a fully automatic charger , most suited to lead acid and you don’t need to then switch it off or measure any voltages . It is designed to maintain the lead acid battery fully charged by being left on .
If you want to disconnect when fully charged you may also need to remove the battery leads ??
You can safely* leave it running and disconnect manually at some point .
taking usual precautions when charging batteries and assuming that device is of good quality .
It is a cc/cv charger and it can be used to charge lifepo4 batteries just fine.
The problem is it doesn't have any charge termination logic.
That is what I am adding with the relay.
I didn't mention it in the original post but my charging strategy is constant current without constant voltage.
That means that I will set the charger voltage high enough that I won't reach constant voltage phase before I terminate the charge.
The cells are top balanced and the battery is bms protected.
Also they are lifepo4 cells.
Just turning off the ac supply to the converter/charger will terminate the charge just fine.
Thanks.
I ended up using one of these Smart BatteryProtect - Victron Energy for voltage sense and to trigger the relay.
A no code solution and it works as expected.