HNHacker News
TopNewBestAskShowJobs

ejiblabahaba

314 karma · joined November 20, 2021

submissionscomments
ejiblabahaba··on The magic of DC-DC voltage conversion
For output voltages that must be higher or lower than the input, there are other topologies like buck-boost, Ćuk, or SEPIC. In general, DC-DC converters can change their pulse duty cycle to modify the amount of energy transferred per switching cycle, and use a closed-loop control architecture to handle changes in input or output conditions. The control loop has a very fast bandwidth (usually hundreds of kHz) and can quickly respond to input voltage spikes or load transients.
ejiblabahaba··on The magic of DC-DC voltage conversion
TI pretty clearly distinguishes between LDOs and other categories of linear regulators on the basis of using a FET pass element (which is true of neither the LM317 or the LM7800 series, both are Darlington-based).

See section 2: https://www.ti.com/lit/ml/slup239a/slup239a.pdf

ejiblabahaba··on The magic of DC-DC voltage conversion
TPS7A20 is 6.5uA, $0.10/ku. TPS7A05 is 1uA, $0.19/ku. It's not that hard to do better than 400uA!

And if you don't mind coughing up when it counts... TPS7A02 is 25nA, $0.45/ku. Triple the price, but more than four orders of magnitude better leakage.

ejiblabahaba··on The magic of DC-DC voltage conversion
Sure. TPT-PV systems are pretty close to the same concept, with a bigger LCL filter on the output. IMO the tricky part is all the compensation and software design required to minimize ground leakage currents, since that needs real-time analysis of the grid state. I've seen some neat tricks with common-mode current injection off the DC bus using another converter.

Most of the inverter designs offload all the complexity to the software controller in an attempt to keep the power component choice and placement simple. The cool control stuff is mostly available in published IEEE papers, particularly from 2015-2020. It's not open-access, but it's definitely easier to get ahold of IEEE papers than a PV inverter. Once you know what you need to implement, the rest is just software engineering.

ejiblabahaba··on The magic of DC-DC voltage conversion
Maybe TPS61094 or something similar?

https://www.ti.com/lit/ds/symlink/tps61094.pdf

ejiblabahaba··on The magic of DC-DC voltage conversion
As you get close to 5% duty cycle you start having tough problems keeping the control loop stable. You might have better luck stepping down 48V to 12V and 12V to 5V cascaded. Less efficient, but cheaper than blowing up your supplies regularly. And now you get 12V for other stuff.
ejiblabahaba··on The magic of DC-DC voltage conversion
During a college internship, I actually debugged an EEPROM corruption issue on a PLC card all the way back to the power supply the original designer had copy-pasted out of the datasheet. The compensation network they had used was definitely not stable, even though it was exactly the same input and output voltages and circuit elements in their diagram and our application.

I've written my fair share of datasheets now, and while most of us are trying to do a good job and be clear and helpful, sometimes the stuff below the spec tables in the datasheet is, uh... less good than we'd like, for any number of reasons (inexperience, no time, someone left halfway through writing the datasheet, someone forgot to clean up copy-paste from the other datasheet with the slightly different thing, etc). I guess my point is: trust, but verify.

ejiblabahaba··on The magic of DC-DC voltage conversion
There's not much to it. There's usually some stage-1 converters at a subnetwork of panels that step the panel voltage up to a common DC bus voltage with all the MPPT and relevant OTP/OVP/UVP/OCP/etc. Then the big DC bus gets combined across all panels and fed into a three phase inverter with IGBTs or sometimes SiC FETs (getting more common), which just looks like a hex bridge across a three phase transformer. There's gate drivers (maybe isolated), amps for current and voltage sensing (maybe isolated), some protection circuits, and a half-assed flyback to run the fans and the control DSP. Some models might host an MCU for data logging and comms out to a control plane.

There's a handful of projects where the size of the solar field is large enough to make it economic to step up from 400V or 800V bus. I've seen many 1000V buses, a few 1200V and 1500V buses. Honestly it's exactly the same circuits, just with higher voltage ratings; all your switching elements are still giant hockey pucks, you're still doing a three phase hex bridge, etc. The half-assed flyback is sometimes replaced with something a little less braindead.

ejiblabahaba··on The magic of DC-DC voltage conversion
Technically all DC-DC converters at a minimum have an AC current in their input and output capacitances. Since we see a small ripple voltage across the capacitors, it must be true that the direction of the current flowing in the capacitors is alternating.

It is true that in most cases the inductor current isn't changing direction though.

