hi guys i'm new to arduino programming and really want to build a sort of simplified battery management system that will cut off the charging of the battery once it reaches a set voltage as well as cut off when discharged to a set voltage and i'm really not too sure how to even start. please do advice.
12v lead acid battery
cut off charging at 12.8/12.9v ( green led light up)
cut off discharge at 10.8-11v (amber led light up)
connection error (red led)