Looking Back At QRP Transmitters

When you get to a certain age, you get unsettled by people calling “your” music oldies. That’s how a few of us felt when we saw [Mikrowave1’s] video about Retro QRP – Solid Gold Years (see below). “QRP” is the ham radio term for low power operation, and the “solid gold” years in question are the 1960s to 1980. The videox has some good stuff, including some old books and some analysis of a popular one-transistor design from that time. He even tries a few different period transistors to see which works best.

[Mikrowave1] talks about the construction techniques used in that time frame, old transistors, and some vintage test equipment. You can even see an old ARC-5 command receiver in use to listen to the transmitter. These were made for use in military aircraft and were very common as surplus.

Continue reading “Looking Back At QRP Transmitters”

Understanding DMA

In the world of computers, the central processing unit (CPU) is–well–central. Your first computer course probably explained it like the brain of the computer. However, sometimes you can overload that brain and CPU designers are always trying to improve both speed and throughput using a variety of techniques. One of those methods is DMA or direct memory access.

As the name implies, DMA is the ability for an I/O device to transfer data directly to or from memory. In some cases, it might actually transfer data to another device, but not all DMA systems support that. Sounds simple, but the devil is in the details. There’s a lot of information in this introduction to DMA by [Andrei Chichak]. It covers different types of DMA and the tradeoffs involved in each one.

Continue reading “Understanding DMA”

Ask Hackaday: What’s Your Etchant?

Although the typical cliché for a mad scientist usually involves Bunsen burners, beakers, and retorts, most of us (with some exceptions, of course) aren’t really chemists. However, there are some electronic endeavors that require a bit of knowledge about chemistry or related fields like metallurgy. No place is this more apparent than producing your own PCBs. Unless you use a mill, you are probably using a chemical bath of some sort to strip copper from your boards.

The standard go-to solution is ferric chloride. It isn’t too tricky to use, but it does work better hot and with aeration, although neither are absolutely necessary. However, it does tend to stain just about everything it touches. In liquid form, it is more expensive to ship, although you can get it in dry form. Another common etchant is ammonium or sodium persulphate.

pcbyThere’s also a variety of homemade etchants using things like muriatic acid and vinegar. Most of these use peroxide as an oxidizer. There’s lots of information about things like this on the Internet. However, like everything on the Internet, you can find good information and bad information.

When [w_k_fay] ran out of PCB etchant, he decided to make his own to replace it and wrote a great guide on how this is done. He found a lot of vague and conflicting information on the Internet. He read that the vinegar solution was too slow and the cupric acid needs a heated tank, a way to oxygenate the solution, and strict pH controls. However, he did have successful experiments with the hydrochloric acid and peroxide. He also used the same materials (along with some others) to make ferric chloride successfully.

Continue reading “Ask Hackaday: What’s Your Etchant?”

An Old 68000 SBC Is New Again

[Jeff Tranter] has done a number of retrocomputing projects. But he wanted to tackle something more substantial. So he set out to build a 68000-based single board computer called the TS2 that he found in a textbook. He’s documented it in a series of blog posts (about 30 posts, by our count) and a video that you can see below.

The 68000 had a very rational architecture for its day. A flat memory space was refreshing compared to other similar processors, and the asynchronous bus made hardware design easier, too. While most CPUs of the era assumed bus devices could perform their service in a fixed amount of time, the 68000 used a handshake with devices to allow them to take the time they needed. Most other CPUs had to provide a mechanism for a slow device to stall the bus which was complicated and, in many cases, less efficient.

Continue reading “An Old 68000 SBC Is New Again”

3D-Printed Vise Is A Mechanical Marvel

We often wonder how many people have 3D printers and wind up just printing trinkets off Thingiverse. To get the most out of a printer, you really need to be able to use a CAD package and make your own design. However, just like a schematic editor doesn’t make your electronic designs work, a CAD program won’t ensure you have a successful mechanical part.

[TheGoofy] has a 100% 3D printed vise that looks like it is useful. What’s really interesting, though, is the video (see below) where he explains how printing affects material strength and other design considerations that went into the vise.

Continue reading “3D-Printed Vise Is A Mechanical Marvel”

Loop Antenna Is Portable

We don’t know if [OH8STN] has a military background, but we suspect he might since his recent post is about a “DIY Man Portable Magnetic Loop Antenna.” “Man-portable” is usually a military designation, and — we presume — he wouldn’t object to a woman transporting it either.

[OH8STN] started with a Chameleon antenna starter kit. This costs about $100 and is primarily a suitable variable capacitor with a 6:1 reduction drive premounted and soldered. Of course, you could source your own, but finding variable capacitors that can handle transmit duty (admittedly, these can apparently handle about 10 W continuous or 25 W on single sideband) can be tricky, especially these days. Although he started with a kit, he did modify the antenna to switch between two different sets of ham radio bands. You can see the antenna in the video below.

Loop antennas aren’t ideal–but neither is any other small antenna. Because the loop is tightly tuned to a particular frequency, it requires retuning for even relatively small frequency changes, even though it can operate on many different frequencies. If you want more technical details, you might enjoy this recent presentation from [W4RAX]. The links at the end are worth checking out, too.

