<?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[Can i connect a Grove (non-M5stack) rotary encoder to m5core2 with battery bottom2?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I want to have a rotary knob in my project. Can i use <a href="https://www.berrybase.de/seeed-grove-encoder?c=2441" target="_blank" rel="noopener noreferrer nofollow ugc">this</a>?<br />
I cant use the M5stack encoder as i already use the only I2C Port (Port A) for a Dlight unit.</p>
<p dir="auto">Thanks<br />
Aaron</p>
]]></description><link>https://community.m5stack.com/topic/4670/can-i-connect-a-grove-non-m5stack-rotary-encoder-to-m5core2-with-battery-bottom2</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 07:45:21 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4670.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Oct 2022 18:07:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can i connect a Grove (non-M5stack) rotary encoder to m5core2 with battery bottom2? on Wed, 05 Oct 2022 17:54:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>: Thanks for your help</p>
]]></description><link>https://community.m5stack.com/post/18837</link><guid isPermaLink="true">https://community.m5stack.com/post/18837</guid><dc:creator><![CDATA[AEisele55]]></dc:creator><pubDate>Wed, 05 Oct 2022 17:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to Can i connect a Grove (non-M5stack) rotary encoder to m5core2 with battery bottom2? on Wed, 05 Oct 2022 05:31:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/25856">@AEisele55</a></p>
<p dir="auto">most M5Stack devices (including M5Core2) use the ESP32 and yes, the GPIOs of the ESP32 are <strong>not</strong> 5 V tolerant. I am sorry for not thinking of that. So if the outputs of the rotary encoder are 5 V you would need to add some kind of level shifters.</p>
<p dir="auto">Note: the power supply on the Groove port is 5 V, but the two GPIOs are only 3.3 V.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18827</link><guid isPermaLink="true">https://community.m5stack.com/post/18827</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 05 Oct 2022 05:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to Can i connect a Grove (non-M5stack) rotary encoder to m5core2 with battery bottom2? on Wed, 05 Oct 2022 03:16:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>: i think this rotary encoder works like any "normal" one. AFAIK, it doesn't use I2C but a kind of "If turned one step right, first pin A high, the Pin B high, then both Low".<br />
My concerns were that i heard somewhere about the m5stack not being 5V-tolerant (that means if you put 5v on an input pin, it destroys the pin forever)<br />
Is it physically safe to connect it?<br />
I already thought of some code how to read it , which just uses the "dual button" unit in UIflow and compares the RTC times the A high or B high.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Aaron</p>
]]></description><link>https://community.m5stack.com/post/18825</link><guid isPermaLink="true">https://community.m5stack.com/post/18825</guid><dc:creator><![CDATA[AEisele55]]></dc:creator><pubDate>Wed, 05 Oct 2022 03:16:16 GMT</pubDate></item><item><title><![CDATA[Reply to Can i connect a Grove (non-M5stack) rotary encoder to m5core2 with battery bottom2? on Tue, 04 Oct 2022 18:57:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/25856">@AEisele55</a></p>
<p dir="auto">I tried to compile the libraries source code (Encoder / TimerOne) of that rotary knob for ESP32 and it fails with <code>lib/TimerOne/TimerOne.h:39:10: fatal error: avr/io.h: No such file or directory</code>. I think the reason is that the source code is meant for Arduino AVR boards which are different from ESP32 boards. While you might be able to physically connect this rotary knob to an M5Core2 you need to be prepared to adapt the library to work with ESP32 on your own.</p>
<p dir="auto">That said, are you aware that <a href="https://en.wikipedia.org/wiki/I%C2%B2C" target="_blank" rel="noopener noreferrer nofollow ugc">I2C</a> is a bus system which allows multiple devices to be connected in parallel? The two devices can be controlled by the M5Core2 using their respective I2C address: Encoder: 0x40; Dlight: 0x23. You'll need a hub like this <a href="https://docs.m5stack.com/en/unit/hub" target="_blank" rel="noopener noreferrer nofollow ugc">one</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18819</link><guid isPermaLink="true">https://community.m5stack.com/post/18819</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 04 Oct 2022 18:57:36 GMT</pubDate></item></channel></rss>