I have a NodeMCU that can read an SD card. In my project, I want to read the SD card, retrieve the G-code, and send it to the shield or Uno board. I've tried using GRBL, but I don't know how to code...
Make sure the receiver of the GRBL is loaded with grbl.h code.
The syntax for the sender..... That's outside my comfort zone.
thank you mr.@Railroader. isn't there any solution for run gcode without outside??
Without outside what ?
Can You draw a logic block diagram showing how You're thinking?
GitHub - costycnc/costycnc-esp8285-esp8266-gcode-interpreter: Now costycnc serial program grbl decoder for 2 unipolar steppers in in wifi. · GitHub i make some test here ... i build a small gcodesender!
you think like this.
Wifi-Grbl-With-Universal-Gcode-Sender
This tutorial showed how to control Grbl CNC using WiFi. I want to control Grbl using an SD card. The SD card should have a file named gcode.txt, and when this file is run, it should control the CNC
I am assuming that you have an ESP to read the SD card, and a Uno to run GRBL.
The code to read a file from SD Card is straightforward. You can probably just read each character and send to the serial port connected to the Uno running GRBL without caring about the structure of G-code commands.
thank you very much but how ?? can you give me example code please...
Thank you very much. I think this will solve my problem, but it's very complex. I don't understand it.
This shows how to read and write an SD card :
i already coded to read file from sd card. so how to run G-code commands
Just send it with Serial.write(buf, len). It is just text.
