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
https://github.com/gnea/grbl/wiki
Other
4.1k stars 1.61k forks source link

Mega 2560 will not connect #632

Closed mrtwizta closed 5 years ago

mrtwizta commented 5 years ago

I get this error when trying to open with Gbrl Controller No data from COM port after connect. Expecting Gbrl version string

I ran the Uno shield and had no issues with hardware, all motors working, loaded a file and executed no issues.

mrtwizta commented 5 years ago

Is there a Version of gbrl that has been tested on 2560 with out issues?

ghost commented 5 years ago

https://github.com/gnea/grbl-Mega

mrtwizta commented 5 years ago

tried the At mega 2560 and and MKS Gen2-Z (2560 chip) "No data from COM port after connection.Expecting Grbl version string." So I loaded A Marlin printer sketch i use for my 3Dprinter and it works fine, obviously till the heater hardware reports an error. Just to confirm/prove the hardware and wiring is correct, i can move and home all axis without problems so it seems the devs need to do some soul searching there?

mrtwizta commented 5 years ago

https://github.com/gnea/grbl-Mega

There is no response from any of the 2560 builds? they all unresponsive or error prone most report "gbrl not finished loading" or no "data from com port" why dont they just take a Marlin by the tail and mod it to work with gbrl? has all the bells, even the display part for jogging works?

matonym commented 5 years ago

I'm running GRBL on the Mega 2560 without any problems. Have you tried connecting with a terminal program to the COM-port (115200 baud) ?

mrtwizta commented 5 years ago

how do i do that? noob here

Q: What software you musing?

matonym commented 5 years ago

There's plenty of software. If you are on Windows you might try Putty (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)

Example putty1

Settings. Make sure you have the right COM-port etc.

putty2

Result (Hopefully)

mrtwizta commented 5 years ago

hi thanks for the mail, it is appreciated. i followed that eg. and the terminal just shows a green cursor with no text

Regards

Michae lk michael k (under cover matter-control pimp) +27 63 185 0233

3rdzeropoint@gmail.com michaelkruis58@gmail.com

On Fri, 29 Mar 2019 at 11:47, matonym notifications@github.com wrote:

There's plenty of software. If you are on Windows you might try Putty ( https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)

Example [image: putty1] https://user-images.githubusercontent.com/25170057/55224088-021e3800-5210-11e9-8244-170859cf224d.png

Settings. Make sure you have the right COM-port etc.

[image: putty2] https://user-images.githubusercontent.com/25170057/55224099-077b8280-5210-11e9-8a4b-793144525b0f.png

Result (Hopefully)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/632#issuecomment-477935434, or mute the thread https://github.com/notifications/unsubscribe-auth/AQRwJhUO4JPsO0N87EKXO9lIG8gjfxT2ks5vbeE5gaJpZM4cL6G1 .

matonym commented 5 years ago

Are you sure it's the right COM-port selected? If not sure, double-check it in the device manager.

MeJasonT commented 5 years ago

From your earlier post it sounds like you mat not have actually installed GRBL. in the Arduino IDE under Tools tab see if you mega is connected, under the same (Tools) tab check that the board you have selected is The Genuine mega. Go back into Tools menu and select Serial Monitor - when it opens check the baud rate is set for 115200 in the bottom left corner of monitor screen, if not use the drop down to select it. GRBL should have responded if not in the command bar at the top enter $$ and press the send key to the right. If you get no response then the program on the board is not GRBL. in that case close monitor window and go to File - Examples and open Basics - Analogue ReadSerial, load it to your board. Open the monitor window again change the baud rate to 9600 and you should see a list of values being printed. Your board is working and communicating if this works. If you have installed the GRBL library on your machine go to File tab- open examples again and look for GRBL once open upload it to your mega. open the serial monitor again, set baud rate to 115200 and see if the board responds if not try sending $$ again. It is possible to blow up the micro or the FTDI IC but the steps above should give you some confidence that your board is working.

mrtwizta commented 5 years ago

