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

    RoverC Pro Hat, Stick C, and servo in UIFlow 1.7.2

    Scheduled Pinned Locked Moved Bug Report
    4 Posts 3 Posters 5.0k Views
    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.
    • T Offline
      tross4s
      last edited by

      I am not able to find the method to drive the gripper servo within the hat using UIFlow. There are only 3 methods available in UIFlow:

      • Set the wheel pulse
      • Set wheels pulse for all wheels
      • Set RoverC speed

      Thanks.

      1 Reply Last reply Reply Quote 1
      • ajb2k3A Offline
        ajb2k3
        last edited by

        Have you tried using a servo unit on port A?

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • T Offline
          tross4s
          last edited by

          This code worked for me:
          from m5stack import *
          from m5ui import *
          from uiflow import *
          import i2c_bus
          import hat

          setScreenColor(0x030545)

          hat_roverc1 = hat.get(hat.ROVERC)
          label0 = M5TextBox(57, 6, "RoverC", lcd.FONT_DejaVu40, 0x01e2b1, rotate=90)

          i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x38, freq=400000)
          i2c0.write_mem_data(16, 80, i2c_bus.UINT8LE)

          1 Reply Last reply Reply Quote 0
          • IAMLIUBOI Offline
            IAMLIUBO
            last edited by

            Hi @tross4s ,
            Sorry for that.We wiil update it ASAP.

            1 Reply Last reply Reply Quote 0

            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
            • First post
              Last post