sipeed / sipeed_wiki

sipeed wiki:https://wiki.sipeed.com
MIT License
98 stars 138 forks source link

[Gitalk:/hardware/zh/modules/micarray.html] MicArray 麦克风阵列 - Sipeed Wiki #45

Open STRfarfar opened 3 years ago

STRfarfar commented 3 years ago

https://wiki.sipeed.com/hardware/zh/modules/micarray.html

wonderfullook commented 1 year ago

在使用树莓派4b运行程序的时候,在from Maix import MICARRAY as mic这一行出现了错误:Impor tError: cannot import nameMIC ARRAY' from 'maix' (/usr/ locali l ib/python3.9/dist-packages/maix/ _ init-. py)。请问如何解决?

这玩意示例代码都是给 k210 的

NameStream commented 1 year ago

su09-17-2023

ImportError: cannot import name MIC_ARRAY

MAix Amigo

(1.) Hi, there.

(2.) Using MAixPy IDE, receiving error code for MAix Amigo:

ImportError: cannot import name MIC_ARRAY

(3.) MAix AMIGO

(3a.) SP-MOD MicArray Module

(3b.) Connector: 10P 0.5mm FPC

(3c.) Sipeed MAix R6 + 1 Microphone Array Board

(3d.) Located inside the back of the developer board #2970, moved the switch to M1N instead of STM.

(3e.) MAixPy IDE: Tools > Select Board > Sipeed Maixduino

(3f.) Will only run the code for “helloworld.py”, although the LCD image orientation is misaligned, upside down; the picture is smaller than the LCD screen; but image has mostly clear resolution without any noticeable lag, latency, delay.

(3g.) Receiving “ImportError: cannot import name MIC_ARRAY” when attempting to run the code for:

ROUTINE Sound Source Localization

https://wiki.sipeed.com/soft/maixpy/en/develop_kit_board/module_microphone.html

andalsofor

AirPocket Soundman’s Sound Localizer https://github.com/airpocket-soundman/SoundVisualizer/blob/main/src/mic_array_en_ver204.py

(3h.) Pin assignments used for MAix AMIGO

LED_CLK_GPIOHS28…….23

LED_DAT_GPIOHS27…….20

DAT 0…………….......……12

DAT 1……………..…..…….…9

DAT 2………………..…...……31

DAT 3………….……..……...7

WS……………..…....…..……19

BCK_SCK……...…..…………17

(4.) Would you list the correct pin assignments for the:

(4a.) MAix Amigo #2970 in the M1n position

(4b.) MAix Amigo #2970 in the STM position

(5.) Thanks.

(6.) Toodles!

wonderfullook commented 1 year ago

cannot import name MIC_ARRAY means there is no this module in your firmware, tyr another firmware.