Articles

Charging from solar, a vehicle, wireless or PoE, and from more than one source

Every source other than a regulated wall adapter has a catch. A solar panel is weak and changes with light and temperature, so its charger has to hold the panel near its maximum power point, typically 70 to 90 percent of its open-circuit voltage, instead of dragging it down. A “12 V” vehicle supply may sit anywhere from 6 to 16 V, drop to 3 V during a severe cold crank, surge to 79 to 101 V in an unsuppressed load dump, and be connected backwards. Qi wireless charging delivers 5 or 15 W, up to 25 W in its latest version, through a link whose recommended minimum efficiency for 5 W transmitters runs from 25 to 65 percent, and part of the loss ends up as heat beside the cell. Power over Ethernet arrives at 37 to 57 V with a budget set by the switch, at most 13 W at the device on the first type and 71.3 W on the highest. With more than one source, you have to decide which wins, stop each one back-feeding the others, and make the charge survive sources arriving and leaving partway through.

The source also decides what kind of charger you can use. USB sources are in the article on USB current, and how a running system shares the input with the cell is in the power path article. The charge phases are defined in How lithium-ion charging works.

Linear or switching: the input-to-battery ratio decides

A linear charger is a regulated pass transistor between input and cell. In constant current, the input current equals the charge current, so its efficiency is the cell voltage over the input voltage, 72 percent for a 3.6 V cell on 5 V, and the rest is heat: (Vin − Vbat) × I.

The usual check is done at nominal values: 5 V in, a 3.7 V cell, 500 mA, (5 − 3.7) × 0.5 = 0.65 W. That’s the typical case. The worst is the highest input with the cell just past the precharge threshold, where full current starts at the lowest cell voltage, and one linear charger’s datasheet works it that way:

  • Input at its maximum: 5.5 V, the top of a 5 V ±10 percent supply, which is also the most a USB port may supply at 5 V.
  • Cell at the lowest precharge threshold: 2.7 V. Thresholds run from about 2.5 to 3.0 V across chargers, each with its own tolerance.
  • Current at the top of its tolerance: 550 mA for a 500 mA setting. Two resistor-set chargers specify their current-setting gain to about ±10 percent.

That gives (5.5 − 2.7) × 0.55 = 1.54 W, well over twice the nominal 0.65 W, and the same datasheet notes that in its five-pin SOT-23 package, 1.54 W puts the charger into thermal regulation. Chargers hold their die at a set limit, typically 90 to 125 °C, by cutting the charge current, so the charge slows rather than fails, and three chargers’ datasheets suspend termination meanwhile.

On one sample board, a linear charger dissipating 0.5 to 1.2 W in a tiny package inside a closed case hit its thermal limit and charged at about half its set current, so a charge took about twice as long. The heat stays in the product, a few millimetres from the cell, and it counts toward the cell’s own charge temperature limit, which the article on charge temperature covers.

At charging currents like these, a 12 V input rules a linear charger out: from the top of a 12 V vehicle range, the same cell and current give (16 − 2.7) × 0.55 = 7.3 W. At the other end, a linear charger needs headroom: one specifies a dropout of 325 mV typical and 500 mV maximum at 0.5 A with the output at 4.15 V, so at full current near the end of constant current it needs about 4.65 V at its input, which a weak source or a long cable can take away.

A switching charger avoids most of that heat. One states 93 percent charge efficiency at 2 A and 91 percent at 3 A, though not at which input voltage, and these are best-case figures. At 2 A into a 3.8 V cell, 7.6 W, 93 percent is a loss of about 0.57 W; a linear charger at the same point, on 5 V, dissipates (5 − 3.8) × 2 = 2.4 W.

Which switching topology follows from where the input range sits against the battery’s range, from its precharge threshold to its charge voltage:

Input against battery Charger Example
Always a little above the cell, at low current Linear 5 V to one cell at a few hundred milliamps
Always above the battery’s charge voltage plus headroom Buck A regulated 12 V adapter to two cells (8.4 V)
Always below the battery’s lowest voltage Boost 5 V to three or more cells in series
Overlapping Buck-boost 6 to 16 V vehicle supply to three cells (up to 12.6 V); USB PD’s 5 to 20 V to two to four cells

A plain boost has a direct path from input to battery through its inductor and diode, so it can’t limit current while the battery is below the input, as a two-cell pack precharging from 5 V would be; boost chargers that allow it add a disconnect switch or a linear precharge stage. A buck charging two cells from a 12 V vehicle supply simply stops below about 9 V, during a crank or on a low supply code. A product charging from several sources inherits the widest range of all of them, which tends to push it toward buck-boost.

Solar: weak, varying, and gone at night

