I am trying to make a battery capacity tester (3.7v li-ion 18650 battery) using arduino uno. If possible i'd like to test 20 or more batteries at the same time. I need to measure the voltage of each battery every 1 second.
The uno has 6 anolog inputs iirc so too little for this application. I think using analog multiple extenders (connected using I2C) chained together to create enough analog inputs. For example this one: https://nl.aliexpress.com/item/32858973834.html?spm=a2g0o.productlist.0.0.57206143DNgWKp&algo_pvid=526d42f2-f7ee-4781-932b-947744ac631e&algo_expid=526d42f2-f7ee-4781-932b-947744ac631e-0&btsid=89c452fa-1d7c-4ae9-9dd5-ed8fc9bff128&ws_ab_test=searchweb0_0,searchweb201602_8,searchweb201603_52 Do you think I'll be able to get relatively accurate voltage measurements using this approach?
The purpose of the circuit is to measure the amount of mah (battery capacity) of the 18650 battery which is being discharged via the 10Ohm resistor. The battery will be discharged from 4.2volt (fully charged) to approx 2.5V using the 10ohm resistor, each second the voltage drop over the resistor will be measured and using it and the time passed the integral of time*current will be calculated to determine the capacity.
This is the basic circuit used to connect each 18650 battery, the ANALOG1 pin will be connected to the input of the analog extenders: (I based it off of the circuit from this video: https://www.youtube.com/watch?v=WScPyfQz_f8) The idea is to measure the voltage drop over the 10Ohm10W power resistor and calculate the current using the known resistance value, calculate the integral of current*time to get a capacity value for the battery.
Is this a good approach? Would you recommend using analog extenders for this? If not what would be a better solution? Thank you very much!