Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Recording audio and take images at the same time with Arduino IDE
-
Hello,
I want to use the audio library to record sounds and take a photo every second while recording. I wanted to use the MP library for multicore, but found that the audio and camera library was not supported from reading the documentation.
Is there another way for me to record audio and images at the same time with the Arduino IDE?
Thank you for any help!
-
Hi, @kriover
To continue using the Arduino IDE, I would encourage you to take a look at the "Blink without delay" concept. This approach will simulate running multiple things "at the same time", by calling the functions sequentially without blocking (no delay usage). And using millis() to manage the timing of activities.
Some helpful links:
https://forum.arduino.cc/t/demonstration-code-for-several-things-at-the-same-time/217158https://www.quora.com/Can-Arduino-record-video-and-sound-at-the-same-time-How
(Check out Jack Ward answer)Otherwise, you could try multiprocessing with the Spresense SDK.
-
@CamilaSouza Thank you for the reply! I will have a look at the links.