🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5StickC PLUS microphone buffer value has an offset when compared to M5StickC

    Scheduled Pinned Locked Moved M5 Stick/StickC
    1 Posts 1 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      miamifish
      last edited by miamifish

      Hello. I have tried the basic microphone example for M5stickc. They work well and shows on the tft screen. I wanted to print the same wave form using the Arduino serial plotter. Wrote this code to print buffer values.
      ------------ code ---------------
      for(int i = 0; i < bytesread>>1; i++) {
      Serial.printf("%d\n", adcBuffer[i]);
      }
      ------------ code ---------------
      I observed that M5StickCPlus values behave differently. Same exact basic microphone code. Only difference is the include file (#include <M5StickC.h> or #include <M5StickCPlus.h>) Between M5stickc and M5stickcplus, I think there is an offset in cplus of a constant of approximately 1650. I am not sure why or if this is normal in cplus stick and if this will affect accuracy in terms of using it to detect a particular pattern of sound waves using FFT or TinyML etc.? Thanks for looking into this issue.
      0_1644107975515_Mic_M5stikC.jpg

      0_1644107993719_Mic_M5stikCPlus.jpg

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post