medwatt
Newbie level 5
Hello,
I am building a metal detector and I have succeeded. Everything is OK. I have connected a speaker to its output and it sends out different frequency waves whenever a metal is brought near the detector.
However, I want now to interface it with the computer so that I can write a software to detect the different frequencies and give a simple display what metal has been detected. I mean that I in the code if the signal has a frequency of 50khz, then display 'BRASS'. Something like that. I can write fairly well simple programs so writing it is not the case. What my problem is how to get the program to detect and determine what is the frequency of this signal and the rest will be fine.
I have an idea that instead of sending the signal to a speaker, I will just connect a pin to either ends of the output and insert it to the audio jack of the computer. I have checked the sample of the signals using the oscilloscope and there were no harmonics; just a single frequency.
I want someone to help me in how to detect just the frequency of the whatever signal is at the audio jack of my computer and give me the frequency.
Or if someone has another better idea, I will appreciate it.
Thank you
I am building a metal detector and I have succeeded. Everything is OK. I have connected a speaker to its output and it sends out different frequency waves whenever a metal is brought near the detector.
However, I want now to interface it with the computer so that I can write a software to detect the different frequencies and give a simple display what metal has been detected. I mean that I in the code if the signal has a frequency of 50khz, then display 'BRASS'. Something like that. I can write fairly well simple programs so writing it is not the case. What my problem is how to get the program to detect and determine what is the frequency of this signal and the rest will be fine.
I have an idea that instead of sending the signal to a speaker, I will just connect a pin to either ends of the output and insert it to the audio jack of the computer. I have checked the sample of the signals using the oscilloscope and there were no harmonics; just a single frequency.
I want someone to help me in how to detect just the frequency of the whatever signal is at the audio jack of my computer and give me the frequency.
Or if someone has another better idea, I will appreciate it.
Thank you