Hi
I've downloaded the grbl zip file from GitHub and followed the instructions to flash it to my arduino mega 2560. When I run grbl controller 3.6.1 I get error, " no data from com port after connect. Expecting gerbil version string "
It looks like there's some communication because the led does blink a couple of times after I use " open " but before the error.
I only have 1 stepper mother and driver connected to x at the moment but I don't think there's feedback for the arduino to know this, maybe I'm wrong.
Any ideas, cheers.
Regards, Michael
You need to address your question to a forum that is experienced with GRBL.
What is "grbl controller 3.6.1"
Do you need to do anything to GRBL to let it know it is working on a Mega rather than an Uno ?
...R
Thx for yr reply robin.
I ask here because my projects usually have a basis here and I can usually find answers without asking like this, but I admit defeat and so ask. Gerbil controller is a free program that runs on PC and sends , gerbil file format I expect, data to the arduino running grbl to operate CNc, at least thats my understanding of it. Chime in anyone plz if I'm wrong.
As far as I can tell there is a device file that includes setup info for my arduino.
So I'm lost for ideas, I have used the arduino serial monitor to send grbl commands, $$ and $#, but I didn't receive any reply! lights did flash.
Ideas?
The Mega has a different pin mapping than the uno. I have not checked the grbl source but it is possible that it uses PORT commands instead of digitalWrite(). In that case the pin numbers will change
astro_mike:
As far as I can tell there is a device file that includes setup info for my arduino.
I suspect @nilton61 is correct.
Can you post the device file?
...R
Please read the sticky thread and post enough detail - we can't reliably guess which
version of GRBL you are talking about - you mention github but don't give the
actual URL - please provide this information and describe how you built it.
Quickly though - you are using the correct baud rate?
Was this ever solved? I find myself in the exact same situation! Iduino Mega2560 GrblController 3.6 If I upload a simple test program "NOT GRBL" but an arduino program. I get proper movement. but when I flash it with grbl v0.9j I get the same error message
no data from com port after connect. Expecting gerbil version string
So any help? Oh this is the test program
#define X_STEP_PIN 54
#define X_DIR_PIN 55
#define X_ENABLE_PIN 38
#define X_MIN_PIN 3
#define X_MAX_PIN 2
#define Y_STEP_PIN 60
#define Y_DIR_PIN 61
#define Y_ENABLE_PIN 56
#define Y_MIN_PIN 14
#define Y_MAX_PIN 15
#define Z_STEP_PIN 46
#define Z_DIR_PIN 48
#define Z_ENABLE_PIN 62
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19
#define E_STEP_PIN 26
#define E_DIR_PIN 28
#define E_ENABLE_PIN 24
#define Q_STEP_PIN 36
#define Q_DIR_PIN 34
#define Q_ENABLE_PIN 30
#define SDPOWER -1
#define SDSS 53
#define LED_PIN 13
#define FAN_PIN 9
#define PS_ON_PIN 12
#define KILL_PIN -1
#define HEATER_0_PIN 10
#define HEATER_1_PIN 8
#define TEMP_0_PIN 13 // ANALOG NUMBERING
#define TEMP_1_PIN 14 // ANALOG NUMBERING
void setup() {
pinMode(FAN_PIN , OUTPUT);
pinMode(HEATER_0_PIN , OUTPUT);
pinMode(HEATER_1_PIN , OUTPUT);
pinMode(LED_PIN , OUTPUT);
pinMode(X_STEP_PIN , OUTPUT);
pinMode(X_DIR_PIN , OUTPUT);
pinMode(X_ENABLE_PIN , OUTPUT);
pinMode(Y_STEP_PIN , OUTPUT);
pinMode(Y_DIR_PIN , OUTPUT);
pinMode(Y_ENABLE_PIN , OUTPUT);
pinMode(Z_STEP_PIN , OUTPUT);
pinMode(Z_DIR_PIN , OUTPUT);
pinMode(Z_ENABLE_PIN , OUTPUT);
pinMode(E_STEP_PIN , OUTPUT);
pinMode(E_DIR_PIN , OUTPUT);
pinMode(E_ENABLE_PIN , OUTPUT);
pinMode(Q_STEP_PIN , OUTPUT);
pinMode(Q_DIR_PIN , OUTPUT);
pinMode(Q_ENABLE_PIN , OUTPUT);
digitalWrite(X_ENABLE_PIN , LOW);
digitalWrite(Y_ENABLE_PIN , LOW);
digitalWrite(Z_ENABLE_PIN , LOW);
digitalWrite(E_ENABLE_PIN , LOW);
digitalWrite(Q_ENABLE_PIN , LOW);
}
void loop () {
if (millis() %1000 <500)
digitalWrite(LED_PIN, HIGH);
else
digitalWrite(LED_PIN, LOW);
if (millis() %1000 <300) {
digitalWrite(HEATER_0_PIN, HIGH);
digitalWrite(HEATER_1_PIN, LOW);
digitalWrite(FAN_PIN, LOW);
} else if (millis() %1000 <600) {
digitalWrite(HEATER_0_PIN, LOW);
digitalWrite(HEATER_1_PIN, HIGH);
digitalWrite(FAN_PIN, LOW);
} else {
digitalWrite(HEATER_0_PIN, LOW);
digitalWrite(HEATER_1_PIN, LOW);
digitalWrite(FAN_PIN, HIGH);
}
if (millis() %10000 <5000) {
digitalWrite(X_DIR_PIN , HIGH);
digitalWrite(Y_DIR_PIN , HIGH);
digitalWrite(Z_DIR_PIN , HIGH);
digitalWrite(E_DIR_PIN , HIGH);
digitalWrite(Q_DIR_PIN , HIGH);
}
else {
digitalWrite(X_DIR_PIN , LOW);
digitalWrite(Y_DIR_PIN , LOW);
digitalWrite(Z_DIR_PIN , LOW);
digitalWrite(E_DIR_PIN , LOW);
digitalWrite(Q_DIR_PIN , LOW);
}
digitalWrite(X_STEP_PIN , HIGH);
digitalWrite(Y_STEP_PIN , HIGH);
digitalWrite(Z_STEP_PIN , HIGH);
digitalWrite(E_STEP_PIN , HIGH);
digitalWrite(Q_STEP_PIN , HIGH);
delay(2.5);
digitalWrite(X_STEP_PIN , LOW);
digitalWrite(Y_STEP_PIN , LOW);
digitalWrite(Z_STEP_PIN , LOW);
digitalWrite(E_STEP_PIN , LOW);
digitalWrite(Q_STEP_PIN , LOW);
}