I’ve started a project with a CNC controlled machine and Arduino. I made a kind of “scanner” where I have a 3 axis motor that helps a pen to move around following x-axis, y-axis and z-axis.
So I installed Grbl, UGS, and did all the blablabla (settings,…).
Now, I’m stuck. If I want to replace the pen with a sensor, be it a heat sensor, magnetic sensor or anything, how can I, in the same time, acquire position and data (simultaneously) ?
In order to do that, I tried to solve this problem by dividing it into 2. Acquiring coordinate, and then timing it with data acquisition.
So I made a pattern for the cnc to follow (made of Gcode). But here I only give him 2 coordinates to go to, but there’s no instruction between these 2 coordinates. So I was thinking of using the Controller State (which is showing real time coordinate) of UGS, but couldn’t find anything on it being able to send shown data.
So my questions are :
Is it even possible to do that I want ? <=> Acquiring position and data simultaneously