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

uStepper S-Lite does not return STOP after movement #4

Open
Nestilaos opened this issue Jan 20, 2020 · 4 comments
Open

uStepper S-Lite does not return STOP after movement #4

Nestilaos opened this issue Jan 20, 2020 · 4 comments

Comments

@Nestilaos
Copy link

Nestilaos commented Jan 20, 2020

The actual release has an issue that moveToEnd() or moveSteps() do not return getMotorState()=STOP after movement in mode = NORMAL.

This is specially the case when the maxAcceleration is set greater than 1000.
Instead of STOP, getMotorState() returns several seconds DECEL before STOP is returned.

Any idea to fix this issue?

Thanks in advance.
Regards.

@Nestilaos
Copy link
Author

Hi,
nobody else confirming this observation?
Another observation is that the returned angle is always zero in NORMAL mode.

@Nestilaos
Copy link
Author

The problem still exists in the newest release.
In fact, it only emerges in case of motor hardStop/softStop. There seems to be a problem with the DECEL phase.

The condition in TIMER1_COMPA_vect for switching from DECEL to STOP seems to be met about 10 seconds after the motor has stopped. There seems to be a mismatch in steps of about 50-100 steps.

Unfortunately, I could not find the source for this issue, but hopefully someone else.

@chavasse
Copy link

I have the same issue with getMotorState() returning DECEL (8) for several seconds after it has stopped moving, rather than STOP (1) or 0
Have not been able to identify the cause from source

@chavasse
Copy link

chavasse commented Oct 1, 2020

This seems to happen after longer/faster movements of the motor, short distances seem to return correctly.

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

2 participants