Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: ahinduja

Search: Search took 0.00 seconds.

  1. That make sense, thanks Mark!

    That make sense, thanks Mark!
  2. Question regarding effect of changing sampling rate and block sample size on queues

    Hello,

    I am looking to record a short duration of sound and analyze the recorded queue for a particular frequency tone, and when it peaks in my recording. I am triggering the recording at the...
  3. Replies
    2
    Views
    241

    Actually realized that by placing a small delay,...

    Actually realized that by placing a small delay, I could get the output as expected. Also clearing the pointer helped. Sharing the code if anybody else find's it useful.


    /*
    SD -> pin 8...
  4. Replies
    2
    Views
    241

    Made some changes to my code and pasting the...

    Made some changes to my code and pasting the complete one here. I think I would need to use the playBuffer() in the play queue taking in each 128 16 bit array at a time. I am calling two functions in...
  5. Replies
    2
    Views
    241

    Audio Play queue help

    Hi all,

    I am still trying to perform simple one way acoustic ranging through the audio library but keep having inconsistencies in the elapsed timing even after increasing the sampling rate. The...
  6. Hi Frank, I wanted to tryout your sample rate...

    Hi Frank,
    I wanted to tryout your sample rate changing code for the Teensy 4, which I pulled from CorBee's Bat Detector repo on github. It seems that it's not perhaps compatible with the Teensy 4...
  7. Got it. Thanks!

    Got it. Thanks!
  8. This was very informative. Thank you! I'll have...

    This was very informative. Thank you! I'll have to read up more on this. From the snapshot of the audio library GUI, I see that two channels are being used from the i2s1 and then being fed into i2s2....
  9. Thanks Pete. Looks like without increasing the...

    Thanks Pete. Looks like without increasing the sample rate, FFT won't be practical for my application
  10. Thread: Bat detector

    by ahinduja
    Replies
    653
    Views
    61,432

    Thanks Cor, I'll have a look at it!

    Thanks Cor, I'll have a look at it!
  11. Thread: Bat detector

    by ahinduja
    Replies
    653
    Views
    61,432

    Hi all, on recommendation from Frank I was going...

    Hi all, on recommendation from Frank I was going through this thread specifically looking to see if it is possible to increase the sampling rate for the audio library. On a few other threads here I...
  12. Hey Pete, just a quick question, how did you come...

    Hey Pete, just a quick question, how did you come up with the FFT256 resolution of 50cm in water? I thought the time interval is only dependent on the sampling rate and FFT bin count? So with the...
  13. Pete, Frank, Chipaudette, thanks for the valuable...

    Pete, Frank, Chipaudette, thanks for the valuable information and feedback!
    My current setup is to develop a proof of concept in air, I only have a couple waterproof microphones but will have to...
  14. Hi Pete, thanks for the information! I guess I am...

    Hi Pete, thanks for the information! I guess I am limited by hardware in this case. Either way the maximum frequency I could get is 20Khz if I switch to perhaps a PDM microphone instead of the I2S...
  15. Ranging using Teensy 4 + mic and speaker, timing variance issue

    Hi all,

    The project I am trying out is to do acoustic ranging using a Teensy 4 + speaker + I2S microphone. The issue I need help with is the large variance in the time elapsed between the sound...
  16. Thanks Paul! That did the trick!

    Thanks Paul! That did the trick!
  17. On further thinking, I think my issue is using...

    On further thinking, I think my issue is using the delay() command since that would stop everything and the FFT won't process during the time. I don't know of any other method of timing the beeps...
  18. Simple ranging with Teensy 4. Recurring beeps + FFT trouble

    Hi all,

    The project I am trying out is to do ranging using a Teensy 4 + speaker + I2S microphone. My plan is to have a recurrent short 8khz tone sent via the speaker (while noting the time sent...
  19. Great, thanks Pete! -Akshay

    Great, thanks Pete!

    -Akshay
  20. I tried again and now I do get a response for the...

    I tried again and now I do get a response for the higher bins. Its more easy to see the change in the serial plotter, than monitor. I'd still like to know about the sampling rate and if it can be...
  21. Hi Pete, Yes if I remove the "failed" print I...

    Hi Pete,

    Yes if I remove the "failed" print I do get some low values for the first two bins. I tried a sweeping sine wave to see the response in other bins but nothing turns up just the "-" for...
  22. Can't get FFT1024 to work with Teensy 4.0 and SPH0645 I2S Mic

    Hello!

    I am trying out an audio project which would require me to listen to a fixed frequency pulse which my microphone would hear and record the time of hearing. For this I am using the Teensy 4...
Results 1 to 22 of 22