Hi all,
I'm working on building a fairly basic XYZ CNC mill/plotter, stepper motor controlled, all fairly basic. Now controlling it with EMC2, I want to be able to send all the commands via the PC serial port to a microcontroller and have it manage the stepper motors there. coding micro's and building all the hardware is no problem, but I'm a linux noob and setting up the HAL driver to send commands serially is a little beyond me right now.
I've got the latest Ubuntu CD with EMC bundled on it and have booted it in a virtual machine at the moment to have a look at it, but I'll probably make a dedicated install if it gets too hard trying to talk through the virtual machine drivers.
So has anyone got any tips on setting up the drivers to send commands via serial? I just need to get them out of the PC, decoding their function at the microcontroller is no problems. And how about communication in the other direction, limit switches and stuff like that?
Thanks,
Dan