Skip to content

Problems when trying to csvstream data from i2s source #748

Answered by pschatzmann
FinnMeyer asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to measure the performance...

Here is the Arduino Sketch:

#include "AudioTools.h"

AudioInfo info(8000,1,16);
SineWaveGenerator<int16_t> sineWave(32000);                // subclass of SoundGenerator with max amplitude of 32000
GeneratedSoundStream<int16_t> sound(sineWave);             // Stream generated from sine wave
StreamCopy copier(Serial, sound);                          // copies sound into serial

// Arduino Setup
void setup(void) {  
  AudioLogger::instance().begin(Serial2, AudioLogger::Error);

  // Open output 
  Serial.begin(500000);
  Serial.setTxBufferSize(1024);

  // Setup sine wave
  sineWave.begin(info, N_B4);
}

// Arduino loop - copy sound to out 
void loop() {…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@FinnMeyer
Comment options

Comment options

You must be logged in to vote
4 replies
@pschatzmann
Comment options

@FinnMeyer
Comment options

@FinnMeyer
Comment options

@FinnMeyer
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
2 replies
@pschatzmann
Comment options

@pschatzmann
Comment options

Comment options

You must be logged in to vote
1 reply
@FinnMeyer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants