Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Werner_G
    W
    • Continue chat with Werner_G
    • Start new chat with Werner_G
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Werner_G

    @Werner_G

    2
    Reputation
    15
    Posts
    1331
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Werner_G Follow

    Posts made by Werner_G

    • RE: REMOTE+ Slider for motors

      Finally, I've got it working using the map-block from Easy I/O in UIFlow (by chance I found it!), which is just

      def slider_Motor_callback(slider_value):
      motion.set_motor_speed(2, map_value(slider_value, 0, 100, -127, 127))

      without any translation. Works fine with Remote+

      posted in UIFlow
      W
      Werner_G
    • RE: Interrupt routine for remote switch in UIFlow

      Thank you. Don't understand what you suggest, but finally I got it working like this:
      0_1629374477997_puppy2.png
      Maybe you have better idea!

      posted in UIFlow
      W
      Werner_G
    • Interrupt routine for remote switch in UIFlow

      Putty, the walking robot can go forward or backwards. When walking, I cannot stop or switch direction using a remote switch, because I cannot interrupt the flow. An interrupt routine is needed I guess. I found examples for a H/W pin interrupt, but not for S/W. Can anyone please help me?

      0_1629196276245_puppy.png

      posted in UIFlow
      W
      Werner_G
    • RE: REMOTE+ Slider for motors

      @robalstona

      with this definition the motors shows absolutely no movement.

      posted in UIFlow
      W
      Werner_G
    • RE: REMOTE+ Slider for motors

      I also tried this - but with no success. Seems that mapping or translating might not work in combination with REMOTE. Thanks for your help!

      posted in UIFlow
      W
      Werner_G
    • RE: REMOTE+ Slider for motors

      Thank you. I tried this:

      ...
      def slider_Motor_callback(slider_value):
      global inMin, inMax, outMin, outMax, tof_0
      motion = Motion()
      inMin = 0
      inMax = 100
      outMin = -127
      outMax = 127
      def translate(slider_value, inMin, inMax, outMin, outMax):
      return (slider_value - inMin) * (outMax - outMin) / (inMax - inMin) + outMin
      motion.set_motor_speed(1, slider_value)
      ...

      But this doesn't work. What might be wrong?

      posted in UIFlow
      W
      Werner_G
    • RE: REMOTE+ Slider for motors

      you are probably right. But I cannot see any similarity with the maps-function of other IDE's. Great would be a mathematical function like this from MakeCode:
      "map 'speed' from low '0' high '100' to low '-127' high '127'" (or vice versa)
      Using arrays is very compicated, too much for me.

      posted in UIFlow
      W
      Werner_G
    • REMOTE+ Slider for motors

      I like the REMOTE+ - feature. Works fine, but... The slider range starts at 0 and ends with 100. Most motors are controlled in the range of -127 to +127. Has anyone an idea of how to manage this?

      posted in UIFlow
      W
      Werner_G
    • RE: Atom Motion

      I can measure +- 4,2V when connected to USB

      posted in Atom
      W
      Werner_G
    • RE: Atom Motion Kit

      Das Problem ist in UIFlow 1.7.4 behoben.

      posted in Deutsches Forum
      W
      Werner_G