A man's hands are shown holding a microphone capsule with a 3D-printed part on top of it, with a flared metal tube protruding from the plastic.

2025 Component Abuse Challenge: Playing Audio On A Microphone

Using a speaker as a microphone is a trick old enough to have become common knowledge, but how often do you see the hack reversed? As part of a larger project to measure the acoustic power of a subwoofer, [DeepSOIC] needed to characterize the phase shift of a microphone, and to do that, he needed a test speaker. A normal speaker’s resonance was throwing off measurements, but an electret microphone worked perfectly.

For a test apparatus, [DeepSOIC] had sealed the face of the microphone under test against the membrane of a speaker, and then measured the microphone’s phase shift as the speaker played a range of frequencies. The speaker membrane he started with had several resonance spikes at higher frequencies, however, which made it impossible to take accurate measurements. To shift the resonance to higher frequencies beyond the test range, the membrane needed to be more rigid, and the driver needed to apply force evenly across the membrane, not just in the center. [DeepSOIC] realized that an electret microphone does basically this, but in reverse: it has a thin membrane which can be uniformly attracted and repelled from the electret. After taking a large capsule electret microphone, adding more vent holes behind the diaphragm, and removing the metal mesh from the front, it could play recognizable music.

Replacing the speaker with another microphone gave good test results, with much better frequency stability than the electromagnetic speaker could provide, and let the final project work out (the video below goes over the full project with English subtitles, and the calibration is from minutes 17 to 34). The smooth frequency response of electret microphones also makes them good for high-quality recording, and at least once, we’ve seen someone build his own electrets. Continue reading “2025 Component Abuse Challenge: Playing Audio On A Microphone”

Progressive Or Thrash? How Metal Detectors Discriminate

Metal detecting is a fun pastime, even when all you can find is a little bit of peace and a whole lot of pop tabs. [Huygens Optics] has a VLF-based metal detector that offers much more feedback than just a beep or no beep. This thing is fancy enough to discriminate between types of metal and report back a numerical ID value from a corresponding range of conductivity.

Most pop tabs rated an ID of 76 or 77, so [Huygens Optics] started ignoring these until the day he found a platinum wedding band without looking at the ID readout. Turns out, the ring registered in the throwaway range. Now thoroughly intrigued by the detector’s ID system, [Huygens Optics] set up a test rig with an oscilloscope to see for himself how the thing was telling different metals apart. His valuable and sweeping video walk-through is hiding after the break.

A Very Low-Frequency (VLF) detector uses two coils, one to emit and one to receive. They are overlapped just enough so that the reception coil can’t see the emission coil’s magnetic field. This frees up the reception coil’s magnetic field to be interrupted only by third-party metal, i.e. hidden treasures in the ground.

Once [Huygens Optics] determined which coil was which, he started passing metal objects near the reception coil to see what happened on the ‘scope. Depending on the material type and the size and shape of the object, the waveform it produced showed a shift in phase from the emission coil’s waveform. This is pretty much directly translated to the ID readout — the higher the phase shift value, the higher the ID value.

We’ve picked up DIY metal detectors of all sizes over the years, but this one is the ATtiny-ist.

Continue reading “Progressive Or Thrash? How Metal Detectors Discriminate”

Phase Shift Pump Control? There’s An App For That.

The sort of pumps used in the filtration systems of fountains and swimming pools don’t take kindly to running dry. So putting such a pump on a simple timer to run while you’re away comes with a certain level of risk: if the pump runs out of water while you’re gone, you might come home to a melted mess. One possible solution is a float sensor to detect the water level in whatever you’re trying to pump, but that can get complicated when you’re talking about something as large as a pool.

For his entry into the 2019 Hackaday Prize, [Luc Brun] is working on controller that can detect when the pump is running dry by monitoring the phase shift between voltage and current. With an inductive load like a pump, the current should lag behind the AC voltage a bit under normal operation. But if they become too far out of phase with each other, that’s a sign that the pump is running in a no-load condition because there’s no water to slow it down.

As [Luc] explains in the project write-up, simply monitoring the pump’s peak current could work, but it would be less reliable. The problem is that different motors have different current consumptions, so unless you calibrated the controller to the specific load it’s protecting, you could get false readings. But the relationship between current and voltage should remain fairly consistent between different motors.

The controller is powered by a Arduino Nano and uses a ACS712 current sensor to take phase measurements. Since he had the ability to toggle the pump on and off with a relay attached to the Arduino, [Luc] decided to add in a few other features. The addition of a DS1307 Real Time Clock means the pump can be run on a schedule, and an HC-05 Bluetooth module lets him monitor the whole system from his smartphone with an Android application he developed.

Since the theme of this year’s Hackaday Prize is designing a product rather than a one-off build, judges will be looking for exactly the sort of forward thinking that [Luc] has demonstrated here. As the controller is currently a mass of individual modules held inside a waterproof enclosure, the next steps for this project will likely be the finalization of the hardware design and the production of a custom PCB.