Question for Biomimicry Project Using Tympan

I’m a graduate student designing wearable, functional fox ears that will allow people to roughly experience a different species’ auditory perceptions.

However, my background is in sound and biology, not engineering: my professor suggested I develop the hearing functions through the Tympan Rev F hardware, but I’m concerned by the $350 price since my university isn’t funding this project.

I’m hoping to confirm whether the Rev F is in fact the best model for my goals. (I tried emailing the Tympan team via their website early last month regarding my concerns, but I never heard back.)

Provided below are my project specifications, along with questions. (This project is partly derivative of the DIY Hearing Aid process from Tympan.)

  • Since red foxes hear in the ultrasonic range (up to around 50kHz), I would need a sampling rate of 96kHz so that the Nyquist value represents the fox’s full hearing range.
  • Because people cannot hear into the ultrasonic range, I would need real-time frequency compression (dividing input frequencies by 0.5) so that ultrasonic details become audible.
  • An audio receiver would be placed within 3D-printed fox pinnae (external ear structure), which would be worn over the head; I would need a receiver for each ear.
  • Input audio would be transmitted to closed-back headphones (potentially via Bluetooth). The ears would be attached to the headband part of the headphones.

Some questions:

  • Are there student discounts available for the Rev F? My worry is that, if I purchase the Rev F, I will be required to buy further components that I cannot afford. Even if there are no discounts, would it still be worth purchasing the Rev F for this project?
  • Is it possible to use Tympan as a modified hearing amplifier, or are there parts of my project that will not work with Tympan?
  • Since I’m new to programming, what are some resources for DSP coding and working with the Tympan circuitry? Is there a particular area of programming I should start with?
  • Is there other information I’m overlooking that should be addressed?

Thank you for your feedback!

What a great project idea!

I’ll try to answer some of your questions in a follow-up post, but I wanted to let you know that I did use an older version of Tympan (a Tympan RevD, which was the newest version of Tympan at the time) along with a headset with artificial human ears.

My goal with that project was to help people build their own headsets, whether for developing better hearing protection earmuffs or for developing better voice communication headsets. This specific headset with the human ears was a kinda silly extension of that work…their strange look was mainly aimed at getting people’s attention so that I could make my main point: “even though you’re wearing hearing protection, you still need to hear!”.

This headset just brings that ambient audible frequencies into speakers within the headset. No fancy frequency-shifting was needed for my demo. Still, you can see that we were working along a similar idea as you. That’s cool.

OK, now to provide feedback / answers to some of your comments and questions:

  • Since red foxes hear in the ultrasonic range (up to around 50kHz), I would need a sampling rate of 96kHz so that the Nyquist value represents the fox’s full hearing range.

Agreed. Tympan does up to 96 kHz, as you said, which is hopefully good enough.

  • Because people cannot hear into the ultrasonic range, I would need real-time frequency compression (dividing input frequencies by 0.5) so that ultrasonic details become audible.

Agreed, though remember that most living humans (especially those over 25 years old) can really only hear up to ~16 kHz, and even that can be difficult. So, yes, you will need signal processing to bring the ultrasonic audio down to the human-audible range, but you might need to try a couple different approaches and find which is most satisfying for you and your demo:

  1. Compress the whole frequency range of 0-48 kHz down to 0-24 kHz (or 0-16 kHz or whatever). While this sounds easy, the signal processing algorithms often introduce weird artifacts that can be very distracting.
  2. Or, you can leave the audible frequencies untouched and then you can shift just the ultrasonic frequencies downward so that they are audible. You’d be hearing the natural audible audio mixed with the artificially down-shifted ultrasonic audio. While this seems less ideal than the compression approach discussed in (1), the fact that the audible frequencies are left untouched means that the listening experience becomes immersive more quickly.

There is a Tympan example for frequency compression and for frequency shifting, so you can build from working code and then quickly see which you prefer.

Be aware that the Tympan has small two microphones that are built-into the circuit board. These built-in mics do work for ultrasonic frequencies! So, without building anything yourself, you can use the Tympan plus its microphones to listen in the ultrasound. You can quickly decide which signal processing approach will work best for you.

  • An audio receiver would be placed within 3D-printed fox pinnae (external ear structure), which would be worn over the head; I would need a receiver for each ear.
  • Input audio would be transmitted to closed-back headphones (potentially via Bluetooth). The ears would be attached to the headband part of the headphones.

Agreed. As shown earlier, we did the same thing with human ear shapes and we put a microphone in each ear canal. We put speakers in our earcups, just like you did. Our BOM is part of the repo that I linked earlier (including 3D printing costs). It’s an old project, but it still might be helpful.

  • Are there student discounts available for the Rev F? My worry is that, if I purchase the Rev F, I will be required to buy further components that I cannot afford. Even if there are no discounts, would it still be worth purchasing the Rev F for this project?

Sadly, I can’t help you with this question. @biomurph might be able to let you know. As for whether the Rev F is “worth” it, I can’t answer that question for you. I can tell you:

  • The Tympan hardware/software was indeed designed to manipulate audio, like what you want to do. It seems like a good choice to me.
  • But, while there are example programs that are pretty close to what you want, you will likely need to be able to do some programming in Arduino (which is a flavor of C++). Are you comfortable with doing a bit of programming?
  • Is it possible to use Tympan as a modified hearing amplifier, or are there parts of my project that will not work with Tympan?

Thinking about your project, if you want to put microphones in your fox-shaped ears, you will need:

  • Your 3D printed fox ears
  • Microphones (electret, a few dollars)
  • Wires (a few dollars)
  • A plug to connect to plug the wires into the Tympan (a few dollars)
  • Some wired heaphones or earbuds (hopefully you might already have some?). Sadly, Tympan won’t do a bluetooth audio connection, sorry.

Unless you have very strange microphones, the Tympan has a modest mic pre-amp that can handle most common low-cost mics, such as electret mics. The Tympan also has a modest headphone amp to drive most consumer headphones/earphones (down to 16 ohms). So, you shouldn’t need anything extra for that.

  • Since I’m new to programming, what are some resources for DSP coding and working with the Tympan circuitry? Is there a particular area of programming I should start with?

This is the biggest issue with any of these hobby audio projects. Do you have any previous programming experience?

We targeted users who had some experience using Arduino electronics and Arduino programming. Have you done this before? If so, then you’ll feel at home and you’ll be able to focus on the DSP. If not, you’ll have to learn to do a bit of programming, too, which will be effort.

Let me know how all of this sounds!

This does sound like a fun idea!
I have used Tympan to hear and record bat sonar (and other ultrasonic stuff) and it worked very well.

I can understand your issue with the cost, and unfortunately, we don’t have Tympan Rev F in stock.

@chipaudette do you think that the Teensy 4.1 and the PJRC Audio Board would be able to function up to @quiscale requirements?

Hello @chipaudette,

Thank you so much for your detailed replies! I’m excited that there’s precedent for my project: I struggled to find anything similar, though I don’t believe an exact version of what I wish to achieve currently exists.

To address your questions:

  • I have minimal programming experience: mainly I’ve worked within the visual Max/MSP environment and a small amount of HTML. However, one of the professors I’m working with is familiar with Arduino, which I intend to learn over the next few months.
  • I have familiarity with DSP and microphone functions, as I conduct acoustic fieldwork for my research. One area I hope to explore in my project is hearing directionality, as foxes (and many other mammals) are able to rotate their ears, which is not a relationship typically explored in microphone and recording contexts. Though this focus is a lesser priority compared with having a functional prototype, I would need to consider having a low-noise servo base for the ears to attach to, as well as having the microphones situated in such a way that it avoids receiving the servo sounds.
  • I’m working with an additional professor for the fox ear designs: I believe he has cartilage scans of red fox pinnae I can build my model from.

Regarding the post by @biomurph, the Rev F is indeed out-of-stock, and I’m not familiar with other boards that would come with the desired components.

  • Do you know when the Rev F may return in stock?
  • Otherwise, I expect I would need some kind of Teensy or Arduino board: do you have recommendations for other products I should consider?

Thank you again for the advice and resources! I will further explore the provided feedback throughout the summer.