Designing A Crystal Ladder Bandpass Filter

Most hobbyists use crystals as an external clock signal for a microcontroller. A less common use would be to make a bandpass filter (BPF) for an RF signal. [Dan Watson] explains his crystal ladder design on his blog and links to several sources for understanding the theory and creating your own crystal ladder band pass filter. If you want a set of these purple PCBs you can order them straight from the purple fab.

crystalfilterschematic
[Dan]’s schematic
One of the sources that [Dan] cites is [Larry Benko]’s personal site which is primarily dedicated to amateur radio projects. Which you can find much more in-depth information regarding the design of a xtal BPF. [Larry] goes into detail about the software he uses and some of the applications of crystal ladder filters.

BPF designed by [Larry]
BPF designed by [Larry]
The process includes measuring individual xtals to determine which ones will work together for your target frequency. [Larry] also walks you through the software simulation process using LTSpice. If you aren’t familiar with Spice simulation you can get caught up by checking out the series of Spice articles by our very own [Al Williams].

Thanks to Dangerous Prototypes for the tip.

Beyond Measure: Instrumentation Essentials

The physical world is analog and if we want to interface with it using a digital device there are conversions that need to be made. To do this we use an Analog to Digital Converter (ADC) for translating real world analog quantities into digital values. But we can’t just dump any analog signal into the input of an ADC, we need this analog signal to be a measurable voltage that’s clean and conditioned. Meaning we’ve removed all the noise and converted the measured value into a usable voltage.

Things That Just Work.

This is not new information, least of all to Hackaday readers. The important bit is that we rely on these systems daily and they need to work as advertised. A simple example are the headlights in my car that I turned on the first night I got in it 5 years ago and haven’t turned off since. This is not a daytime running lights system, the controller turns the lights on when it’s dark and leaves them off during the day. This application falls into the category of things that go largely unnoticed because simply put: They. Work. Every. Time. It’s not a jaw dropping example but it’s a well implemented use of an analog to digital conversion that’s practical and reliable.

flow
Figure 1

Continue reading “Beyond Measure: Instrumentation Essentials”

Shoot Hard Drive Platters Skywards On The Power Of Magnetism

Project Hathor is an electromagnetic ring launcher that launches aluminium hard drive platters 45 feet skywards at the touch of a button. The hard work is done by a bank of capacitors which are charged to 2kV from a microwave oven transformer, before being discharged into a coil of wire on which the hard drive platter is sitting. The resulting burst of magnetic field induces a huge current in the platter, and that current in turn creates an opposing field which launches the ring into the air.

The launcher is the work of [Krux], at the Syn Shop hackerspace in Las Vegas, and he’s made a beautiful job of it. The capacitor bank has ten 3900uF 400V electrolytic capacitors wired as a single 1560uF 2kV capacitor, there are two 225W 2Kohm wire wound discharge resistors, and a beautifully designed home-made high voltage contactor featuring tungsten electrodes. The whole project has been carefully built into an acrylic case for safety, for as [Krux] points out, microwave oven transformers will kill you.

As well as the project web site, there is a YouTube playlist, an image gallery, and a GitHub repository containing all the project’s details. You can see the launcher in action in the video below, launching platters into the Nevada night right on cue.

Continue reading “Shoot Hard Drive Platters Skywards On The Power Of Magnetism”

Afroman And The Case Of The Suspect Inverter

If you search the internet for 12 volt to mains AC inverter designs, the chances are you’ll encounter a simple circuit which has become rather ubiquitous. It features a 4047 CMOS astable multivibrator chip driving a pair of MOSFETs in a push-pull configuration which in turn drive a centre-tapped mains transformer in reverse. Not a new design, its variants and antecedents could be found even in those pre-Internet days when circuits came from books on the shelves of your local lending library.

afroman-inverter-featured[Afroman], no stranger to these pages, has published a video in which he investigates the 4047 inverter, and draws attention to some of its shortcomings. It is not the circuit’s lack of frequency stability with voltage that worries him, but the high-frequency ringing at the point of the square-wave switching when the device has an inadequate load. This can reach nearly 600 volts peak-to-peak with a 120 volt American transformer, or over a kilovolt if you live somewhere with 230 volt mains. The Internet’s suggested refinement, a capacitor on the output, only made the situation worse. As he remarks, it’s fine for powering a lightbulb, but you wouldn’t want it near your iPhone charger.

If this video achieves anything, it is a lesson to the uninitiated that while simple and popular designs can sometimes be absolute gems it must not be assumed that this is always the case.

Continue reading “Afroman And The Case Of The Suspect Inverter”

Dual UART/I2C Breakout Goes Both Ways

[Jesus Echavarria] sent us a link to this cute little tool that he’s built. It’s a dual USB-to-I2C-or-UART adapter, with a few more oddball features thrown in for good measure. If you were electronics Batman, you’d have this on your utility belt.

[Jesus] originally designed the board because he wanted to sniff a bi-directional UART conversation using his computer, and get it all done in inexpensive hardware with minimal fuss. So he looked to the Microchip MCP2221 chip, which is an inexpensive USB to serial and I2C chip, but with some extras. In particular, it’s got four GPIOs, a ten-bit ADC and a five-bit DAC with selectable reference voltage, and it’s all controllable over USB. And [Jesus]’s board has two of them.

Implementing USB on a microcontroller isn’t always that much fun, so we can see why he took the straight-ahead hardware approach. And as a side benefit, he gets all the other kooky functionalities that the chip brings. And we have been introduced to what looks like a neat chip to use in USB and microcontroller projects. We’re going to put one in our next random chip order.

Boldport Tribute To Bob Pease

We have lost something in PCB design over the last few decades. If you open up a piece of electronics from the 1960s you’ll see why. A PCB from that era is a thing of beauty, an organic mass of curving traces, an expression of the engineer’s art hand-crafted in black crêpe paper tape on transparent acetate. Now by comparison a PCB is a functional drawing of precise angles and parallel lines created in a CAD package, and though those of us who made PCBs in both eras welcome the ease of software design wholeheartedly we have to admit; PCBs just ain’t pretty any more.

It doesn’t have to be that way though. Notable among the rebels are Boldport, whose latest board, a tribute to the late linear IC design legend [Bob Pease], slipped out this month. They use their own PCBmodE design software to create beautiful boards as works of art with the flowing lines you’d expect from a PCB created the old-fashioned way.

The board itself is an update to an earlier Boldport design, and features Pease’s LM331 voltage to frequency converter IC converting light intensity to frequency and flashing an LED. It’s one of the application circuits from the datasheet with a little extra to drive the LED. Best of all the kit is a piece of open-source hardware, so you can find all its resources on GitHub.

We are fans of Boldport’s work here at Hackaday, and it should come as no surprise that we have featured them before. From one of their other kits through several different pieces of PCB wall art, to their work making an appearance in Marie Claire magazine they have graced these pages several times, and we hope this latest board will be one of many more.

Rasberry Pi Analog Input Using Only Passive Components

The Raspberry Pi is a very capable device whose hardware has been pushed to the limit in all sorts of interesting ways. But even the most ingenious of experimenters have to agree on one point; it doesn’t possess an analog-to-digital converter. If you want analog inputs you will have to buy or build them.

[Mincepi] has done just that, but not as you might expect by adding an integrated circuit on one of the Pi’s interfaces. Instead the circuit [Mincepi] is using consists only of passive components, measuring the time taken to discharge the parasitic capacitance of one of the Pi’s inputs from logic 1 voltage to logic 0 voltage through a resistor into the voltage to be measured. This is a long-established approach to A to D conversion, one that was achieved back in the day with purpose-designed timers as microprocessor ancillaries.

The problem is that the Pi does not have a timer peripheral, so [Mincepi] has used the shift registers that form part of the Pi’s SPI and PCM inputs to perform this task on two channels. A sample rate of 100kHz and 6-bit resolution is claimed, with enough voltage range for a 1V peak-to-peak audio signal to be sampled.

Of course, simplicity does not guarantee a good ADC, and this circuit does not perform very well. It is noisy, non-linear, and as [Mincepi] puts it, probably sensitive to temperature. And though [Mincepi] talks in detail about the software to drive it, none is forthcoming. To quote: “It doesn’t include code since I’m in the process of writing a proper sound device module. My previous code was a simple character device, but it worked just fine, and served to prove the concept.

We really want this to work, even if it’s not the best ADC ever. So we eagerly await the sound device module, and look forward to more news from the project.

This may be the simplest of simple ADCs we’ve yet featured here on Hackaday, but it’s not the first we’ve seen. There is this one using a comparator for example, or this one using a flip-flop. It is the essence of creative electronics to eke a function from a component that was never meant to be, please keep them coming!