A solar panel’s voltage collapses if you take more current than it can give, and one point on its curve, the maximum power point, delivers the most power. The simplest way to track it is constant-voltage regulation: the charger turns its charge current down whenever the input falls to a set voltage, held within ±0.6 percent on one solar charger. Another periodically stops switching, measures the open-circuit voltage, and sets the regulation point at a chosen fraction of it, since the maximum power point is most commonly between 70 and 90 percent of that voltage.

Temperature moves the point. A silicon cell’s open-circuit voltage falls by about 2 mV per °C, and one charger’s design example uses an 18-cell panel with an open-circuit voltage of 10.3 V and a maximum-power voltage of 9 V at 25 °C, falling 38 mV per °C. Fix the regulation point at 9 V and put the panel in full sun at 65 °C (an example for a dark panel in summer): its open-circuit voltage is now 10.3 − 0.038 × 40 = 8.8 V, below the set point, so the charger delivers nothing on the sunniest day of the year. That’s why the design example adds temperature compensation. The cold end sets the input rating: the same panel at −10 °C (example) reaches about 11.6 V open-circuit, and a larger panel scales with it.

A ratio-based tracker avoids that but has catches of its own. On the charger described, it’s off at power-up until firmware enables it, the battery carries the system while it samples, and it can’t be enabled while the battery is below the minimum system voltage: a solar-only product with a flat cell can’t track when it most needs to.

A panel too weak to supply the termination current would fool a charger that only watched current, but two chargers’ datasheets suspend termination while they’re limiting for input voltage. The safety timer is harder. A 2 Ah cell on a panel that manages 200 mA for six hours of usable light (example values) gets about 1.2 Ah a day, so a full charge spans two days and a night, against fast-charge timers of 5 to 20 hours. One charger halves its timer rate in input regulation; check in the flow chart whether the timer restarts when the input returns. If it doesn’t, the second day’s charge faults; if it does, the timer no longer bounds the total charge, so a cell that never terminates is never caught, and firmware counting the charge delivered across days has to do that job.

At night the input sits dark for hours. A panel whose open-circuit voltage is well above the battery draws little, but a panel close to the battery’s voltage, a converter’s body diode or an input divider can drain the cell into it unless the input is blocked by a diode or back-to-back switches. Add the charger’s own battery drain with no input, from its electrical table, and over a long dark spell the total adds up.

Vehicle supplies: 12 V and 24 V

ISO 16750-2 describes the electrical loads on equipment in road vehicles. The supply codes, overvoltage, jump-start, cold-crank and load-dump values here are from its 2023 (fifth) edition; check the reverse-connection test in the edition you design to. “12 V” isn’t one range. The standard gives supply codes: for 12 V systems, from 6 to 16 V (code A) up to 10.5 to 16 V (code D); for 24 V, from 10 to 32 V (code E) up to 22 to 32 V (code G). A charger input “for 12 V vehicles” has to say which code it meets.

Beyond the steady range, the tests a charger input has to survive or ride through:

  • Long-term overvoltage, a failed alternator regulator: 18 V for 60 minutes on 12 V systems, 36 V on 24 V.
  • Jump start: 26 V for 60 s, on 12 V systems only, simulating a 24 V vehicle jump-starting a 12 V one, not an ordinary jump.
  • Cold crank (the starting profile): on 12 V, a drop to 4.5 V, then about 6.5 V while the engine cranks; in the severe profile, 3 V and 5 V. On 24 V, 8 and 15 V, or 6 and 10 V. The standard defines more severity levels than these two, and the one that applies is agreed with the vehicle maker.
  • Load dump, the surge when the battery disconnects while the alternator is charging it. Unsuppressed (test A): 79 to 101 V on 12 V, from a source resistance of 0.5 to 4 Ω, lasting 40 to 400 ms; 151 to 202 V on 24 V. Where the vehicle suppresses it centrally (test B), 27 to 35 V on 12 V by severity, and about 58 V on 24 V; some vehicle makers specify up to 42 V.
  • Reverse connection: on 12 V, 14 V applied backwards for 60 s in summaries of earlier editions; on 24 V the test applies the 24 V system’s test voltage reversed.

Load dump is where small products get hurt. The standard pairs the high voltage with the high source resistance and the low voltage with the low one, unless agreed otherwise. Into an ideal clamp at 36 V (an example for a 12 V system), that’s (101 − 36) ÷ 4 ≈ 16 A or (79 − 36) ÷ 0.5 ≈ 86 A at the start of the pulse, decaying over up to 400 ms, and the test repeats the pulse. A real suppressor that has to stand off the 26 V jump start clamps well above 36 V at those currents, and few small ones can absorb the energy, which is why compact inputs often use a series surge-stopping switch that disconnects or limits instead. Where the vehicle suppresses it centrally, the input can be rated for the suppressed level instead, with a clamp or series surge-blocking switch, and everything behind it rated for the clamped voltage.

