I am trying to record audio from a room using an Adafruit SPH0645 I2S microphone connected to a Jetson Orin NX.
Its pins are connected as follows:
3V: Pin 1
GND: Pin 6
BCLK: Pin 12
DOUT: Pin 40
LRCL: Pin 35
SEL: Not connected
I have configured the system so that the pins can be compatible with the SPH0645 microphone, using the code:
sudo /opt/nvidia/jetson-io/jetson-io.py
And using any command that appears in any of the forums that are open and you solve the problems of both Jetsons Nano and Xavier or Orin NX, it captures no signal and no noise from the microphone.
I am using Jetpack 5.1.1 and ubuntu 20.04 for the Orin.
Hi amorcilloelite,
As I understand you looking for Microphone capture. Can you connect DIN : Pin 38 to your microphone. DOUT: Pin40 is for playback from Tegra I2S perspective.
Right now is connected that way, i’ve tried some commands like amixer or even arecord, but i’m still getting no sound in the .wav archives
I’ve tried the following guide that worked in some way with the previous jetson nano, but with a Jetson Orin NX i don’t get any response form the points 3 to 8
Of course i’m gonna send you all the commands that I used.
Also in terms of power and clocking are fine. I tested in another product outside from Nvidia, that has compatibility with the microphone Ardafruit SPH0645, and i get sound in .wav
I’ve just try the code that you give me. I didn’t get any result.
I’m gonna show you the results of the commands you give me:
jetson@unbutu:~$ amixer -c APE cset name=“ADMAIF1 Mux” “I2S2”
amixer: Cannot find the given element from control hw:1
jetson@unbutu:~$ arecord -D hw:APE,0 -c 2 -r 48000 -f S32_LE -d 10 test.wav
Recording WAVE ‘test.wav’ : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo
It could be maybe any problem with the amixer library??
i’ve just use the command that you give me and i’m still not getting any sound from the audio. I’m gonna attach the file that i get from the command and the results of the terminal.
arecord -D hw:APE,0 -c 2 -r 48000 -f S32_LE -d 10 test4.wav
Recording WAVE ‘test4.wav’ : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo
Good afternoon, i’ve tried all the metods to enable the i2s2 port in the pinmux of the carrier board, but like you can see in the images below they are enable.
I’ve tried all the commands that we were talking about but it didn’t work.
Thanks for the attachment, I could see now I2S2 pinmux is set (refer soc_gpio41_ph7 in the file. func is set to i2s2). Now with the mixer control I suggested earlier should send clock to your external mic and capture data if things are fine.
Also if you have oscilloscope you can verify the I2S2 clock by probing the pin from 40 pin header or from mic point.
sorry for not answering your reply this time. I just performed the sound test with the recommendations and there was no solution, nor could I get the microphone to work.
In case someone knows how to fix this error I would like to know. Thank you very much anyway for the support given, you have been 10/10.