I'm working on a project in which we are using a bank of inexpensive 100 μF caps (up to 20 of them) to keep a microcontroller powered up long enough to do housekeeping for shutdown when the main power is disconnected, things like close SD card files, etc. Charging these capacitors is a challenge though, for a few reasons:
- The device can accept an input voltage of 12-60 VDC
- The device can be on a very very very long wire or not. For testing it's only on say 6 feet of 22 ga wire, but when in use we could be on the end of nearly 6000 ft of wire, the wire becoming a serious resistor in the circuit.
Currently my design has the capacitors storing the raw incoming voltage (12-60 VDC) and then all voltage regulation after that so we can get the maximum potential runtime of the microcontroller after the main power has been lost. I need to current limit the charging of the capacitors, but then not limit the current available to run the device or keep a current limiting resistor in circuit just burning away power as heat. I've done a number of simulations and haven't found a solution I like.
Simple Current Limiting Resistor
Sure, this would do the job, but it generates a lot of heat and does so especially when the rest of the device is doing tasks with high current demands.
Edit Schematic
MOSFET time delay
This also works, but not great for this application as the input voltage range varies so widely that the time constant that we need to set changes by an order of magnitude. The idea is to charge through the resistor, then after the time delay the MOSFET bypasses it.
Comparator delay
Probably the best option so far - set a ratio at which the comparator turns a MOSFET on to bypass the current limiter. Might need to add some hysteresis in here, but the basic idea is the same.
Edit Schematic
The question
So the question is - what am I missing here? Though the problem is complicated by a wide input voltage range and potentially high resistance from the wire, it seems like the solution should be a bit less complex. In general I expect the device to draw about 1-1.5 W during operation with peaks of another 0.5-1 W when some active things are happening.