This project implements real-time tone detection and direction-of-arrival (DOA) estimation using the C language. It is designed for integration with LabVIEW via DLLs.
- Custom FFT implementation (Cooley-Tukey Radix-2 DIT)
- CFAR based tone detection algorithm
- Phase-difference DOA estimation from two microphone signals
- Rolling buffer of last 10 DOA angle results for LabVIEW plotting
tone_detector.c
– Main source file containing FFT, CFAR, and DOA functionstone_detector.h
– Header filevii.png
– LabVIEW block diagram screenshot
- Compile
tone_detector.c
into a DLL using LabWindows/CVI or compatible C compiler. - In LabVIEW, use "Call Library Function Node" to call
ProcessAudio
orEstimateDOA
.
Detects tone frequency in mono signal using FFT and CFAR.
Calculates DOA angle using phase difference at the tone frequency bin between two microphone signals.