yes its the right one, as i said i loaded a marlin sketch that works on the same port, used matter control to move and check works fine with matter control and marlin i can connect to the port with the software but gives those errors no data or not gbrl finished loading Regards

Michae lk michael k (under cover matter-control pimp) +27 63 185 0233

3rdzeropoint@gmail.com michaelkruis58@gmail.com

On Fri, 29 Mar 2019 at 15:57, matonym notifications@github.com wrote:

Are you sure it's the right COM-port selected? If not sure, double-check it in the device manager.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/632#issuecomment-478006839, or mute the thread https://github.com/notifications/unsubscribe-auth/AQRwJt1KEmtmsEbGmpIOzfFzD31du0rLks5vbhvGgaJpZM4cL6G1 .

MeJasonT commented 5 years ago

Have you installed the GRBL library correctly ?

MeJasonT commented 5 years ago

If you click on grbl outside of the library folder it opens and looks like it should, however when you go to upload firmware it will tell you lies as it cant find any of the associated files and will fail to upload. The unzipped file contents should be in your Documents/Arduino/libraries folder (or wherever your arduino library is) make sure you have changed any "-" characters in the folder names with "_" Arduino IDE hates "-" in names

mrtwizta commented 5 years ago

Regards

Michae lk michael k (under cover matter-control pimp) +27 63 185 0233

3rdzeropoint@gmail.com michaelkruis58@gmail.com

On Fri, 29 Mar 2019 at 16:18, Jason Thompson notifications@github.com wrote:

From your earlier post it sounds like you mat not have actually installed GRBL. in the Arduino IDE under Tools tab see if you mega is connected, under the same (Tools) tab check that the board you have selected is The Genuine mega. Go back into Tools menu and select Serial Monitor - when it opens check the baud rate is set for 115200 in the bottom left corner of monitor screen, if not use the drop down to select it. GRBL should have responded if not in the command bar at the top enter $$ and press the send key to the right. If you get no response then the program on the board is not GRBL. in that case close monitor window and go to File - Examples and open Basics - Analogue ReadSerial, load it to your board. Open the monitor window again change the baud rate to 9600 and you should see a list of values being printed. Your board is working and communicating if this works. If you have installed the GRBL library on your machine go to File tab- open examples again and look for GRBL once open upload it to your mega. open the serial monitor again, set baud rate to 115200 and see if the board responds if not try sending $$ again. It is possible to blow up the micro or the FTDI IC but the steps above should give you some confidence that your board is working.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/632#issuecomment-478014061, or mute the thread https://github.com/notifications/unsubscribe-auth/AQRwJuZLOoE6jG2kZRkBHAw5lwjPyCJeks5vbiChgaJpZM4cL6G1 .

MeJasonT commented 5 years ago

? have you fixed it, if so please close this issue.

mrtwizta commented 5 years ago

Be patient please i am still trying to go through your mail Regards

Michae lk michael k (under cover matter-control pimp) +27 63 185 0233

3rdzeropoint@gmail.com michaelkruis58@gmail.com

On Fri, 29 Mar 2019 at 16:27, Jason Thompson notifications@github.com wrote:

? have you fixed it, if so please close this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/632#issuecomment-478017419, or mute the thread https://github.com/notifications/unsubscribe-auth/AQRwJnx4zYrj1dCAfYlANKiw6-KQG_KRks5vbiLWgaJpZM4cL6G1 .

MeJasonT commented 5 years ago

Sorry buddy you responded with just Regards, it sounded positive.

mrtwizta commented 5 years ago

NP ok i did the AnalogRead and i see lots of 0, apearing

MeJasonT commented 5 years ago

your board is communicating so no hardware fault, It looks like you are not getting the GRBL firmware loaded properly. What machine are you wanting to use with grbl 3 axis ?

mrtwizta commented 5 years ago

