Ring Around The Inverter

[Dr. Shane] asks the question: what happens if you connect the output of an inverter logic gate back to the input? In theory, it doesn’t make sense, but depending on the gate’s physical construction, you’ll get into a strange state. The transistors within the gate will behave differently than they normally would, and you’ll wind up with an amplifier or an oscillator. You can see the results in the video below. In the second video, you can see what the odd connection does to the thermal properties of the inverter, too.

The CMOS inverter becomes biased in the active region, so it makes sense that it settles at the halfway point. The TTL inverter is slightly different, but the delay through the gate isn’t enough to produce a good oscillation. However, an odd number of inverters connected in a ring like this is one way to create a simple oscillator.

Continue reading “Ring Around The Inverter”

Parts We Miss: The Mains Transformer

About two decades ago there was a quiet revolution in electronics which went unnoticed by many, but which overturned a hundred years of accepted practice. You’d have noticed it if you had a mobile phone, the charger for your Nokia dumbphone around the year 2000 would have been a weighty device, while the one for your feature phone five years later would have been about the same size but relatively light as a feather. The electronics industry abandoned the mains transformer from their wall wart power supplies and other places in favour of the much lighter and efficient switch mode power supply. Small mains transformers which had been ubiquitous in electronics projects for many years, slowly followed suit.

Coils Of Wire, Doing Magic With Electrons

Inside and outside views of Jenny Lists's home made linear power supply from about 1990
This was a state of the art project for a future Hackaday scribe back in 1990.

A transformer works through transferring alternating electrical current into magnetic flux by means of a coil of wire, and then converting the flux back to electric current in a second coil. The flux is channeled through a ferromagnetic transformer core made of iron in the case of a mains transformer, and the ratio of input voltage to output voltage is the same as the turns ratio between the two. They provide a safe isolation between their two sides, and in the case of a mains transformer they often have a voltage regulating function as their core material is selected to saturate should the input voltage become too high. The efficiency of a transformer depends on a range of factors including its core material and the frequency of operation, with transformer size decreasing with frequency as efficiency increases.

When energy efficiency rules were introduced over recent decades they would signal the demise of the mains transformer, as the greater efficiency of a switch-mode supply became the easiest way to achieve the energy savings. In a sense the mains transformer never went away, as it morphed into the small ferrite-cored part running at a higher frequency in the switch-mode circuitry, but it’s fair to say that the iron-cored transformers of old are now a rare sight. Does this matter? It’s time to unpack some of the issues surrounding a small power supply. Continue reading “Parts We Miss: The Mains Transformer”

Friendly Flexible Circuits: The Cables

Flexible cables and flex PCBs are wonderful. You could choose to carefully make a cable bundle out of ten wires and try to squish them to have a thin footprint – or you could put an FFC connector onto your board and save yourself a world of trouble. If you want to have a lot of components within a cramped non-flat area, you could carefully design a multitude of stuff FR4 boards and connect them together – or you could make an FPC.

Flexible cables in particular can be pretty wonderful for all sorts of moving parts. They transfer power and data to the scanner head in your flat-bed scanner, for instance.  But they’re in fixed parts too.  If you have a laptop or a widescreen TV, chances are, there’s an flexible cable connecting the motherboard with one or multiple daughterboards – or even a custom-made flexible PCB. Remember all the cool keypad and phones we used to have, the ones that would have the keyboard fold out or slide out, or even folding Nokia phones that had two screens and did cool things with those? All thanks to flexible circuits! Let’s learn a little more about what we’re working with here.

FFC and FPC, how are these two different? FFC (Flexible Flat Cable) is a pre-made cable. You’ve typically seen them as white plastic cables with blue pieces on both ends, they’re found in a large number of devices that you could disassemble, and many things use them, like the Raspberry Pi Camera. They are pretty simple to produce – all in all, they’re just flat straight conductors packaged nicely into a very thin cable, and that’s why you can buy them pre-made in tons of different pin pitches and sizes. If you need one board to interface with another board, putting an FFC connector on your board is a pretty good idea.

Continue reading “Friendly Flexible Circuits: The Cables”

Why Not Try A DIAC?

There are plenty of electronic components which were once ubiquitous but once the niche which led to their existence has passed, they fade away to remain a junkbox curio. The DIAC is the subject of a recent ElectronicsNotes video, and while it might not quite yet have slid into total obscurity yet it’s definitely not the most common of parts in 2023.

If you’ve encountered one it will almost certainly be in the trigger circuit of a lighting dimmer or motor controller, where its bidirectional breakover makes for symmetrical control of a triac gate. This extremely simple circuit allows for perfect control of AC-powered devices, and could once be found everywhere. Its demise over recent years tells an interesting story of our changing use of electricity, as not only have other devices such as smart lights and brushless motors appeared which preclude traditional dimmers, but also we now demand better RF performance from our lighting controls.

The DIAC is still a handy part to know about, and you can take a look at the video below the break. We would normally try to link to another Hackaday story using a DIAC, but is it telling that we couldn’t find one? If you can, link it in the comments!

Continue reading “Why Not Try A DIAC?”

Tricky 3D Printed Joinery Problem? Give Heat Staking A Try

When you just can’t 3D print something as a monolithic part, you’re going to have to join pieces together. In such cases, most of us instinctively include threaded inserts or nut slots in the design, or even reach for a tube of CA glue. But perhaps you should be thinking more along the lines of heat-staking your printed parts together.

Although you might not be familiar with the term, if you’ve looked inside anything made out of plastic, chances are good you’ve seen a heat-staked joint. As [Richard Sewell] explains, a heat-staked joint is nothing more than the classic mortise-and-tenon made from plastic where the tenon stands proud of the joint face so it can be softened with heat. The tenon spreads out so the joint can’t be pulled apart. A variant on the theme includes a mortise with a generous chamfer so the melted tenon can spread out, providing not only extra resistance to pull-out be also a more flush surface.

To melt the joint, [Richard] simply uses a soldering iron and a little pressure. To spread out both the heat and the force a bit, he uses the barrel of the iron rather than a tip, although we could see a broad chisel tip being used for smaller joints. Either way, a layer of Kapton tape helps keep the iron from getting gunked up with melted plastic. [Richard] lists a host of advantages for this kind of plastic joinery, including eliminating the need for additional hardware. But we think the best feature of this joint is that by avoiding monolithic prints, each aspect of a part can have its layer lines optimized.

While it probably isn’t applicable everywhere, heat-staking looks like a technique to keep in mind. We’d love to see [Stefan] over at CNC Kitchen do some of his testing magic on these joints, like he did for threaded inserts.

Multi-way Capacitor Replacement Without The Pain

Anyone who’s worked with older tube-based equipment will be familiar with the type of vintage electrolytic capacitor which integrated several capacitors into one can. Long obsolete, they can be bought as reproduction, but unfortunately at an eye-watering price. [D-Lab Electronics] introduces us to a solution using a very useful kit, that it’s worth sharing.

The piece of equipment in the video below the break is a rather lovely Heathkit oscillator, following the familiar phase shift model with a light bulb in its feedback loop. It’s a piece of test equipment that produces a low-distortion sine wave output, and would still be of use to an audio engineer today. He replaces the capacitor with two modern ones on a multi-cap board from [W8AOR], who sells a variety of these kits for different configurations.

We’ve done this very repair more than once, and it has usually involved wiring, heatshrink sleeving, hot glue, and cable ties, looking very messy indeed. It’s not that often that a kit catches our eye as this one has, but we know we’ll be finding it useful here some time in the future. Meanwhile if you’d like to know why this oscillator has a light bulb, take a look at our piece on distortion.

Continue reading “Multi-way Capacitor Replacement Without The Pain”

Eliminate That Pesky Power-Only USB Cable With This Cable Tester

Ever wondered why your Arduino wasn’t programming, only to find out that the cable doesn’t have any data conductors? Worry not, [Spencer Maroukis] has got you covered with the USB Sleuth Cable Tester!

The cable tester is a beautiful black circular PCB, with USB ports of nearly every type on the edges. It works partially through passive detection with LEDs and otherwise through active detection of things like the orientation with an STM32 powered by a coin cell battery. But it gets better: There are disconnect switches and exposed pads to test some of the conductors with a digital multimeter!

It may not be necessary for all of us, but one thing is clear: When you needed a good USB cable, you wished you had this to actually test it. The design is open-source too, which is definitely nice if you want one for yourself.

Meanwhile this isn’t the first USB cable tester we’ve seen here.