<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5StickC PLUS microphone buffer value has an offset when compared to M5StickC]]></title><description><![CDATA[<p dir="auto">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.<br />
------------ code ---------------<br />
for(int i = 0; i &lt; bytesread&gt;&gt;1; i++) {<br />
Serial.printf("%d\n", adcBuffer[i]);<br />
}<br />
------------ code ---------------<br />
I observed that M5StickCPlus values behave differently. Same exact basic microphone code. Only difference is the include file (#include &lt;M5StickC.h&gt; or #include &lt;M5StickCPlus.h&gt;) 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.<br />
<img src="/assets/uploads/files/1644107978750-mic_m5stikc-resized.jpg" alt="0_1644107975515_Mic_M5stikC.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1644107997942-mic_m5stikcplus-resized.jpg" alt="0_1644107993719_Mic_M5stikCPlus.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/3982/m5stickc-plus-microphone-buffer-value-has-an-offset-when-compared-to-m5stickc</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 15:46:07 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3982.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Feb 2022 02:48:13 GMT</pubDate><ttl>60</ttl></channel></rss>