Continue reading “Loop Antenna Is Portable”

About Schmitt (Triggers)

There is an old saying: “In theory, theory and practice are the same. In practice, they are not.” We spend our time drawing on paper or a computer screen, perfect wires, ideal resistors, and flawless waveforms. Alas, the real world is not so kind. Components have all kinds of nasty parasitic effects and no signal looks like it does in the pages of a text book.

Consider the following problem. You have a sine wave input coming in that varies between 0 V and 5 V. You want to convert it to a square wave that is high when the sine wave is over 2.5 V. Simple, right? You could use a CMOS logic gate or a comparator. In theory…

The problem is, the sine wave isn’t perfect. And the other components will have little issues. If you’ve ever tried this in real life, you’ll find that when the sine wave is right at the 2.5 V mark the output will probably swing back and forth before it settles down. This is exacerbated by any noise or stretching in the sine wave. You will wind up with something like this:

scope1

Notice how the edges of the square wave are a bit fat? That’s the output switching rapidly back and forth right at the comparator’s threshold.

Hysteresis

The answer is to not set the threshold at 2.5 V, or any other single value. Instead, impose a range outside of which it will switch, switching low when it leaves the low end of the range, and high when it exceeds the high end.  That is, you want to introduce hysteresis. For example, if the 0 to 1 shift occurs at, say, 1.9 V and the 1 to 0 switch is at 0.5 V, you’ll get a clean signal because once a 0 to 1 transition happens at 1.9 V, it’ll take a lot of noise to flip it all the way back below 0.5 V.

You see the same effect in temperature controllers, for example. If you have a heater and a thermal probe, you can’t easily set a 100 degree set point by turning the heater off right away when you reach 100 and then back on again at 99.9999. You will usually use hysteresis in this case, too (if not something more sophisticated like a PID). You might turn the heater off at 99 degrees and back on again at 95 degrees, for example. Indeed, your thermostat at home is a prime example of a system with hysteresis — it has a dead-band of a few degrees so that it’s not constantly turning itself on and off.

Schmitt Triggers and How to Get One

A Schmitt Trigger is basically a comparator with hysteresis. Instead of comparing the incoming voltage with VCC / 2, as a simple comparator would, it incorporates a dead band to ensure that logic-level transitions occur only once even in the presence of a noisy input signal.

Schmitt Trigger Symbol by Selket CC-BY 2.5

Assuming you want a Schmitt trigger in a circuit, you have plenty of options. There are ICs like the 74HC14 that include six (inverting) Schmitt triggers. On a schematic, each gate is represented by one of the symbols to the right; the little mark in the box is the hysteresis curve, and the little bubble on the output indicates logical negation when it’s an inverter.

You can also make them yourself out of transistors or even a 555 chip. But the easiest way by far is to introduce some feedback into a plain op amp comparator circuit.

Below are two op amps, one with some positive feedback to make it act like a Schmitt trigger. The other is just a plain comparator. You can simulate the design online.

 

schem21-wide

If you haven’t analyzed many op amp circuits, this is a good one to try. First, imagine an op amp has the following characteristics:

  • The inputs are totally open.
  • The output will do whatever it takes to make the inputs voltages the same, up to the power supply rails.

Neither of these are totally true (theory vs. practice, again), but they are close enough.

The comparator on the right doesn’t load the inputs at all, because the input pins are open circuit, and the output swings to either 0 V or 5 V to try, unsuccessfully, to make the inputs match. It can’t change the inputs because there is no feedback, but it does make a fine comparator. The voltage divider on the + pin provides a reference voltage. Anything under that voltage will swing the output one way. Over the voltage will swing it the other way. If the voltages are exactly the same? That’s one reason you need hysteresis.

The comparator’s voltage divider sets the + pin to 1/2 the supply voltage (2.5 V). Look at the Schmitt trigger (on top). If the output goes between 0 V and 5 V, then the voltage divider winds up with either the top or bottom resistor in parallel with the 10K feedback resistor. That is, the feedback resistor will either be connected to 5 V or ground.

Of course, two 10K resistors in parallel will effectively be 5K. So the voltage divider will be either 5000/15000 (1/3) or 10000/15000 (2/3) depending on the state of the output. Given the 5 V input to the divider, the threshold will be 5/3 V (1.67 V) or 10/3 V (3.33 V). You can, of course, alter the thresholds by changing the resistor values appropriately.

Practical Applications

Schmitt triggers are used in many applications where a noisy signal requires squaring up. Noisy sensors, like an IR sensor for example, can benefit from a Schmitt trigger. In addition, the defined output for all voltage ranges makes it handy when you are trying to “read” a capacitor being charged and discharged. You can use that principle to make a Schmitt trigger into an oscillator or use it to debounce switches.

If you want to see a practical project that uses a 555-based Schmitt, check out this light sensor. The Schmitt trigger is just one tool used to fight the imprecision of the real world and real components. Indeed, they’re nearly essential any time you want to directly convert an analog signal into a one-bit, on-off digital representation.