Speech to writing using xy plotter

Good day I am trying to create a plotter that works with a speech recognition interface and sends translated speech to arduino. Now the thing is that I want to create functions holding the instruction for writing each alphabet or number using the plotter so that the translated text can be split into individual characters and be distinguished for plotting using switch statements. Is it possible to have gcode commands inside of functions created in my arduino IDE

Yes.

How please?

return "GCODE";

Replace GCODE with your gcode

But then does the arduino compiler recognize gcode syntax/ commands?

You have misunderstood the large picture. Gcode could be stored on an SD card, read by the microcontroller and sent to the CNC.
It usually takes quite some Gcode to make things. That Gcode will not likely find place in the memory of the controller.

May I suggest your first order of business is to create a single G-code file on your PC and send that to the CNC machine using a G-code sender. When your G-code creates a letter to your satisfaction, then you will know exactly what must be stored for the Arduino to send line-by-line to the CNC plotter. And you will know exactly the size of storage needed for that single letter.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.