Navigation

    Robolink logo
    • Register
    • Login
    • Search
    • [[global:header.categories]]
    • [[global:header.recent]]
    • [[global:header.tags]]
    • [[global:header.popular]]
    • [[global:header.users]]
    • [[global:header.groups]]
    As of September 2021, we have moved technical support to Robolink Help

    Welcome to the Robolink Community forum!

    You can post here to interact with others in the Robolink community. We're checking it weekly, and we'll respond to some messages. If you're looking for technical support, head over to Robolink Help.

    Zumi goes off after commands

    Zumi
    2
    2
    1060
    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
      Timmytomate last edited by

      So im working on a study project with my Zumi.
      First I need to create a own line Follower.

      I tried to get used to the IR-Sensors in small steps
      but this code doesnt work.

      from zumi.zumi import Zumi
      from zumi.util.screen import Screen
      import time

      zumi = Zumi()
      screen = Screen()

      zumi.reset_drive()
      for i in range(0, 100):
      zumi.forward_step(20,0)
      ir_readings = zumi.get_all_IR_data()
      screen.draw_text(str(ir_readings[3]))

      zumi.stop()

      If i run the code zumi is driving for a bit then making quick turns in the same spot left and right and
      shuts off comletly.

      robolink_leila 1 Reply Last reply Reply Quote 0
      • robolink_leila
        robolink_leila @Timmytomate last edited by

        @timmytomate We recommend not using the screen draw functions in your for loop in conjunction with the forward_step(). Any of the screen drawing functions take around 300 ms, which will delay the forward step. Let us know if this helps!

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