🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to get Encoder Counter value in I2C Speed Mode for Unit Roller485 Lite (Arduino IDE + M5StickC)

    Units
    1
    1
    4
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cheng80
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post