MatrixPortal M4 - add microphone with LEDs

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
edmason
 
Posts: 9
Joined: Thu Dec 21, 2017 4:53 pm

MatrixPortal M4 - add microphone with LEDs

Post by edmason »

Kinda new to all this. I have a MatrixPortal M4 driving 2 - 32x32 led matrices using Circuit Python.
I'd like to add a microphone to do some audio visualizations. I thought maybe I could use the Adafruit PDM microphone https://www.adafruit.com/product/4346 for this. I've wired CLK to board.tx and DAT to board.A1. And run the sample provided in the PDF setting up the microphone like:

Code: Select all

mic = audiobusio.PDMIn(board.TX, board.A1, sample_rate=16000, bit_depth=16)
Error I get running the code is

Code: Select all

ValueError: Invalid clock pin
So I ran the other example code title Where's my PDMIn? that identifies valid PDMIn combinations. It identifies
Clock pin: board.MTX_OE
Data pin: board.ESP_BUSY

I'm not sure where these pins are on the board, but I assume they are being used to drive the leds? Is it possible to use this microphone with the leds at the same time on the MatrixPortal M4? If not is there another way to add a microphone and use the leds at the same time?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: MatrixPortal M4 - add microphone with LEDs

Post by mikeysklar »

This looks like a conflict because the pins being returned by the "where is my PDMIn" are being used by the HUB75 RGB matrix connector.

You can see MTX_OE and ESP_BUSY in the pinout diagram.
Screenshot from 2022-12-03 10-25-58.png
Screenshot from 2022-12-03 10-25-58.png (474.82 KiB) Viewed 31 times
https://cdn-learn.adafruit.com/assets/a ... 1653078587

How about an analog mic?

https://www.adafruit.com/product/1063

User avatar
edmason
 
Posts: 9
Joined: Thu Dec 21, 2017 4:53 pm

Re: MatrixPortal M4 - add microphone with LEDs

Post by edmason »

Thanks for the reply and explanation. Ok, will try analog mic.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”