XenonFred:
I am having the same problem as well. Have you found any solution? I do not want to use any software to upload the gcodes because I am trying to build an autonomous laser engraver machine (standalone Arduino based laser engraver machine).
How do we do the coding for the slave Arduino to receive and run the code? Is it through Serial.print(gcodes) or are there any specific codes to translate the gcode to the stepper movement?From my understanding, GRBL occupies the serial monitor of the slave Arduino so there is no way to use the serial monitor.
Please help.
Do you see THIS function in the code that was provided by the OP?
void ready() {
sofar=0; // clear input buffer
Serial.print(F("> ")); // signal ready to receive input
}
That is the message that is sent back to the program sending the "G" code line to tell that program to send the next line. If you do not provide a program on the other device that can read that message and send a "G" code line, then you will never get this to work!!!!
Paul