Ive almost 6 audio adapters, sdcards, teensies, and xbee all working quite nicely together. it sounds and synchronizes surprisingly good.
buttons on each teensy play sound files on all teensies. we're using Serial1 (pins 0 and 1) to write chars to an xbee.
when we:
Serial1.print() the audio clicks.
Serial.print() no click.
Serial2 breaks everything.
What do you recommend? Is there some internal shared timer thing going on? Is there a safer Serial for this?
thanks!
code: https://github.com/adellelin/SymphonicPicnic/tree/master/TeensyButtonXbeeSound_v2
buttons on each teensy play sound files on all teensies. we're using Serial1 (pins 0 and 1) to write chars to an xbee.
when we:
Serial1.print() the audio clicks.
Serial.print() no click.
Serial2 breaks everything.
What do you recommend? Is there some internal shared timer thing going on? Is there a safer Serial for this?
thanks!
code: https://github.com/adellelin/SymphonicPicnic/tree/master/TeensyButtonXbeeSound_v2
Code:
// sending serial command to other Xbees + play file
void sendAndPlay(char command) {
Serial1.print(command);
Serial1.flush();
log("sending :");
log(command);
// react
playSound(command);
return;
}