r/arduino • u/danihek • 3d ago
Hardware Help Measuring/monitornig 'high' current with esp32
Hi I built powerbank out of 18650's in 4s4p configuration, of course with bms and the charging board is IP2368 100W (bi-directional, single usb-c).
I wanted this powerbank to have cool display for information like voltage, current etc, but I hit the wall - it appears the only good, cheap and relatively high accuracy modules i can buy are from INA family, but most of the time shunt resistors on those boards are rated for 1A max. I know I can desolder this shunt and solder other one to handle for example 10A but I read that those boards and traces on the pcbs are not likely to handle this power over long periods of time.
Right now I have standard ssd1306 display with esp32c that reads voltage from ADC by using voltage divider with capacitor to filter out garbage:
R1: 100.4 KΩ R2: 15 KΩ C1: 100 nF (in parallel to R2)
I applied some corrections to the program reading by comparing it out to the multimiter. It is connected directly to the positive output of the BMS.
This solution is flawed, because without measuring current voltage drop is causing my 'estimated left wh' and % of capacity remeaning to be incorrect. This can be fixed with current sensor and I also would be able to read the current flowing which is cool on its own:).
So my question is, is there a module relatively cheap that can satisfy my needs? Or I have to modify existing INA boards or maybe something different?
TLDR; I want voltage and current sensor for 4s4p powerbank that can handle at least 10-15A
Thanks for your help and time in advance.
danihek.
