Digital signal processing

FerroDSP.

Experimental metal detector using ADAU1452

ADAU1452SigmaStudioS/PDIFRealSense D415

Explore the source on GitHub ↗

Artistic illustration of FerroDSP showing a metal-detector coil, board and signal-processing plots
Artistic illustration · not a photograph of the device

The idea

FerroDSP is an experimental metal detector in which an ADAU1452 SigmaDSP audio processor generates and processes search-head signals. Custom electronics, SigmaStudio algorithms and 3D-printable parts form one platform for investigating the response of metal targets.

The project lets us change processing on the same hardware: investigate filters, delays, signal amplitude and phase, and compare algorithm changes with measurements. This audio processor listens too — to a coil rather than music.

From a search head to a shared experiment

Updated 11 November 2026. The human builds the electronics, defines test conditions and checks conclusions. AI helps interpret schematics, write software and compare measurements. FerroDSP now supports this cycle with a dedicated laboratory: target video, phase, amplitude and distance accompany the recorded data and quality flags.

FerroDSP Lab — PC laboratory

Download the portable Windows x64 version · Quick start · Laboratory demonstration

Extract the entire archive and run FerroDSP-Lab.exe. Python and separate library installation are unnecessary; device drivers are required. Version 0.1.0-preview.1 is a signal research tool. On a new setup, recalibrate the coil plane, empty background and phase baseline.

Actual FerroDSP Lab interface: depth camera on the left, phase, amplitude and distance plots on the right, sample table below
Author-supplied screenshot of the running laboratory. The application interface is Russian. Error counters are cumulative, not statistics for one trial. Open the image for the full-resolution view.

Color and depth can be viewed separately or with adjustable overlay. Before recording, select a sample with its material, dimensions, orientation and planned distance. The program records PCM, Z16 depth, color, I/Q, timestamps and quality masks; the demonstration H.264 MP4 includes the image, sample name and plots. Derived analysis data are stored in HDF5.

Distance is measured to the saved coil plane, rather than from the camera. The closest visible surface can belong to a hand or holder. The number above the preview shows the raw measurement; the distance trace uses a five-frame outlier filter. Original values and replacement flags are retained. PC timestamp alignment does not imply hardware synchronization between camera and audio.

Bench equipment

Function Manufacturer and model Published trial mode
Color and depth camera Intel RealSense D415 USB 3, 640 × 480; ring recording at 15 fps
Optical audio capture Creative Technology, Sound Blaster G3 S/PDIF IN, WASAPI exclusive, 96 kHz, stereo PCM24
Digital processing Analog Devices ADAU1452, SigmaStudio 4.7 DSP 96 kHz; 15.2 kHz generator
ADCs and DAC Texas Instruments PCM1808 × 2, PCM5102A Two RX channels and two transmit-path signals
Transmit amplifier STMicroelectronics TDA2050 PC Stream generator level −18 dB
Configuration interface USBi Manufacturer of this particular adapter unconfirmed

The camera connects directly over USB; there is no separate video capture card. PCM24 is the recording format; Creative specifies 16-bit Optical In at 48/96 kHz for the G3. Effective resolution of the complete signal chain was not measured. A level in dB is not transmitter power in watts.

Two SigmaStudio projects

Project Purpose Saved settings
Phase Tracking Initial balancing and slow phase tracking 15.2 kHz, TX −30 dB; zero errors and warnings
PC Stream Four complex I/Q channels for the PC laboratory 15.2 kHz, TX −18 dB, LIVE; zero errors and warnings

Phase Tracking allows 5 seconds for settling, then performs initial adjustment until second 25. Slow tracking starts after two seconds of a quiet background within ±0.015 relative units. It freezes outside this window; a weak, slowly moving target inside the window can be absorbed into the baseline estimate. The native T22 detector output is in relative units, not degrees.

PC Stream demodulates inputs 0 and 1 (RX), 16 (TX coil side), and 17 (TX amplifier side). After a 100 Hz low-pass filter, the complex envelopes are carried on four frequencies through two S/PDIF channels: I on the left, Q on the right. The PC produces 100 sets of I/Q per second. These are not four broadband streams of raw ADC samples. DSP execution and optical capture run at 96 kHz; the protocol’s ADC serial clock configuration field is 48 kHz.

