lightweight version of arduino-audio-tools... #1163
-
I was trying to do some simple stuff with an Arduino Nano: reading from an rf24 radio (rf24 library) and writing into a codec (VS1003). But oh boy, it was 1900 bytes variable memory short... The Atmel 328 has only 2kbyte available. I tried to read the Data as WAV into a SD, same issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I can not recommend the Arduino Nano for any serious audio. I suggest that you rather use a RP2040 if you con't need any communication or a STM32. The Nano just has not enough RAM, ROM and speed to be useful. In addition it does not have any DAC or ADC and does not support I2S... You could deactivate the logging (by setting USE_AUDIO_LOGGING to false) (or decrease the LOG_PRINTF_BUFFER_SIZE) but then you will need to use a debugger to be able to figure out why something is not working. I would expect that you will also need to decrease other size defintions and there is still a high probability that you will run out of dynamically allocated ram... |
Beta Was this translation helpful? Give feedback.
-
It would be interesting to see how they pulled this one off: The WM8738 requires i2s which the nano does not support. Did you check if you have enough memory by just using the rf24 and vs1003 libraries and just copy the data in the loop ? |
Beta Was this translation helpful? Give feedback.
I can not recommend the Arduino Nano for any serious audio. I suggest that you rather use a RP2040 if you con't need any communication or a STM32. The Nano just has not enough RAM, ROM and speed to be useful. In addition it does not have any DAC or ADC and does not support I2S...
You could deactivate the logging (by setting USE_AUDIO_LOGGING to false) (or decrease the LOG_PRINTF_BUFFER_SIZE) but then you will need to use a debugger to be able to figure out why something is not working. I would expect that you will also need to decrease other size defintions and there is still a high probability that you will run out of dynamically allocated ram...