Using Sonar To Measure Traffic Speeds

One of the most common ways of measuring the speed of a vehicle is by using radar, which typically involves generating radio waves, directing them at a moving vehicle, and measuring the various ways that they return to the device. This is a tried-and-true method, but can be expensive and technically complex. [GeeDub] wanted an easier way of measuring vehicles passing by his home, so he switched to using sonar instead to measure speeds based on the sounds the cars generate themselves.

The method he is using is similar to passive sonar in submarines, which can locate objects underwater based on the sounds they produce. After a false start attempting to measure Doppler shift, he switched to time correlation using two microphones, essentially using stereo audio input to detect subtle differences in arrival times of various sounds to detect the positions of passing vehicles. Doing this fast enough and extrapolating the data gathered, speed information can be calculated. For the data gathering and calculation, [GeeDub] is using a Raspberry Pi to help keep costs down, and some further configuration of the microphones and their power supplies were also needed to ensure quality audio was gathered.

With the system in place in a window, it detected around 9,000 vehicles over a three-day period. The software generates a normal distribution of vehicle speeds for this time, with the distribution centered on around 35 MPH, slightly above the posted speed limit of 30. As long as there’s a clear line of sight to the road using this system it’s just as effective as some other passive systems we’ve seen to measure vehicle speed. Of course, active speed measurement systems are not out of the realm of possibility if you’re willing to spend a little more.

A Studio Condenser Microphone For A Constrained Budget

As the Internet has turned so many of us into content creators, we’ve seen the quality of webcams and microphones steadily increase to the point at which even a fairly modestly-equipped YouTuber now captures their wisdom at a quality far exceeding that you might have found in some broadcast studios not so long ago. Still, decent quality costs money, and for that reason [Spirit532] has built his own high quality condenser microphone for less expenditure.

The capsule and body are off-the-shelf items — what he’s produced is the bias voltage supply and preamplifier. In both cases these are the interesting parts of a condenser microphone, so their circuit bears a second look.

The condenser microphone takes a diaphragm and turns it into one side of a capacitor. If you apply a charge to this capacitor, the voltage over it changes minutely with the capacitance as the diaphragm vibrates. Thus to have a usable audio signal level a high-voltage bias supply is required to provide the charge, and a very high impedance preamplifier circuit  to catch the signal without draining the capacitor.

His bias supply is a charge pump using a string of diodes and capacitors fed by a chain of CMOS inverters, with an RC filter and resistor chain to provide that super-high impedance. The preamplifier meanwhile is a unity gain high-impedance op-amp with an inverting stage to provide a balanced connection. For good measure the circuit also includes a phantom power supply.

This is an interesting project for anyone with an interest in audio. if you’re further interested in condenser microphones, how about also looking at electret microphones?

Lo-Fi Fun: Beer Can Microphones

Sometimes, you just need an easy win, right? This is one of those projects. A couple months back, I was looking at my guitars and guitar accessories and thought, it is finally time to do something with the neck I’ve had lying around for years. In trying to decide a suitable body for the slapdash guitar I was about to build, I found myself at a tractor supply store for LEGO-related reasons. (Where else are you going to get a bunch of egg cartons without eating a bunch of eggs?) I  noticed that they happened to also stock ammo boxes. Bam! It’s sturdy, it opens easily, and it’s (very) roughly guitar body shaped. I happily picked one up and started scheming on the way home.

Having never built a cigar box guitar before and being of a certain vintage, I’m inclined to turn to books instead of the Internet, so I stocked up from the library. Among my early choices was Making Poor Man’s Guitars by Shane Speal, who is widely considered to be the guru on the subject. In flipping through the book, I noticed the beer can microphone project and was immediately taken by the aesthetic of some cool old 70s beer can with a 1/4″ instrument jack on the bottom, just asking for some dirty blues to be belted into it. I had to build one. Or twelve.

Continue reading “Lo-Fi Fun: Beer Can Microphones”

A Simple High-Fidelity DIY Mic Pre Amp

If you’re doing any serious work with microphones, you’ll typically find yourself in want of a dedicated preamp. [ojg] needed just such a thing for acoustic measurement duties, and set about working up a cheap DIY design by the name of ThatMicPre.