Blocks in both projects are arranged by signal path. Program and parameter memory match fresh compilations of the original projects byte for byte. Algorithms and verification · Transport protocol.

Bench measurements: 10–11 November 2026

English PDF report, 6 pages · Русский PDF · Data and reproducible plots

The search head was horizontal, approximately 650 mm above a wooden surface over a reinforced concrete floor. Samples moved between the head and floor. Early pass distances were supplied by the operator; the later ring recording includes D415 measurements. These results describe one bench setup, not a specification of detection depth or metal-classification accuracy.

Relative T22 detector ranges for copper, aluminum, a screw and a ring at different orientations and distances
Native balanced detector: minimum and maximum relative to the background for 10 labeled recordings. These are not degrees or confidence intervals. One of 11 recordings is excluded from the plot because its distance and orientation are unconfirmed. Screw orientation refers to its axis; foil and ring orientation refers to their plane.
Direct optical recordings of copper and a steel disk: RX0/RX1 relative phase and relative amplitude
Copper at about 200 mm and a steel disk at about 400 mm: both can produce negative RX0/RX1 phase changes. A sign-only classification rule is not supported here. RX and TX were recorded in separate passes in these trials and cannot be combined into a synchronous pair.
Ring recording on 11 November: distance to the coil plane, phases and amplitudes on a shared timeline
A 21 × 3 mm ring with its plane parallel to the coil; D415 at 640 × 480 and 15 fps. The recording contains 6715 I/Q estimates and 999 camera frames; 905 frames have a complete set of valid aligned data. Gaps and raw distance are retained.
Verification of transmitted I/Q test values and quality of a 60-second background recording
Transport verification: 20 of 20 test plateaus and 396 stable frames. The 60-second background recording has 5825 valid estimates out of 5997 and seven timing-discontinuity intervals. Accuracy of transporting test numbers is not metal-classification accuracy.

Further trials retain four complex channels, compare RX with a TX reference and examine the ratio of the two transmit-path signals. Quality control, baseline compensation and classification are separate steps. Evaluation must include entire passes and unseen objects: three successful blind trials with familiar samples do not establish accuracy. The magnetic caliper at 250 mm received a saved prediction of “undetermined.”

Electronics inside the search head

The board sits directly beside the transmit and receive coils. This shortens the weak analog signal’s path to the input electronics. How much this layout improves a particular unit’s stability still needs to be evaluated through measurements.

The enclosure and coil formers were designed alongside the electronics. The repository contains STL, STEP and M3D models for printing parts and adapting the mechanical design in CAD.

Signal path

  1. Transmit. ADAU1452 generates a signal and sends it over I2S to the left channel of a PCM5102A DAC. It then passes through an output filter, TDA2050 amplifier and coupling network to the TX coil.
  2. Receive. The RX coil couples to the transmitter through the magnetic field. Its signal passes through the LMP7721 input stage to a PCM1808 ADC, then to the DSP.
  3. Reference measurements. A second PCM1808 digitizes signals from transmit-path circuits through OPA2189 stages. These channels provide a basis for comparing the response with reference signals.
  4. Output. The design provides an analog output through the right PCM5102A channel and optical S/PDIF through a buffer and transmitter. Output content depends on the DSP configuration.

The schematic describes hardware routes. Optical capture through a Creative Sound Blaster G3 was verified in the 10–11 November 2026 experiments; the transmitted content depends on the selected SigmaStudio project. Conditions and limitations are documented in the bench report.

What SigmaStudio does

The saved project contains oscillators, FIR and other filters, Hilbert transforms, adjustable delay, envelope detectors and output-signal blocks.

The block graph lets us investigate individual processing sections. After algorithm changes, recompile the project and compare results using the same search head under reproducible conditions. Target discrimination depends on the algorithm, adjustment and testing, not the list of blocks alone.

Archived DSP build of 7 February 2026

