hello, i am fairly new to arduino. i want to display battery percentage of 8 18650 lithium cells(3.7-4.2v, and each one has a capacity of 2550 mAh) in parallel on a 16 x 2 LCD with an arduino uno.
i have tried searching on google but i cant find what im looking for, all i need is code to measure the batteries voltage and turn that into percent, so that every 0.02v below 4.2v is 1 less percent. 0% would be equal to 2.2v and 100% would be equal to 4.2v. please answer as fast as possible i need this within 3 hours!
thank you for helping,
David in Seattle, WA