Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arduino due not working #19

Open
enjoylife1024 opened this issue Dec 12, 2023 · 10 comments
Open

arduino due not working #19

enjoylife1024 opened this issue Dec 12, 2023 · 10 comments

Comments

@enjoylife1024
Copy link

I am not able to compile this to my arduino. I had someone at my work help me and it says it complied and is on the due, except I can't get it to link to lightburn or lasergrbl. It has the com port and I can read it through get board info in arduino ide. That is about it. I am getting this on the log file from lightburn.
LightBurnLog.txt

Any help is much appreciated. I am currently using a mega on my machine now but want to go to the 32 bit.

@terjeio
Copy link
Contributor

terjeio commented Dec 12, 2023

I am not familiar with the Lightburn log but could it be that "state: 1" is from the controller beeing in an alam state?
If so see this wiki page on how to get rid of that.

@enjoylife1024
Copy link
Author

can I get you a log from laser grbl? Is there a software I can download that would help you know what the issue is? I had a real hard time getting it to compile and I know that is my issue on not knowing how to put them in directories. I believe it has to do with something in the com connection. What driver should be in the com port section of device manager. Right now mine says arduino due. Is it supposed to be the sx...?

@terjeio
Copy link
Contributor

terjeio commented Dec 12, 2023

Are you running Windows? If so ioSender will tell you what is wrong and let you change settings - even if alarm mode is active.

If you have compiled a version that connects over the programming port then this is how the port enumerates on my Win10 machine:

image

I'll have to recompile with USB enabled to find out how that port enumerates.

@enjoylife1024
Copy link
Author

I am at work now. I have built a 4x8 cnc that is running grbl on an arduino mega. It runs good but I want the 32 bit processing speed. Is it ok if I continue to ask questions when I get home to get the sorted out. I do appreciate all your help. This is amazing what you have made here.

@enjoylife1024
Copy link
Author

image
image
I get this in the serial monitor in arduino ide when I plug it in. So the Com port is definitely active.

@enjoylife1024
Copy link
Author

When I unplugged and plugged back in with the serial monitor on it did this.
image

@enjoylife1024
Copy link
Author

ok I see that the baud rate was wrong and now I can get it to work in the serial monitor portion but only through programming port. Is this the port I want? Don't I want it plugged into the native port when running the cnc? Do both ports not work together? Again so sorry very new to the programming aspect I am an automotive engineer by trade.

@terjeio
Copy link
Contributor

terjeio commented Dec 12, 2023

From the output above I am pretty sure the controller is in alarm mode. Have you tried to either short the reset/estop input to ground or changing the $14 setting to invert the input as described in the Wiki page?

The programming port is ok to use for communicating with the controller. The USB port can be enabled at compile time but both cannot be used at the same time. The USB port has faster transfer rate that may improve high resolution engraving speed - but you should explore other settings first. These are max travel speed, acceleration and planner buffer size.

@enjoylife1024
Copy link
Author

I thank you soooo much for your help. It just started working. I am doing the estop thing now.

I understand you can not use both ports at same time. I was moving the cord from one to the other and only the programming port was working. You say the usb port can be enabled at compile time? I guess I don't know what that means. Would I have to change one of the files in your program or is it a variable that I can type in gcode screen. Forgive my ignorance.

Now that I can at least use it I can figure out what needs to change. You mention max speed, acceleration and buffersize. I want to travel at 30,000 mm/mm max. That is what the water jets work at. My cnc is an all in one. I am figuring out all the logistics as I go.

@terjeio
Copy link
Contributor

terjeio commented Dec 13, 2023

You say the usb port can be enabled at compile time?

The easiest way to compile for the Due is to use the Web Builder. The Connection dropdown can be used to select which port to use for communication, (Virtual) UART selects the programming port, Native USB the other one. If compiling locally uncomment this line for native USB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants