Battery pack identification

Hi!

I have a battery pack, 6s3p, made of 4000mAh cells. → 12000mAh pack
I was able to get Tenpower 50XG cells, 5000mAh: 6s3p → 15000mAh pack.

Is there an easy way for idendify the two battery packs, so Ardupilot can automatically change BATT_CAPACITY parameter for different battery packs?

The best would be a smart battery system, but I think that may be a little overkill for this purposes. I’m thinking a simpler solution, something like a GPIO or a analog identification voltage…

What’s the best practice for this?

Thanks!

A lua script that reads a GPIO, changes the BATT_CAPACITY parameter and resets the FC.

2 Likes

Thank you @amilcarlucas !

The battery capacity failsafe is triggered by remaining battery capacity. So I think the only parameter I have to change is the BATT_CAPACITY.

1 Like

I may have a use case for this but I don’t understand one thing: What are you connecting to the GPIO to allow it to identify one battery from the other?

Maybe a voltage divider network following a voltage regulator that outputs different voltage levels for the different packs.

Assuming the packs are of differing size, a micro switch that is only depressed by the larger one would suffice.

2 Likes