I'm currently working on a project involving a CNC system controlled by an Arduino running Grbl firmware. In my project, the CNC machine needs to navigate to multiple weed positions for targeted spraying. However, I'm unsure how to handle the movement between weed detections. Should I calculate the relative movement between the current position and the new weed position, or is there a different approach I should consider? For example, if the current position is (X=9, Y=3) and the new weed position is (X=7, Y=5), how do I accurately control the CNC machine to navigate between these points? Any insights or guidance would be greatly appreciated knowing that i use stepper motors .
There's not any room in an Arduino running Grbl for anything else, so I think you might be asking about how to move a GRBL device. If you happen to be at X=9,Y=3, (or anywhere else,) and want to go directly to X=7,Y=5, you might issue a "G1 X7 Y5 F1000" to move there 1000mm/minute.
The problem is when i extract bboc weed coordinates and send it to arduino to control stepper motors those ones move the sprayer with x y steps i wiil confirm if it put it in position x y or moves it with x y realtive to its last position
Thats what i need exactlyyy !! Thank you
But i have question if i used g90 how does the cnc or steppermotors inow the coord for example x4 y8 position ?!