ok i did this and found the gbrlUpload under examples which is the one i have been using, but i get nul output on serial mon If you have installed the GRBL library on your machine go to File tab- open examples again and look for GRBL once open upload it to your mega. open the serial monitor again, set baud rate to 115200 and see if the board responds if not try sending $$ again. It is possible to blow up the micro or the FTDI IC but the steps above should give you some confidence that your board is working.

MeJasonT commented 5 years ago

Do you want me to talk you through the install

mrtwizta commented 5 years ago

yes please

mrtwizta commented 5 years ago

i wish they would allow team viewer in these situations

mrtwizta commented 5 years ago

yes please i am in git as well i can reply there if you like?

Regards

Michae lk michael k (under cover matter-control pimp) +27 63 185 0233

3rdzeropoint@gmail.com michaelkruis58@gmail.com

On Fri, 29 Mar 2019 at 16:38, Jason Thompson notifications@github.com wrote:

Do you want me to talk you through the install

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/632#issuecomment-478021570, or mute the thread https://github.com/notifications/unsubscribe-auth/AQRwJlyA0IFeMzYDwcv8IMbfIg4KimTQks5vbiV1gaJpZM4cL6G1 .

MeJasonT commented 5 years ago

Ok, have you located the arduino library folder do you have any versions of grbl in your arduino library folder if so delete them, lets start from scratch. You have two options of uploading the file by using the arduino ide to upload the program or by uploading the hex file directly using Xloader - which are you happiest using.

mrtwizta commented 5 years ago

ok

mrtwizta commented 5 years ago

i have a hex and i di do that but let me delete from the lib.. done i have downloaded all the version in a master file separate master file i do have the gnea version

MeJasonT commented 5 years ago

i was going to suggest a link you beat me to it. send the link you used to download the master

mrtwizta commented 5 years ago

https://github.com/gnea

MeJasonT commented 5 years ago

OK tops

MeJasonT commented 5 years ago

So you have chosen to download the GRBL program via the download zip, correct.

mrtwizta commented 5 years ago

C:\Program Files (x86)\Arduino\libraries is this the correct place for the library?

mrtwizta commented 5 years ago

yes

MeJasonT commented 5 years ago

Ummm what version of arduino IDE are you using. the latest versions save the library to another location - by default its in your document folder. The program build still adds a library folder into the c directory but ignores it when loading.

mrtwizta commented 5 years ago

1.8.9

mrtwizta commented 5 years ago

you want to connect to my pc with team viewer?

MeJasonT commented 5 years ago

1% newer than mine, i'm still on 1.8.8 would prefer not to use team viewer if its all the same, we have dodgy companies here in uk trying to gain access to users machines, best to stay away from it.

mrtwizta commented 5 years ago

ok where are your libs? kept

MeJasonT commented 5 years ago

do you have a folder like C:\Users\Your Computer\Documents\Arduino\libraries if so unzip the file here

mrtwizta commented 5 years ago

yes i just put the library there "gbrl" from the unzipped master from here: C:\Users\PC\Documents\CNC gbrl Master Files\grbl-Gnea-grbl\grbl-master\grbl to here: C:\Users\PC\Documents\Arduino\libraries\grbl

MeJasonT commented 5 years ago

Ok is the grbl folder the top level or does it contain a folder called grbl inside it

mrtwizta commented 5 years ago

its top, i see all the c and h files init

MeJasonT commented 5 years ago

you are a star, now open the ide and open grbl from the examples tab

MeJasonT commented 5 years ago

It will open just one page, but it now knows where to find the other code segments

mrtwizta commented 5 years ago

i only see grblUload there, but its done

MeJasonT commented 5 years ago

you should now be ready to go. open the serial monitor window in the ide baud 115200 and send $$

mrtwizta commented 5 years ago

done but still no response

MeJasonT commented 5 years ago

NO!, did you get any errors when you uploaded to the board are you absolutely sure there were no old grbl files lying around in your library folder

mrtwizta commented 5 years ago

no, not an orange char in site

MeJasonT commented 5 years ago

im going to the workshop for an mega board, give me 10 mins