Hi to all,
lately I am playing with optical encoders and DC motors, all taken from old printers.
With arduino I have full control over them. I also implemented a digital PID to control their position.
Now I would like to use them with LinuxCNC.
As I have read here LinuxCNC has the capability to work with encoders (see
linuxcnc.org/docs/ja/html/man/man9/encoder.9.html
)
but I don't understand some things at this point:
1. What hardware do I need to feed the input signals of the encoders to the parallel port and ouput suitable signals for the H-Bridges to control the DC motors (1 PWM and 1 Direction signal per motor).
2. How to configure the software to run these motors. Should I trim the PIDs inside LinuxCNC for each axis/motor?
3. Is there a way to use my hardware measured position (from arduino) and feed this info to LinuxCNC?
4. Can I use arduino as a form of servo motor and send position commands to it through LinuxCNC? I know by this way is not actually a complete closed loop system as LinuxCNC will not have the primary feedback of the position.
Any help would much appreciated