Robin2:
You could open a second instance of the Arduino IDE and give yourself a second separate serial monitor or you could use a different terminal program such as PuTTY or Realterm. Any program on the PC that can send data over a serial connection can talk to an Arduino....R
I am trying to build an autonomous laser engraver, which does not receive data from the PC but instead from another Arduino or an SD card. Therefore, I do not want any external software like Universal GCode Sender involved because the laser engraver will not be connected to any PC.
Robin2:
I don't understand what you have in mind. Please explain further.
...R
Initially, I was thinking on how to translate the gcode to stepper movement (for example, for G1 X100 F150, how do I know how many steps I need the stepper motor to move in the X-axis?). How do I program it in Arduino? However, I just reread the codes uploaded by the OP and I sort of have an idea on this issue. I will give it a try again and thanks for the reply!
Paul_KD7HB:
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
Thank you very much! This will be helpful. My bad for missing this out.
Anyway, I will give it a try first and will update this post again.