The fuse is easy to miss. A fuse’s DC voltage rating has to be at least the system’s maximum voltage, and small surface-mount fuses commonly come rated at 32 V DC, some at 65 V. 32 V covers a 12 V system’s steady range, leaves no margin at a 24 V system’s 32 V upper code and falls short of its 36 V overvoltage test. A fuse that opens during a load dump sees the surge, and its breaking capacity has to cover the current a vehicle battery can deliver into a short.

Reverse protection is usually a series diode or an ideal-diode controller with a MOSFET, which regulates its forward drop to about 20 mV (13 to 29 mV) and turns the MOSFET off within about 0.45 µs typical when current reverses. A Schottky costs its forward drop, a few tenths of a volt, at full current all the time, and its reverse leakage rises steeply when it’s hot.

On a permanent feed, a product that keeps charging with the engine off drains the vehicle’s battery while it’s parked. An ignition-switched feed avoids it. Input voltage is a weaker guide than it looks: the standard’s test voltages are 14 V with the alternator running and 12 V on the battery alone, but vehicles with smart alternators or stop-start can run near the battery’s resting voltage with the engine on. A cutoff on the vehicle’s voltage, set to leave enough charge to start it, is the safer rule.

Wireless: the heat lands next to the cell

Qi defines a Baseline Power Profile up to 5 W and an Extended Power Profile up to 15 W; Qi2 added magnetic alignment at 15 W and, from version 2.2 in April 2025, up to 25 W. A receiver wanting more than 5 W has to negotiate it, and won’t get it on a baseline transmitter or one powered from a 5 W supply.

The link is lossy. For 5 W transmitters, the specification’s recommended minimum system efficiency, from the transmitter’s DC input to the receiver’s output, is 25 to 65 percent depending on the reference receiver and load. At 55 percent, delivering 5 W takes about 9.1 W, and about 4.1 W is lost between the pad and the product. How that splits depends on both designs, but the pad’s coil sits under the product, and the product’s coil and rectifier sit between it and the cell. One receiver chip quotes 93 percent peak AC-to-DC efficiency, about 0.38 W at 5 W out, before the coil’s own loss. Feed its 5 V output to a linear charger at 1 A with the cell at 3.7 V and the charger adds (5 − 3.7) × 1 = 1.3 W more. Metal near the coil heats in the field as well, the cell’s own case or foil included, which is why a receiver coil has a ferrite shield between it and the cell.

That makes it a cell temperature problem. Many lithium-ion cells may charge only up to 45 °C, while a charger with the common JEITA-style zones keeps charging, at a lower voltage, from 45 to 60 °C; on such a cell the thermistor network has to move the charger’s hot cutoff down to 45 °C. The article on charge temperature covers the window and where to put the thermistor. Put the thermistor on the cell, not on the coil or the charger, and if the product runs warm on a pad, charge it more slowly there than from a cable.

The rectifier voltage moves, too: one receiver chip runs its rectifier from 4 to 10 V with overvoltage protection at about 15 V, and the specification only limits the transmitter to 20 V at a properly designed receiver. Parts on that node need that rating, not the 5 V of the output.

Power over Ethernet: isolated and budgeted

IEEE 802.3 sets what a powered device may draw by type and class, and the cable’s worst-case loss is allotted in advance, so the device gets less than the switch puts out:

Type At the switch (minimum) At the device (maximum) Device input voltage
1 15.4 W 13 W 37 to 57 V
2 30 W 25.5 W 42.5 to 57 V above 13 W
3 60 W 51 W 42.5 to 57 V
4 90 W 71.3 W 41.2 to 57 V

These are the maxima for each type; within a type, the device’s class sets a lower budget.

The device presents a detection signature, then a class, and the switch grants power to match. A switch with less to give grants less, so a device that needs more than 13 W has to see the higher grant confirmed before drawing it. The converter’s loss, the system and the charge all come out of what’s granted. With 13 W, an 85 percent converter and a 4 W system (example values), about 7 W is left for the charger, and through a 90 percent switching charger (example) about 6.3 W into the cell. A charger sets current, not power, and the pack’s power peaks at its charge voltage, so for a two-cell pack that’s 6.3 ÷ 8.4 = 0.75 A, not the 0.85 A the nominal 7.4 V suggests. Set the charge current from the granted power with the system at its worst.

The standard requires isolation between the cable’s power interface and the device’s other accessible conductors, a USB port or a metal case for instance, so on a product with another port the charger and cell sit on the secondary side of an isolated converter. A second input, such as USB, joins that secondary ground, and it mustn’t bridge the isolation.

A device that draws too little for too long, charge finished and system asleep, can also have its power removed: the standard sets a minimum current the device has to draw, and how often. Then it’s running on the battery that should have been kept full. And a charger switched on before the switch has finished powering the device up can trip it into a restart loop.

