mcqn / my-bikes-got-led

My Baby's Got LED, bike edition
Other
0 stars 0 forks source link

Alternatives to BQ25895M #25

Open huffeec opened 1 month ago

huffeec commented 1 month ago

Alternatives to the TI battery management chips, there are many options that would reduce the BOM costs. It's not obvious to me what the right choice is. Here are a couple to start.

BQ25895M Boost output up to 3.1A @5V LCSC costs 1+ $1.8218 10+ $1.6962

INJOINIC IP5310 Boost output up to 3.1A @ 5V LCSC costs 1+ $0.5921 10+ $0.4979

ETA9740 Boost output up to 2.4A @5V 5+ $0.2242 50+ $0.1782

amcewen commented 1 month ago

From a sweep of my almost-lost-tabs...

INJOINIC IP5322 Boost output up to 3.1A @ 5V Not quite sure why I'd saved that, though can (it seems) output 9V or 12V too LCSC costs 1+ $0.8814 10+ $0.8629

ETA9741 Boost output up to 2.4A @5V LCSC costs 1+ $0.2077 50+ $0.165

amcewen commented 1 month ago

The key features we'd like (though the USB access to the ESP32 isn't a dealbreaker) are:

USB access to both the charging chip (to negotiate higher currents) and the ESP32

That'd be nice, but 99% of the time the board will be on a bike and not plugged into a computer; and once WLED is on it then it'll be upgradeable over WiFi.

USB-C access to support negotiation of higher current (we think/presume)

Direct USB 5V to output 5V alongside charging

So we can run the system while plugged into a power bank for extra running time.

Other notes

amcewen commented 1 month ago

I've ordered one of these boards so we can try out the ETA9740

huffeec commented 1 month ago

As far as I can tell this is the data sheet for that board

amcewen commented 1 month ago

The seeed studio page for it has more detail, including a schematic that can be imported into Kicad.

One of the comments on that does mention:

The only issue with this board is that the output voltage is interrupted when disconnecting USB-C. While charging my wireless mouse, I observed about 1.1 seconds of 0V before it kicked back on with the battery source.

The only other product I could find that doesn't drop output when disconnecting charging USB is 4x the price.

So maybe something to check (and decide if it's a showstopper on that board)

amcewen commented 1 month ago

And I've ordered an IP5310 breakout too

amcewen commented 1 month ago

It's using an IP5328 but here's a talk about someone building a circuit using it to build a crazy power bank: https://berlin-ak.ftp.media.ccc.de/events/mrmcd/mrmcd24/h264-hd/mrmcd24-330-eng-Designing_a_power_bank_inside_a_can_of_Volt_Cola_hd.mp4

huffeec commented 1 month ago

Just as a reference Carl Bugeja's project Code cell uses the BQ24232 I'm not sure how useful it is for us (Max output current 1.7A)

huffeec commented 1 month ago

Initial tests of the ETA on the Seeed board

It can charge and provide output at the same time, but.

Disconnecting the usb input causes a brief output interruption ~1 second Connecting power input while an output load is present prevents charging. So the load needs to be turned off if an input is applied

The IP5310 appears to offer what we need.

It allows input and output simultaneously and there is no interruption if the input is removed.

Running a test to make sure it detects when a battery is fully charged.

amcewen commented 1 month ago

FYI this is the datasheet for the usual batteries we'd pair with it

huffeec commented 1 month ago

Charging light still flashing after several hours. Will test again next week.

Battery voltage has reached 4.14V

amcewen commented 1 month ago

Stuck it on charge again this afternoon and checked in on it about an hour, hour-and-a-half later and the lights were all lit and had stopped flashing. Battery voltage was at 4.138V on my multimeter at that point, so presumably it was pretty close last time.