ejiblabahaba··on The magic of DC-DC voltage conversion
Nowadays you can pretty easily find switchers with sub-100nA quiescent current + leakage, e.g. TPS62840 (of course, that's assuming you're at room temperature... FETs at high temperature are all crap for leakage). I note you get 80% efficiency at 1uA out on this device with a 3.6V to 1.8V stepdown config; beats the LDO by a lot, particularly if you spend a lot of your time at uA load currents.

But spin-up time... Yeah that still sucks :)

ejiblabahaba··on The magic of DC-DC voltage conversion
You can use this observation to build a "buck-boost" topology that can make the output voltage larger or smaller than the input voltage. This is common for 1sNp Li-ion batteries that need a high-current 3.3V rail - buck from 4.2V to 3.3V at full charge, boost from 3V to 3.3V at low charge.

There's actually a bunch of ways to make buck-boost style converters that can do both functions, like the cuk and sepic topologies. There's also bidirectional bridge converters that can change input and output direction - you see this a lot on hybrid vehicles (12V to 48V or vice versa) and electric vehicles (48V to 400V and vice versa).

ejiblabahaba··on The magic of DC-DC voltage conversion
In principle yes, in practice it's rarely worth the cost and complexity.

If you're careful about the converter design (keep the high-current loops extremely short, use counter-rotating loops to tightly confine magnetic field within those short loops, use a soft-switching topology to reduce EMI and sharp edges at the switch node, switch quickly or use multiple parallel converters at different phase offsets to reduce magnitude of current ripple), you can get decently low noise. There's a good Jim Williams app note about this.[0]

But it's almost never worth it to do this, since there's LDOs with two or three orders of magnitude better noise voltage. There's a time and a place for a really low noise converter; usually EMI constrained galvanically isolated converters like medical supplies or scientific instruments need them and aren't too sensitive to the cost or development effort. But even then, you'll often find LDOs cascaded on the outputs just afterward, since a good LDO can add another two orders of magnitude of ripple rejection in the switching frequency band.

[0] https://www.analog.com/media/en/technical-documentation/appl...

ejiblabahaba··on The magic of DC-DC voltage conversion
Step 1: You briefly short the inductor. Inductors cannot instantaneously change current, so they will linearly ramp up the current over time. This builds up a magnetic field in the inductor.

Step 2: Stop shorting the inductor. Inductors cannot instantaneously change current, so the now-built-up magnetic field continues pushing current into the switching node. The magnetic field and the inductor current linearly ramp down over time.

The forced current will push charge onto the parasitic capacitance of the switch (from switch to ground), the inductor itself (from inductor output to inductor input), and the reverse diode capacitance (anode to cathode).

Since capacitor voltage is charge over capacitance, once enough charge is forced onto the capacitance at the switch node, eventually the voltage from the switch node to the output capacitance is high enough to turn the diode on in forward conduction. The rest of the inductor current is forced into the output capacitance until the remaining magnetic field in the inductor is depleted.

Step 3) Repeat very fast to reduce inductor size and ripple current required (100s of kHz or MHz speed). Vary the duration for which the inductor is shorted in step 1 according to how much charge you need to put on the output capacitor. You could figure this out open-loop by noting that output current at the high voltage side is in charge per second, output voltage is equal to charge over output capacitance, calculating the time taken for the ramp to grow and decay, etc. Or you could design a closed loop control scheme that looks at the output voltage and converts it to shorted duration for you (this is what most integrated circuit boost converters do).

In summary, you dump current into a inductor to build up a magnetic field, then you use the inductor's magnetic field to yeet current up over a large voltage difference.

ejiblabahaba··on The magic of DC-DC voltage conversion
A few points:

1) LM317 and LM7805 are not LDOs. LM317 is a series regulator, which is way more flexible and has some infrequent but difficult-to-emulate use cases. LM7805 is a linear regulator but has substantial voltage drop relative to a modern LDO. Enthusiast/hobbyist space would do well to consider alternatives to the LM317/LM7805 if they're designing PCBs with surface mount components and very simple power rail needs, but for quick and dirty through hole designs there's few well-known alternatives that are truly LDOs - maybe MCP1700?

2) Enthusiast/hobbyist market isn't too sensitive to bulk pricing. Case in point: LM317 is about a dollar in hobbyist/enthusiast quantities, and LM7805 is comparable. TI lists 1ku TO-220 pricing at $0.65. You're definitely right for real products with mass manufacturing, but hobbyists don't generally haggle over pennies.

ejiblabahaba··on The magic of DC-DC voltage conversion
This is absolutely something you could do, in the sense that no one in electrical engineering will raise an eyebrow if you call your DC-DC conversion with an "AC" step in the middle a DC-DC converter. There's fundamentally going to be alternating currents in any DC-DC design, but typically at the inputs and outputs it looks like an average DC current with a small amount of AC ripple.

The kind of DC-DC converters that work well for megabattery to 10kVDC conversion will look very different from the kind of DC-DC converters that step up your 3.3V rail to 5V for some low-power peripheral, and may actually have individual components that completely reverse current direction for more efficient current transfer. You pretty much need a transformer to handle the high power transfer and voltage ratio mismatch. Depending on the pack voltage you might use multiple stages cascaded, but typical 400V-800V packs can step up to 10kV in a reasonable number of turns (12-25). The battery pack side probably has IGBTs or SiC FETs driving some kind of large bridge switcher (or several parallel bridges); the 10kV side probably has some big chonker diodes in a rectifier bridge, though they conceptually could be replaced with synchronous switches if you could find thyristors with fast enough switching speed and better efficiency (usually it's not worth it). Technically this topology runs the transformer primary current in both directions (hence the rectifier at the output) so I guess this is the "AC" stage in the middle... But it's worth pointing out that the AC portion is incidental to operation, unlike something like a Tesla power wall using an AC inverter to feed power into the AC grid, and a grid-connected charger converting that back to DC.

ejiblabahaba··on CATL has announced a new “condensed” battery with 500 Wh/kg
Based on Google's specs[0], the GMF5Z battery in the Pixel 7 pro is 18.96 Wh and 65 g, which is around 292 Wh/kg.

[0] https://support.google.com/product-documentation/answer/9682...

ejiblabahaba··on AMD CEO: The Next Challenge Is Energy Efficiency
I found this to be a pretty expansive answer to this question: https://chipsandcheese.com/2021/07/13/arm-or-x86-isa-doesnt-...
ejiblabahaba··on IBM Quantum System Two
Aside from the much-touted uses in cryptography, probably the biggest use will be as universal quantum simulators. A lot of quantum simulations are infeasible beyond trivial interactions, because the classical memory and number of computations required to capture and progress the state of the quantum system grows exponentially with each interacting element in the system. Simplifying exponentially increasing memory/computation time requirements to linearly increasing qubit/simulation time requirements will make a lot of chemistry and material science way easier.
ejiblabahaba··on Why Men Are Hard to Help
I think it's possible to be proud of your children for adapting to modern interfaces more quickly and easily than you, while simultaneously remaining cautious about risks those technologies can present. I don't think the straw-parent in your example needs to know how to work the remote (or the computer) to understand most of the important risks, e.g. of unmoderated content consumption. I'm pretty sure it's still unacceptable in most spheres for parents to admit no boundaries or limitations to TV or internet usage, especially conditioned on age or subject matter.

Understanding the technology and understanding its attendant risks aren't completely orthogonal, but neither does one imply the other - or else the kids who "instinctively know about technology" would also instinctively know the risks. On the other hand, it's probably faster and easier for someone who understands the technology to learn about the attendant risks, and understanding the technology may be required to personally validate the risks or to invent the best remediation strategies. But a considerable amount of parenting is, and always has been, received wisdom, for better or worse. I can see an argument to describe "lazy" as neglectful, but I take issue with "stupid": the scope of a parent's best reasonable effort to understand and mitigate technological risks for their children should be conditioned on what level of understanding they can realistically achieve, or else "neglect" is reduced to an IQ test.

ejiblabahaba··on Mental illness, mass shootings, and the politics of American firearms (2015)
On the contrary: where humans are directly involved in the processes of aviation, we're stuck with process control most of the time, and it's clearly insufficient against motivated malfeasance.

When an airplane crashes due to a design failure, thorough investigation often yields a specific design element or combination of elements acting as a root cause; and we have a much broader range of corrective actions available, including modifications to the design for improved redundancy, fault tolerance, higher likelihood of correct manufacture, lower defect rate, easier cockpit control, etc. We can also make process changes, like modifying the maintenance schedule, updating the maintenance checklist, pre-screening critical components for correlated early signs of defect, updating pilot training manuals, etc.

There are also plenty of cases where aircraft crashes occurred due to malfeasance. In rare cases, there might be a design mechanism that can prevent malfeasance, but aircraft are overwhelmingly designed to be built, maintained, and operated by people who aren't trying to misuse them for mass violence (sort of like malls, or public schools). But there's legions of process controls implemented on the hiring and training of the people directly involved with aircraft manufacture, maintenance, and operation.

And yet, Boeing still made a plane that dropped out of the sky twice. And that wasn't even necessarily malfeasance - a good chunk of it can likely be chalked up to second or third order effects of cost saving measures and siloed design teams. I guess you could make an argument for malfeasance, but something something incompetence indistinguishable from malice... in any case, the technical analysis of the design problem is totally solved, but what about the process control by which the design came to be flawed in the first place? I genuinely don't know whether they've modified or added to their process controls to prevent the same design flaw, let alone others not directly related.

Scores of new process controls were put into place in the wake of 9/11 (which incidentally resulted in about the order of magnitude of casualties observed in all US mass shootings since (I think? There's a few different numbers floating around, depending on the threshold for which a mass shooting is recorded)). Many additional "process controls", if you'll allow the tortured reading of the concept, were implemented outside of aviation - a multi-trillion dollar double decade war campaign, passenger luggage and body scanning, and mass surveillance systems, to name a few. 20 years later, and none of this prevented a pilot from doing some unauthorized loops in the Seattle sky before crashing, and very likely nothing except for a lack of killing intent prevented him from flying his plane into a building downtown. Were the process controls implemented after 9/11 effective? I genuinely don't know the answer. Maybe aviation terrorism just has a low base rate to begin with. Maybe I'm uninformed, and our process controls have foiled numerous attempts at terrorism. It's hard to tell with rare events.

Unlike with engineering design work, where you can deduce real responsibility for failure and synthesize a test case to prove the soundness of a design, debugging complex and rare psychological or sociological phenomena is substantially more inexact. Mass shooters are a statistical anomaly against the population as a whole. People are aware of process controls and can deliberately plan subversion tactics. The snarled mess of genetic predispositions and environmental insults that drive someone to terrorism are not guaranteed to be the same across multiple people, especially at the long tail of the distribution. Preventative policy proposals can be misguided or undermined for numerous unrelated reasons, never achieving the desired effect.

None of this is to say we shouldn't try to find and implement effective process controls on mass violence... I just hope to offer an explanation why mass violence can't be approached with the same rigor as human-designed engineering systems with any predictable return on investment.

ejiblabahaba··on Mental illness, mass shootings, and the politics of American firearms (2015)
I've yet to meet a human being that came with an operator's manual, a maintenance manual, schematics, engineering diagrams, a diagnostic and logging system designed to survive catastrophic system failure, or a multi-billion dollar megacorp full of thousands of people whose jobs depend on being able to perform root cause analysis after catastrophe. There's a whole dimension of failure analysis that is uniquely permitted by human-designed engineering systems, thanks to our comprehensive understanding of their construction and capabilities, which allows us to narrow down root causes for failures with great precision. We can do that to some extent with people, for their less complex and more common failure mechanisms (medicine)... but I don't think "deciding to go on a shooting spree at a school" is the kind of failure mode you can pinpoint to some specific hardware or software phenomenon (at least not today), let alone how to fix it. The level of scrutiny applied to human-designed engineering systems, when instead applied to interpreting tail-end-of-distribution human behavior, does not yield an improvement in root cause specificity, and likely wouldn't yield any actionable design improvements. Instead we can really only suggest process controls, based on inferences about which particular parts of the process have the most influence on the outcomes. There are so many inputs into the black box of human behavior, and so many functionally unverifiable assumptions about the mentality of the tail-end-of-distribution people who become mass shooters, that it's extremely challenging to identify process controls that would be both effective and feasible to implement. Harder still when many suggested process controls also contain embedded political goals that have little to do with controlling the process, but which can be speciously furthered under the guise of preventing high-impact system failures.

All this to say, this is a hard problem, composed of thousands of overlapping adjacent elements, we have very little insight (or reliable insight-gathering mechanisms) applicable to the system under investigation, and so throwing money or effort at the investigation is a gamble that a feasible solution exists at all, rather than a process of concrete deduction with a deterministic endpoint. Maybe the optimal amount of scrutiny should be different.

ejiblabahaba··on Analog Devices AD1139
Sometimes it's to handle higher currents, other times it's to reduce the bond wire inductance and improve the high-frequency response. For power pins it can be both. Especially for a multi-chip module with some digital circuitry, there's potential for high-frequency digital transients that need nearby decoupling capacitors through low-inductance loops, or the transistor switching noise can pollute other copackaged circuit supplies; amplifiers also benefit from lower inductance on the supply lines since it stabilizes the frequency response at higher offsets beyond the loop bandwidth of any integrated supply regulation, current sources, bandgap references etc. So you're essentially correct, it's about voltage gradients, but probably at higher frequency.
← PreviousPage 2 of 2