Replies: 4 comments 4 replies
-
Hi there, It would be helpful if you shared you build.json file that with the configuration you used in the web builder to get a sense of what you might have enabled that leads to the code not fit on the UNO. Now about the behavior of the UNO. I'm assuming you used the UNO environment. The Uno environment comes with control pins enabled and if you let them unconnected the board will remain in ALARM state (because one of the pins is the emergency stop pin). In this state only a full hand of commands get response out of the UNO. You can confirm this by sending a If you don't need those pins just disable them by uncommenting DISABLE_ALL_CONTROLS on cnc_config.h I also advise using the v1.7.x-bugfix with all the latest fixes for v1.7. |
Beta Was this translation helpful? Give feedback.
-
Many thanks for quick and detailed answer! Here is the only *build.json I found (I'm not really sure it's the one I used as build config for 1.7.2, because I desperately tried N versions in M combinations; however, as it's the only one on my computer, it should be the one). Right now, 1.6.2 (which I'd like to use until I understand more ...) reacts to all commands; but UGS 2.0.18 doesn't want to connect - it complains about a missing $22. Might it be that I run into this issue:? winder/Universal-G-Code-Sender#2309 - then, how would I replace the VER string with something UGS accepts? |
Beta Was this translation helpful? Give feedback.
-
Do you need the control pins (ESTOP, HOLD, etc..) or will you be fully control this via UGS? |
Beta Was this translation helpful? Give feedback.
-
Found the issue that I was getting when compiling code for the UNO from the web builder (regarding UART). |
Beta Was this translation helpful? Give feedback.
-
I'm a complete newbie to CNC control with Arduino - so if this is not at all the right place to ask, please tell me where I should go. However, also longer googling did not lead me to an answer. My setup is the (I think) default: An Arduino UNO connected to a WIndows 10 laptop, using Arduino IDE (I tried to install PlatformIO, but after it downloaded > 6 GB and still did not work, I gave up on it).
Uploading the standard "Blink" example works, the green LED does its 1 Hz cycles.
What I did: I downloaded µCNC 1.7.2, created config files with the online configurator (cnc_config.h does have a line #define EMULATE_GRBL_STARTUP) and compiled ("Der Sketch verwendet 30282 Bytes (93%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.") and uploaded uCNC to the Arduino Uno (which is currently still without the shield - I think this is ok for just connecting to uCNC).
In UGS (64 bit version 2.0.18), I select
When I now press on the "Connect or Disconnect button", the green LED on the Arduino does a few quick flashes, then another single flash; and I get the following output in the UGS console:
*** Connecting to jserialcomm://COM7:115200
... and that's it. Which obvious action do I overlook?
EDIT: I started Arduino IDE's "Serial Monitor" with "Newline", 115200 Baud. When I type $$, I would except the Arduino+µCNC to "do something" (answer with the settings). But nothing is written into the Serial Monitor's output. What do I need to do to get a useful reaction?
EDIT 2: Other examples (e.g. the "CharacterAnalysis" example) work without problems with Serial Monitor; so I assume my cables and hardware are fine. Why's µCNC silent? :-(
EDIT 3: Slowly, I get something up and running. Versions >= 1.7.2 still do not work. But version 1.6.2 does react to Serial Monitor commands; I had to "invert emergency stop" - the documentation has the awkward sentence "and prevent any kind of motion or command appearing to be locked"; actually, it does not "prevent it to be locked", but it "prevents any kind of motion or command".
It is unclear to me why 1.7.2 does not react; and versions in that range require more memory thatn Arduino Uno provides (when using the default configs). But being a newbie, I'll probably be happy with 1.6.2 for a long time :-)!
If anyone can still shed light on why some things die not work --> thanks a lot!!
Harald
Beta Was this translation helpful? Give feedback.
All reactions