Jump to content

Control two stepper motors with joystick


borgebjo

Recommended Posts

My idea is to stack two Stepper Bricks and attach a Joystick Bricklet to one of the Stepper Bricks.

 

Since the API is thread safe, I can have a thread monitoring the state of the joystick and can change the state of the step motors accordingly.

 

Now, is it possible to change the speed of the stepper motor as it moves. That is, can I do the following,

stepper_set_max_velocity(my_stepper, 10);
stepper_drive_forward(my_stepper);
// at a later time, while still moving, will this call increase the 
// stepper motor velocity?
stepper_set_max_velocity(my_stepper, 100);

Link zu diesem Kommentar
Share on other sites

Join the conversation

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

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...