According to the compilation report of 7 February 2026 and the project README:

Parameter Saved configuration
Project version Ferrodsp_v1_exp2
Processor / environment ADAU1452 / SigmaStudio 4.7
Sample rate 96 kHz
Cycle utilization About 39%
Program memory About 22%
Data memory DM0 / DM1 About 6% / 3%
Compilation result 0 errors, 0 warnings

These estimates apply to the saved build. They show that configuration’s resource margin, but do not replace checks of a new version or hardware measurements.

FerroDSP coils — DD construction

The TX transmit coil connects to X3, and RX connects to X2. RX has two halves with a center tap. According to the author’s original record of 1 November 2026, the author’s unit has these parameters; the English account preserves the same values:

Parameter Transmit TX Receive RX, L1 Receive RX, L2
Wire diameter 0.45 mm 0.15 mm 0.15 mm
Turns 45 100 100
Resistance 2.4 Ω 63 Ω 67.9 Ω
Inductance 787 µH 5.495 mH 6.388 mH
Quality factor Q 16.3 4.92 5.25

L1 and L2 here name the RX halves, not PCB component designators. The frequency and conditions used to measure inductance and Q have not yet been supplied. These values describe the author’s unit, not guaranteed parameters for every coil built from the design.

Transmit-coil resonance

Two parallel 68 nF capacitors, C33 and C34, give 136 nF. For TX inductance 787 µH, the ideal LC formula f₀ = 1 / (2π√(LC)) gives about 15.38 kHz. The calculation assumes that no additional C30 capacitance is fitted; the generator was set to 15.2 kHz in the 10–11 November experiments. That setting is not a measurement of loaded resonance or the frequency used to measure Q.

The author observed about 120 V peak-to-peak (Vpp) across TX at resonance. This is the voltage swing, not an RMS value.

Balancing matters

Correct balancing affects sensitivity and discrimination — distinguishing metals by their phase response. The author describes this procedure for the particular unit:

  1. Connect two oscilloscope probes to the outer RX terminals and the channels’ ground leads to the center tap.
  2. Move RX relative to TX while observing the phase relationship of the two signals.
  3. Find a position with opposite-phase signals.
  4. When metal is brought near, observe the amplitude decrease in one RX half and increase in the other.

Before connection, account for the oscilloscope channels’ shared ground: the RX center tap must permit connection to instrument ground. Measuring TX voltage requires a probe and connection method rated for that voltage; connecting common ground to an arbitrary transmit-circuit point can short it to earth.

This describes the author’s practice. The automatic phase-tracking algorithm and initial bench responses were published in November. Standardized sensitivity and classification accuracy have yet to be established. Opposite-phase signals alone do not establish detection performance. Parameters and adjustment method in English, with the immutable Russian source linked above.

What exists and what still needs checking

The public materials contain search-head photographs, the schematic, board files, two arranged SigmaStudio projects, a portable PC laboratory and a bench report for 10–11 November. This is an experimental prototype, not an instrument with verified detection specifications.

Further work includes repeatable trials with unseen objects and different soils, detection-depth and classification evaluation, noise, drift, power consumption and battery life. Initial bench series and transport checks are published with quality masks and gap reporting. Coil winding parameters and the author’s balancing method are available; a complete assembly guide and quantitative adjustment criteria remain to be prepared.

Materials and further development

Explore the materials with AI: trace the schematic, prepare calculations and plan experiments. The practical cycle is hypothesis → one change → measurement → comparison. For a binary .dspproj, screenshots of the relevant SigmaStudio graph section and its parameter values are useful; extracted strings alone are insufficient.

The author supplied this page’s cover as an artistic illustration. Its board, display and plots are not photographs of the prototype or results of its tests; actual prototype photographs are shown below and available in the repository.

← All workshop projects
WORKSHOP / ASSISTANT

NeuroEngineer.

Check answers against their sources. A short conversation history stays only in this tab’s memory.

Project: FerroDSP

Hello! I can help you explore the project materials. Which part are you interested in?

Up to 800 characters · Enter to send