-
Notifications
You must be signed in to change notification settings - Fork 116
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
2 years of on and off trying to get this to work #274
Comments
Mark, Please see my writeup on my implementation of the project. It sounds like we have similar lathes, and I included my changes to configuration.h plus the logic that I used in setting up my encoder. If your controller is correctly reading the spindle speed, and if the stepper motor moves the lead screw at all, then you're 98% of the way there. Good luck, Dan |
Thanks Dan. I'll read up. I verified today with my new RPM meter that the spindle speed matches the display speed. |
Okay so I found where I messed up last night. Where James code says "#define STEPPER_MICROSTEPS_FEED STEPPER_MICROSTEPS" Dan's writeup said to change this but you I had to remove STEPPER_MICROSTEPS. It will not compile with #define STEPPER_MICROSTEPS_FEED STEPPER_MICROSTEPS 20 because that causes errors in the tables.ccp. In order to get it to work I had to delete STEPPER_MICROSTEPS then define with 20. It now reads #define STEPPER_MICROSTEPS_FEED 20 and compiles. |
Well that didn't work. Stepper motor still not turning fast enough. |
Check the settings on your stepper motor controller. You may need a particular serial cable from the maker of the controller. You need to be certain of how many pulses, or “tics” it takes to make the motor move through one revolution. On my controller that was set with DIP switches, and it turned out that hi and lo weren’t obvious on the switch and it was set up backwards from the factory. It could be that the math in the software is all fine, but the motor controller is set up for some wrong number of steps or micro steps per revolution. DanSent from my iPhoneOn Oct 22, 2023, at 4:01 PM, markcurington ***@***.***> wrote:
Well that didn't work. Stepper motor still not turning fast enough.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
With these parameters .040 feed just barely moves. I can up stepper microsteps alot and get things moving but even setting microsteps to 36 and changing resolution to 400 in the program and on the driver won't drive the motor fast enough. Something is missing and i can't figure it out. I got an RPM meter from work a year or so ago and the speed matches the display. I bought one that should arrive this week because i don't work at the same place anymore. This is my last day of normal hours for a few weeks I start working 12's for the next 2 weeks. The plant is shutting down for the annual maintenance cycle and lucky me I'm the only electrician at the plant. Can someone help me understand what I'm doing wrong so I can fix this problem when I get done with this outage. I really want to learn how to thread on my lathe.
I have a 8 TPI leadscrew.
![Screenshot (11)](https://private-user-images.githubusercontent.com/148500121/276756081-96bc5220-600f-47af-87b0-8e98705b4243.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMjA3NDcsIm5iZiI6MTcyMTIyMDQ0NywicGF0aCI6Ii8xNDg1MDAxMjEvMjc2NzU2MDgxLTk2YmM1MjIwLTYwMGYtNDdhZi04N2IwLThlOTg3MDViNDI0My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxN1QxMjQ3MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTk0ZjUwNTkzZWQ3YmM2ZGVhY2VlYTE3MTA0OGEwMDJhYWUxNTZhZTIzNjM3ZGNhNWJlMGY3M2NkNWJhY2ZkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.39KEnx51j8T3ejbmbTrdvC5xXzg2HxJUc57WvZjAcTA)
![Screenshot (12)](https://private-user-images.githubusercontent.com/148500121/276756089-6510da90-32c0-4b4f-b720-9817a73ab857.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMjA3NDcsIm5iZiI6MTcyMTIyMDQ0NywicGF0aCI6Ii8xNDg1MDAxMjEvMjc2NzU2MDg5LTY1MTBkYTkwLTMyYzAtNGI0Zi1iNzIwLTk4MTdhNzNhYjg1Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxN1QxMjQ3MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yOThlNjczN2IzOTk1N2FmZTU4YTMwOGFkNTI2Y2IwYjU4NzUxYmJhODdjOTY2YzNmMDQwMzkyMTA5YTQ3OTJjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.T07m8OBeM3VT-pixhKjHxVyESc7yvnWp3kwy4F2p67g)
1024 encoder parameter set to 4096
steeper microsteps 6
stepper resolution set to 1000
10 tooth gear on the stepper motor
60 tooth gear on the leadscrew
spindle and encoder are 1:1
The text was updated successfully, but these errors were encountered: