Shop OBEX P1 Docs P2 Docs Learn Events
eMic2 running concurrently with servos — Parallax Forums

eMic2 running concurrently with servos

Hi there,

I'm building a "bot" with a handful of servos and the eMic2 for audio. Everything works great, but it looks like the "say" command is blocking -- that is, it prevents anything else from running in the arduino loop().

Is there a way to have the loop() continue while the audio is playing?

I've looked into:
Arduino Thread (https://github.com/ivanseidel/ArduinoThread)
and Protothreads (https://dunkels.com/adam/pt/)

... but I'm wondering if I'm overcomplicating it. Is there a simpler way to do this? Thanks in advance!

Comments

  • Well, Parallax has Propeller Chips with 8 cores, which can really do multiple things in parallel. Such projects are the reason for their existence.

  • motz,

    Can you post a diagram of your setup and the code that you are using?

Sign In or Register to comment.