Well, Ive caught myself in a nice learning experience.
In my original post I was describing a PT5000 as a charger.
Yet, it seems that there are dedicated charging ICs which very closely resemble what I like to achieve.
For educational purposes lets stick to the 5V bus.
I came across a whole bunch of ICs which support USB OTG.
Which basically means the charger can go into reverse operation.
When providing power on the USB connection these chips can utilize that power to charge a Li-ion cell. Some ICs even support 3A charging current.
When there is no power provided at the USB connection they can go into OTG mode. Which turns the IC in a boost convertor, draining the battery and supplying power to the USB connection.
(image is just an example)
There are so many ICs and so many manufacturers, its hard to know where to start. Some have very low discharge current. (500mA for USB 2.0 support) Yet, some offer up to 5A discharge current.
Then there are different power paths.
https://www.monolithicpower.com/how-to-select-lithium-ion-battery-charge-management-ic
In this use case, it would be a pass-trough or NVDC power path.
Meaning that the IC is in control whether it is in Charging, or reverse operation.
However, I still wonder if multiple of these ICs can be used in parallel.
And how to actually ensure that the cells discharge when you want them to.
rev0 said:
Welcome to the rabbit hole! I encourage you to use as much useful info you can get from my design, my github is there and has all the hardware and software design, my project is fully open source.
Hahaa, Well a rabbit whole it is!
Im alternating between, Simple
-> Complicated :huh: -> Simple
-> Complicated :huh:
Im more of an Hardware engineer myself. Yet more in the area of PLC and relays.
As a person, most of the time I am looking for existing solutions to expand upon an connect in a creative way.
Well, my IC path, might be more in your area of expertise.
Im very curious what you think of my thoughts on the usage (or mis-usage) of USB OTG devices.
(I'm at the point that I want to cut some corners to keep progress)
rev0 said:
Yes, right now it requires a PC. Ideally I would like to add a way to connect each cycler to an ESP8266 to upload data directly to a server/cloud, but alas, I am a hardware engineer that knows just enough programming to be dangerous. If you want, you can see how bad a programmer I am by looking at my CCR source code, all 4727 lines of non object oriented mess:
https://github.com/jkenny23/CCR_v2.0/blob/ccr_v2p4/stm32_cycler_v2p4.ino
That is quite some impressive code. But to be honest TL;DR for know...
Actually designing a whole charging / discharging system from scratch, wasnt my objective.
Actually it is a very small part of my project. But it got so interesting, so spent already quite some time on it.
It seems that you are doing stuff in your code, which I try to find an dedicated IC for.
Its quite a wish list:
I2c communication
Power path control
Temp protection
Reverse Polarity protection
Enhanced charge mode (pre charge, constant current, relative quick 2A)
Discharge / Reverse / boost mode
IR measurement
Undervoltage protection
Fuel guage
And so on...
Already Quite impressed that there are a lot of these devices to choose from. But it's hard to find the right tree in the forest. :blush:
Specifically in an new area of expertise, I get lost quickly.
Maybe my idea of finding the right IC, stick it on a break-out board (or let jlcpcb do that) connect it to an Arduino and re-use bretty wattys code is way too optimistic.