-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with example SDrecording #43
Comments
So i noticed a bit more of the error when I try to perform any action: Start Recording: /test.wav Core 0 register dump: Backtrace: 0x400da939:0x3ffb9660 0x400d4275:0x3ffb96a0 0x4008c0b6:0x3ffb96d0 ELF file SHA256: 5496005f8d5b4629 Rebooting... rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
ESP32 support never worked quite properly, and it looks like I broke it more on the last update. I might just remove the ESP32 support altogether unless I get a chance to fix it. |
If I switch to a different MCU would you say this works nicely on an Arduino Zero, which has 1 DAC? |
It was designed on Arduino Due, so works very well on that platform. I don't think it will work with the Zero. I would recommend the nRF52840 boards like Feather Express 52840, Clue or XIAO Sense 52840. It is super versatile, supporting Input: PDM, SAADC or I2S or Output: PWM, I2S |
So in your example in your blog for the nRF52840: aaAudio.dinPin = 1; |
INPUT is on AIN0, output would be PWM so pin 5, port 0. The input pin is defined by See https://tmrh20.github.io/AutoAnalogAudio/classAutoAnalog.html |
thanks I'm going to test both due and nfr52840 |
Sorry, its all confusing because I was confused when writing the code for nRF52 at first. You have it backwards. Switch speaker pin to record pin then see below. The PWM pins are defined by GPIO numbers, so when I say pin 5 port 0 I mean the pin marked P0.05 or A1 in other words. The only way to change it is to edit the AutoAnalogAudio.cpp file and modify I don't really recommend using PWM though since it will be low quality compared to I2S. |
Thanks I was a bit confused.. |
I'm using an ESP32 and I'm going directly off the pins (no I2s components)
I'm using the default settings:
aaAudio.begin(1, 1); // Start AAAudio with ADC & DAC
aaAudio.autoAdjust = 0; // Disable automatic timer adjustment
but in the serial output I get this..
SD ok
Analog Audio Begin
E (17) i2s(legacy): i2s_check_cfg_validity(930): I2S buffer length at most 1024 and more than 8
E (17) i2s(legacy): i2s_driver_install(1582): I2S configuration is invalid
E (23) i2s(legacy): i2s_adc_enable(898): Not initialized yet
E (28) i2s(legacy): i2s_set_clk(1042): I2S0 has not installed yet
Is there anything I have not setup or is it an issue?
The text was updated successfully, but these errors were encountered: