The magic of DC-DC voltage conversion (2023)
lcamtuf.substack.com
lcamtuf.substack.com
There are boost converters, buck converters, and ones with transformers. With a transformer you can isolate the input from the output, which is mandatory for safety if you're driving the thing from the AC power line.
Here's one of mine. USB 5VDC in, 120 VDC out, to operate antique teletype machines that need 60mA 120VDC.[1] The basic circuit is simple, but there are multiple surface mount ferrite beads and small capacitors to keep the spikes from coming out via the input USB, output, or as RF. LTspice simulation was needed to pick the values for those, so as to minimize noise in both voltage and current.
[1] https://github.com/John-Nagle/ttyloopdriver/blob/master/boar...
There's one specific sub-type called a Cockroft-Walton voltage amplifier.
https://circuitcellar.com/resources/quickbits/cockcroft-walt...
Cockcroft went on to great acclaim for "Cockcroft's Folly".
Ben Eater also did a nice introduction to charge pumps by building a simple one on a breadboard: https://www.youtube.com/watch?v=4alV5LzHLE4&t=704s
They've downsized to a Tesla coil.
Something else stuck in my head from that museum was the Operation Lifesaver displays around the model train exhibit. I think my dad was a little freaked out by how many times I wanted to watch the video of the train hitting a car.
Honestly, I'm a little disappointed every time I visit a museum because of how much fun I had at MSI as a kid. I think a lot of that was from being a kid, but ... good museum.
In some applications you can also use almost any linear voltage regulator - put a resistor between your linear regulator's ground and output pins, and you'll get a constant current.
Of course if your application involves the amount of power dissipation that requires a heatsink, you'll probably end up with a discrete component for that anyway :)
Q2-R5 is not the inrush current limiter. The inrush current limiter is U2. That's an AP2553W6.[2] That's a part designed to solve a specific problem - plugging into a USB port. USB port ICs have overcurrent detection which will quickly turn off power from the port if you try to pull too much power. This keeps external devices from pulling down the +5 rail in a laptop or pad with limited power available. The port turns off until reset. (On Windows this used to take a reboot; Linux usually resets if you close and open the device.)
So if you plug in something with a large filter capacitor, the inrush current as the capacitor charges can momentarily cause an overcurrent condition and shut the port down. The AP2553W6 has both a linear regulator and a switch. When everything is good, the switch is closed and power flows through. If there's a momentary overload, it current limits. If there's a steady overload, it cuts power.
Devices which don't do this power startup properly are often the cause of problems mentioned in searches for "USB port stops working". Not doing this properly saves about $0.25 in parts cost in volume. Such devices will work fine plugged into a USB charger or a desktop machine, but may shut down a USB port on a laptop or tablet.
(This is for USB-A. USB-C is more complicated.)
[1] https://github.com/John-Nagle/ttyloopdriver/blob/master/boar...
[2] https://www.diodes.com/assets/Datasheets/products_inactive_d...
Yes I'm looking for a device family that can do exactly that, but for a large range of currents and voltages (48V, 5A max). Preferably with just two terminals.
Those are safety devices. If you're worried about a sudden load introducing a glitch on the 48VDC rail, you may need faster response. It wouldn't have worked in my application, because I need something that will current limit before the overload detector at the power source end trips.
Here's a bigger current limit switch.[2] Versions are available that can handle 48VDC 5A. Texas Instruments calls it an "e-fuse". Not two-terminal, though; it needs some external resistors and caps, plus a connection to ground. Turns off in 280 nanoseconds on a short circuit. This is functionally similar to the part I used, but for higher voltages and currents in industrial applications. TI has many useful tech notes available.
[1] https://community.element14.com/technologies/experts/b/compr...
That's actually usually not true, as the vast majority of DC to DC converters are step-down converters: you do not want the voltage to spike. And in general, it isn't really a "spike".
A better way to think about what is happening is that passing a current from a power supply through an inductor transfers energy into the magnetic field. When you stop doing that, the magnetic field diminishes, transferring energy back into current. But this time, you direct the current into the circuit.
The trick is that by picking the timing and other parameters correctly, you can pick the voltage of the downstream current. Specifically, you can do this because the voltage across the inductor is a function of the slope of the strength of the magnetic field around the wire in the inductor. Pick a different slope, and you can pick a different voltage. Since you usually want a stable voltage, the graph of the magnetic field strength will be (roughly) a sawtooth, and the graph of the induced voltage will be (roughly) a square wave (I am simplifying here for understandability!). A sawtooth shape has a consistent current slope, which leads to a consistent voltage.
That energy transfer makes an “interesting” party trick.
Get the step up/down winding transformer from an old CRT TV. Get rid of other components*, and wire it with a 9 volt battery on one side, and connect the other with + to conducting surface on three sides of a box with - to the three opposing sides. Put a switch on the underside that opens the circuit.
To pick up a box generally requires touching two opposite sides. Opening the circuit dumps the field into the person picking it up who gets a momentary jolt.
It's enough to run through multiple people: hold hands in a ring of 2 - 10 people, and have two people at ends of the ring each press an opposite side of the box and pick it up, the whole ring gets the jolt!
As a grade school science experiment, have the experiment display say something along the lines of "Guess the weight" so people pick up the box and get a surprise.
For more about retro transformer circuits, see:
https://hackaday.com/2016/07/04/retrotechtacular-dc-to-dc-co...
This is sort of a single vibe (the switch opening) of a vibrator-transformer-rectifier transformer, to collapse the magnetic field that dumps into the still "closed" side through the person picking it up. No rectifier since it's not AC, it's just C. So the same principle, without the rest of the parts.
* WARNING: Don't look up the rest of the owl. Don't build this. Don't try this. Don't let anyone touch this.
(Wasn't it great learning in an age before cars had seatbelts, before push mowers had kill bars, and when nothing had warning labels?)
I was mostly tongue in cheek about the danger above, as the most dangerous step would be relieving a previously functional CRT of the transformer block. The CRT discharge can kill you.
Using an ignition coil should work (I didn't try it) and is likely safer to source if you're getting it from something assembled instead of from a used parts bin.
As for the rest of the owl, this is from memory, nearly half a century ago, so, yeah, disclaimers:
---
# How to Build a Prank Shock Box for a Science Exhibit
This fun project will surprise your friends with a harmless electric shock when they pick up a prank box to guess its weight. Here’s how you can build it and how it works.
## Materials:
- 9-volt battery
- Step-up transformer (designed to increase voltage)
\_ consider a flyback transformer from old CRT or auto ignition coil, talk to circuit electrician expert
- Switch (spring-loaded or pressure-based)
- Wires
- Small box (to hold the circuit)
- Electrical tape
- Conductive foil or metal strips for accessible sides of box
## How It Works:
This circuit uses a step-up transformer coil to generate a small electric shock when someone picks up the box. While transformers typically work with alternating current (AC), here you use direct current (DC) from the 9-volt battery. The trick happens when the circuit opens as the box is lifted, causing the transformer’s magnetic field to collapse and induce a voltage spike.
When the box is lifted, the switch opens, cutting off the current from the battery. This sudden interruption collapses the transformer’s magnetic field, generating a quick, harmless jolt.
## Steps to Build:
1. Assemble the Circuit:
- Connect the 9-volt battery to the primary side of the transformer, with a switch in between. The switch should stay closed when the box is at rest and open when it’s picked up.
- Wire the secondary side of the transformer to two sets of exposed contact points on the outside of the box: one set connected to the positive side and the other set to the negative side of the transformer.
2. Add Conductive Surfaces:
- To make it more effective, cover three sides or faces of the box with conductive material (like aluminum foil or metal strips) connected to the positive output of the transformer. Then cover the opposite three sides with conductive material connected to the negative output of the transformer.
- When someone picks up the box, their hands will naturally touch both a positive and negative side, allowing the shock to pass through them.
3. Install the Switch:
- Position the switch on the underside of the box so that it opens when the box is lifted. You can use a spring-loaded or pressure-based switch that triggers when the box is moved.
4. Test the Circuit:
- With the box resting, the current will flow through the transformer, building up a magnetic field. Once someone lifts the box, the circuit breaks, causing the field to collapse and induce the shock.
5. Secure the Box:
- Place and affix all the components securely inside the box, bringing your two wires through the sides and making sure the exposed contact points are positioned on opposite sides of the box. Tape down any loose wires.
## Science Explanation:
This project uses Faraday’s Law of Induction, which states that a changing magnetic field induces voltage. The transformer converts the collapsing magnetic field into a brief, high-voltage spike, delivering a small shock to whatever is completing the high side circuit when the low side circuit is opened. Although transformers usually work with AC, you’re using the moment when the DC current stops to mimic that effect.
https://en.wikipedia.org/wiki/Faraday%27s_law_of_induction
The conductive material on the box ensures that when someone lifts the box, their hands make contact with both the positive and negative sides, completing the circuit for the jolt.
## Safety Note:
When done correctly, this project delivers a tiny, harmless jolt, similar to static electricity. Always use low power, an appropriate transformer, and avoid using higher voltages or currents. Consult with a TV repair expert or similar on your design before starting. DO NOT TOUCH ASSEMBLED CRTs. Let the TV repair person do it. She'll have parts anyway.
That's not my understanding of how down-converters work.
Rather, there's a big fat output capacitor that the load is connected to, and you keep topping off its charge with a MOSFET gated by a feedback loop that monitors the capacitor's voltage and actively adjusts the PWM duty cycle to keep the capacitor charged at the desired voltage regardless of what the load does. If you your input is 100V and your desired output is 10V, you just keep charging a capacitor to 10V, disconnect when it gets to 10V, and keep repeating that at hundreds of kHz, faster than the load can appreciably drain the capacitor. Inductors and diodes are "optional", but added to absorb current spikes. Their main principle doesn't rely on induction though.
Boost converters, on the other hand, rely on inductors to achieve higher output voltages than the input.
I made the design my own by mounting the transformer to a 4x4 piece of scrap plywood, and then cutting out two square 'finger pads' from a tin can, and screwing those into the plywood also.
Add in some wire, a switch, a battery, and a little patter, "place your two fingers on the shiny pads and this will make music....using your mouth as the speaker" and your parents get a call from the principal.
Honestly, I always thought I was the only one who did this. My dad was a practical joker with a sense of humor that only he understood.
My dad died last February. This was a wonderful memory that made me smile. Thanks Hacker News for two memories in a weeks time!
By slope, you mean rate of change (over time)?
Right. I've mostly dealt with up-converters, which have to store and release energy somewhere.
(Although going 5V->120V with USB as the power source, I can understand how "dead short" was a decent intuition)
Right. Which is why under-designed AC-line powered power supplies can catch fire. The failure mode of MOSFETS is usually to the "on" state, so the switch staying on is quite possible.
The problem with fires isn't the type of circuit per se, but rather that anything connected to the mains can unleash a significant amount of power. And that designing/building for safety increases cost, for additional components or even things like larger PCB area for creepage. We basically take a lot of the work that goes into electrical safety for granted.
You might be doing a short through some parasitics for a bit, but in the ideal case, you're not.
The new chips typically do soft start on their own, the problem is you need input caps, which really are a dead short when first connected.
Which wouldn't normally be an super big issue with small ceramic capacitors, except the cable inductance forms an accidental boost converter that wants to give your actual converter a voltage spike.
I just fixed up a 1972 Honda motorcycle, and when I took the cover off the ignition point it was fascinating looking at that whole system, so simple and easy to fix.
The equations for the two devices are essentially the same, only the units change.
They work in about the same way as electronic circuits do.
(But it's almost always less expensive to push electricity around than it is to push liquid around, and the parts are a lot smaller, so obviously electronic circuits are the usual winner.
Nonetheless, hydraulic circuits are still pretty common: See, for example, the valve body of an automatic transmission such as (mostly?) electronics-free 700R4.)
Concerns about things like impedance matching and reflections are also the same.
And so on, and so forth.
Circuits are circuits.
https://youtube.com/playlist?list=PLUl4u3cNGP62UTc77mJoubhDE...
https://ocw.mit.edu/courses/6-622-power-electronics-spring-2...
Prof. David Perreault is excellent. While the course gets into pretty advanced topics that simply won't matter unless you are designing multi-kW systems, it covers all the fundamentals and builds understanding from ground up so you will know what makes sense to use and when.
I was just going to ask about recommended resources for getting into electronics. I've never been able to find anything that I personally found useful - often times, introductury courses are too basic and slow to keep me focused, or they lack exercises or are too theoretical, etc.
There are many hobbyists who have learned all that stuff and can design and implement their own circuits (say, audiophiles or model train enthusiasts), so obviously they have all been able to get there. But I have never managed to learn anything about electronics, although I would really like to.
Also eevblog forums are great. I don't post much but just reading through the discussions you get a lot.
My greatest annoyance is the flood of very low quality Arduino tutorials everywhere that polute the search results. Not to be ungrateful, Arduino got me into the hobby, but if you just learned about resistors last week the world doesn't need your blogpost on how to connect it to a breadboard.
I was introduced to the second edition (silver) when I attended college in the late 90s, and have later upgraded to the third edition (gold). It also has a companion book with more exercises and lab experiments.
For everyone that wants to learn EE, it is highly recommend. Just beware: there are fake copies for sale on Amazon, so be sure you get a genuine copy.
Caveat: when I took it at EdX the textbook was available online for free during the course, and it is an excellent textbook that I found very useful. That was back when all the MOOC platforms weren't too worried about monetization.
Now the textbook is only free online for people enrolled in the "verified certificate track" of the course, which is $189. The book is $64.97 for the paperback or DRM-free PDF [5]. I'm not sure how well the course works without the book.
[1] https://ocw.mit.edu/courses/6-002-circuits-and-electronics-s...
[2] https://www.edx.org/learn/circuits/massachusetts-institute-o...
[3] https://www.edx.org/learn/circuits/massachusetts-institute-o...
[4] https://www.edx.org/learn/electronics/massachusetts-institut...
[5] https://shop.elsevier.com/books/foundations-of-analog-and-di...
I know the basics of resistors, diodes, capacitors, transistors... And I could explain the most simple classic power supply: transformer, full wave rectification, capacitors and so on. I've built basic digital circuits (LDO + arduino/ESP + leds and stuff) and know some basic physics. I'm good soldering, though :D
I'd argue the exact opposite. The article is targeting "enthusiasts", and a very large portion of enthusiast projects are going to be powered by a 5V USB charger and consume in the order of a few 100mA of power.
LDOs are dirt cheap, widely available, have pretty decent output characteristics, and incredibly easy to use. If you have basically unlimited 5V and want 100mA of 3.3V, why not use one?
On the other hand, buck converters require you to actually do some actual engineering. You can't just haphazardly throw in a single IC and expect it to work flawlessly on your first try. You either have to use an (expensive!) fully-integrated module, or do a decent bit of math and part sourcing yourself. Neither option is exactly attractive to a hobbyist building a fairly simple one-off PCB.
Cheap buck converters are very noisy and annoying if you are building an audio or radio related project, or have such things nearby.
Using a higher switching frequency can also help, plenty to choose from.
For something like an audio amplifier, obtaining precise power supply load would in turn give you a curve over amplifier load, which effectively gives you the speaker amplitude. Input caps and filtering will likely remove the high frequency components entirely, but you might be able to construct at least part of the played waveform.
Unless you have a proper RF testing lab and skilled EMC engineers at your disposal, the only thing you can do is stuff everything into a properly designed faraday cage.
For most people designing DCDC converters, this is the most difficult part to understand and correctly tune. If you get the parts selection right and carefully lay out the circuit, this is the one that they can't get right. It takes some understanding of control theory or careful testing and tweaking. And it's what drives a lot of folk to the expensive and relatively inflexible power modules.
Yes. This is why the good ones have more parts. It's a totally fixable problem, and the parts cost to fix it isn't high, but it takes extra engineering effort.
Especially for beginners without a ton of measuring equipment and experience having potentially bursty high frequency components in series can be an interesting way to not get the thing they were planning done, but instead have to deal with an entire new set of problems whose existence they didn't even know about.
Technically you are correct, but "just slap a LDO on it" is probably the better advice.
It used to be a hassle a few years ago - but these days you can haphazardly throw in a R-78K3.3-0.5 - which has the pinout of a classic three-pin 3.3v linear regulator, but it's actually an 80% efficient DC-DC converter with 500mA output and an input range that goes up to 36v.
That's enough current even if you've got something like an ESP32 that needs 250mA - and for any type of hobby project, the $2.40 is fine.
The answer here is usually to find an IC that works at your desired input voltage or to have a linear regulator provide a small amount of power for the PWM generator. Also be wary of just running with an AI generated answer. Claude 3.5 Sonnet suggest you connect an Arduino straight to 230V and after some back and forth generates circuits which contain strange elements like "antiparallel diodes" which makes no sense.
Buck-Boost converters are a noisy and finicky thing, and not easy to debug if you use a monolithic IC from the cheapest vendor. Quite annoying discussions.
The battery support from pisource does this terribly. But so do many battery sources. It's not just microphones that get affected, but also other sensitive sensors like accelerometers.
I hope that other people making DC-DC convertors put some effort into making sure the supply is so clean so as to prevent this in future.
I think a lot of people are overly cautious of DC-DC conversion in this topic, but you've gone full-tilt in the opposite direction and are severely underestimating the problems that occur.
1. Its not "power-conversion" that's hard per se, its EMC that's very hard and not taught very well at a bachelor's level.
2. DC-DC Voltage Converters usually handle the entirety of your board's power, meaning they are the highest power component.
3. High power and high-frequency is a difficult EMC problem. This means that a bad design will absolutely send your electrons / energy out and radiate out like an antenna. And if things on the same board pick it up, it will be called crosstalk. And if things off-board pick it up, its called electromagnetic interference which almost certainly leads to a compliance problem.
---------------
1. Hobbyists don't care about compliance. So bam. We are already dealing with the biggest problem by simply not caring about it. (Maybe you can care and go into deeper studies, but... if you're a beginner just don't care. Learn this very difficult stuff later).
2. Prevent crosstalk by following good board design rules: have a 4-layer board. Use Power+Signal / GND / GND / Power+Signal stackup. Use two vias (one for signal-1 to signal-4 traversals), and a 2nd via for GND2 to GND3 traversal of the return current). Thinking of both the forward current and a tightly bound reverse current is basically all you need to do to avoid difficult crosstalk problems on board.
Done.
Point#2 requires deeper studies than is typical in bachelor's level electrical engineering. But it truly isn't very difficult once you learn the theory. Tight ground-planes reduce crosstalk (and EMI problems), and furthermore thinking of the return-current explicitly prevents problems.
Now you could have some truly difficult "ringing" from trace inductance and other such nasty problems... but that tends to occur beyond 100MHz. I'm thinking most beginners are going to be under 20MHz for most of their designs and thus never deal with those advanced "PDN" / Power Delivery Network problems.
Though if you do go into PDNs, its obviously a tough subject with huge amounts of study and reading involved. But most of the problems truly are at very high frequencies and/or at EMI compliance. Beginner Hobbyists avoid the most difficult issues entirely by nature of beginner (aka: low-speed) and hobbyist (and therefore don't have to follow regulators).
----------
I'm not a professional. But my understanding is that top-level EEs who work on PDNs will simulate the circuit-board itself to figure out trace inductances / capacitances in the board itself. (Closer planes of ground/power will create more capacitance. Long traces tend to increase trace inductance, etc. etc.). And tight simulations are the only way to truly understand the PCB and how it interacts at high frequencies with high-power.
But such methodologies are gross overkill for a 1MHz boost converter with a pre-made PCB Layout, and a list of capacitors + inductors already picked out for you. (ex: https://www.microchip.com/en-us/product/mcp1640)
Seriously: Page 17 (https://ww1.microchip.com/downloads/aemDocuments/documents/A...) already gives you the PCB-layout you need for this, with recommended components. Don't overthink it, just copy the design from the document.
So your PCB layout tips are important, even on slow circuits these days.
Maybe EMI crosstalk. But WIFI and BT are supposed to eminate out like a radio and jump across boards. That's the point.
---------
USB is a matched impedance differential pair. Are beginners really running high speed USB differential pairs down their circuits today?
Because that's a really.... Erm.... strange.... definition of a beginner. IMO anyway.
Of course the notion of using such a module might be a step up from beginner for you, but IMHO it's more about the understanding. But I agree that there is no definite definition.
Disclaimer: I'm a beginner by my definition.
[1] example module: https://www.waveshare.com/core52840.htm
I'm just a novice (maybe intermediate) so I'm wondering: the common 4-layer stackups available to hobbyists seem to be 1oz/0.5oz/0.5oz/1oz and I assume the outer layers have better thermal dissipation since they're only kept from the air by solder mask; so wouldn't it be better to put power/ground on the outer layers and keep signals in the middle?
Also maybe I'm weird and this is pointless but I typically put a filled copper zone tied to ground on every single layer, unless I have a reason to put some other kind of zone in a particular area. Is it necessary to have a full, dedicated ground plane, rather than ground + signal or ground + power?
If you accidentally get the return path on layer1 or layer4 instead of the designated layer2 or layer3, you've created noise.
Power+Signal / GND / GND / Power+Signal is about consistency and braindead-easy tracking of return paths. The return path for layer1 is always layer2. The return path of layer4 is always layer3.
Keeping track of both the forward signal (or power line) and the reversed return current (which was electrically induced onto the nearest reference plane) stops working if suddenly you have random reference ground-fill planes on the layer1 or layer4.
DO NOT put GND on layer1 or layer4 if you're doing this methodology.
---------------
Beginners likely aren't working with a hot enough circuit where thermal dissipation is an issue. If you do have thermal dissipation then I guess thermal ground on layer1 and layer4 ties with thermal vias will be needed.
In practice, the thermal resistance across the PCB cross section is better than beginners expect anyway. Thermal conductivity is just one attribute, the other attributes of heat movement are distance and cross sectional area.
So the shape favors you up and down the PCB. Yes the fiberglass has worse thermal conductivity but you win on shape.
Signals must never cross a break or split in the plane they're referencing (usually 0V or ""ground""). This creates huge EMI problems. Your proposal would have signals on layer 2 crossing a split in the ground plane on layer 1 (that split caused by power traces).
Some interesting material on the subject:
https://www.youtube.com/watch?v=ZYUYOXmo9UU
https://www.youtube.com/watch?v=QG0Apol-oj0
I'd start with this one specifically: https://www.youtube.com/watch?v=ySuUZEjARPY . (Your 3rd link).
You'll need proper input filtering which may require a non-trivial filter network. You'll also need proper output filtering, which does include slapping a lot of capacitors on there, but also careful selection of those capacitors both type and size. Parasitic inductance of larger packages can mean they can't filter high frequencies, and MLCC capacitors have a DC bias which means the effective capacitance is significantly reduced when they have a DC bias on them which they will have in a DC-DC converter.
Then you need to take great care about component placement and board layout, to minimize the return path of the currents and such.
You can skip all of that and get a board that functions as a DC-DC converter if you measure it with a multimeter, but actually be horrible. And you just can't fix bad layout by slapping more capacitors on there. And even with a not terrible layout, you can't fix it by using the wrong kind of capacitors. Like anything through-hole is just not gonna pass.
You’re right that noise is a concern for any analog circuitry though, and if you want to, you can spend a lot of money on specialized DC/DC converter modules with integrated inductors that do their best to eliminate this noise.
Something like 12V down to 5V at 5A creates a managable amount of heat, but going higher, 20V, 30V on the battery side and things start to melt all around from heat losses from that large a drop. In some cases I've had to resort to using cascaded rails, stepping first down to 24, then 24 to 12 and then 12 to 5 just to keep the heating spread between different buck converters even if it multiplies losses. Would love to hear what the expert solution is to this that isn't just a massive heatsink.
A smaller heatsink with active cooling and parallel MOSFETs. At a certain power level, it's just physically impossible to rely on convection cooling alone - just look at audio amps or your average CPU/GPU... banks of MOSFETs, caps and inductors it is. While the BOM part count may be higher, you need lower-capability parts.
The danger is, you need to carefully grade and match the MOSFETs, otherwise you risk them failing sequentially in a very short time if you're operating too close to their rated current - one burns out, the load distributes to the others, and then they fail because they cannot handle the additional load (or one fails into dead short instead of open, which instantly kills all of the others).
Honestly the size isn't such a big deal, as long as it doesn't weigh as much as two African elephants like the average mains PSU of this amperage.
You're dissipating 25W from your SBC already. You can dissipate the 2W from your DC-DC converter the same way.
[1] https://www.meanwellusa.com/webapp/product/search.aspx?prod=...
> Fuse recommended (5A)
I see they are very confident about going to 6A. These ratings are often just "yeah it can technically do that but it will reach 100 degrees during it", for any kind of stable continuous draw you just have to halve the rating to be safe.
Of course, it'll still dissipate the same amount of power, because 8% of 25W is still 2W.
[1] https://www.meanwellusa.com/webapp/product/search.aspx?prod=...
It does puzzle me why they went with the 2.54mm pin layout though, those are rated for 3A max I think? So even if the draw is perfectly split between the two vout pairs they give it'll be melting at 6A already, probably more like 5 if not.
A 10mm copper pin measuring 0.6mm x 0.6mm pin would have half a milliohm of resistance. Even if you ran your entire 5A load through a single pin, it would only have to dissipate 13 milliwatts.
I'd be more worried about the PCB traces if I were you - 2oz copper is only 0.07mm thick :)
One would think the title including "DC-DC voltage conversion" is enough of a squirrel-catcher to stop folks who either 1) Know nothing about what it means or 2) know exactly how to do it, from reading the article.
The goal would be a variable ratio gearbox using a fully mechanical system, using a spring and a hammer type mechanism to convert one torque/speed to another torque/speed.
This is already done in impact wrenches, but I would hope that rather than having an impact rate of say 5 Hz, you have an impact rate of 50 kHz or more, allowing a smooth conversion from one speed to another.
Obviously, the difficulty is in the details - designing parts to withstand 50k hammers per second for years of operating without failing from fatigue.
Various other mechanical things already operate at high mechanical frequencies. SAW filters vibrate things mechanically at Ghz and don't suffer fatigue failures.
When the clutch is engaged, the engine-side springs compress to supply the torque and match the speed difference. When it's disengaged, the springs expand back out as it returns to engine speed. The obvious problem is that clutches do not smoothly click on and off like a transistor.
However there are more specialized devices that use stick-slip dynamics like piezo actuators. Since there is a much more rapid transition between "on"/"off", they can be very efficient and allow relatively weak devices to exert very large forces. They're just only able to take very small steps.
[1] Labeled 4 here: https://haynes.com/en-gb/sites/default/files/styles/blog_lan...
What is it?
I think you need an intermediate flywheel, with springs and clutches on each side. The intermediate flywheel's mass is tiny, so might be formed by just the masses of the springs and clutch mechanism.
For one thing: LDOs can be more efficient than buck converters, especially at very low current consumptions. If you’re drawing sub 1 mA, like a battery powered system, an LDO is going to be a more efficient step down converter, because it doesn’t have switching losses. Bucks are only better choices for stepping down voltage at higher currents because the switching losses become negligible.
Second: a ton of people here are vastly exaggerating the difficulty of designing a step down buck converter. Integrated designs from TI or analog devices will tell you all the compensating components, output capacitor values, inductor values, etc. for common step down output voltages. Most will include reference layouts with a four layer six layer or even two layer stack up for optimal performance. It’s really not that hard to get a one spin win out of most common buck designs.
Don’t be afraid. Just follow the manual. You’ll be fine.
For one: most LDOs don’t have a high enough PSRR bandwidth to completely eliminate buck switching noise. Most LDO PSRRs roll off sharply in the low hundreds or high tens of kHz. That’s generally below the switching frequency (and noise frequency) of most buck regulators. If you’re dealing with audio that’s generally fine. RF, however, is a separate problem.
Second: there are more cost effective and wide bandwidth solutions for noise reduction. Capacitance multipliers are one that spring to mind. Ferrite beads are another great means for tamping down high frequency noise.
Third: layout and current return paths are often just as much of a problem as the buck itself. Couple a high current return path into an audio chain with a shared return, and you’re gonna have a problem no matter which way you slice it.
I’m not an expert myself, but I’ve read that RF noise in audio applications isn’t always okay because it can demodulate into your amplifiers.
Re. Capacitance multipliers, I may be mistaken but I think they typically introduce significant positive gain at high frequencies due to the transistor parasitics. They make sense for very low frequency cut off (AC mains transformer ripple), but I’m not so sure about typical SMPS output. I would bet other filter topologies (LC, etc), would generally do better in practice.
And definitely 100% on the layout. Return currents and common mode noise will get ya.
My friend needed that voltage for a Geiger counter B+ battery replacement.
What it's augmenting is a pretty cheap AIMS power brand modified sine-wave inverter/charger (meh, should have gone pure sine, it causes some of the power supplies to make funny noises) hooked up to a Litime 2kWh LFP battery (very happy with the big battery). TODO on the experiment is swapping out the inverter part with direct 12V conversion for some of the things on the inverter, but I wanted to test the regulator approach with a non-critical component for a month or two first before hooking it to something that can deliver 100A, obviously with a fuse. :-)
There are IP camera 12V UPSes you can get that are ok -- I have a few TalentCell 98Wh units -- but they don't actually deliver regulated power, they just tap directly off of the li-ion cells. Those are about $65.
With an inverter UPS, $50 gets you a unit with a single 12V / 8ah or so lead-acid cell; 90 or so watt-hours _could_ be reasonable except that the inverter draws upwards of 10-15W while running, so these units actually won't run even a router for more than a couple of hours. Also, lead-acid dies after about 3 years, and then you're in for another $15 or and a bit of a pain replacing it. I'm really sick of doing surgery on old UPSes at this point and trying to move entirely to LFP for the 10 year lifespan alone.
If you want really long runtime, you basically have to DIY, but it's fortunately quite straightforward. Larger LFP batteries are about $250 per kWh, sometimes less. DIY'ing it, you can pick your capacity/runtime independent of your wattage, vs pre-packaged UPSes that frequently couple the two.
(I have a big pile of APC UPSes of various sorts, some with external expansion battery packs, and it's quite a hassle to get truly extended runtime from any of them -- I don't want to have a generator, I want 20 hours of extended runtime. I realize I'm a little weird, but I like to hope I'm just ahead of the curve a little on switching. :-)
Circuit breakers have to be used with 2 poles in series and mechanically linked to switch together. Check the datasheet for details. Mains fuses with a suitable DC rating on their datasheet are readily available, though.
E.g. bridge less totem-pole designs where rectifying and the active power factor correction stage are fused, would also work unless the firmware gets confused by the lack of input polarity flipping.
And yes, that topology can also go into a flyback transformer or pretty much any other unipolar magnetic of an SMPS.
Given a USB PD power supply which supports 15V but not 12V, and a usb-c/barrel-jack cable configured to negotiate for 15V, what would be the simplest (yet safe) circuit i could add via barrel jack to regulate the to voltage down to safe/consistent 12V?
is a simple linear voltage regulator (LM7812) sufficient? would i need capacitors to smooth it out?
How much current do you need?
If you need, say, >100A, the possible architecture looks very different than ~1A or less.
Caps will depend on how fast the response needs to be. If your load jumps too much too fast and there's no reservoir, you'll get a voltage drop. If it feeds too much back, you'll get a voltage climb. Caps may help and are pretty cheap and IIRC 78xx chips are very stable, but the datasheet will have limits and recommendations.
All the information will be in the data sheet and making some test circuits is easy for these, especially if you have some measuring equipment. Anything below 1A will probably be easy, anything above might be risky, as a rule of thumb. Very small or very large voltage differences will also be tricky or impossible.
1. You don't get a voltage spike when you disconnect an inductor. The field collapses and induces a current. If you measure it across a high impedance then it looks like a voltage spike. If you measure it across a low impedance then it's not necessarily much of a spike. Ergo depends on load impedance.
2. SMPS designs are not necessarily noisier than linear power supplies. It's always a design trade off. In fact you see SMPS in all modern RF test gear which is generally far more sensitive and has far more bandwidth than anything back when linear supplies were common. Also there is a lot of noise coming off the diodes in a basic bridge rectifier as well! Noise is a whole-system design consideration that has to be made.
3. Don't use any LLMs for designing circuits. Please go read a book on it designed by experts, not stuff scraped from thousands of idiots. I've seen some horrible stuff out there.
4. I'm sure I'll come up with more over time.
"Disconnect" implies an open circuit and high impedance.
The fundamental action of a boost converter is from the inductors "voltage spike" behavior. The lowest noise linear regulator is less noisy than the lowest noise smps.
I agree though that LLM's are not good at circuit design.
The physical equivalent of an inductor is a flywheel, which makes it much easier to visualize.
It's generally sad that power JFETs are so neglected, because e.g. a normally-on switch in a buck eliminates the auxiliary startup supply, and the absence of a gate oxide allows designing with the junction's clamping activity in mind. Also the forward conduction gate-source is a diode temperature sensor literally right at the channel.
Then you may go down rabbit holes like "The one at the switching frequency I want went out of stock. Can I use the one that switches slower? Can I substitute this capacitor in instead of the nonstandard value the ref diagram recommended?"
They should IMO be the default for most designs, but double-check everything!