Help with Ardunio+GRBL

Before I get the "go do your own research on google" and "that's a stupid question" let me say that I have spent a few hours looking into this and this is my first time trying to upload GRBL with only very VERY minor experience with Arduino before now.

I dropped the GRBL file from the grbl-master-zip directly into my Arduinos libraries folder in my files, I then went to IDE and File -> Examples -> grblUpload.ino

Uploaded the grblUpload.ino to my Arduino Uno and got these errors:

Commands work and I am able to change settings using the serial monitor and the board remembers it however when I try to use UGS I get this

Any ideas how to get it UGS to connect properly?

Try this link: How to get the best out of this forum - Using Arduino / Project Guidance - Arduino Forum

Screen shots are not promoted....

I don't have much experiences with Arduino and virtually none with GRBL and UGS (I have used similar to UGS but not that much).

I have uploaded gbrl to my board using the route of putting the grbl folder directly into my Arduinos libraries folder in my files, I then went to IDE and File -> Examples -> grblUpload.ino.

$ commands work and I am able to change settings using the serial monitor and the board remembers it however when I try to use UGS I get a message saying "Could not connect to the controller".

Additionally I have these errors below in IDE, which confuses me that the board would be able to understand the commands yet UGS does not connect to the board at all.

In file included from C:\Users\wmcar\Documents\Arduino\libraries\grbl/grbl.h:43:0,
                 from C:\Users\wmcar\AppData\Local\Temp\.arduinoIDE-unsaved202468-25268-ysilej.z9y0b\grblUpload\grblUpload.ino:27:
C:\Users\wmcar\Documents\Arduino\libraries\grbl/nuts_bolts.h:56:0: warning: "max" redefined
 #define max(a,b) (((a) > (b)) ? (a) : (b))
 
In file included from C:\Users\wmcar\AppData\Local\Temp\arduino\sketches\113DF7A3514DA4BB34F75479E2F1CFCD\sketch\grblUpload.ino.cpp:1:0:
C:\Users\wmcar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:93:0: note: this is the location of the previous definition
 #define max(a,b) ((a)>(b)?(a):(b))
 
In file included from C:\Users\wmcar\Documents\Arduino\libraries\grbl/grbl.h:43:0,
                 from C:\Users\wmcar\AppData\Local\Temp\.arduinoIDE-unsaved202468-25268-ysilej.z9y0b\grblUpload\grblUpload.ino:27:
C:\Users\wmcar\Documents\Arduino\libraries\grbl/nuts_bolts.h:57:0: warning: "min" redefined
 #define min(a,b) (((a) < (b)) ? (a) : (b))
 
In file included from C:\Users\wmcar\AppData\Local\Temp\arduino\sketches\113DF7A3514DA4BB34F75479E2F1CFCD\sketch\grblUpload.ino.cpp:1:0:
C:\Users\wmcar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:92:0: note: this is the location of the previous definition
 #define min(a,b) ((a)<(b)?(a):(b))
 
In file included from C:\Users\wmcar\Documents\Arduino\libraries\grbl/grbl.h:43:0,
                 from C:\Users\wmcar\AppData\Local\Temp\.arduinoIDE-unsaved202468-25268-ysilej.z9y0b\grblUpload\grblUpload.ino:27:
C:\Users\wmcar\Documents\Arduino\libraries\grbl/nuts_bolts.h:61:0: warning: "bit" redefined
 #define bit(n) (1 << n)
 
In file included from C:\Users\wmcar\AppData\Local\Temp\arduino\sketches\113DF7A3514DA4BB34F75479E2F1CFCD\sketch\grblUpload.ino.cpp:1:0:
C:\Users\wmcar\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:124:0: note: this is the location of the previous definition
 #define bit(b) (1UL << (b))
 
Sketch uses 29762 bytes (92%) of program storage space. Maximum is 32256 bytes.
Global variables use 1633 bytes (79%) of dynamic memory, leaving 415 bytes for local variables. Maximum is 2048 bytes.

Below is hardware/software being used

Shield and Board being used

Version of GRBL:
grbl-master.zip (300.5 KB)

Running: IDE 2.3.3 and UGS 2.1.8

Wrong serial port?

Flash the *.hex file from releases: https://github.com/gnea/grbl/releases
To flash the hex, follow these (really crude) instructions: Generate and Upload .HEX files into Arduino | Hackaday.io

... or figure out how arduinide calls avrdude and do the same yourself.

image
Got another error - commands still work in IDE on COM3... any ideas?

Rund program as administrator (you are on Windozz?)

Scrap that, now its just upload failed

EDIT NVM UPLOADED AND UGS IS WORKING THANKS SM

I have merged your topics due to them having too much overlap on the same subject matter @willmc1.

In the future, please only create one topic for each distinct subject matter and be careful not to cause them to converge into parallel discussions.

The reason is that generating multiple threads on the same subject matter can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Thanks in advance for your cooperation.

Yup I assumed the first one got removed when i got the comment about formatting and so i made the other, never been on here before

Ensure that when you are using such as UGS etc. that you CLOSE any IDE as this will BLOCK the port.

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