Barrel jacks, unregulated adapters and hot-plug spikes

An unregulated adapter is a transformer, rectifier and capacitor. Lightly loaded, its capacitor charges to the peak of the transformer’s output, so the voltage rises well above the label; one maker’s example puts a 9 V adapter anywhere from 6 to 15 V across load and a line voltage tolerance over ±10 percent. The charger’s input rating has to cover the top of that range, and a barrel jack accepts whatever adapter fits the plug, including reversed-polarity and AC-output ones, so assume the wrong one will be.

Plugging in a powered adapter makes a spike. The cable’s inductance and a low-loss ceramic input capacitor form a lightly damped resonant circuit, and an application note on exactly this measured peaks of 41 V and 57.2 V on a 24 V adapter with a cable of 3 to 10 feet, against ceramic capacitors of 22 µF and 10 µF. Adding a second 22 µF capacitor with 0.5 Ω in series levelled the transient at 30 V; a 30 V suppressor clamped it to 35 V but didn’t eliminate it. Rate the input for the peak or damp it, on every hot-plugged input, not just USB-C.

More than one source

Priority

A diode-OR lets the highest voltage win. One dual-input charger instead takes the first input to arrive and lets the host switch over a serial bus. Or firmware applies a fixed order, such as cable before pad. Highest-voltage-wins goes wrong with solar. An 18-cell panel open-circuit at 10.3 V outranks a 5 V USB input until it’s loaded. Through a plain diode-OR, it’s then pulled down to just above the USB voltage and shares the load, far below its maximum power point; an active selector that picks the higher voltage can switch back and forth between them. A fixed priority avoids both, and it needs back-to-back switches on each input, since a single MOSFET’s body diode lets the higher source through whatever the priority says.

When a product has more than one input, I’d rather see the priority written down as a table, one row per combination of sources, before the schematic is drawn than find it out in the lab.

Blocking each source from the others

Each input needs its own blocking element. A single MOSFET conducts through its body diode in one direction even when off, so blocking both ways takes two in series with their body diodes opposed; the dual-input charger above drives such a pair for each input. It also refuses to turn an input’s pair on while its common output is already powered, which is break-before-make between sources. An ideal diode blocks reverse current with about 20 mV of forward drop instead of a Schottky’s full forward voltage.

The back-feed paths to check:

  • One input onto another’s connector: a barrel jack or vehicle feed driving the USB receptacle’s VBUS pin, which a USB sink must never do; the USB article covers why.
  • The battery onto an input: through a converter’s switch body diode, or a synchronous converter running backwards when its input sags, into a dark panel, an unpowered vehicle harness or a computer’s USB port.
  • A powered input into an unpowered processor through its I/O protection diodes: a “source present” sense line or a charger status pin driven from one input, while the processor’s own rail is off.

That last one half-powers a processor meant to be off; what to check before you order an AI-designed board has a sample-board case. With several sources the cases multiply, so walk every combination of plugged sources, host and debug connector, with the battery present, flat and absent, and check each sense and status line against the rail of whatever it drives.

Changing source mid-charge

When the input changes, the input limit has to change with it. One charger runs Battery Charging detection whenever an input is plugged in and sets its input limit from the result; with that detection turned off, it keeps the previous limit. A limit carried over from a 3 A adapter to a weaker source pulls it down. Each input has its own basis for the limit:

Source Input limit comes from What changes during a charge
USB and USB-C Enumeration, Battery Charging detection, the CC level or a PD contract Suspend, a changed advertisement, a hard reset
Solar The panel’s maximum power point, held by input-voltage regulation Cloud, shade, panel temperature, night
Vehicle The fuse and harness, and the agreed supply code Cold crank, load dump, engine off
Wireless The negotiated power, 5 or 15 W Alignment, the pad’s own supply, the product’s temperature
PoE The class budget at the device, minus the converter and system The device’s own load falling below what keeps power on
Unregulated adapter The adapter’s rating, unknown in the field Voltage with load

The changeover itself is a short power cut: the system falls back on the cell, or resets if the cell is flat; the power path article has a sample-board case of a slow handover. The charger may also see the input disappear and start a new charge cycle when the next arrives, with fresh timers. A product that switches often, such as a wireless one picked up and put down, is then topped up each time instead of resting, so check what the charger does when an input returns to a full cell.

Several packs on one supply turn the problem around: which pack gets the supply when it can’t feed them all, and how a full pack is kept from feeding a flat one. The article on custom chargers covers that design.

If your product has to charge from more than one of these and you’d like the inputs, the charger and every combination checked before the first build, get in touch.

All articles

Have a project in mind?

Based in southern Indiana. Working with clients anywhere, including companies across the Midwest.