nano@jetson:~/mic_hat$ python3 pixels.py
Traceback (most recent call last):
File "pixels.py", line 130, in <module>
pixels = Pixels()
File "pixels.py", line 25, in __init__
self.dev = apa102.APA102(num_led=self.PIXELS_N)
File "/home/nano/mic_hat/apa102.py", line 93, in __init__
self.spi.open(bus, device) # Open SPI port 0, slave device (CS) 1
FileNotFoundError: [Errno 2] No such file or directory
Seems like itβs not able to open SPI port ? In raspberry you have to open the port using raspi-config, I tried with /opt/nvidia/jetson-io/config-by-hardware.py in the jetson nano but I didnβt change anything.
The second test about recording and playing echo didnβt work:
I connected a JST speaker to the respeaker hat but I donβt have any output out of it.
I tried to record something with the mics of the respeaker but that didnβt work
However, when I connect an external speaker to the jack port and it works.
Do you think that alsa configuration is missing ? I remember having a lot of problems with the file /etc/asound.conf in the raspberry.
to adjust four ALSA widgets prefixed with βx Speakerβ, which will enable JST SLOT(right SPEAKER) output.
I will fix them in alsa configuration file
In my Jetson Nano v4.4 Image, /dev/spidev{0,1}.{0,1} are already exist.
All we should do is setting the SPI pinmux.
Although the SPI pinmux could be enabled by /opt/nvidia/jetson-io/config-by-*. ,which will generate a SPI enabled device tree overlay object.
But only one device tree overlay could be exclusively selected at one time in the jetson nano system.
So I compound the wm8960 & spi together into jetson-seeed-2mic-voicecard.dts.
Remember to remove /boot/jetson-seeed-2mic-wm8960.dtbo
I complied the jetson-seeed-2mic-wm8960.dtbo using the device tree with spidev support, using the same flags as before. Then I removed and replaced the /boot/jetson-seeed-2mic-wm8960.dtbo with the new one.
Post installation, the Mic is not detected by Chromium browser. Should we do any additional configuration for it to work? asound.conf is missing βpcm.micβ tree, could that be the reason? Strangely, audio out via 3.5mm jack on the 2 MIC HAT works from chromium browser.
Hello turmary,
I have followed mentioned steps but could not install.
My environment: Jetson nano B01 with source R32.4.3 or JetPack Image 4.4
While executing step-2.2 i am getting this error β/home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT/mcp25xxfd.h:15:10: fatal error: linux/can/rx-offload.h: No such file or directoryβ:
Blockquote
ubuntu@desktop:~/seeed-linux-dtoverlays$ KBUILD=/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9 make all_jetsonnano
Building modules, stage 2.
MODPOST 2 modules
Building modules, stage 2.
MODPOST 1 modules
Building modules, stage 2.
MODPOST 1 modules
CC [M] /home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT/mcp25xxfd-core.o
In file included from /home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT/mcp25xxfd-core.c:26:0:
/home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT/mcp25xxfd.h:15:10: fatal error: linux/can/rx-offload.h: No such file or directory #include <linux/can/rx-offload.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:335: recipe for target β/home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT/mcp25xxfd-core.oβ failed
make[2]: *** [/home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT/mcp25xxfd-core.o] Error 1
Makefile:1629: recipe for target βmodule/home/jetson/seeed-linux-dtoverlays/modules/CAN-HATβ failed
make[1]: *** [module/home/jetson/seeed-linux-dtoverlays/modules/CAN-HAT] Error 2
Makefile:150: recipe for target βall_jetsonnanoβ failed
make: *** [all_jetsonnano] Error 2
ubuntu@desktop:~/seeed-linux-dtoverlays$
Blockquote
Is is because of latest jetpack version or something i have missed?
Any help much appreciated.!
Hello turmary,
I have followed the steps and it was working. But i noticed some noise in recorded audioβs left channel.
About my setup: Jetson nano B01 i have R32.4.3 or JetPack Image 4.4 and 2mic array is directly connected on 40 pin header.
Things that i have tried,
Disconnect AC power adapter and connect with DC battery.
Connect 2mic array with jumper wires to make some distance from jetson.
I successfully installed the driver of the Respeaker 2 Mic hat on my Jetson nano board. As long as I am recording in βSigned 32bit:S32_LEβ format with the following command, everything seems reasonable: