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
https://github.com/fra589/grbl-Mega-5X/wiki
Other
341 stars 159 forks source link

Problem at 230400 baudrate #164

Closed NurAlif closed 3 years ago

NurAlif commented 3 years ago

I changed the baudrate in config.h to #define BAUD_RATE 230400. Then, it successfully connected with serial monitor at 230400 baudrate. I receive this line from the board Grbl 1.1g ['$' for help]. But, it does not respond to any commands. When I sent $ or $$, sometimes I receive error:1 or error:2 or error:3 or not receiving anything from the board.

I have tested this on 2 MEGA boards, both resulting in the same result above.

fra589 commented 3 years ago

Hi @NurAlif,

You've probably exceeded the limits of what the 2560 card can do.
A lot of literature on the net seems to indicate the reliable max limit at 115200bps. Beyond that, you have to deal with random errors.
Go back to 115200 and everything will be fine...

@++;
Gauthier.
P.S. The up to date version of grbl-Mega-5X is Grbl 1.1p, you have 1.1g... You should update your version.