Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Several I2S microphones on Teensy 4, using CircuitPyhton?

  1. #1
    Junior Member
    Join Date
    Mar 2023
    Posts
    2

    Several I2S microphones on Teensy 4, using CircuitPyhton?

    Hi everyone
    This is my (almost) first post in this forum. I'm more familiar with Arduino and ESP32 stuff, but for a work project I'd like to try and connect several microphones on a Teensy 4 board, to do signal processing (speech enhancement using AI).
    My main questions are:
    • Is it possible to connect several microphones on a single Teensy board? Do I need to use a multiplexer?
    • Do I need one Audio Adaptor board for each microphone ?
    • What microphone would you suggest for best use on a Teensy? I already have one of these Adafruit I2S MEMS Microphone Breakout - SPH0645LM4H: is it a good choice?
    • Is there any CircuitPython library that I could use for sound acquisition with this microphone array?

    Thank you for your help.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,656
    The audio library works with Arduino but not Python. It can support up to 10 channels, 8 on the first I2S port (using 4 data input pins) and 2 more on the second I2S port.

    This 31 page tutorial can help you get started with using audio on Teensy.

    https://www.pjrc.com/store/audio_tutorial_kit.html

    Maybe skip to 8 page to learn how the design tool works. There's also a full walkthrough video, in case you get stuck or just want to watch (but actually doing the tutorial is of course the best way to learn).

    SPH0645LM4H works. Here's a prior conversation about using it.

    https://forum.pjrc.com/threads/47010...SPH0645LM4H-B)

    Because this microphone has some minor issues, an example was added to the audio library. In Arduino, you can open it with File > Examples > Audio > HardwareTesting > Microphones > SPH0645. Or you can see the code here:

    https://github.com/PaulStoffregen/Au...45/SPH0645.ino

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •