Lefteris
Posts: 2
Joined: Sat Feb 14, 2015 3:46 pm

Project with 3x linear encoders and 3x stepper motors simultaneously

Fri Oct 19, 2018 1:43 pm

Hello, i would like to start a project for lathe. I would like to read from 3x linear encoder and see the positions of xyz to screen (like DRO).
One more operation is to send pulses for driving 3x steppers for the three axes of lathe comparing the current positions with the reading of linear encoders.
The question is: can be develop this project in C language with Raspberry, or i will have problem with latency or anything else, because of simultaneously operation?

User avatar
Joel_Mckay
Posts: 141
Joined: Mon Nov 12, 2012 10:22 pm
Contact: Website

Re: Project with 3x linear encoders and 3x stepper motors simultaneously

Fri Oct 19, 2018 2:27 pm

Most stepper motor driven machines are open-loop control, but LinuxCNC does support industrial servo based closed-loop style systems on larger machines. Personally, I use steppers on my small home mill, lathe, and 3d printer.

We released a special RTLinux based linuxCNC distro with simple CAM tools for lathes, mills, and engravers: http://www.micrometer.xyz/cdn/node/1
The site details how the various workflows are used with a hardware controller, but our club motherboard optical RPM sensor input has not been tested yet. Other threading projects are listed here: http://www.micrometer.xyz/cdn/node/11

In general, running the kinematics is heavy on the pi2b+ cpu, but does run up to 5-axis rather slowly with the external Arduino firmware. ;-)

Cheers,
J

Return to “Automation, sensing and robotics”