Jump to content

Recommended Posts

Posted

I am completely out of ideas. The fact that the NXt display isn't working doesn't make it easier to see what's going on.

I've tried using the rotation sensor block (A) and output it directly to the duration of a motor block (B); The motor (B) starts spinning constantly as soon as motor (A) has changed it's rotation value, which is not what I want obviously.

I outputted the rotation sensor value (A) to the tone frequency of a sound block and it was working fine.

I can synchronise 2 motors with the move block, but I need to synchronise all 3. Any ideas?

Posted

When I want to synchronize motors, I use loops to control them.

Say there is an target position (sampled from A for example).

Now create a loop, and in it calculate the difference between the target position and current position (sampled from B).

Multiply that amount by 4 or something, then set it as power for B.

Repeat loop until necessary.

Posted

Thank you. I was thinking today after the I posted this, if a PID controller would be too complicated, but you just reminded me that I only need the P portion of it which makes it significantly easier.

Initial tests prove successful, so I am very happy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...