<?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[Microphone on m5go]]></title><description><![CDATA[<p dir="auto">Hello everybody.</p>
<p dir="auto">I just got an m5go, and I'm trying to make the microphone work.<br />
The mic should be in pin G34 according to M5stack's schematic, but when I read from it, it outputs values between 2995 and 3010, and it makes a clicky sound.</p>
<p dir="auto">This is my code:</p>
<pre><code>from m5stack import *
from machine import *
import os, wave, time


adc = ADC(34)
adc.atten(adc.ATTN_11DB)
lcd.clear()

while True:
    raw = adc.readraw()
    lcd.clear()
    lcd.print( raw, 10, 10)
    time.sleep(0.5)
</code></pre>
<p dir="auto">This is  a simplified version of the <a href="https://github.com/m5stack/M5GO/blob/master/M5GO.py" target="_blank" rel="noopener noreferrer nofollow ugc">official M5GO.py</a></p>
<p dir="auto">Any ideas what I'm doing wrong?</p>
]]></description><link>https://community.m5stack.com/topic/212/microphone-on-m5go</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 06:58:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/212.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 May 2018 21:53:36 GMT</pubDate><ttl>60</ttl></channel></rss>