how to provide position feedback for stepper motors with a rotary encoder

More
02 Apr 2024 20:23 #297460 by Thayloreing
Good evening, I wanted to ask for your help, I want to make a CNC houter with stepper motor feedback using a rotary encoder, I'm using a parallel port, in my region it's not easy to find a table board. But I don't know where to start, what do I have to do so that if the machine loses a step, the encoder immediately identifies it and the machine stops and gives an error? I started about 4 months ago on Linuxcnc, I'm still learning, I ask you to be patient with me, thank you in advance

Please Log in or Create an account to join the conversation.

More
02 Apr 2024 20:46 #297465 by tommylight
Yes, you can use encoders for feedback, even with a parallel port, but normally only 2 of them and at very slow speeds, depending on the encoder resolution/PPR.
There should be an attached working config here, although it does have added stuff for the BOOST feature, so if you can do some soldering you could wire the drive current DIP switch to raise the current when it gets the BOOST signal from the PC, it uses the Mesa 7i92 as is, it can be made to work with parallel port but to much trouble, so better add the requires stuff about encoder feedback to your existing config, after you have backed up your existing config.

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 10:00 #297496 by Thayloreing
At the moment I'm just with the configuration that stepconfig created, I didn't make any changes to the hal, I just added the xyz axes with and the limit switch inputs on pins 10, 11, 12, and added a second parallel port as input.

The machine has 200 ppr nema 34 motors, with 1/4 micro step

The encoders are 100 ppr.

My PC's latency is around 7k.

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 19:05 #297522 by tommylight
I am not sure, but probably the StepConf created config will not work, but then again it might, forgot it is possible to link feedback from encoders without a PID loop, back when i used it, it did not use a PID loop.
PncConf always creates pid loops and probably can be used to create a parallel port configuration as i am sure there is a selection for it.
Sorry for the messy answer but i always hand edited config files for whatever i needed.

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 20:41 #297538 by Mecanix
Wouldn't bother with Lcnc, PID, endless hal configs and all that glorious hunting. Just get closed-loop stepper drivers, they're inexpensive like 20~30bucks each and does it all and beyond. Just ensure the driver you pick has a rs232 port and a firmware you can access for config - you'll need that to set ppr and scaling...

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 20:44 #297539 by Mecanix

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 21:52 #297542 by tommylight
Yeah, that will not be 20-30 bucks for sure...

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 22:01 #297544 by PCW
Not too much more though
(StepperOnline lists the CL86 at $43.94, and a matching motor at $42.04 so $85 total)

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 22:04 #297545 by Mecanix

Yeah, that will not be 20-30 bucks for sure...

Yeah you're prolly right, 12~15 bucks huge max... ;)

Please Log in or Create an account to join the conversation.

More
03 Apr 2024 22:20 #297546 by tommylight

Not too much more though
(StepperOnline lists the CL86 at $43.94, and a matching motor at $42.04 so $85 total)

Still cheap!
How the hell do i get those here??? Last drives i got were DM556 i think, 54 Euro a piece in Germany from amazon.de ! :(

Yeah, that will not be 20-30 bucks for sure...

Yeah you're prolly right, 12~15 bucks huge max... ;)

The only drives costing 12$ are those wrongly named TB6600, the original TB6600 are 18 and up, and in this cases the wrongly named ones are better and cheaper, albeit about 1A less current.

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds
Powered by Kunena Forum