Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stepper Motor Disconnects After Given Commands Too Frequently #1

Open
stuartallen opened this issue Jun 10, 2021 · 0 comments
Open

Comments

@stuartallen
Copy link
Collaborator

Hello future URSA Researcher!

Your task is to investigate a bug in the stepper motor functionality. When the stepper motor receives too many commands in quick succession, the device is not able to move any more. In my experience, the blue light on the module core continues to blink, but others have said the device disconnects from the network.

I do not believe this issue exists in the servo motors, as I have made a patch where the servo points in a random direction every 75 milliseconds and the device could keep up.

Some ideas (from Luke Geortzen) to get started include:

  • Test if this happens in AP mode, Client mode, or both
  • Try seeing if relay commands cause the same behavior (just set it to hook to pin 13, the LED), for testing purposes
  • Send servo commands without servo module instantiated (to verify it's not just the rate or processing something in the command)
  • What is the state of the device upon disconnect? Run it with the serial monitor and see what it prints. Does the device disconnect gracefully and try to reconnect, just carry on as if there's no connection, hang, etc.

When debugging the code on the arduino side, I would also recommend checking the dependencies. To me this seems like this might be some sort of safe gaurding behavior someone else implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant