Sony's Developer World forum

    • Home
    • Forum guidelines

    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

    Spresense
    2
    3
    1886
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kriover last edited by

      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!

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @kriover last edited by

        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/217158

        https://arduino.stackexchange.com/questions/37684/can-i-make-multiple-loop-functions-with-arduino-uno

        https://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.

        K 1 Reply Last reply Reply Quote
        • K
          kriover @CamilaSouza last edited by

          @CamilaSouza Thank you for the reply! I will have a look at the links.

          1 Reply Last reply Reply Quote
          • First post
            Last post
          Developer World
          Copyright © 2021 Sony Group Corporation. All rights reserved.
          • Contact us
          • Legal