How to get Encoder Counter value in I2C Speed Mode for Unit Roller485 Lite (Arduino IDE + M5StickC)
-
Hi M5Stack team,
I’m currently developing with the M5StickC using the Arduino IDE, and working with the Unit Roller485 Lite module in I2C mode.
I’ve set the module to Speed Mode using RollerI2C.setMode(ROLLER_MODE_SPEED), and tried reading the encoder counter using RollerI2C.getDialCounter().
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.
From the currently available documentation and APIs, I couldn’t find any way to retrieve encoder counter values while in Speed Mode.
My questions are:
1. Is it possible to read the encoder counter value in I2C mode while the motor is operating in Speed Mode?
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?
3. If not currently supported, is there any plan to add this functionality in future firmware or library updates?Thank you for your support.
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