GrblGru “Grbl not found @ COM3” & The setup wizard is not supported for this controller

hi everyone , i'm newbie for arduino, i'm plan to build an CNC machine , but my computer can't communicate with arduino .

GrblGru:
i have upload HEX file into my arduino MEGA 2560 , but in GrblGru software it shown "Grbl not found @ COM3"
WhatsApp Image 2022-02-03 at 6.08.28 PM (1)

after many try and error , i have give up with it , i try new software Universal G Code Sender (UGS) , unfortunately it shown me "The setup wizard is not supported for this controller"

i'm wonderring is it something wrong with my hardware , i would appreciate if someone willing to spend time to answering me , thank you !

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.

Hello, I am having the same problem whenever I try to connect my Arduino MEGA. However, UGS works perfectly fine with my UNO. In any case, I would like to use my MEGA for this project. That said, I was wondering if you managed to solve your problem and use the setup wizard with the MEGA or if you had to manually do the setup.

Thank you!

What grbl are you using on your MEGA? Since grbl depends on low-level port-wise access to the stepper and direction pins, it Unos and Megas aren't pin-wise interchangeable.

If you uploaded a hex file from GitHub - gnea/grbl: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino , the same hex file won't work properly on a mega.

The GitHub - gnea/grbl-Mega: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560 project has hex files for Megas. and there's other forks, like GitHub - fra589/grbl-Mega-5X: 5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560 or GitHub - MetalWorkerTools/grbl-L-Mega: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560. Forked from GRBL modified for use on a lathe with spindle sync threading

Of course, they are not. I am well aware the UNO is based on the ATmega328P and the MEGA on the ATmega2560.

In order to use grbl on the MEGA I modified the config.h library to use the mapping for the MEGA since the mapping for the UNO would never work for the MEGA. For example, when using the mapping for the UNO the .h files call for Digital Pins 9,10, 11 for the Limit Switches wich correspond to PORT B 1,2,3 respectively. However, if I were to flash the program to the MEGA and wire the same way I would never find PORT B 1,2,3 in those Digital Pins since 9,10,11 correspond to PH6, PB4, PB5 in the MEGA.

I modified the following line:

[ORIGINAL]
// Default cpu mappings. Grbl officially supports the Arduino Uno only. Other processor types
// may exist from user-supplied templates or directly user-defined in cpu_map.h
#define CPU_MAP_ATMEGA328P

[NEW]
// Default cpu mappings. Grbl officially supports the Arduino Uno only. Other processor types
// may exist from user-supplied templates or directly user-defined in cpu_map.h
#define CPU_MAP_ATMEGA2560

That clarified, I can now continue.

I could connect to the UGS without problem after several tries and now I can use the setup wizard. I can move the machine using different commands and it performs as expected (I can do arcs, lines,etc. ). However, I am having problems with the limit switches.

I, of course, verified the wiring is correct and that I am indeed recieving a signal (I verified this with a simple code I ran on another Arduino). Even when using UGS, whenever I trigger any limit siwtch I get the alarm. The problem I am having is that on the setup wizard window I do not see any change in colour in X Y Z. That is, they remain green. (Even if I do get the alarm on the UGS).

I tried with my UNO and I am having the same problem. The wizard is not changing colours whenever a limit is triggered.

I would like to know if someone has encountered the same problem and how they solved it.

By the bye, I do know there is a separate commit for the MEGA board; however, the differences are not that big of a deal. Thank you

For that to work, it is probably the 2016 grbl v0.9j code from grbl/grbl at master · grbl/grbl · GitHub not the v1.1h code from GitHub - gnea/grbl: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino

I don't have an answer for you, but thought the differences between grbl implementations could be a factor. The differences in documentation and current support is significant.