Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamRecorded with latest CODAL contains pulses at regular intervals #342

Closed
microbit-carlos opened this issue Jun 21, 2023 · 1 comment · Fixed by lancaster-university/microbit-v2-samples#72

Comments

@microbit-carlos
Copy link
Collaborator

microbit-carlos commented Jun 21, 2023

With the latest CODAL StreamRecorded raw data has peaks every ~23ms.

Bottom is a build with the latest CODAL, top is using the StreamRecorder hex from:

image
#include "MicroBit.h"
#include "SerialStreamer.h"

MicroBit uBit;

int main() {
    uBit.init();

    SerialStreamer *streamer = new SerialStreamer(uBit.audio.processor->output, SERIAL_STREAM_MODE_BINARY);
    uBit.audio.requestActivation();
    uBit.audio.activateMic();

    while (true) {
        uBit.sleep(1000);
    }
}

MICROBIT.hex.zip

@microbit-carlos microbit-carlos changed the title StreamRecorded with latest CODAL picks up some regular pulses StreamRecorded with latest CODAL contains pulses at regular intervals Jun 21, 2023
@microbit-carlos
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant