<?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[How to get Encoder Counter value in I2C Speed Mode for Unit Roller485 Lite (Arduino IDE + M5StickC)]]></title><description><![CDATA[<p dir="auto">Hi M5Stack team,</p>
<p dir="auto">I’m currently developing with the M5StickC using the Arduino IDE, and working with the Unit Roller485 Lite module in I2C mode.</p>
<p dir="auto">I’ve set the module to Speed Mode using RollerI2C.setMode(ROLLER_MODE_SPEED), and tried reading the encoder counter using RollerI2C.getDialCounter().</p>
<p dir="auto">However, I noticed that the counter value only changes when the module is set to ROLLER_MODE_ENCODER. While in Speed Mode, getDialCounter() always returns the same value, even though the motor is moving.</p>
<p dir="auto">From the currently available documentation and APIs, I couldn’t find any way to retrieve encoder counter values while in Speed Mode.</p>
<p dir="auto">My questions are:<br />
1.	Is it possible to read the encoder counter value in I2C mode while the motor is operating in Speed Mode?<br />
2.	I’m not looking to switch modes dynamically. I would like to read the encoder value independently of the current mode — is this supported?<br />
3.	If not currently supported, is there any plan to add this functionality in future firmware or library updates?</p>
<p dir="auto">Thank you for your support.</p>
]]></description><link>https://community.m5stack.com/topic/7655/how-to-get-encoder-counter-value-in-i2c-speed-mode-for-unit-roller485-lite-arduino-ide-m5stickc</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 00:05:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7655.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jul 2025 04:54:32 GMT</pubDate><ttl>60</ttl></channel></rss>