This program demonstrates how to predict car speed from audio file using the Doppler Effect and a MATLAB simulation. Frequency analysis is performed on the audio file to determine the detected frequency when the car is approaching and when the car has passed. This information can then be fed into the Doppler equation to determine the speed of the car during the pass by using the ratio of the incoming and outgoing frequencies.
When a sound source moves relative to an observer, the frequency perceived is shifted. This project uses that principle to reverse-calculate velocity.
[ f' = f \left( \frac{v + v_o}{v - v_s} \right) ] Where:
- ( f ) = emitted frequency
- ( f' ) = observed frequency
- ( v ) = speed of sound
- ( v_o ), ( v_s ) = velocity of observer/source
The script simulates these parameters and solves for the unknown velocity.
Peak frequency approximately 365Hz. Peak frequency approximately 328Hz.
- Vs = 343 m/s
- fin = 365 Hz
- fout = 328 Hz
- 🧮 MATLAB
- 📊 Signal Processing Toolbox
- 📁 .m script files
- Clone the repo:
git clone https://github.com/Yasteer/Doppler-Speed-Predictor.git
- Open the main .m file in MATLAB
- Run the simulation and observe the predicted speed and plots
Real-time input from audio files
Integration with a microphone for real-world testing
GUI for user interaction
Built with ❤️ by Yasteer