Timeline for Detecting peak frequency in a microphone's output signal
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 27, 2022 at 17:05 | comment | added | أيمن الفحصي | when i coud loud enough the signal peak to peak can reach 2 volts, so i think the amplifier that is built-in is good enough.. | |
May 26, 2022 at 20:43 | comment | added | chrisl | You need a voltage between ground and Vcc of your board (5V on the Uno, 3.3V on boards like the ESP32). Fi your microphone module doesn't provide that, then you need further amplication. | |
May 26, 2022 at 14:38 | comment | added | أيمن الفحصي | Hello sir. The output of my microphone is way too low. When measuring the span(max - min) of my signal(wich i'll use later on), the span is always around 2, and i need to cough really lough, and close to the mic for it to change. Is amplification inevitable? Because my microphonealready had an in-built amplifier? | |
Apr 27, 2022 at 15:31 | comment | added | chrisl | There are only few Arduino boards, which are slower than the Uno. So look at what is available for you and check the clock frequency. Research the max ADC sample rate for those boards. Then you can choose one. The ESP32 is only one possibility. | |
Apr 27, 2022 at 12:58 | comment | added | أيمن الفحصي | so i tried the long integer type but it's pretty obvious that the UNO's sampling rate doesn't match for the job. Are there any better arduino cards? I'm only interested in the audible brandwith to suggest a device that alerts in dominance of frequencies at high intensities. | |
Apr 27, 2022 at 12:53 | comment | added | أيمن الفحصي | So you think there's now way getting around buying another more precise card? | |
Apr 27, 2022 at 12:53 | comment | added | chrisl |
If you write big integer literals, make sure that they are interpreted as long . So write 1000000L instead of just 1000000 . Then please try again. Also you can use micros() to measure the time, that your measurement loop actually needs. That would make sure, that you are not actually slower with sampling than you think.
|
|
Apr 27, 2022 at 12:48 | history | edited | sempaiscuba | CC BY-SA 4.0 |
formatted code for readability
|
Apr 27, 2022 at 12:48 | comment | added | أيمن الفحصي | please check the question | |
Apr 27, 2022 at 12:47 | history | edited | أيمن الفحصي | CC BY-SA 4.0 |
added 1314 characters in body
|
Apr 27, 2022 at 12:46 | comment | added | أيمن الفحصي | here is my code : | |
Apr 27, 2022 at 12:42 | comment | added | chrisl | I doubt, that you really have an ADC sampling frequency of 1MHz on an Arduino Uno. 4kHz seems to be about aligned with 2x the max sample rate in the first comment of that question (niquist frequency). The ESP32 was surely suggested, because it runs on a way faster clock. Mine is set to 240MHz by default (in contrast to the Unos 16MHz). Please show us your code | |
Apr 27, 2022 at 12:38 | comment | added | chrisl | Related: arduino.stackexchange.com/questions/44868/… | |
Apr 27, 2022 at 12:23 | comment | added | أيمن الفحصي | i've used the included FFT library, and generated sounds with an app then verified the measured frequencies with the Spectroid app, albeit i had to put the source right at the microphone. | |
S Apr 27, 2022 at 12:22 | review | First questions | |||
Apr 27, 2022 at 12:48 | |||||
S Apr 27, 2022 at 12:22 | history | asked | أيمن الفحصي | CC BY-SA 4.0 |