-
Notifications
You must be signed in to change notification settings - Fork 74
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
Help for smooth motion #289
Comments
I would assume, this is not a sw issue. Could you please check the cable ? Especially ground connections are often cause of unexpected behaviors. |
Very well might be. Do I need to add any capacitors, resistors, etc. to my circuit? |
I do not know your setup. Do you have an oscilloscope or similar to check, that the steps are generated properly ? Or just start without FastAccelStepper and control the stepper with a loop, which contains just a toggle of step pin and a delay ? |
I don't have an oscilloscope, no. Could you provide an example snippet for that? |
Something like:
|
I tried your code with a delay of 1ms which is closer to the speed I need, and it's very noisy. https://github.com/user-attachments/assets/1ffbf29e-eb48-4f73-a4be-34a9379bf9a6 |
Thanks for sharing the video. If this low level code does not work, then something is wrong with the hardware.: Ground connection, assignment of dir/step/enable to the gpio, cable from stepper to stepper controller - especially the pin assignment, is the power supply strong enough, are the cables not too long, is the uC constantly rebooting….? Good luck in your endeavor |
any updates ? |
Hey there! I'm trying to make simple movements with the motor, having it just move at a constant speed. I'm facing an issue where the motor makes a stuttering sound, sorta sounds like a locomotive. The motion is not smooth at all, it's very interrupted.
Running this with a TMC2209 V2.0 and ESP32-WROOM-32.
I'm using the code from the example:
The text was updated successfully, but these errors were encountered: