Circuit VR: A Tale Of Two Transistors

Last time on Circuit VR, we looked at creating a very simple common emitter amplifier, but we didn’t talk about how to select the capacitor values, or much about why we wanted them. We are going to look at that this time, as well as how to use a second transistor in an emitter follower (or common collector) configuration to stiffen the amplifier’s ability to drive an output load.

Several readers wrote to point out that I’d pushed the Ic value a little high for a 2N2222. As it turns out, at least one of the calculations in the comments was a bit high. However, I’ve updated the post at the end to explore what was in the comments, and talk a bit more about how you compute power dissipation with or without LTSpice. If you read that post, you might want to jump back and pick up the update. Continue reading “Circuit VR: A Tale Of Two Transistors”

Circuit VR: Starting An Amplifier Design

Sometimes I wish FETs had become practical before bipolar transistors. A FET is a lot more like a tube and amplifies voltages. Bipolar transistors amplify current and that makes them a bit harder to use. Recently, [Jenny List] did a series on transistor amplifiers including the topic of this Circuit VR, the common emitter amplifier. [Jenny] talked about biasing. I’ll start with biasing too, but in the next installment, I want to talk about how to use capacitors in this design and how to blend two amplifiers together and why you’d want to do that.

But before you can dive into capacitors and cascades, we need a good feel for how to get the transistor biased to start with. As always, there’s good news and bad news. The bad news it that transistors vary quite a bit from device to device. The good news is that we’ll use some design tricks to keep that from being a problem and that will also give us a pretty wide tolerance on component values. The resulting amplifier won’t necessarily be precise, but it will be fine for most uses. As usual, you can find all the design files on GitHub, and we’ll be using the LT Spice simulator.

Continue reading “Circuit VR: Starting An Amplifier Design”

Hackaday guide to Lathes

Lathe Headstock Alignment: Cutting A Test Bar

Let’s say you’ve recently bought a lathe and set it up in your shop. Maybe you’ve even gone and leveled it like a boss. You’re ready to make chips, right? Well, not so fast. As real machinists will tell you, you can use all the levels and lasers and whatever that you want, but the proof is in the cut. Precision leveling gets your machine in the ballpark (machinists have very small ballparks) but the final step to getting a machine to truly perform well is to cut a test bar. This is a surefire way to eliminate any last traces of twist in the bed.

There are two types of test bars. One is for checking headstock-to-ways alignment, which is what we’re doing here. There’s another type used for checking tailstock alignment, but that’s a subject for another day.

Continue reading “Lathe Headstock Alignment: Cutting A Test Bar”

Circuit VR: An (Almost) Practical Buck Converter

In the last installment of Circuit VR, we walked around a simplified buck converter. The main simplification was using a constant PWM signal. The result is that the output voltage is a fixed fraction of the input voltage. For a regulator, the pulse width will need to depend on the output voltage so that any changes in the output are self-correcting. So this time, we’ll make a regulator, although we’ll still use a few Spice elements you’d have to replace in a practical design. In particular, we’ll assume you can generate a triangle wave, which is easy enough, and produce a stable 2.5 V reference.

The idea is to take a voltage reference and compare it to the output. We’ll think of the difference between the two as an error voltage, and use a comparator combined with a triangle wave generator to produce a PWM signal that is proportional to the error, and thus works to hold the output voltage constant.

Continue reading “Circuit VR: An (Almost) Practical Buck Converter”

Using Pad Printers To Add Color To Artistic PCBs

I’ve done a few experiments in adding color to printed circuit boards. These experiments used a process known as pad printing, and so far all indications are that pad printing is a viable process for truly multicolor artistic PCBs. For this year’s DEF CON, I’m stepping things up and taking them to their logical conclusion. I’m making true multicolor PCBs with orange and blue ink. This is, I believe, the first time this has ever been done with printed circuit board art, and it is certainly the first time it has ever been documented.

You may be wondering why I need more color on my boards. It’s that time of year again where PCB artisans all around the world are gearing up for badgecon DEF CON. For the last few years, independent badge makers have come together to form a demoscene of hardware creation. This year, add-ons for badges are a thing, and everyone is getting in on the game. Tindie is filled with amazing electronic badges and add-ons that will be found at this year’s DEF CON. There are badges featuring the Cromulon from Rick and Morty, baby Benders from Futurama, pikachus, and glowing tacos.

This is all about badge art, but when it comes to rendering an image in fiberglass and soldermask, everyone is working with a limited palette. Yes, you can get pink and orange soldermask, but I can’t find a place that will do it inexpensively. For any PCB, your choice of colors are only green, red, yellow, blue, purple, black, or white. No, you can’t mix them.

But I want both orange and blue, on the same board, cheaply and easily — here’s how I did it.

Continue reading “Using Pad Printers To Add Color To Artistic PCBs”

Hackaday guide to Lathes

The Machinists’ Mantra: Level Thy Lathe

Let’s say you’ve gone and bought yourself a sweet sweet metal lathe. Maybe it’s one of the new price-conscious Asian models, or maybe it’s a lovely old cast iron beast that you found behind a foreclosed machine shop. You followed all the advice for setting it up, and now you’re ready to make chips, right? Well, not so fast. Unlike other big power tools, such as band saws or whatever people use to modify dead trees, machine tools need to be properly level. Not, “Hurr hurr my carpenter’s level says the bubble is in the middle”, but like really level.

This is especially true for lathes, but leveling is actually a proxy for something else. What you’re really doing is getting the entire machine in one plane. Leveling is a primitive way of removing twist from the structure. It may not seem like a huge piece of cast iron could possibly twist, but at very small scales it does! Everything is a spring, and imperceptible twist in the machine will show up as your lathe turning a couple thousandths of taper (cone) when it should be making perfect cylinders. All this is to say, before making chips, level your lathe. Let me show you the way. Continue reading “The Machinists’ Mantra: Level Thy Lathe”

Coolest Way To Watch 3D Printing: Lights, Camera, Octolapse!

Octoprint is a household name for anyone into 3D printing and anyone regularly reading Hackaday. Described by creator Gina Häußge as “the snappy web interface for your 3D printer”, Octoprint allows you to control effectively any desktop 3D printer over the local network or Internet. It even has webcam support so you can watch your printer while it works, meaning you can finally put that video baby monitor back into the crib with Junior.

While the core functionality of Octoprint is fantastic alone, its true power is unlocked through the plugin system and the community that’s sprung up around it. With plugins, Octoprint can do everything from control RGB light strips in your printer’s enclosure to sending status messages via Discord. One particularly popular plugin that has been making the rounds lately is Octolapse by [FormerLurker]. This plugin provides a comprehensive intelligent system for creating time-lapse videos of prints.

What does that mean? Well, instead of simply taking a picture every few seconds like you’d do traditionally, Octolapse actually keeps track of the printer’s motions while its running. It can then take a picture at the opportune moment to create a number of user-selected effects. More importantly, it can even take control of the printer directly; moving the hotend away from the print before taking a picture. The effect is that the print simply “grows” out of the bed.

I thought it would be interesting to take a closer look at Octolapse and see just what it takes to create one of those awesome time-lapse videos. It turned out to be somewhat trickier than I anticipated, but the end results are so fantastic I’d say it’s a technique worth mastering.

Continue reading “Coolest Way To Watch 3D Printing: Lights, Camera, Octolapse!”