- LinuxCNC
- General LinuxCNC Questions
- how to provide position feedback for stepper motors with a rotary encoder
how to provide position feedback for stepper motors with a rotary encoder
- Thayloreing
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 94
- Thank you received: 3
			
	
						02 Apr 2024 20:23				#297460
		by Thayloreing
	
	
		
			
	
			
			 		
													
	
				how to provide position feedback for stepper motors with a rotary encoder was created 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.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20847
- Thank you received: 7107
			
	
						02 Apr 2024 20:46				#297465
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic how to provide position feedback for stepper motors with a rotary encoder			
			
				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.
					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.
- Thayloreing
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 94
- Thank you received: 3
			
	
						03 Apr 2024 10:00				#297496
		by Thayloreing
	
	
		
			
	
			
			 		
													
	
				Replied by Thayloreing on topic how to provide position feedback for stepper motors with a rotary encoder			
			
				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.
					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.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20847
- Thank you received: 7107
			
	
						03 Apr 2024 19:05				#297522
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic how to provide position feedback for stepper motors with a rotary encoder			
			
				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.
					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.
- Mecanix
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 447
- Thank you received: 226
			
	
						03 Apr 2024 20:41				#297538
		by Mecanix
	
	
		
			
	
			
			 		
													
	
				Replied by Mecanix on topic how to provide position feedback for stepper motors with a rotary encoder			
			
				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.
- Mecanix
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 447
- Thank you received: 226
			
	
						03 Apr 2024 20:44				#297539
		by Mecanix
	
	
		
			
	
			
			 		
													
	
				Replied by Mecanix on topic how to provide position feedback for stepper motors with a rotary encoder			
			
					Please Log in or Create an account to join the conversation.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20847
- Thank you received: 7107
			
	
						03 Apr 2024 21:52				#297542
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic how to provide position feedback for stepper motors with a rotary encoder			
			
				Yeah, that will not be 20-30 bucks for sure...			
					Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						03 Apr 2024 22:01				#297544
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic how to provide position feedback for stepper motors with a rotary encoder			
			
				Not too much more though
(StepperOnline lists the CL86 at $43.94, and a matching motor at $42.04 so $85 total)
					(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.
- Mecanix
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 447
- Thank you received: 226
			
	
						03 Apr 2024 22:04				#297545
		by Mecanix
	
	
		
			
				 
			
					
	
			
			 		
													
	
				Replied by Mecanix on topic how to provide position feedback for stepper motors with a rotary encoder			
			Yeah you're prolly right, 12~15 bucks huge max...Yeah, that will not be 20-30 bucks for sure...
 
			Please Log in or Create an account to join the conversation.
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20847
- Thank you received: 7107
			
	
						03 Apr 2024 22:20				#297546
		by tommylight
	
	
		
			
				
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 ! 
					
	
			
			 		
													
	
				Replied by tommylight on topic how to provide position feedback for stepper motors with a rotary encoder			
			Still cheap!Not too much more though
(StepperOnline lists the CL86 at $43.94, and a matching motor at $42.04 so $85 total)
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 !

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.
Yeah you're prolly right, 12~15 bucks huge max...Yeah, that will not be 20-30 bucks for sure...
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- how to provide position feedback for stepper motors with a rotary encoder
		Time to create page: 0.079 seconds	
 
													