Running g-code on Arduino without a computer

Hi all, I am trying to work on an Arduino project which is sort of like a draw-bot. I am using and uno with 2 steppers and a servo motor. I have managed to make the bot work using universal g-code sender and the grbl library. However, I need to make it work without using a computer, so basically downloading the g-code onto the Arduino or an SD card on the Arduino and use a push button or any other input method (Bluetooth or whatever works) to start the drawing, but I have absolutely no idea how to convert g-code into code the uno can understand and download it onto the uno. Any ideas and all help would be much appreciated. Thanks in advance.

you can write your own sketch where you move motors and read and parse SD card line for line.

Thank you for the suggestion, I will try this out and see how it goes.. Thanks!

Use two arduinos? One running grbl and the other sending g-code through the serial port. This is one of the rare times that I think using multiple arduinos will simplify a project :slight_smile:

2 Likes

The issue is that one arduino will still require a laptop. I want no laptop at all and its all downloaded on the arduino

Here's a pointer to a sketch that reads code from an SD card and sends the gcode to a grbl:

it could be adapted to, for example, send the "button1.gcode" file when button 1 is pressed, etc....

Thank you so much... I think this is absolutley perfect! (Still open to any suggestions)

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