The design is based around the THAT1510 preamp IC, known for its good frequency response and low harmonic distortion and noise. The design is also compatible with THAT1512, SSM2019, and INA217 chips as well. [ojg] gave the design switch-controlled gain levels, providing greater accuracy than a potentiometer adjustment, and the ability to supply phantom power for mics that require it. The PCB is designed to rely on through-hole parts and common connectors for easy assembly.

The design is open source, and has already been built by others on the DIYAudio forums. Built into a simple case, it looks like a handsome and well-built piece of audio equipment. We’ve featured quite a few unique preamps over the years, and if you’ve been building your own, we’d love to see those too!

Camera-Mounted Stereo Mic Is Fluffy And Capable

Typically, the audio coming out of your camera is not of the greatest quality. An external mic is generally a great upgrade, and this build from [DJJules] aims to be just that.

It’s a stereo mic setup based on the work of the Office de Radiodiffusion Télévision Française, or ORTF. The ORTF stereo technique defines using two cardioid mics pointing left and right at a seperation of 110 degrees and 17 cm apart, which captures a quality stereo field that also sounds good when presented as a mono mixdown.

The build uses a simple wooden frame to hold two electret mic capsules in the required orientation. They’re wired up to a 3.5mm jack so they can be plugged straight into a mic input on a DSLR or other similarly-equipped camera. Hair curlers covered in faux fur are used as a wind shield for the mics, and gives the build a properly professional look. The frame is also given a mount so it can easily sit on a camera’s cold shoe fitting. Alternatively, a screw mount can also be used.

Good audio is absolutely key to making good content, and having quality mics is definitely what you need to achieve that. We’ve featured some other great DIY mic builds over the years, too. Video after the break. Continue reading “Camera-Mounted Stereo Mic Is Fluffy And Capable”

Rib Cage Lamp Kicks It Up A Notch With Party Mode

We think [Michelle]’s sound-reactive rib cage lamp turned out great, and the photos and details around how it was made are equally fantastic. The lamp is made of carved and waxed wood, and inside is a bundle of LED lighting capable of a variety of different color palettes and patterns, including the ability to react to sound. Every rib cage should have a party mode, after all.

The LED strip is fashioned into an atom-like structure.

Turns out that designing good rib cage pieces is a bigger challenge than one might think. [Michelle]’s method was to use an anatomical 3D model as reference, tracing each piece so that it could be cut from a flat sheet of wood.

The resulting flat pieces then get assembled into a stack, with each rib pointed downward at a roughly 20 degree angle. This process is a neat hack in itself: instead of drilling holes all at exactly the same angle, [Michelle] simply made the holes twice the diameter of the steel rod they stack on. The result? The pieces angle downward on their own.

The LED lighting is itself a nice piece of work. The basic structure comes from soldered solid-core wire. The RGB LED strip gets wound around that, then reinforced with garden wire. The result is an atomic-looking structure that sits inside the rib cage. An ESP32 development board drives everything with the FastLED library.

Code for everything, including the sound-reactive worky bits, which rely on an INMP441 I2C microphone module is all available on GitHub. And if you want to make your own sound-reactive art, make sure to check out these arms as well.

Want to see the rib cage in action? A short demo video is embedded below that demonstrates the sound reactivity. Equally applicable to either party or relaxation modes, we think.

Continue reading “Rib Cage Lamp Kicks It Up A Notch With Party Mode”

Current Loop Extends Wired Microphones Past 1 Km

A problem which beset early telephone engineers was that as the length of their lines increased, so did the distortion of whatever signal they wanted to transmit. This was corrected once they had gained an understanding of the capacitance and inductance of a long cable. The same effects hamper attempts to place microphones on long lines, and [Leo’s Bag of Tricks] has a solution for doing that using Cat5 cable. The application is audio surveillance, but we think the technique is useful enough to have application elsewhere.

The solution which you can see in the video below the break will be familiar to teletype aficionados who have encountered current loops, in that it creates an analogue current loop. There is a standing DC current in the tens of miliamperes, and this has the audio imposed upon it by an amplifier and  shunt transistor. The audio can be easily retrieved using a pair of small transformers, leading to efficient transfer over as much of a kilometer of Cat5 cable. We’re guessing it’s not quite audiophile quality, but it’s useful to know that a current loop can be just as useful in the analogue domain as in the digital. If the subject interests you, we did a feature on them a few years ago.

Continue reading “Current Loop Extends Wired Microphones Past 1 Km”