Hello, I have a project that will trigger DRV2605L Haptic Driver via Red Board. The triggering impulse will come from an analog audio stream playing in real time with 12kHz short duration sinewaves embedded in the audio. Can I program the RedBoard to “listen” for these sinewaves and once detected trigger the Haptic Driver?
Many thanks for your consideration…RO
Yeah, that’s possible.
Check out this link:
https://www.arduino.cc/en/Tutorial/Simp … uencyMeter
You should be able to modify that to do what you would like to do.
I appreciate the reply. The specs within URL state…“the range currently measured by the library spans from 60 to 1500 Hz” - is there any way to bump this up around the 15kHz range?
Many thanks
Sorry about that, I didn’t catch the maximum frequency on that library.
This might work for you, it tops out at 25KHz.
https://www.avdweb.nl/arduino/timing/fr … od-counter