4 ms·
Hacks like this are a lot of fun to play with on the bench but don't design a circuit like this when you want something that "just works", has a reasonable life
by smoyer 9y ago
Hacks like this are a lot of fun to play with on the bench but don't design a circuit like this when you want something that "just works", has a reasonable life-time and certainly don't put a hack like this into production.
That being said, Sir Clive Sinclair made a pretty remarkable little computer (the ZX-81) but minimizing the parts count to the extreme. And there's a colloquial term for the process of minimizing your component count.
One of my favorite authors in Electronic Design was Bob Pease (now deceased). In a 1992 article [0] he recounts the process used by Earl "Madman" Muntz who was an early television pioneer. I could ruin the story but I'm going to insist you read the original instead. Enjoy!
[0] http://www.electronicdesign.com/boards/whats-all-muntzing-stuff-anyhow http://www.electronicdesign.com/boards/whats-all-muntzing-st...
EDIT: I also should have noted that this practice has led to me trying to create the simplest possible software algorithm that solves my problem. A good day is when the LOC count goes down (and not because I've packed more into a single line).
- SAI_Peregrinus 9y agoMy favorite cute hack of a power supply is the ringing choke converter (self-oscillating flyback). It doesn't require any controller ICs, just a couple of transistors, resistors, caps, and a transformer. You get isolation, and the circuit is quite simple. With an optoisolator and zener diode you can even get regulated output! The disadvantages are the poor efficiency, need for tuning, and need for a transformer if you don't need the isolation. Also no programming involved, so not really of as much interest to most of the HN community.
- blackguardx 9y agoThat was the first circuit I put together after cobbling together some old TV parts in 8th grade. The noise and dazzling purple glow of the high voltage arc from the flyback transformer were mesmerizing. The urge to understand how it worked led me to study EE in college.
- kens 9y agoIf you buy a $2 phone charger, this circuit (the ringing choke converter) is what you get. It's kind of amazing how cheaply these are made. It can look just like an Apple charger on the outside, but the power quality (and safety) is much, much worse.
- SAI_Peregrinus 9y agoYep, they're used in lots of cheap power supplies, not just phone chargers. The poor power quality and safety aren't inherent problems of the ringing choke design, those are just issues with cheap chargers. They tend to omit the output filtering and do horrible things to creepage and clearance distances.
- userbinator 9y agoAll the controller ICs do is put almost everything but the coil onto one silicon die. Otherwise they work similar to the discrete version.
- th0ma5 9y agoCame across in the amateur radio world the "Minimal Art Session" contests where people get points based on how many radio contacts with how few parts... http://www.qrpcc.de/contestergebnisse/mas/2016/index.html http://www.qrpcc.de/contestergebnisse/mas/2016/index.html
- js2 9y agoA good day is when the LOC count goes down (and not because I've packed more into a single line). You can't write that and not link to http://www.folklore.org/StoryView.py?story=Negative_2000_Lines_Of_Code.txt http://www.folklore.org/StoryView.py?story=Negative_2000_Lin...
- rhizome 9y agoGreat story, I hadn't read that one before. Madman Muntz is a hero[1] of a person, love that guy, also inventing the term "teevee" (later "TV") and manufacturing and selling the Muntz Jet automobile[2]. Oh, he also invented car stereos (and bars, but watch #1). His commercials were pretty amazing[3], too. 1. https://www.youtube.com/watch?v=69yXg9EkD-g https://www.youtube.com/watch?v=69yXg9EkD-g 2. https://www.hagerty.com/apps/valuationtools/1951-muntz-jet https://www.hagerty.com/apps/valuationtools/1951-muntz-jet 3. https://www.youtube.com/watch?v=FGi6VhnQkw0 https://www.youtube.com/watch?v=FGi6VhnQkw0
- qb45 9y ago> Hacks like this are a lot of fun to play with on the bench but don't design a circuit like this when you want something that "just works", has a reasonable life-time and certainly don't put a hack like this into production. Dunno, do you think a constant rate PWM SMPS isn't enough to power a trivial load like LED and justifies the cost of adding a dedicated chip? LED forward voltage is well below absolute maximum for the RESET pin, peak current is limited by pulse time, looks good enough to my (amateur) eye.
- dom0 9y agoRSTDISABLE means that no in-circuit programming is possible any more and for re-flashing a parallel HV programmer is required; it's quite annoying for tinkering.
- qb45 9y agoYes, but this was about long term reliability so programming is of lesser concern.
- smoyer 9y agoI didn't mean that you shouldn't use a boost converter - back in the RS-232 days the Maxim max232 chip saved a tremendous number of parts (otherwise you needed a +/-12VDC power supply to drive the signal wires. The idea of the IC's Vcc following the coil's transient is a bit scary and I wouldn't design that into a system.
- qb45 9y agoI thought about using RESET of course. The Vcc thing is indeed bizarre and I wouldn't be confident that running logic circuits on a fast dV/dt power supply is a good idea.
- amelius 9y agoIf the objective is to use the least number of parts, then there's a simple solution: brute force. You can of course automate this using a simple computer program and a simulator like SPICE. Slightly more intelligent solutions could use heuristic optimization techniques like genetic programming.
- deleted 9y ago[deleted]
- amelius 9y agoNot sure why this was downvoted. There's even a paper that explores this technique: [1]. [1] http://www.sciencedirect.com/science/article/pii/S187770581102056X http://www.sciencedirect.com/science/article/pii/S1877705811...
- phaedrus 9y agoI've had great success building digital logic with minimized part counts. When I've tried to do the same with analog circuits, I've had more mixed success. I realized that it's because digital logic is transitive (in the algebra sense) but analog is only quasitransitive. That is (assuming you're working in the realm of bits rather than abusing physical limits), in digital logic if circuit A is equivalent to circuit B and circuit B is equivalent to circuit C, you can replace A with C, and keep repeating this process until the circuit is minified. In analog electronics, you run into the sorites paradox.